find_optimum_rec: Find Optimum Recursively

Description Usage Arguments

View source: R/g_estimation.R

Description

This function finds the best psi value recursively

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
find_optimum_rec(
  data,
  outcome,
  exposure,
  confounder,
  id,
  upper_bound_psi,
  upper_bound_beta,
  upper_se = 0,
  lower_bound_psi,
  lower_bound_beta,
  lower_se = 0,
  number_it,
  max_number_it,
  epsilon,
  method,
  corstr = "\"independence\"",
  verbose = TRUE
)

Arguments

data

data frame with patients

outcome

outcome string

exposure

exposure string

confounder

list of confounders

id

id variable

upper_bound_psi

double, upper bound psi

lower_bound_psi

double, lower bound psi

number_it

number of iteration (current)

max_number_it

number max iterations

epsilon

target epsilon

corstr

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

verbose

boolean for printing


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