Hi there,
Here's my code:
local vars "date"
foreach pre in `vars'{
putexcel set "tabout/cleaningtest_`pre'.xls", replace
putexcel A1="`pre'" A3=("Sample/Patient Characteristic") B3=("Mean (SD)")
tab `pre', matrow(hnames)
local hlevels = rowsof(hnames)
forvalues i = 1/`hlevels' {
local hal`i' = hnames[`i',1]
local hal_lab`i' : label (`pre') `hal`i''
local x = `i' +2
excelcol `x'
putexcel `r(column)'3=("`hal_lab`i''"),
My aim is to put a series of dates in the colums in the excel spreadsheet. It works perfectly except it the dates are in numeric form and not formatted as they are displayed in Stata.
I am using Stata 14.2
Many thanks in advance.
Related Posts with How does one put formatted date labels into excel with Putexcel?*
Removing insignificant variablesHello, As an example here, I am trying to estimate the following regression and compare when my depe…
Melogit: variance of random slope looks insignficant, but LRtest says it is?Can someone please help me with a multilevel modeling question? I've gotten conflicting advice from …
Create loop based on multiple qualifiers and panel datasetHello everyone, Although I've been trying for several hours, I'm afraid I can't solve this one by m…
Interaction term in fixed effectsHello, I would like to clarify the following uncertainty: I am analysing the impact of technology o…
Reshaping data from wide to longHello! I am working with the following data obtained from World Bank's World Development Indicators.…
Subscribe to:
Post Comments (Atom)
0 Response to How does one put formatted date labels into excel with Putexcel?*
Post a Comment