Hi,
This might be a one-liner for one of you, but I'd appreciate the help.
My ado file (currently tested on Stata 12.1 for Mac, but starting with
"version 10.1") includes the lines:
syntax varlist [if/] [, Weight(varname) nbins(integer 20)
controls(varlist) absorb(varname) x_q(varname) connect NOAddmean
reportreg create_xq saving(string) *]
marksample touse
Now all works fine until I try to specify a weight. Because having a
", weight(w)" option (variable w exists) gives me a syntax error — but
not for the syntax command, but for marksample.
Trace:
- syntax varlist [if/] [, Weight(varname) nbins(integer 20)
controls(varlist) absorb(varname) x_q(varname) connect NOAddmean
reportreg create_x
> q saving(string) *]
- marksample touse
invalid syntax
What is this about?
Thanks in advance,
Laszlo
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/