I am using BWGHT.DTA with a macro created as:
local bwghtvars bwght cigs faminc fatheduc motheduc parity male white
I thought I could use tabstat as follows:
tabstat `bwghtvars`
Unfortunately, it throws an error:
. tabstat `bwghtvars'
varlist required
r(100);
Isn't the macro a variable list?
Related Posts with Using tabstat with macro?
Dealing with Missing ValuesGreetings Everyone! Hopefully, you will be doing well. I have a problem with missing values. I have…
How to delete the spaces in the string? Code: * Example generated by -dataex-. For more info, type help dataex clear input str7 code " …
xtreg fixed effect and estimate using wlsDear Statalist, Following is the code for firm and year fixed effect using xtreg [CODE] xtset comp…
Identifying how many times Distinct Observations occur within another variable.Hi, I am using panel data from 2008-2019 and I am trying to identify the number of participants who…
Difference-in-differences without baseline (only midline and endline)Dear all, good morning, I am currently dealing with some data issue for an impact evaluation I have …
Subscribe to:
Post Comments (Atom)
0 Response to Using tabstat with macro?
Post a Comment