View source: R/mvregmed.dat.check.R
mvregmed.dat.check | R Documentation |
Assure that x, y, mediator are matrices, check column names and fill in if NULL, and reduce x, y, mediator so no missing values among all three matrices.
mvregmed.dat.check(x, y, mediator, max.cor=0.99)
x |
matrix with columns representing "exposure" variable (sometimes called instrumental variable) |
y |
matrix with columns representing outcome variables |
mediator |
matrix with columns representing mediator variables |
max.cor |
maximum correlation within y, x, or mediators, so fitting is more robust |
list with updated x, y, mediator
Daniel Schaid and Jason Sinnwell
mvregmed.fit
mvregmed.grid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.