calc_beta: Calc beta

Description Usage Arguments

View source: R/g_estimation.R

Description

This function fits a geeglm to the data for a given psi. it returns a list of values

Usage

1
2
3
4
5
6
7
8
9
calc_beta(
  data,
  psi,
  outcome,
  exposure,
  confounder,
  id,
  corstr = "independence"
)

Arguments

data

data frame with values

psi

number, given psi

outcome

string, defines the outcome variable

exposure

string, defines the exposure variable

confounder

string vector, defines the confounder variables

id

string, identify the unique identifier

corstr

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


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