powered by
A function that is defined to be used in the formula argument, and identified as specials in the terms() object
rand(arm, rx)
matrix with two columns named arm and rx. These can be used in the formula argument to rpsftm()
the randomised treatment arm. a factor with 2 levels, or numeric variable with values 0/1.
the proportion of time on active treatment (arm=1 or the non-reference level of the factor)
Simon Bond
print.rand, rpsftm
print.rand
rpsftm
x <- with(immdef, rand(imm , 1 - xoyrs / progyrs ) ) x class(x) y <- as.data.frame(x) head(y)
Run the code above in your browser using DataLab