Description Usage Arguments Value Author(s) See Also Examples
Functions to extract the variance-cocariance matrix for regression models fit in Madlib.
1 2 3 4 5 6 7 8 | ## S3 method for class 'lm.madlib.grps'
vcov(object, na.action = NULL, ...)
## S3 method for class 'lm.madlib'
vcov(object, na.action = NULL, ...)
## S3 method for class 'logregr.madlib.grps'
vcov(object, na.action = NULL, ...)
## S3 method for class 'logregr.madlib'
vcov(object, na.action = NULL, ...)
|
object |
The regression model object, of class |
na.action |
A function, default is |
... |
Other arguments, not used. |
For lm.madlib
and logregr.madlib
objects, this function returns the variance-covariance matrix of the main parameters.
For lm.madlib.grps
and logregr.madlib.grps
objects, which are a list of models for multiple groups of data, returns a list, each of which is the variance-cocariance matrix for the model of each group of data.
Author: Hong Ooi, Pivotal Inc.
Maintainer: Frank McQuillan, Pivotal Inc. fmcquillan@pivotal.io
madlib.lm
, madlib.glm
for MADlib regression wrappers
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
## set up the database connection
## Assume that .port is port number and .dbname is the database name
cid <- db.connect(port = .port, dbname = .dbname, verbose = FALSE)
x <- as.db.data.frame(abalone, conn.id = cid, verbose = FALSE)
lk(x, 10)
fit <- madlib.glm(rings < 10 ~ . - id | sex, data = x, family =
"binomial")
vcov(fit)
vcov(fit[[1]])
db.disconnect(cid, verbose = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.