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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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