When is it more appropriate to use cov() vs corr() for the residual structures for panel data?
Example Code:
xtpoisson Outcome CovariateA##CovariateB CovariateC CovariateD, exposure(area) corr(exchangeable)
xtnbreg Outcome CovariateA##CovariateB CovariateC CovariateD, exposure(area) corr(independent)
mepoisson Outcome CovariateA##CovariateB CovariateC CovariateD, exposure(area) || GroupID:, covariance(unstructured)
menbreg Outcome CovariateA##CovariateB CovariateC CovariateD, exposure(area) || GroupID:, covariance(unstructured)
glm Outcome CovariateA##CovariateB CovariateC CovariateD, exposure(area) vce(robust) family(gamma) link(identity)
Related Posts with What is the difference between corr() and cov() with panel data?
Average of Top (x) RankedGood morning, Would appreciate some code that generates in the wanted var, the average for the mast…
conditional averagingHello all, this id small part of my data set. in my dataset, there are 18 villages. I want to averag…
export entire dataset to latexI have used `esttab` before to export regression results to Stata. However I have build a small tabl…
Change the size and spacing between the boxes in a boxplotDear Statalisters, I have made a boxplot containing 4 boxes within it. However, the boxes are very …
Is there a way to know the number of unique values under a combination of variables?Dear Statalisters, I have a dataset which tracks individuals who work for different companies at dif…
Subscribe to:
Post Comments (Atom)
0 Response to What is the difference between corr() and cov() with panel data?
Post a Comment