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)
Anyway to conduct dynamic model on panel data by using xtabond command in stata?Dear all: I found a challenge when I run a dynamic model on long panel data. I am hopeful that you …
Power calculations in stataI would like to use the stata power command, to estimate the smallest effect size I would be able to…
'xtoverid' after multiple imputation in panel data?Hello there, I am a first time Stata user and am having a few problems. I already searched in this f…
How to generate a new binary variable based on individuals having 2 or more of other risk factorsI would like to create a variable based on individuals being classified as "high risk" or "low risk"…
ANOVA error r(422); "could not determine between-subject basic unit; use bseunit() option" Using bseunit() option, but get this error anywayHello, I'm new to using the ANOVA command (it is not common in my field). A reviewer for a journal …
Subscribe to:
Post Comments (Atom)
0 Response to Descriptive statistics if command error r(198)
Post a Comment