R/get.weights.R

Defines functions get.weights

Documented in get.weights

get.weights <- function(ps1, stop.method = "wcor", withSampW = TRUE)
{
    w <- with(ps1, ps.num/ps.den)
    if(withSampW) w <- w * ps1$sampw
    return(w)

  if(!(class(ps1) %in% c('ps.cont'))) stop("The object 'ps1' must be of class 'ps.cont'.")
}

Try the twangContinuous package in your browser

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

twangContinuous documentation built on Feb. 26, 2021, 5:09 p.m.