Description Usage Arguments Value Examples
View source: R/parameter_handlers.R
Function for deriving maximum likelihood solution given values for scale-free confounding coefficients.
1 | get_ML_solution(SS, skappa_X, skappa_Y, sigma_G)
|
SS |
Numeric matrix containing first- and second-order statistics. |
skappa_X |
Numeric scale-free confounding coefficient on exposure. |
skappa_Y |
Numeric scale-free confounding coefficient on outcome. |
sigma_G |
Numeric vector of instrument standard deviations. |
List of parameters on the ML manifold with the same values for the scaled confounding coefficients (skappa_X, skappa_Y).
1 2 3 | J <- 5 # number of instruments
par <- random_Gaussian_parameters(J)
generate_data_MASSIVE_model(N = 1000, n = 2, p = rep(0.3, J), par)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.