Hi all,
I am having some trouble with replicability using the corr2data command to simulate autocorrelated data.
Basically, I want to perform 100 replications of simulated datasets with autocorrelated variables, each replication using a seed going from 1 to 100. However, I have noticed that corr2datais obtaining exactly the same data from consecutive even-odd seeds (i.e. the data from seed=2 is the same as the data from seed=3, and this happens with seeds 4-5, 6-8, ...etc). I attach a photo with the pvalue of a variable in a regression to illustrate this case, along with the number of repetition and the corresponding seed.
Has anyone noticed this and/or why does this occur? The obvious solution for me is to use other seed structure, but I still don't find this normal and want to figure out if its a programming error.
Thanks,
Christian
Array
Related Posts with Inconsistency with corr2data command
Interpreting coefficients of a continuous variable interacted with a categorial variable in regressionIn a xtlogit model Code: xtlogit mental_health i.gender i.age income#i.province Can I use Code: ma…
Help needed for Matplotlib in StataHi, I am using Stata 17 and was using some python codes to plot some bar charts. Below is my code: …
Are there any unconventional ways to launch Stata?In my set up, I have a host machine and two VMS. Both VMs have Stata installed on them. I need to be…
How to convert string id variable starting with "00" to numeric without losing the "00"?Hi, could any one help me with the following two issues? First, my id variable values start with 00…
Putexcel Loop over several cross tabulationsHello, I'd like to run some weighted cross-tabulations, and use putexcel to save the output in excel…
Subscribe to:
Post Comments (Atom)
0 Response to Inconsistency with corr2data command
Post a Comment