Hello,
I have a dataset which is organised by id and quarter. I want to create a variable, based on a variable of the dataset, and it should look something like this:
egen var1=count(var) if var==1 & var==2, by(id quarter)
This type of code has worked for me previously, but now it is generating missing values.
Does anyone know what could be the problem?
Thank you
Related Posts with egen var1= count(var), by(id quarter) - generating missing values
New package -rori- on the SSCThanks to Kit Baum, there is a new package -rori- on the SSC. rori -- Immediate command for estimat…
True Random Effect GreeneDear sir, Recently i've been trying using SFA to determine the efficiency of Gov't Spending. Im usi…
Using CRSP to calculate the Cumulative Abnormal ReturnHello everyone, This is a very noob question, I am trying to get the quarterly CAR. However, my sch…
45-Degree Line with MarginsplotDear all, I am trying to add a diagonal/45-degree line to my marginsplot, but (function y=x, ...) do…
Drop observations if not meeting frequency criteriumMy dataset consists of time-series observation of US firms with identifiers like gvkey, cusip and a …
Subscribe to:
Post Comments (Atom)
0 Response to egen var1= count(var), by(id quarter) - generating missing values
Post a Comment