Learn R Programming

randomizeR (version 3.0.2)

getDistributionPars: Get distribution parameters of a randomization list

Description

Generates a matrix of the distribution parameters of the included patients in the clinical trial.

Usage

getDistributionPars(randSeq, issue, endp)

# S4 method for randSeq,missing,survEndp getDistributionPars(randSeq, endp)

# S4 method for randSeq,chronBias,survEndp getDistributionPars(randSeq, issue, endp)

# S4 method for randSeq,selBias,survEndp getDistributionPars(randSeq, issue, endp)

# S4 method for randSeq,combinedBias,survEndp getDistributionPars(randSeq, issue, endp)

# S4 method for randSeq,combinedBiasStepTrend,survEndp getDistributionPars(randSeq, issue, endp)

Value

a matrix of the distribution parameters of the included patients in the clinical trial.

Arguments

randSeq

object of the class randSeq.

issue

object of the class issue (optional).

endp

object of the class endpoint.

Examples

Run this code
# return the shape and scale parameters of a Weibull distribution
endp <- survEndp(shape = c(1,1), scale = c(0.5,1), cenTime = 10, cenRate = 0.01)
biasSB <- selBias("CS", log(2), "exact")
randSeq <- genSeq(rpbrPar(rb = 2, N = 12))
getDistributionPars(randSeq,biasSB,endp)

Run the code above in your browser using DataLab