input
forvalues i=1(1)300 {
display `i'
clear all
display Area[1]
use "data (`i').dta"
export excel using "data (`display Area[1]' `i')", firstrow(variables) replace
}
output
1
data( 1).xls
Related Posts with To NAME: excel export using value of variable.
Threshold regression in time serie, not panel dataHi all, I wonder if its possible make a threshold regression in time serie data, not panel data wit…
STATA MP version?Dear STATA community, I am facing an issue and I was hoping that some of you might share ideas or e…
IRR comparisonHello, I ran nbreg for the same outcome variable with two different primary independent variables a…
Look-up TablesHi, While I have used Stata for simple analysis for a while, I am starting to need to do more compl…
Problem with 95% Conf. intervalHi All, I am trying to calculate the proportion of two specific variables and compare the differenc…
Subscribe to:
Post Comments (Atom)
0 Response to To NAME: excel export using value of variable.
Post a Comment