Hello
I have a series of mortality data for 100 countries.
I have (clumsily) coded the following for the first country:
tssmooth ma Albania_5yrmortality_mean =yearly_mort_Albania, window(0 1 4)
gen ismiss = missing(yearly_mort_Albania)
replace Albania_5yrmean = . if ismiss > (4/5)
drop ismiss
is there a way to repeat this for all countries?
many thanks
Catherine
Related Posts with repeating a smoothing function in a time series
Perform weak instrument test for two endogenous regressorsHi all, From my understanding weakivtest only works when we have one endogenous variable. Is there a…
metaprop excluding studiesHello all, I ran Code: metaprop OutcomeAa, TotalAa, random by(Study) in Stata 17. It is showing th…
Is this data analysis sound? - Help a self-taught beginnerI am a young and new Stata user trying to learn how to draw conclusions from datasets. I have a smal…
Cramer V, more than 2 variables, tableWe can calculate the Cramer's for each single variable combination by "tabulate v1 v2, V". But is it…
log of negative valueHello, I am looking at the impact of deficit on an outcome variable (Spending). All variables are p…
Subscribe to:
Post Comments (Atom)
0 Response to repeating a smoothing function in a time series
Post a Comment