getProbabilities function

Theoretical probability for randomization sequences

Theoretical probability for randomization sequences

Calculate theoretical probability for observed randomization sequences

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.

Returns

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)
  • Maintainer: Ralf-Dieter Hilgers
  • License: GPL (>= 3)
  • Last published: 2023-09-18

Useful links