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 length associated
with it. Is it possible to pass ?x to the linear model lm(), and from
the output to find the uncertainty ?k for k, ?b for b as well?
Li Sun
2012/6/24 Uwe Ligges <ligges at
statistik.tu-dortmund.de>:>
>
> 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 able to help.
> Also, what is "the p-value of the parameters"? Obviously a
hypothesis is
> missing in this sentence.
>
> Best,
> Uwe Ligges
>
>
>
>
>>
>> Thanks in advance!
>>
>> Li Sun
>>
>> ______________________________________________
>> 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.
>>
>