nofgest: Nofgest

Description Usage Arguments Examples

View source: R/g_estimation.R

Description

This function use standard IV estimator via additive marginal structural models to analyse a treatment effect

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
nofgest(
  data,
  outcome,
  exposure,
  confounder,
  id,
  method = "iterate",
  upper_bound_psi = 2,
  lower_bound_psi = -2,
  max_number_it = NULL,
  steps = 10,
  corstr = "independence",
  verbose = TRUE
)

Arguments

data

data frame

outcome

outcome variable name

exposure

exposure variable name

confounder

list of confounders

id

patient id

max_number_it

max number of iterations

steps

number of steps if iteration

corstr

a character string specifying the correlation structure. The following are permitted: '"independence"', '"exchangeable"', '"ar1"', '"unstructured"' and '"userdefined"'

verbose

Boolean, if prelimnary results should be printed

Examples

1
2

thogaertner/cinof1 documentation built on Jan. 8, 2022, 10:37 a.m.