Description Usage Arguments Examples
This function implements the IBOSS method for the input covariate Z and response vector Y. It returns a list with elements: beta, the least squares estimate based on the subdata; se, the standard errors; sigma, variance estimate for the error term, index, index of the subdata.
1 | iboss.od(Z, Y, k, int.adj = "TRUE")
|
Z |
the input covariate matrix or covariate vector |
Y |
the response vector |
k |
the subdata size |
int.adj |
whether to calculate the adjusted estimate of the intercept. It is |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(IBOSS)
library(mvtnorm)
beta.true <- rep(1, 51)
d <- length(beta.true) - 1
corr <- 0.5
sigmax <- matrix(corr, d, d) + diag(1-corr, d)
n <- 5000
k <- 100
set.seed(0)
X <- rmvt(n, sigmax, 2)
mu <- beta.true[1] + c(X %*% beta.true[-1])
Y <- mu + rnorm(n, 0, 3)
fit <- iboss.od(X, Y, k)
beta.od <- fit$beta
beta.odia <- fit$beta0.adj
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.