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
XTSET and TTSET Error MessageHello, I have a panel dataset which is evenly balanced but when I run xtset (or ttset) command to s…
Median, SD, & FrequencyFor the attached file, find: For variable PAY, calculate median and SD by denial code, but only for…
Lagged Variable generationI have an individual level cross-sectional dataset. The observations are individuals belonging to a …
ForcastingHi! I need to estimate predicting values from a logistic regression using continuos and discrete var…
How to create a poverty headcount variable (by municipality)Hi all, I am using South Africa Census 2011 data, and I want to use the derived household annual in…
Subscribe to:
Post Comments (Atom)
0 Response to Simulating data with summary statistics from empirical data
Post a Comment