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
Detecting autocorrelation in DiD: can I use xtserial?Hello, I am working on the following Diff in diff model in stata: reg ln_sales = i.treatment +trea…
Stratifying in logistic regressionHello, I am attempting to conduct a logistic regression and I want to stratify by a group that I hav…
Box plotsHi all, I am quite stuck in plotting a proper box plot with STATA. The following is the plot result…
Repeated Measures DuplicatesI have a longitudinal dataset with a studyid visit_date refill_date adherence and stage I have multi…
Neural NetworkHi everyone, I have just recently uploaded a neural network module for Stata. brain.ado is neural …
Subscribe to:
Post Comments (Atom)
0 Response to Using margins with several related continuous variables
Post a Comment