Skip to content
Back to formatted view

Raw Message

Message-ID: <1598842ef55.101f82e822686.1862894340827705399@zoho.com>
Date: 2017-01-10T12:03:25Z
From: vod vos
Subject: how to proof the trend of two columns of data?
In-Reply-To: <9267fa5ef8ae4f6fabfad5546c218c24@exch-2p-mbx-w2.ads.tamu.edu>

as far as I know,  ?kruskal.test will show us the differences between three or more groups. But it could show the trend. 




---- On ???, 09 ?? 2017 10:12:14 -0800 David L Carlson &lt;dcarlson at tamu.edu&gt; wrote ----




The list does not assist with homework problems. If this is not a class assignment, you should be more specific about what you have tried and provide a reproducible example (a sample of the real data or some made-up data that has the same columns and data types). In the meantime you could also try the following R command: 

 

&gt; ?kruskal.test 

 

------------------------------------- 

David L Carlson 

Department of Anthropology 

Texas A&amp;M University 

College Station, TX 77840-4352 



-----Original Message----- 

From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Rui Barradas 

Sent: Monday, January 9, 2017 11:28 AM 

To: vod vos; r-help 

Subject: Re: [R] how to proof the trend of two columns of data? 



Hello, 



Inline. 



Em 09-01-2017 14:55, vod vos escreveu: 

&gt; Hello everyone, 

&gt; 

&gt; 

&gt; 

&gt; If there are two columns, one is age (numeric, cut to several groups), the other is hair color type(factor: yellow, black, white). 

&gt; 

&gt; 

&gt; 

&gt; If the age column is not normal distributed 



If you use ?lm, it's the residuals that should be normally distributed, 

not age. 

You can also use ?glm with a binomial link, in which case you should 

recode type as white/not white. 



Hope this helps, 



Rui Barradas 



, which statistic method should use to prove the trend relationship 

between them, for example, the older has more probability of white hair 

type? Are there any existed R package to figure out this situation? 

&gt; 

&gt; 

&gt; 

&gt; Thank you. 

&gt; 

&gt; 

&gt; 

&gt; 

&gt;     [[alternative HTML version deleted]] 

&gt; 

&gt; ______________________________________________ 

&gt; R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see 

&gt; https://stat.ethz.ch/mailman/listinfo/r-help 

&gt; PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 

&gt; and provide commented, minimal, self-contained, reproducible code. 

&gt; 



______________________________________________ 

R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see 

https://stat.ethz.ch/mailman/listinfo/r-help 

PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 

and provide commented, minimal, self-contained, reproducible code. 



______________________________________________ 

R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see 

https://stat.ethz.ch/mailman/listinfo/r-help 

PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 

and provide commented, minimal, self-contained, reproducible code. 











	[[alternative HTML version deleted]]