omegaz.closure: Compute the Omega(Z) matrix based on the given covariate...

View source: R/utils-car.R

omegaz.closureR Documentation

Compute the Omega(Z) matrix based on the given covariate adaptive randomization scheme.

Description

This function returns a function to obtain the correct matrix for a specified vector of randomization probabilities pi_t.

Usage

omegaz.closure(car_scheme)

Examples

omegaz.func <- omegaz.closure(car_scheme="biased-coin")
omegaz <- omegaz.func(pi_t=c(0.2, 0.4, 0.4))

mbannick/RoboCar documentation built on June 16, 2022, 6:56 p.m.