Displaying 1 result from an estimated 1 matches for "interp_out".
2008 Mar 20
1
Use of Factors
...ADENPV07 ADENPVJN ADENPV0Z ADENPVM9 ADENPVMB
Levels: ADENPV07 ADENPVJN ADENPV0Z ADENPVM9 ADENPVMB
Why is the $HR variable listed as "90 levels" as if it is a factor? Why
is it not treated as floating point to get simple mean?
Here is how the HR values are generated:
# create the array
interp_out=array(,c(18,length(cols2)))
# create the values to interpolate to
interp_out[,3]=c(0,25,50,75,100,125,150,175,200,0,25,50,75,100,125,150,1
75,200);
# fill the visits
interp_out[,2]=c(1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2)
# fill the SubjID
interp_out[,1]=SubjID;
Now fill in interplated values for eac...