BookmarkSubscribeRSS Feed
jzhang332002
Fluorite | Level 6

I am doing a logistic regression across a class variable "state", and the parameter always set the last state, for example, "WY"'s value as 0. I want my sample average parameters across all state to be 0. That means no state's final parameter is 0, but their average is 0. Is there a way to do it? Thanks.

2 REPLIES 2
Rick_SAS
SAS Super FREQ

You can use the PARAM= keyword on the CLASS statement to set the parameterization for the classification variables.  Here are all the parameterizations: SAS/STAT(R) 13.1 User's Guide  By default, PROC LOGISTIC uses PARAM=EFFECT. Parameter estimates for the effect coding scheme "estimate the difference in the effect of each nonreference level compared to the average effect over all levels."   I am a little confused because it sounds like that is what you want, right? A comparison to the average?

Questions like this are best asked in the Statistical Procedures Community. Some of the experts there (like or ) would be able to give a more definitive answer.

lvm
Rhodochrosite | Level 12 lvm
Rhodochrosite | Level 12

I don't think you want the average parameters to be 0. I think you want param=effect or param=ref.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1336 views
  • 0 likes
  • 3 in conversation