Re: [R] p-value for the fitted parameters in linear models

2012-06-24 Thread Li SUN
Dear All, Thanks for all your explanations and sorry for the confusion. I will need to consult some statistician for help. Sincerely, Li Sun 2012/6/24 S Ellison : > > >>> But what if x is exact while y has some uncertainty Δy, in the >>> relation y = k * x + b? >> >>Again, no: this is not a li

Re: [R] p-value for the fitted parameters in linear models

2012-06-24 Thread S Ellison
>> But what if x is exact while y has some uncertainty Δy, in the >> relation y = k * x + b? > >Again, no: this is not a linear model. Assumption in a linear model is >that the errors are identically distributed. Surely not; errors in a linear model do not need to be homoscedastic. lm handles h

Re: [R] p-value for the fitted parameters in linear models

2012-06-24 Thread Bert Gunter
Dear Li Sun: You appear to have a good deal of statistical confusion. R-help is not a statistical consulting service. You should consult a local statistician or, if that's not possible,post on a statistical help list like stats.stackexchange.com -- Bert On Sun, Jun 24, 2012 at 12:04 PM, Li SUN

Re: [R] p-value for the fitted parameters in linear models

2012-06-24 Thread Li SUN
2012/6/24 Uwe Ligges : > > > On 24.06.2012 20:35, Li SUN wrote: >> >> Thanks David and Brian. >> >> But what if x is exact while y has some uncertainty Δy, in the >> relation y = k * x + b? >> >> Now I need to fit some data like >> x       = 1,          2,          3,          4,          5 >> y±Δy

Re: [R] p-value for the fitted parameters in linear models

2012-06-24 Thread Uwe Ligges
On 24.06.2012 20:35, Li SUN wrote: Thanks David and Brian. But what if x is exact while y has some uncertainty Δy, in the relation y = k * x + b? Now I need to fit some data like x = 1, 2, 3, 4, 5 y±Δy = 1.1±0.1, 2.0±0.2, 3.1±0.2, 4.1±0.1, 5.0±0.2 Is

Re: [R] p-value for the fitted parameters in linear models

2012-06-24 Thread Li SUN
Thanks David and Brian. But what if x is exact while y has some uncertainty Δy, in the relation y = k * x + b? Now I need to fit some data like x = 1, 2, 3, 4, 5 y±Δy = 1.1±0.1, 2.0±0.2, 3.1±0.2, 4.1±0.1, 5.0±0.2 Is there any mechanism to pass x, y and Δ

Re: [R] p-value for the fitted parameters in linear models

2012-06-24 Thread Prof Brian Ripley
On 24/06/2012 18:39, David Winsemius wrote: On Jun 24, 2012, at 1:21 PM, Li SUN wrote: Sorry for the confusion. Let me state the question again. I missed something in my original statement. When using the linear model lm() to fit data of the form y = k * x + b, where k, b are the coefficient

Re: [R] p-value for the fitted parameters in linear models

2012-06-24 Thread David Winsemius
On Jun 24, 2012, at 1:21 PM, Li SUN wrote: Sorry for the confusion. Let me state the question again. I missed something in my original statement. When using the linear model lm() to fit data of the form y = k * x + b, where k, b are the coefficients to be found, and x is the variable and h

Re: [R] p-value for the fitted parameters in linear models

2012-06-24 Thread Li SUN
Sorry for the confusion. Let me state the question again. I missed something in my original statement. When using the linear model lm() to fit data of the form y = k * x + b, where k, b are the coefficients to be found, and x is the variable and has an error bar (uncertainty) Δx of the same lengt

Re: [R] p-value for the fitted parameters in linear models

2012-06-24 Thread Uwe Ligges
On 24.06.2012 17:47, Li SUN wrote: Hi All, when using the linear model lm() to fit data of the form y = k * x + b, is it possible to know the p-value for the parameters k and b? i.e. can we find the result of the form (k, Δk; b, Δb)? If you explain what Δk means in a linear model, we may be

[R] p-value for the fitted parameters in linear models

2012-06-24 Thread Li SUN
Hi All, when using the linear model lm() to fit data of the form y = k * x + b, is it possible to know the p-value for the parameters k and b? i.e. can we find the result of the form (k, Δk; b, Δb)? Thanks in advance! Li Sun __ R-help@r-project.org ma