BookmarkSubscribeRSS Feed
newbieprog
Calcite | Level 5

I'm using SAS 9.4 and running the following code:

 

proc nlmixed data=newdata;

parms b0=2 b1=-4 b2=-5 b3=4 v=21;

p=b0+b1*bin+b2*time+b3*bin*time;

model y ~ normal(p,v);

estimate "parm eq 0" b3-5 df=1e8;

ods output AdditionalEstimates=Parms;

run;

 

I have an estimate statement because I'm trying to test b3=5.  I want my p-value for these results to be from a one-sided test and I assume right now the p-value represents a two-sided test.  How can I change this?

1 REPLY 1
PaigeMiller
Diamond | Level 26

To get the p-value for a one-sided test, you take the p-value for the two-sided test, and you divide it in half.

--
Paige Miller

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1110 views
  • 0 likes
  • 2 in conversation