The variable "in_default" has the observations 0 and 1. In results, table "Proportion (risk) Difference Test" calculates for "in_default" equal to 0. Is there how to obtain this table for "in_default" equal to 1?
Follow the code I used:
proc freq data=test;
weight pd;
tables leaf*in_default / riskdiff(equal var=null);
run;
Hello @Thalitacosta,
You can add the COLUMN=2 riskdiff option
tables leaf*in_default / riskdiff(equal var=null column=2);
to tell SAS that you want the calculation for the other column (i.e., in_default=1). The default is column=1, which in your case corresponds to in_default=0.
Hello @Thalitacosta,
You can add the COLUMN=2 riskdiff option
tables leaf*in_default / riskdiff(equal var=null column=2);
to tell SAS that you want the calculation for the other column (i.e., in_default=1). The default is column=1, which in your case corresponds to in_default=0.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
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.