Description Usage Arguments Value Examples
View source: R/CIVMR_function.R
This function implement ordinary two stage least square regression and provide variance estimation (if requested).
1 |
MR.data: |
data frame containing G,X,Z,Y. |
Fstats: |
return F-statistics or not. If multiple phenotypes (X) are used, Pillai statistics will be used instead. |
var_cal: |
return variance estimation or not. |
coef: the causal effect estimation β.
var: the variance estimation of β. if var_cal=TRUE.
stats: F-statistics (or Pillai statistics). if Fstats=TRUE.
pvalue: the pvalue of F-statistics. if Fstats=TRUE.
1 2 | data(simulation)
TSLS_IV(simulation,Fstats=TRUE,var_cal=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.