Hello All,
I am currently working with a panel data-set where I have missing observations for every column excluding Year and GeoName. I have attached a screenshot for reference.
My objective is to replace my missing observations with the weighted sum of other observations. For example, I would like to replace the missing values in Ethanol_cap21 with .118 * the value given for the District of Columbia + .129 * the value given for Nevada + etc.
I apologize if my question is a little vague. I can happily provide extra information if needed.
Thanks,
Mitchell
Related Posts with How to replace missing observations with the weighted sum of other observations
Can PPML coefficients be analyzed as elasticities? Gravitational ModelDear, I am using PPML to analyze the impact of institutions on exports. My question is, can coeffi…
create dummy variable based on condition of other variablesDear Statalist, I am struggling with this problem which is very difficult to explain. I am trying m…
Define a binary variable using and / orDear all, I have a panel data set. Each observation is organized by firmId and year. Some other vari…
Rename many variablesDear all, I have 53 variables, with name like: zmale, zschool, zincome,......zhospitalratio. How ca…
Plotting a likelihood surfaceDear all Let's say I have a linear model with two predictors: Code: program linear ar…
Subscribe to:
Post Comments (Atom)
0 Response to How to replace missing observations with the weighted sum of other observations
Post a Comment