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)
collapsing repeated cross section data to panel for first stage IV , then storing the result to run second stage on repeated cross sectionHere, due to nature of my data I need to collapse my repeated cross section data to panel data ( the…
mediation analysisDear experts, I want to do a mediation analysis using the type of data like below. exp is the exposu…
Collapsing observations in longitudinal dataHi all, I had a question about how to approach my data problem. I start with a file that is child-p…
Generating variables based conditionally with log of zero-value variableHi experts, Today I try to find a way to generate a variable called logTAT1. Normally, logTAT1= ln(…
Checking for global maximum in LCA (latent class analysis)Hi team, I am looking for help in assessing the usability of my LCA model, fit using gsem. I have 1…
Subscribe to:
Post Comments (Atom)
0 Response to Simple commands not working....wonder why (Stata/IC 15.1)
Post a Comment