regression: Title

Description Usage Arguments Value

View source: R/regression.R

Description

Title

Usage

1
regression(form, type, data, C)

Arguments

form

is the list having two elements. The first is a vector representing the cofficients of interaction term between treatment and mediator. The second element is the coefficients of interaction term between mediator and mediator.

type

indicate the type of outcome

data

n by p+2 observation matrix on treatment, mediators and outcome.

C

are the causal matrix

Value

all the estimates of unknown parameters.


jiezhou-2/imediation documentation built on Dec. 21, 2021, 12:04 a.m.