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? >&

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      

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

2012-06-24 Thread Li SUN
Δ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 : > On 24/06/2012 18:39, David Winsemius wrote: >> >> >> On Jun 24, 2012, at 1:21 PM, Li SUN wrote: >> >>> Sorry for the confusion. >>>

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 : > > > On 24.06.2012 17:47, Li SUN wrote: >> >> Hi All, >> >> when using the linear mod

[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] 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 : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 04/01/12 10:39, Uwe Ligges wrote: >> >> >> On 03.01.2012 21:22, Li SUN wrote: &g

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 : > On 03/01/12 17:02,

[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