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
Dealing with zerosI have lots of zeros in both my dependent and independent variables. One way that I was dealing wit…
How to export list/table to excel with blank row as group separatorHello, Hoping someone has a hack to insert a blank row as a group separator when I export a list to …
Create laggingsHello, I have a dataset of 1,791 firm-year observations. Now, I would like - for each firm-year obs…
reshaping to long with a string IDI want to reshape my data from wide to long. I implement: Code: reshape long MortgageloansthUSD2010…
Appropriate regression modelMy dataset consists of an amount of lubricant added to a process at various times. The lubricant is …
Subscribe to:
Post Comments (Atom)
0 Response to repeating a smoothing function in a time series
Post a Comment