Hi everyone,
I am trying to create a descriptive statistics table of my data but only for the cases in which all the variables are observed in order to have the same number of observations for all my variables.
When I run the following command:
[sum country1 cid year fdiunctad1 fdiwdi1 wgi1 icrg csp acled ucdpdeaths ucdpconflicts edb91 edb51 gdpgrowth1 gdppercapita1 trade1 inflation1 exchangerate1 telephone1 cellphone1 education1 if country1!=. & cid!=. & year!=. fdiunctad1!=. & fdiwdi1!=. & wgi1!=. icrg!=. & csp!=. & acled!=. ucdpdeaths!=. & ucdpconflicts!=. & edb91!=. edb51!=. & gdpgrowth1!=. & gdppercapita1!=. trade1!=. & inflation1!=. & exchangerate1!=. telephone1!=. & cellphone1!=. & education1!=.]
Stata tells me that whichever variable after year is invalid and it gives me the error r(198).
Can you see any mistake in the formula or would you know what is the reason of it?
Thank you very much in advance.
Regards,
Siham
Related Posts with Descriptive statistics if command error r(198)
Difference-in-difference testHi, I have a hand-collected dataset regarding a specific negotiation event (data listed below). Thi…
Residual Variance Estimators: Calculating HC0 & HC1Hi everyone, This may seem like a very simple question but could someone please share the command f…
Variable Level?Hi all, I am new to Stata and very confused by one of my assignments. We are asked to give the leve…
test serial correlation for panel data for large T and small NHi I am using xtpcse for estimating my unbalanced panel (T=800 and N=9). What tests are available t…
Average within a group for each unique combinationI would like to take a simple average within each group but only over each unique iso and urb_cl com…
Subscribe to:
Post Comments (Atom)
0 Response to Descriptive statistics if command error r(198)
Post a Comment