This function finds the best psi value brute forced
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"
)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.