Re: [R] Calculating p-value for 1-tailed test in a linear model

2011-08-22 Thread Andrew Campomizzi
t answer also but it doesn't show the understanding. -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Monday, August 22, 2011 9:12 AM To: Andrew Campomizzi Cc: r-help@r-project.org Subject: Re: [R] Calculating p-value for 1-tailed test in a linear model

Re: [R] Calculating p-value for 1-tailed test in a linear model

2011-08-22 Thread Andrew Campomizzi
Winsemius [mailto:dwinsem...@comcast.net] Sent: Saturday, August 20, 2011 6:02 PM To: Andrew Campomizzi Cc: r-help@r-project.org Subject: Re: [R] Calculating p-value for 1-tailed test in a linear model On Aug 19, 2011, at 6:20 PM, Andrew Campomizzi wrote: > Hello, > > I'm having tr

[R] Calculating p-value for 1-tailed test in a linear model

2011-08-19 Thread Andrew Campomizzi
Hello, I'm having trouble figuring out how to calculate a p-value for a 1-tailed test of beta_1 in a linear model fit using command lm. My model has only 1 continuous, predictor variable. I want to test the null hypothesis beta_1 is >= 0. I can calculate the p-value for a 2-tailed test using th