Hi, I am trying to do the simulations. where I first regress the price on weight and after that, I randomly shuffle the X() variable and run regression each time.
sysuse auto, clear
regress price weight
forvalues i=1/100 {
shufflevar weight
quietly regress price weight_shuffled
}
How I can save and plot the regression (slope) coefficient please
sysuse auto, clear
regress price weight
forvalues i=1/100 {
shufflevar weight
quietly regress price weight_shuffled
}
How I can save and plot the regression (slope) coefficient please
Comment