Description Usage Arguments Value Examples
View source: R/CIVMR_function.R
This function find the unique CIV solution.
1 | CIV(MR.data)
|
MR.data: |
A data.frame() object containg G,X,Z,Y. |
c: solution vector to the constrained maximization problem.
max_value: the maximized correlation value.
CIV: the new instrumentable variable for MR analysis: constrained instrumental variable.
1 2 3 4 | data(simulation)
civ.fit <- CIV(simulation)
#plot the weight c
plot(civ.fit$c)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.