R/weightit2null.R

Defines functions weightitMSM2null weightit2null

weightit2null <- function(covs, treat, s.weights, subset, ...) {
  list(w = rep.int(1, length(treat[subset])))
}

weightit2null.multi <- weightit2null

weightit2null.cont <- weightit2null

weightitMSM2null <- function(covs.list, treat.list, s.weights, subset, ...) {
  list(w = rep.int(1, length(treat.list[[1]][subset])))
}

Try the WeightIt package in your browser

Any scripts or data that you put into this service are public.

WeightIt documentation built on Oct. 4, 2024, 9:07 a.m.