find_optimum_iterate: Find Optimum Brute Force

Description Usage Arguments

View source: R/g_estimation.R

Description

This function finds the best psi value brute forced

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
find_optimum_iterate(
  data,
  outcome,
  exposure,
  confounder,
  id,
  upper_bound_psi,
  lower_bound_psi,
  steps,
  corstr = "independence"
)

Arguments

data

data frame with patient data

outcome

outcome string

exposure

exposure string

confounder

list of confounders

id

id variable

upper_bound_psi

upper psi

lower_bound_psi

lower psi

steps

steps between lower and upper psi

corstr

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

number_it

current iteration


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