Hi,
I wanted to run a simple command for moving one of my variables called "comment" to the end of my dataset. I picked this command verbatim from the Stata User Manual. When I tried, this is what I get:
. order comment [,last] (**without space)
weights not allowed
r(101);
. order comment [, last] (**with space between comma and last)
weights not allowed
For both variants of the "order" command, I get an error saying weights not allowed. I get the same error when I use this command with multiple variables:
. order gvkey cusip coname ticker execid co_per_rol exec_fullname nameprefix exec_fname exec_mname exec_lname gender pag
> e age joined_co PrevExp title year titleann ceoann execrank execrankann salary bonus becameceo pceo PositionTenure le
> ftofc leftco reason rejoin releft [,first]
weights not allowed
What may be going wrong?
Regards,
Tushar
Related Posts with Simple commands not working....wonder why (Stata/IC 15.1)
Propensity Score Matching for Survival AnalysesDear StataList I'm looking for advice re. creating "matched" treatment vs control cohorts for a KM …
Question about the command --localp-- @Nick CoxNick Cox Dear Nick, I have a question about your command --localp--.I want to plot two graphs in one…
Proper treatment of the variables that have unit root when System GMM is usedDear everyone, I have a doubt with respect to the need of first differencing the variables cointain…
Stacking diff-in-diff estimates by time periodDear Statalist members, I have a question regarding stacking diff-in-diff estimates by time period.…
Calculate the median and store it as an scalar.Good morning, I would like to calculate the median of a variable, let's call X and after store that…
Subscribe to:
Post Comments (Atom)
0 Response to Simple commands not working....wonder why (Stata/IC 15.1)
Post a Comment