I have some empirical data, and I'd like to simulate multivariate normal data with the same mean and covariance matrix.
I can do this by running the summarize and correl,cov commands on the empirical data, then pasting the means and covariance matrix into the drawnorm or corr2data commands. But it's bad practice to cut and paste statistics from the output into the commands. Is there a way to automate this using macros that contain the output of summarize and correl,cov?
Thanks!
Related Posts with Simulating data with summary statistics from empirical data
PLEASE HELP: "Convergence not achieved" errorHi, I am using xtgee command to estimate DP with IV in fractional form on a balanced panel data but …
Interpretation r.a#r.b interaction (margins command)Dear Statalisters, I ran the following logit model and then computed the marginal effects of my var…
Identifying First Occurrences in Panel DataDear Statalist Community, Set-up I am currently working with a database of executive compensation f…
Grouping Countries According To Level of GDP per capitaHello, I am very new to Stata and excuse me in advance if this is somewhat of an easy question to ta…
Dynamic panel data - how to test coefficient stability?I have an unbalanced panel data and I want to run an ARDL model. The longest time-span is from 1950m…
Subscribe to:
Post Comments (Atom)
0 Response to Simulating data with summary statistics from empirical data
Post a Comment