GetNewRandomizationProbabilities: GetNewRandomizationProbabilities

Description Usage Arguments Value

Description

Function for calculating best treatment probabilitites based on sampling from estimated treatments effect with SEs. Can also calculate best treatment based on random_sampling (randsam) variable with dim of NumTreatments x iNumPosteriorSamples.

Usage

1
2
GetNewRandomizationProbabilities(trtcoeff, trtse, iNumPosteriorSamples,
  randsam = NULL)

Arguments

trtcoeff

Treatment coefficients

trtse

Standard errors of the treatment coefficients

iNumPosteriorSamples

Number of samples to use for computing the posterior probability

randsam

An object

Value

A vector of the same length as the trtcoeff with the updated posterior probabilities for each treatment to be the best treatment.


eniclas/FAIRsimulator documentation built on May 16, 2019, 5:12 a.m.