Hi all,

I have a data set with missing value. I would like to estimate those
missing value by using normal ratio method.
Below is part of my data:

      AS   BL Serdang  Jhr   Phg  Target station
       0    0.0    12.8      0.0  23.7  0.0
       6    0.0    81.7      0.2  0.0   NA
       0    1.5    60.9      0.0  0.0   15.5
       1   13.0    56.8     17.5 32.8  6.4
       4     3.0    66.4      2.0  0.3   NA

Now I want to replace those NA's,  with the estimation values by using this
formula:
weight$v6
<-(weight1*AS)+(weight2*BL)+(weight3*Serdang)+(weight4*Jhr)+(weight5*Phg);
Targetstation

but I still could not replace the NA's. My problem is, how do I replace
those NA's with another value?

Thank you so much for your help and attention.

Regards,
Dila

	[[alternative HTML version deleted]]

