For example, I have a data set:
data a;
input n x;
cards;
1 10
2 11.5
4 12
5 10.6
7 9.8
;
run;
As there is no data for n=3,6, then I want to create the value n=3 and n=6 with coressponding x=(11.5+12)/2 and x=(10.6+9.8)/2. How can I do so?
The final data set should look like this:
n x
1 10
2 11.5
3 11.75
4 12
5 10.6
6 10.2
7 9.8



雷达卡





京公网安备 11010802022788号







