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

2011-08-22 Thread Albyn Jones
For H_0: beta >= 0, then the correct p-value is pt(tvalue,df) regardless of the sign of tvalue. Negative tvalues of large magnitude will yield small p-values. albyn On Mon, Aug 22, 2011 at 05:22:06PM +, Ben Bolker wrote: > Campomizzi, Andrew J neo.tamu.edu> writes: > > > On 20/0

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

2011-08-22 Thread Ben Bolker
Campomizzi, Andrew J neo.tamu.edu> writes: > On 20/08/11 10:20, Andrew Campomizzi wrote: > > 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.

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

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

2011-08-22 Thread David Winsemius
ponse answers my question. Mark's response was not copied to the list. -- David. Thanks, Andy -Original Message- From: David 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

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

2011-08-20 Thread David Winsemius
On Aug 19, 2011, at 6:20 PM, Andrew Campomizzi wrote: 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

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

2011-08-20 Thread Campomizzi, Andrew J
is appreciated. Thanks, Andy - Original Message - From: "Rolf Turner" To: "Andrew Campomizzi" Cc: r-help@r-project.org Sent: Friday, August 19, 2011 9:18:07 PM GMT -06:00 US/Canada Central Subject: Re: [R] Calculating p-value for 1-tailed test in a linear model The r-he

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

2011-08-19 Thread Rolf Turner
On 20/08/11 10:20, Andrew Campomizzi wrote: 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 calcu