Dear all,
I am running a fractional logit model, using fracglm, where Vote (the percentages of votes in favor) is my dependent variable.
My independent variable of interest (X1) is a fraction, representing a group of people with voting power (1 vote per person). Hence, when X1 increases by 1, Vote should increase by a maximum of 1. The coefficient is relative to another group (not included in the regression), and both groups add up to the total voting power. Hence, the coefficient of X1 should be between -1 and 1.
However, X1 interacts with two additional variables:
Vote = a + [b1]X1 + [b2]X1 * X2 + [b3]X1 * X3
The total effect of X1 on Vote should be between -1 and 1 (-1<= b1 + b2 + b3 <=1).
How can I test such a model in Stata? I am aware of this FAQ but I am not sure whether it can be applied to my model.
Related Posts with Constraints in a nonlinear regression with interaction terms
import excel and reshapeDear All, I have this data set in excel as: Array and data is here test.xlsx. How can I obtain the …
Scatter plot: individual slope versus baseline GFRDear Stata users, I am trying to create a scatter plot of individual slopes (GFR) versus baseline …
Extraction of submatrix containing probit estimatesI want to extract submatrices of the coefficient vector and the var/cov matrix which are returned fo…
Use outreg2 on multiple analysesHello, Running the module fairlie produces two tables: logistic regression and decomposition, and i…
In my humble opinion unexpected behavior of trim()Dear Stata list, I thought over this a lot of times as I did not expect to find anything unexpected…
Subscribe to:
Post Comments (Atom)
0 Response to Constraints in a nonlinear regression with interaction terms
Post a Comment