myglm: Simplified version of fastglm's 'fastglm' function

View source: R/RcppExports.R

myglmR Documentation

Simplified version of fastglm's 'fastglm' function

Description

Fast generalized model fitting with a simplified version of fastglm's 'fastglm' function

Usage

myglm(Xs, ys, weightss, offsets, family)

Arguments

Xs

input model matrix. Must be a matrix object

weightss

an optional vector of 'prior weights' to be used in the fitting process. Should be a numeric vector.

offsets

this can be used to specify an a priori known component to be included in the linear predictor during fitting. This should be a numeric vector of length equal to the number of cases

y

numeric response vector

A

stats[family] object. See 'fastglm' for details

Details

This is a simplified wrapper to the 'fastglm' function in the fastglm package, please access that package for more details.

Value

A list with the elements: * 'coefficients' a vector of coefficients * 'se' a vector of the standard errors of the coefficient estimates * 'rank' a scalar denoting the computed rank of the model matrix * 'df.residual' a scalar denoting the degrees of freedom in the model * 'residuals' a vector of residuals * 's' a numeric scalar - the root mean square for residuals * 'fitted.values' the fitted values


samuel-watson/glmmr documentation built on July 27, 2022, 10:30 p.m.