Simple constraint on logistic regression?

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

AmberA
Posts: 4
Joined: Thu Sep 11, 2014 2:32 pm

Simple constraint on logistic regression?

Postby AmberA » Thu Sep 11, 2014 2:36 pm

Hi,

I wanted to run the logistic regression

Logit k x y z

Under the constraint c1+c2+c3=1 where c1,c2,c3 are the coefficients on x,y,z. This seems easy to do for least squares but I can’t see a way to do it for logit. Any help would be greatly appreciated.

Thanks!
Amber

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Simple constraint on logistic regression?

Postby EViews Gareth » Thu Sep 11, 2014 2:58 pm

Same as with Least Squares:

Code: Select all

k=c(1)*x+c(2)*y+(1-c(1)-c(2))*z

AmberA
Posts: 4
Joined: Thu Sep 11, 2014 2:32 pm

Re: Simple constraint on logistic regression?

Postby AmberA » Thu Sep 11, 2014 3:17 pm

That worked! Thanks!

Is there a way to figure out the Standard Error for the constrained variable (c(3) in this case)?

Amber

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: Simple constraint on logistic regression?

Postby startz » Thu Sep 11, 2014 4:36 pm

sqrt(var(c(1))+var(c(2))+2cov(c(1),c(2))) I think.

AmberA
Posts: 4
Joined: Thu Sep 11, 2014 2:32 pm

Re: Simple constraint on logistic regression?

Postby AmberA » Thu Sep 11, 2014 5:04 pm

Yes, thanks, but where do you find the covariance matrix in the output?

It appears that another way to get the standard error is to run the regression several times while putting the constrained coefficient (1-c(1)-c(2)) on a different explanatory variable each time.

Thanks again!
Amber

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: Simple constraint on logistic regression?

Postby startz » Thu Sep 11, 2014 5:06 pm

View/Covariance matrix

AmberA
Posts: 4
Joined: Thu Sep 11, 2014 2:32 pm

Re: Simple constraint on logistic regression?

Postby AmberA » Thu Sep 11, 2014 5:09 pm

Thanks!


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests