[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

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

2012-06-24 Thread Li SUN
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 lig...@statistik.tu-dortmund.de: On 24.06.2012 17:47, Li SUN wrote: Hi All, when using the linear model lm

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

2012-06-24 Thread Li SUN
and Δy to lm() so that I can find k, b as well as their uncertainties Δk, Δb? Li Sun 2012/6/24 Prof Brian Ripley rip...@stats.ox.ac.uk: 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

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

2012-06-24 Thread Li SUN
2012/6/24 Uwe Ligges lig...@statistik.tu-dortmund.de: 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

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 s.elli...@lgcgroup.com: But what if x is exact while y has some uncertainty Δy, in the relation y = k * x + b? Again

Re: [R] About source()

2012-01-04 Thread Li SUN
Thanks, guys! I am using Rscript at the moment and will definitely try littler. Li Sun 2012/1/4 Rainer M Krug r.m.k...@gmail.com: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/01/12 10:39, Uwe Ligges wrote: On 03.01.2012 21:22, Li SUN wrote: Thanks, Rolf, Justin and Uwe

Re: [R] About source()

2012-01-03 Thread Li SUN
Thanks, Rolf, Justin and Uwe! Actually I wanted to run .R file as a script, just like what people do for bash scripts or python scripts. It seems to me that adding #!/usr/bin/R -f at the first line is what I need. Is this true? Li Sun 2012/1/2 Rolf Turner rolf.tur...@xtra.co.nz: On 03/01/12

[R] About source()

2012-01-02 Thread Li SUN
directory, otherwise it has to be specified in full path. So is there any mechanism(such as environment variable) to specify an additional directory of .R files that source() could search in? Thanks in advance! Li Sun Department of Physics University of California, San Diego