[R] any measure for curvature

Bartjoosen bartjoosen at hotmail.com
Tue Nov 20 10:25:03 CET 2007


You mean non-linearity?
You can use a lack of fit test by using:
anova(lm(y ~ x+factor(x), data))
The F-value of factor(x) is the lack of fit test, and when lineair, the p
value should be <0.05 when using 0.95% significance.

Bart


Wensui Liu wrote:
> 
> in statistics, is there a measure for curvature? how to detect and
> quantify the curvature between 2 variales instead of using
> visualization?
> thank you so much!
> 
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
> 
> 

-- 
View this message in context: http://www.nabble.com/any-measure-for-curvature-tf4837912.html#a13853341
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list