mle_norm_uneq_inc: MLE of NNT in unequal sd Normal distribution

View source: R/mle_norm_uneq.R

mle_norm_uneq_incR Documentation

MLE of NNT in unequal sd Normal distribution

Description

Internal function. Not for users. Takes two numeric vectors of control and treatment results and returns the MLE of the Laupacis' type NNT for Normal distribution with unequal sd.

Usage

mle_norm_uneq_inc(
  treat,
  control,
  tau,
  yt_bar,
  yc_bar,
  s_t,
  s_c,
  p_t.boot,
  p_c.boot,
  s_t.bs,
  s_c.bs,
  n_c,
  n_t
)

Arguments

treat

a numeric vector of the treatment arm results

control

a numeric vector of the control arm results

tau

a scalar that indicates the MCID

yt_bar

mean value of the treatment arm vector

yc_bar

mean value of the control arm vector

s_t

sd of the variance MLE in the treatment arm vector

s_c

sd of the variance MLE in the control arm vector

p_t.boot

BS estimator of the sample proportion of success in the treatment arm

p_c.boot

BS estimator of the sample proportion of success in the control arm

s_t.bs

BS estimator of the sd of the variance MLE in the treatment arm vector

s_c.bs

BS estimator of the sd of the variance MLE in the control arm vector

n_c

number of observations in the control arm

n_t

number of observations in the treatment arm

p_c

sample proportion of success in the control arm

p_t

sample proportion of success in the treatment arm

Value

MLE of the Laupacis' type NNT for Normal distribution with unequal sd


vancak/NNTcalculator documentation built on April 7, 2022, 3:48 a.m.