Learn R Programming

randomizeR (version 3.0.2)

getProbabilities: Theoretical probability for randomization sequences

Description

Calculate theoretical probability for observed randomization sequences

Usage

getProb(obj)

# S4 method for rarSeq getProb(obj)

# S4 method for abcdSeq getProb(obj)

# S4 method for bbcdSeq getProb(obj)

# S4 method for bsdSeq getProb(obj)

# S4 method for chenSeq getProb(obj)

# S4 method for crSeq getProb(obj)

# S4 method for ebcSeq getProb(obj)

# S4 method for gbcdSeq getProb(obj)

# S4 method for hadaSeq getProb(obj)

# S4 method for mpSeq getProb(obj)

# S4 method for pbrSeq getProb(obj)

# S4 method for tbdSeq getProb(obj)

# S4 method for udSeq getProb(obj)

Value

a matrix with theoretical probabilities for observed randomization sequences

Arguments

obj

object of a class inheriting from randSeq. Formal representation of a randomization sequences together with the parameters that belong to the procedure that generated the sequences.

Examples

Run this code
myPar <- bsdPar(10, 2)
M <- genSeq(myPar, 2)
getProb(M)

# all Sequences
par <- pbrPar(bc=c(2,2))
refSet <- getAllSeq(myPar)
probs <- getProb(refSet)

# sequences with probabilities
cbind(probs, refSet$M)

Run the code above in your browser using DataLab