quickLm: Linear model

View source: R/quickLM.R

quickLmR Documentation

Linear model

Description

This function uses C++ to quickly fit linear models. Depends on fastLm.cpp.

Usage

quickLm(xVec, yVec)

Arguments

xVec, yVec

Numeric vectors of equal length representing predictor and response variables in linear model.

Value

Returns a list of model coefficients.

Examples

x <- rnorm(10, 0, 1)
y <- 2*x + 1
quickLm(x, y)


CamFreshwater/samSim documentation built on Sept. 25, 2023, 10:22 a.m.