R/applyWeightingModel.R

"applyWeightingModel" <- 
function (model) 
{
  if (length(model@weightpar) > 0 || length(model@weightList) > 0) {
    w <- weightPsi(model)
    model@weight <- TRUE
    model@psi.weight <- w$psi.weight
    model@weightM <- w$weight
  }
  else model@psi.weight <- model@psi.df
  
  model
}

Try the TIMP package in your browser

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

TIMP documentation built on May 2, 2019, 5:55 p.m.