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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 1659 views
  • 0 likes
  • 2 in conversation