linear.regression: Linear Regression

Description Usage Arguments Value

Description

Finds betas

Usage

1
linear.regression(xVector, yVector, numCols)

Arguments

xVector

Vector with independent variable

yVector

Vector with dependent variable

numCols

The number of colums you want. Standard is one column of 1's and another that is xVector

Value

A vector of betas, where the first cell is your y-int and the second cell represents your beta - "the slope"


n-swarup/nsLib documentation built on May 15, 2019, 5:50 p.m.