Description Usage Arguments Details Value Author(s) See Also Examples
Produces a summary of the sisVIVE object, including the estimates of the causal effect of exposure on outcome and the estimated set of invalid instruments for sequence of lambdas
1 2 |
object |
a sisVIVE object |
... |
additional arguments for summary generic |
Each row summarizes an estimated causal effect of exposure on outcome and the estimated set of invalid instruments for one lambda
Each row summarizes an estimated causal effect of exposure on outcome and the estimated set of invalid instruments for one lambda. For the estimated set of invalid instruments, each number is a column index number for Z that is estimated to be invalid.
Hyunseung Kang
predict and cv.sisVIVE
1 2 3 4 5 6 7 8 9 10 11 12 | library(MASS)
library(lars)
n = 1000; L = 10; s= 3;
Z <- matrix(rnorm(n*L),n,L)
error <- mvrnorm(n,rep(0,2),matrix(c(1,0.8,0.8,1),2,2))
intD = rnorm(1); ZtoD = rnorm(L,0,1); ZtoY = c(rnorm(s),rep(0,L-s)); DtoY = 1; intY = rnorm(1)
D = intD + Z %*% ZtoD + error[,1]
Y = intY + Z %*% ZtoY + D * DtoY + error[,2]
result = sisVIVE(Y,D,Z)
summary(result)
|
Loading required package: lars
Loaded lars 1.2
Call:
sisVIVE(Y = Y, D = D, Z = Z)
Estimates of Beta Number of Invalid IVs Invalid IVs
0.9554367 0
0.9990268 1 2
1.0344044 2 2,3
1.0086483 3 1,2,3
1.0085856 4 1,2,3,5
1.0081106 5 1,2,3,4,5
1.0083853 6 1,2,3,4,5,7
1.0063534 7 1,2,3,4,5,7,8
1.0054089 8 1,2,3,4,5,7,8,10
1.0061529 9 1,2,3,4,5,7,8,9,10
1.0280706 9 1,2,3,4,5,6,7,9,10
1.0280706 9 1,2,3,4,5,6,7,9,10
1.0451771 9 1,2,3,4,6,7,8,9,10
1.0451771 9 1,2,3,4,6,7,8,9,10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.