I performed a Poisson regression with robust variance estimation. I have 3 independent variables. The X1 = 1(1)100. For each value of X1 there are 500 to 2000 observations. The X2 is a deterministic, non-linear function of X1, and so is the X3. In other words, for each value of X1, all observations of X2 are the same. For each value of X1, all observations of X3 are the same. I want to use the margins function wherein for each value of X1 (i.e., at(X1=(1(1)100)), the mean of X2 is used and the mean of X3 is used. I do not want to use the mean of X2 among all values of X1. Is there a way to make this specification?
Related Posts with Using margins with several related continuous variables
How to get coefficients for other covariates in a propensity score weighting model?How to show coefficients for other covariates in a propensity score weighting model (IPW)? The PHP…
How to do Summations?Hello, I'm very new to stata and am having trouble figuring this out. If have have 2 variable lists,…
Graph of mean/ci over time by categorical variableHi, I am relatively new to stata but have looked for help ciplot and help xtgraph plus hours online …
How to create a loop to select 2 variables from a list?Hello! I would like to create a loop that allows me to select all the possible combinations of 2 va…
Copying Variable Names That Are Missing within a RangeHi, all. I have dataset where country names (variable: Country) are missing rather randomly. I have…
Subscribe to:
Post Comments (Atom)
0 Response to Using margins with several related continuous variables
Post a Comment