Learn R Programming

MESS (version 0.5.12)

mfastLmCpp: Fast marginal simple regresion analyses

Description

Fast computation of simple regression slopes for each predictor represented by a column in a matrix

Usage

mfastLmCpp(y, x, addintercept = TRUE)

Value

A data frame with three variables: coefficients, stderr, and tstat that gives the slope estimate, the corresponding standard error, and their ratio for each column in x.

Arguments

y

A vector of outcomes.

x

A matrix of regressor variables. Must have the same number of rows as the length of y.

addintercept

A logical that determines if the intercept should be included in all analyses (TRUE) or not (FALSE)

Author

Claus Ekstrom <claus@rprimer.dk>

Details

No error checking is done