Search found 3 matches

by kaywu814
Tue Nov 13, 2012 3:00 pm
Forum: Data Manipulation
Topic: Replacing values in a series with a mean
Replies: 3
Views: 3219

Re: Replacing values in a series with a mean

Thanks Gareth, this is great. We have another issue. Our code is currently: smpl 2027 2069 series r_0 = @mean(r_0) However, we want this to be the value for everything up to 2087. The code as it is right now only fills in the values up to 2069. Note that we want all values from 2027 to 2087 to be th...
by kaywu814
Tue Nov 13, 2012 9:42 am
Forum: Data Manipulation
Topic: Replacing NAs in multiple series
Replies: 1
Views: 2036

Replacing NAs in multiple series

Hi, I am cleaning a dataset and am having an issue where I would like to replace NAs in multiple series with 0's instead. Is there a quick and easy way to do this (perhaps with a loop) instead of using @recode for each individual variable? For example, instead of using X=@recode(X=na,0,X) we would l...

Go to advanced search