07-19-2011 11:37 AM
Trying to create dummy data points for my project. Dots of time 1, 3, 4, 5 are real datapoints, I want to create dummy datapoints for every .5 hour if there is no real datapoint existed (e.g, 0 to 5 by 0.5) .
Question: How to create dummy datapoints as showed in the following curves by using SAS?
07-19-2011 12:23 PM
This bit of code can be used to fill in the missing obs for time.
I don't understand how to derive values for H. At first I thought it was LOCF but your second graph does not seem to be simple LOCF. Perhaps the link that Art provided is the answer.
input time h @;
if 0 then set have(keep=time);
do time = 0 to 5 by .5;
proc summary data=have nway classdata=time;
output out=have idgroup(out(h)=);