Dear Statalist users,
I am struggling to find way for exporting local variable to .csv file.
One way I found was 'putexcel' commend, but it does not work with message "workbook Kruger_replicate.csv could not be loaded".
I think 'putexcel' works only for .xls file
Is there any other way to paste value of local variable to csv file with stata commend?
Please, give me your cool idea
And here's my code
foreach i of varlist d_sesk d_srace agek attrik nstud pscore {
eststo: mvtest mean `i', by(cltypek)
local pv`i'=round(r(p_F),0.01)
}
putexcel E2=(`pvd_sesk') E3=(`pvd_srace') E4=(`pvagek') E5=(`pvattrik') E6=(`pvnstud') E7=(`pvpscore') ///
using Kruger_replicate, modify
I am struggling to find way for exporting local variable to .csv file.
One way I found was 'putexcel' commend, but it does not work with message "workbook Kruger_replicate.csv could not be loaded".
I think 'putexcel' works only for .xls file

Is there any other way to paste value of local variable to csv file with stata commend?
Please, give me your cool idea

And here's my code
foreach i of varlist d_sesk d_srace agek attrik nstud pscore {
eststo: mvtest mean `i', by(cltypek)
local pv`i'=round(r(p_F),0.01)
}
putexcel E2=(`pvd_sesk') E3=(`pvd_srace') E4=(`pvagek') E5=(`pvattrik') E6=(`pvnstud') E7=(`pvpscore') ///
using Kruger_replicate, modify
Comment