Good evening!
I am editing some code from a previous analysis and came across the following code: preserve
table vaccine vx_covcat [pweight=vx_wgt], replace
SaveTable
drop stat
for X in var table0 table1 table2 table3 table10 table11 table12 \ Y in any "NoVax" "MotherReport" "Unknown" "NotYetDue" "EarlyTimely" "Late" "Indeterminable": ren X Y
outsheet using Table1_VaxSummmary.out, replace
restore
When I run the code, the following error occurs: variable table* not found
(error in option exclude())
However, earlier in the do-file those code (SaveMat results Table1_Freqs) ran with no errors. I have never seen this code used before and couldn't find any literature on it so just wanted to ask if anyone else was familiar with it and would know what I could do to solve the error?
I am editing some code from a previous analysis and came across the following code: preserve
table vaccine vx_covcat [pweight=vx_wgt], replace
SaveTable
drop stat
for X in var table0 table1 table2 table3 table10 table11 table12 \ Y in any "NoVax" "MotherReport" "Unknown" "NotYetDue" "EarlyTimely" "Late" "Indeterminable": ren X Y
outsheet using Table1_VaxSummmary.out, replace
restore
When I run the code, the following error occurs: variable table* not found
(error in option exclude())
However, earlier in the do-file those code (SaveMat results Table1_Freqs) ran with no errors. I have never seen this code used before and couldn't find any literature on it so just wanted to ask if anyone else was familiar with it and would know what I could do to solve the error?
Comment