I want to save a table frequency of operations and length of stay (=vtid) over a number of hospitals(=sjhstrkod) to an xlsx-file. Hospitals is a string variable. vtid is continuous number of days.
"table sjhstrkod ar5kat if opnummer==1&ar5kat>1975, cont(freq mean vtid)" works OK, but
"xtable sjhstrkod ar5kat if opnummer==1&ar5kat>1975, cont(freq mean vtid) filename("vtid5arsjh.xlsx") sheet("Blad1", replace) replace" gives an error code "invalid syntax"
Changing "Blad1" to sheet1 or Blad1 does not help
What is wrong?
I try noput but is gives same error
"table sjhstrkod ar5kat if opnummer==1&ar5kat>1975, cont(freq mean vtid)" works OK, but
"xtable sjhstrkod ar5kat if opnummer==1&ar5kat>1975, cont(freq mean vtid) filename("vtid5arsjh.xlsx") sheet("Blad1", replace) replace" gives an error code "invalid syntax"
Changing "Blad1" to sheet1 or Blad1 does not help
What is wrong?
I try noput but is gives same error
Comment