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)
Principle Component Analysis: using weights and comparison of PCA between countriesHello Statalist Forum Users, We wish to summarize several dichotomous variables of individual level…
Instrumental variables for multilevel data.Good morning, I am writing to ask you a question about the use of instrumental variables if my data…
If statement within foreachHey! So I would like to run a regression if income is within the range of (0-10727.88). Code: l…
Panel data formatHi I would like to transform my panel data so that the years are grouped from 1989 to 2016, consecut…
Generating variable that contains (partly) the value of another variableHi everyone, I am currently working with M&A-data and I came across a challenge. I have construc…
Subscribe to:
Post Comments (Atom)
0 Response to Descriptive statistics if command error r(198)
Post a Comment