Hello everyone, I am having a similar issue with my Stata 17 and the collapse function. I have the 15 Feb 2022 update installed. Any advice or guidance would be most welcome.
A little on the kind of data I am using here.
Code:
collapse (mean) GDP_PC_annualgrowth (mean) GDP_PC_PPP (mean) pop_total (mean) pop_growth (mean) total_laborforce (mean) unemp_nationalest(mean) controlcorruption (mean) ruleoflaw (mean) regulatoryquality (mean) goveffectiveness (mean) politicalstability (mean)voiceaccountability (mean) instquality (mean) SocialInnovationRate, by(country yrsurv)
Code:
variable mean not found r(111); end of do-file r(111);
Code:
Variable Storage Display Value
name type format label Variable label
--------------------------------------------------------------------------------------------------------------------
GDP_PC_annual~h double %12.0g
GDP per capita growth (annual %)
GDP_PC_PPP double %12.0g
GDP per capita, PPP (current international $)
pop_total long %12.0g
Population, total
pop_growth double %12.0g
Population growth (annual %)
total_laborfo~e double %12.0g *
Labor force participation rate, total (% of total population ages
15+) (modeled
unemp_nationa~t double %12.0g
Unemployment, total (% of total labor force) (national estimate)
controlcorrup~n double %12.0g Control of Corruption: Estimate
ruleoflaw double %12.0g
Rule of Law: Estimate
regulatoryqua~y double %12.0g
Regulatory Quality: Estimate
goveffectiven~s double %12.0g
Government Effectiveness: Estimate
politicalstab~y double %12.0g
Political Stability and Absence of Violence/Terrorism: Estimate
voiceaccounta~y double %12.0g
Voice and Accountability: Estimate
instquality float %9.0g
SocialInnovat~e float %9.0g
country int %22.0g COUNTRY country
yrsurv int %8.0g Year survey was administered

Comment