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
Explanatory and explained variables with opposite time trendsDear All! I am conducting a cross-country study exploring the relationship between ESG disclosure …
Generate 2nd Highest ValueHi, This was supposed to be easy, but its not, for me anyway. I need to generate a new variable tha…
Proportional hazard modelHi everyone, I have a question about the proportional hazard model. My data looks as below: Code:…
Struggling to create a percent change variable that is organized by multiple subgroupingsHi all! Apologies for the possibly beginner question, I've been searching this forum all afternoon a…
Microfinance or Self Help GroupHi everyone, I am writing a desk-based research paper for my class on "impact of Microfinance (or S…
Subscribe to:
Post Comments (Atom)
0 Response to Simulating data with summary statistics from empirical data
Post a Comment