Quantcast
Channel: The Stata Blog - Latest Comments
Viewing all articles
Browse latest Browse all 1125

Re: Export tables to Excel

$
0
0

Hi Kevin, I was wondering if you could help me out. I would like to use putexcel to export the results of my errors, some are loop commands. For example here are 2 of the commands I would like to export the results:

list UID StudyID DateCompleted if !inrange(dofc(DateCompleted), td(1apr2012), td(2feb2015))

foreach var in GHQ_A3a_VigAct GHQ_A3b_ModAct GHQ_A3c_LiftGroceries GHQ_A3d_SevFlights GHQ_A3e_OneFlight GHQ_A3f_BendKneel GHQ_A3g_WalkMiles GHQ_A3h_WalkBlocks GHQ_A3i_WalkoneBlock GHQ_A3j_Bath {
list UID StudyID `var' if !inrange(`var', 1, 3)
}

Thanks for your help!


Viewing all articles
Browse latest Browse all 1125

Trending Articles