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)
Edit graph with codeI've got 20 .gph files and I need to change the titles on all of them. Can I do that with Stata comm…
Using matrix as lookup tableHello, I have two datasets. I am trying to get a new variable in the second dataset, which looks up…
Generate sequencial dicotomic variableHi all, I am trying to alternate position label (pos=6 and pos=12) in a scatter graph, for this pur…
Weights calculation with metapropHello, I am conducting a meta-analysis of prevalence proportions using a random effects model with …
GLLAMM error not convergeHi all, I have date of 100 employees per company, for several companies. I would like to perform a …
Subscribe to:
Post Comments (Atom)
0 Response to Descriptive statistics if command error r(198)
Post a Comment