Hello everyone, I know that to calculate the linear regression between x and y I have to use the function "lm". But how to do if x and y have a standard deviation like in the following example? How to compute the chi square test in this case? Thank you, Fulvio. example: x +- dx 5 2 13 4 17 4 23 6 y +- dy 6.3 0.6 9.2 0.9 14 1 21 4 --------------------------------- [[alternative HTML version deleted]]
Spencer Graves
2004-Feb-15 17:43 UTC
[R] linear regression of data with standard deviation
I'm not certain what you are asking, but I wonder if you want "errors in X regression". If yes, have you considered the "sem" package ("structural equations modeling")? If you don't already have this package, you can get it using the "download.packages" under Windows or by following the instructions in the FAQs. hope this helps. spencer graves Fulvio Copex wrote:>Hello everyone, >I know that to calculate the linear regression between x and y I >have to use the function "lm". >But how to do if x and y have a standard deviation like in the >following example? >How to compute the chi square test in this case? >Thank you, >Fulvio. > >example: >x +- dx >5 2 >13 4 >17 4 >23 6 >y +- dy >6.3 0.6 >9.2 0.9 >14 1 >21 4 > > > > > >--------------------------------- > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > >