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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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