dot-compute_weights: (For maintainer) Compute weights

.compute_weights.medR Documentation

(For maintainer) Compute weights

Description

Internal functions that compute weights using cleaned inputs.

Usage

.compute_weights.med(data, cross.world, a.c.form, a.cm.form, max.stabilized.wt)

.compute_weights.ipw(data, a.form, max.stabilized.wt)

.compute_weights.odds(data, cross.world, a.form, max.stabilized.wt)

.compute_weights.psYpred(data, cross.world, a.c.form, max.stabilized.wt)

Arguments

data

Prepared internal dataset (e.g., result of .pred_data()).

cross.world

Cleaned cross.world (e.g., from .clean_cross.world()).

a.c.form, a.cm.form

Cleaned formulas (e.g., from .clean_a.forms()).

max.stabilized.wt

A scalar.

Value

A data frame for the pseudo samples with estimated weights, in stacked format.


trangnguyen74/tnMediation documentation built on May 3, 2023, 6:58 a.m.