BookmarkSubscribeRSS Feed
Kingess
Calcite | Level 5
How can I run a fixed effect model in Probit?

My model is: y=f(V1, V2, V3).

y is a 0/1 binomial variable.
V1, V2, V3 are continuous variables.

The observations are taken over a period of 30 years. A portion of the total number of observations come from each of the thirty years.

Since the V1,V2 and V3 vary over the thrity years, I want to add a year fixed effect.

I am using SAS 9.2. I have looked in the SAS Documentation but am unable to locate the command/options, etc.

Can anybody help?

Thanks.
4 REPLIES 4
lvm
Rhodochrosite | Level 12 lvm
Rhodochrosite | Level 12
Based on your question, I think you simply want:

proc probit;
class y;
model y = v1 v2 v3 year;
run;

This assume that y is strictly 0 or 1. There is an alternate syntax when you have a count of y out of n for each observation.
StatDave
SAS Super FREQ
A fixed effects model can be fit in PROC LOGISTIC using the STRATA statement. For example:

proc logistic;
strata year;
model y=v1 v2 v3;
run;

This fits the conditional logistic model that avoids estimating parameters for the years. However, a probit model cannot be fit when the STRATA statement is used and there is no STRATA statement in PROC PROBIT.
raqthesolid
Quartz | Level 8

Hello dear ? 

Can i get Pseudo R squre or R squre using this regression in SAS?
any help will he highly appreciable. 
THnaks

raqthesolid
Quartz | Level 8
Hello dear
Can I get Pseudo R squre using Proc logistic?
Thanks for help

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
  • 4 replies
  • 7130 views
  • 0 likes
  • 4 in conversation