Displaying 1 result from an estimated 1 matches for "hrv1".
Did you mean:
hr1
2008 Mar 20
1
Use of Factors
...)
# 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 each visit.
interp_out[1:9,4]=hrv1;interp_out[10:18,4]=hrv2;
# hrv1 & hrv2 come from the following function, the "lm" parameter is
output from the standard lm() function:
interpolateToXL = function(lm,maxxl){
int_values=matrix(nrow=9,ncol=1)
int_values[1,]=coef(lm)[1];
if (maxxl>25)
int_values[2,]=coef(lm)[1]+coe...