randomizeR (version 1.4.2)

getProbabilities: Theoretical probability for randomization sequences

Description

Calculate theoretical probability for observed randomization sequences

Usage

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 rarSeq getProb(obj)

# S4 method for tbdSeq getProb(obj)

# S4 method for udSeq getProb(obj)

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
# NOT RUN {
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