BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
useSAS
Calcite | Level 5

I have some trouble in using estimate statement in PROC logistic for multinomial outcome. Is there any example for this situation ?

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
3 REPLIES 3
Reeza
Super User

@useSAS wrote:

I have some trouble in using estimate statement in PROC logistic for multinomial outcome. Is there any example for this situation ?

Thanks

 


Please post your question directly in the forum, not as an attachment, as many users will not open them. 

Additionally, remove your Site Number from your post. 

StatDave
SAS Super FREQ

This cannot be done with the ESTIMATE statement.  But you can use the general NLEstimate macro to test any linear or nonlinear combination of model parameters. This note shows one example of using the macro with a multinomial model.  Links to other examples of using the macro are given in the Results tab of the macro description. For your example, you just want to contrast the 3rd and 4th parameters in the model.  That is, you want to test the hypothesis that the difference in those parameters is zero.  Here is a similar example using the Crops data in the example titled "Scoring Data Sets" in the LOGISTIC documentation.  Include a STORE statement to save the fitted model information in an item store named LOG.  After submitting the macro definition code to define the macro (see the Usage section of the macro description), call the macro and specify the function to estimate using the parameter names that the macro assigns: B_p1, B_p2, ... . 

 

proc logistic data=crops;
where crop in ('Corn','Soybeans','Cotton');
model crop = x1 / link=glogit;
test x1_Corn=x1_Cotton;
store log;
run;
%NLEstimate(instore=log, label=Diff, f=B_p3-B_p4, df=15)

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 3 replies
  • 1900 views
  • 1 like
  • 3 in conversation