Multinomial logit model or generalized logit model makes the parameters specific to the nominal. With subject-specific covariate only, the probability of response j=0..J-1 is pi_ij=exp(xi.beta)/(sum_0^(J-1))exp(xi.beta) with beta_0=0 for identification. An intercept is included in each betaj. The multinomial logit model has the property of independence from irrelevant alternatives because pi_jk=exp(xi.(beta_j-beta_k). Having too many parameters is a serious drawback of the MLM.
The multinomial logit model can be estimated in proc logistic and proc glimmix using the link=glogit.
data multinomial_response;
beta1_0 = .2;
beta1_1 = .5;
beta2_0 = -.2;
beta2_1 = .7;
seed = 1234579;
do id = 1 to 500;
x = rannor(seed);
eta1 = beta1_0 + beta1_1*x;
eta2 = beta2_0 + beta2_1*x;
prob1 = exp(eta1) / (1 + exp(eta1) + exp(eta2));
prob2 = exp(eta2) / (1 + exp(eta1) + exp(eta2));
prob3 = 1 / (1 + exp(eta1) + exp(eta2));
call rantbl(seed, prob1, prob2, prob3, y);
output;
end;
keep id x y;
run;
proc logistic data = multinomial_response;
class;
model y = x / link = glogit;
run;
Wednesday, November 9, 2011
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2011
(38)
-
▼
November
(38)
- Mail Solicitation and Response Using SQL
- PROC LOGISTIC to handle Randomized Complete Block ...
- SAS Tricks: Padding zeros & Transpose Cross produc...
- How SAS handles missing values
- Hypothesis Test in R and SAS
- INFORMAT AND FORMAT
- PCA vs. EFA
- PROC CLUSTER, PROC FASTCLUS to CLUSTERING
- Discrete Distribution and Continuous Distributions
- Types of Joins
- Types of Set Operations
- Creating and Modifying Tables
- %missingPattern to Studying Missing Data Patterns
- PROC CLUSTER, PROC FASTCLUS to run Variable Select...
- Sample Size Calculation using PROC POWER for propo...
- PROC POWER, PROC GLMPOWER for proportions under CRD
- proc QLIM, proc LOGISTIC, PROC GENMOD, PROC GLIMMI...
- Proc QLIM to fit Tobit Models
- PROC DISCRIM to fit Linear Discriminant Analysis (...
- Proc LOGISTIC, PROC GENMOD, PROC GLIMMIX to fit Bi...
- PROC QLIM to fit Ordered Logit Models and Ordered ...
- PROC LOGISTIC and PROC PHREG to fit Conditional Lo...
- Proc Timeseries and Proc Expand
- Proc ARIMA to Fit AR(p) model
- Proc ARIMA to Fit MA(q) model
- Proc ARIMA to test Stationary.
- Proc LOGISTIC to fit Multinomial Logistic Models
- Proc ARIMA to Fit ARIMA(p,d,q) model
- Proc Forecast to Automatic Forecasting.
- Proc Autoreg to Model Time Series Errors
- Proc UCM
- Proc STATESPACE
- SAS Operators
- Proc Spectra
- %INCLUDE SAS macro
- PROC MEANS and PROC UNIVARIATE
- Proc KDE
- PROC MODEL to estimate ARMA - GARCH
-
▼
November
(38)
No comments:
Post a Comment