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 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!

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