BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
rj_missionbeach
Fluorite | Level 6

I'm estimating a model and want to test if one of the parameters differs from one (rather than zero). That is, I'm trying to find the equivalent of a "test" statement in a linear regression. Specifically, I'd like to test if the lambda coefficient differs from one. Thanks for any help.

 

proc nlin data=outpn1_std;
parameters lambda=1 a=0 b=0;
model &depvar.=a+b*(
((lambda**1)/(lambda**1+lambda**2+lambda**3+lambda**4+lambda**5)*xn3)
+((lambda**2)/(lambda**1+lambda**2+lambda**3+lambda**4+lambda**5)*xn6)
+((lambda**3)/(lambda**1+lambda**2+lambda**3+lambda**4+lambda**5)*xn9)
+((lambda**4)/(lambda**1+lambda**2+lambda**3+lambda**4+lambda**5)*xn12)
+((lambda**5)/(lambda**1+lambda**2+lambda**3+lambda**4+lambda**5)*xn15) );
 

 

1 ACCEPTED SOLUTION

Accepted Solutions
SteveDenham
Jade | Level 19

You can get a test of whether lambda=1 by using an ESTIMATE statement (SAS/STAT 15.1 or later). For example,

 

ESTIMATE 'label' lambda-1;

This should give output that looks like this:

SteveDenham_0-1718290972891.png

In this case, I labeled the ESTIMATE 'community' and added this statement to the first example in the PROC NLIN documentation:

estimate 'community' alpha-1;

The approx Pr >|t| is a two-tailed test of whether alpha differs from 1, by constructing the additional estimate alpha-1, which NLIN tests against zero.

 

SteveDenham

 

View solution in original post

2 REPLIES 2
SteveDenham
Jade | Level 19

You can get a test of whether lambda=1 by using an ESTIMATE statement (SAS/STAT 15.1 or later). For example,

 

ESTIMATE 'label' lambda-1;

This should give output that looks like this:

SteveDenham_0-1718290972891.png

In this case, I labeled the ESTIMATE 'community' and added this statement to the first example in the PROC NLIN documentation:

estimate 'community' alpha-1;

The approx Pr >|t| is a two-tailed test of whether alpha differs from 1, by constructing the additional estimate alpha-1, which NLIN tests against zero.

 

SteveDenham

 

rj_missionbeach
Fluorite | Level 6
Perfect. Thank you Steve!

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

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 934 views
  • 2 likes
  • 2 in conversation