[R] how to proof the trend of two columns of data?
David L Carlson
dcarlson at tamu.edu
Mon Jan 9 19:12:14 CET 2017
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:
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352
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?
Em 09-01-2017 14:55, vod vos escreveu:
> Hello everyone,
> If there are two columns, one is age (numeric, cut to several groups), the other is hair color type(factor: yellow, black, white).
> If the age column is not normal distributed
If you use ?lm, it's the residuals that should be normally distributed,
You can also use ?glm with a binomial link, in which case you should
recode type as white/not white.
Hope this helps,
, 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?
> Thank you.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help