vcov {PivotalR} | R Documentation |
Functions to extract the variance-cocariance matrix for regression models fit in Madlib.
## 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
## 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)