MIMOSA2: Fit a MIMOSA model with baseline.

View source: R/MIMOSA2.R

MIMOSA2R Documentation

Fit a MIMOSA model with baseline.

Description

Fit a MIMOSA model with baseline.

Usage

MIMOSA2(Ntot,ns1,nu1,ns0,nu0,tol=1e-8,maxit=100,verbose=FALSE)

Arguments

Ntot

matrix integer vector of total trials. One row per subject. Should have four columns named "ns1" "ns0" "nu1" and "nu0"

ns1

numeric integer vector of successes in condition 1 treatment s.

nu1

numeric integer vector of successes in condition 1 treatment u.

ns0

numeric integer vector of successes in condition 0 treatment s.

nu0

numeric integer vector of successes in condition 0 treatment u.

tol

numeric tolerance for stopping criteria, change in relative log-likelihood.

maxit

numeric maximum number of iterations

verbose

logical print the absolute difference of the sum of successive estimates of parameters. Defaults to FALSE

Value

list of fitted model parameters with components z inds thetahat pi_est

See Also

ORTest ROC ROCPlot Boxplot simulate_MIMOSA2 logit invlogit

Examples

s = simulate_MIMOSA2();
R = MIMOSA2(Ntot=s$Ntot, ns1 = s$ns1, nu1 = s$nu1, nu0 = s$nu0, ns0 = s$ns0,maxit=10)

RGLab/MIMOSA2 documentation built on Oct. 10, 2022, 8:35 p.m.