randomizeR (version 1.4.2)

getExpectation: Get expectations of a randomization list

Description

Generates a matrix of the expectations of the included patients in the clinical trial.

Usage

getExpectation(randSeq, issue, endp)

# S4 method for randSeq,missing,normEndp getExpectation(randSeq, endp)

# S4 method for randSeq,power,normEndp getExpectation(randSeq, issue, endp)

# S4 method for randSeq,chronBias,normEndp getExpectation(randSeq, issue, endp)

# S4 method for randSeq,chronBias,missing getExpectation(randSeq, issue)

# S4 method for randSeq,selBias,normEndp getExpectation(randSeq, issue, endp)

# S4 method for randSeq,selBias,missing getExpectation(randSeq, issue)

# S4 method for randSeq,combinedBias,normEndp getExpectation(randSeq, issue, endp)

# S4 method for randSeq,combinedBiasStepTrend,normEndp getExpectation(randSeq, issue, endp)

Arguments

randSeq

object of the class randSeq.

issue

object of the class issue (optional).

endp

object of the class endpoint (optional).

Details

It is assumed that the expectations of the included patients in a clinical trial can be influenced in three different ways:

  • The strength of selection bias and the guessing strategy of the investigator (see selBias).

  • The strength of a linear time trend, which is described by an object of the class chronBias.

  • The expectations of the investigated treatement groups can be different (see e.g. normEndp).

Examples

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab