Get expectations of a randomization list
Generates a matrix of the expectations of the included patients in the clinical trial.
getExpectation(randSeq, issue, endp) ## S4 method for signature 'randSeq,missing,survEndp' getExpectation(randSeq, endp) ## S4 method for signature 'randSeq,missing,expEndp' getExpectation(randSeq, endp) ## S4 method for signature 'randSeq,missing,normEndp' getExpectation(randSeq, endp) ## S4 method for signature 'randSeq,power,normEndp' getExpectation(randSeq, issue, endp) ## S4 method for signature 'randSeq,chronBias,normEndp' getExpectation(randSeq, issue, endp) ## S4 method for signature 'randSeq,chronBias,expEndp' getExpectation(randSeq, issue, endp) ## S4 method for signature 'randSeq,chronBias,survEndp' getExpectation(randSeq, issue, endp) ## S4 method for signature 'randSeq,chronBias,missing' getExpectation(randSeq, issue) ## S4 method for signature 'randSeq,selBias,normEndp' getExpectation(randSeq, issue, endp) ## S4 method for signature 'randSeq,selBias,expEndp' getExpectation(randSeq, issue, endp) ## S4 method for signature 'randSeq,selBias,survEndp' getExpectation(randSeq, issue, endp) ## S4 method for signature 'randSeq,selBias,missing' getExpectation(randSeq, issue) ## S4 method for signature 'randSeq,combinedBias,normEndp' getExpectation(randSeq, issue, endp) ## S4 method for signature 'randSeq,combinedBias,expEndp' getExpectation(randSeq, issue, endp) ## S4 method for signature 'randSeq,combinedBias,survEndp' getExpectation(randSeq, issue, endp) ## S4 method for signature 'randSeq,combinedBiasStepTrend,normEndp' getExpectation(randSeq, issue, endp) ## S4 method for signature 'randSeq,combinedBiasStepTrend,expEndp' getExpectation(randSeq, issue, endp) ## S4 method for signature 'randSeq,combinedBiasStepTrend,survEndp' getExpectation(randSeq, issue, endp)
randSeq
: object of the class randSeq.issue
: object of the class issue (optional).endp
: object of the class endpoint (optional).A matrix of the expectations of the included patients in the clinical trial.
It is assumed that the expectations of the included patients in a clinical trial can be influenced in three different ways:
selBias
).chronBias
.normEndp
).# get Expectation for a normal endpoint myPar <- bsdPar(10, 2) M <- genSeq(myPar, 2) cs <- selBias("CS", 2, "sim") endp <- normEndp(mu = c(2, 2), sigma = c(1, 1)) getExpectation(M, cs, endp) # get Expectation for an exponential endpoint cs <- selBias("CS", 0.1 , "sim") endp <- expEndp(lambda = c(0.5, 1), cenTime = 10, cenRate = 0.01) getExpectation(M, cs, endp)
Useful links