getProbabilities {randomizeR} | R Documentation |
Theoretical probability for randomization sequences
Description
Calculate theoretical probability for observed randomization sequences
Usage
getProb(obj)
## S4 method for signature 'rarSeq'
getProb(obj)
## S4 method for signature 'abcdSeq'
getProb(obj)
## S4 method for signature 'bbcdSeq'
getProb(obj)
## S4 method for signature 'bsdSeq'
getProb(obj)
## S4 method for signature 'chenSeq'
getProb(obj)
## S4 method for signature 'crSeq'
getProb(obj)
## S4 method for signature 'ebcSeq'
getProb(obj)
## S4 method for signature 'gbcdSeq'
getProb(obj)
## S4 method for signature 'hadaSeq'
getProb(obj)
## S4 method for signature 'mpSeq'
getProb(obj)
## S4 method for signature 'pbrSeq'
getProb(obj)
## S4 method for signature 'tbdSeq'
getProb(obj)
## S4 method for signature '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. |
Value
a matrix with theoretical probabilities for observed randomization sequences
Examples
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)
[Package randomizeR version 3.0.2 Index]