myLinearRegression: Linear Regression Analysis

Description Usage Arguments Value

View source: R/myLinearRegression.R

Description

Creates a scatterplot of each pair of covariates. Also creates a linear regression of Y on X. Written by Sara Khorramshahgol

Usage

1

Arguments

X:

a matrix of covariates

Y:

a vector of outcomes

sub:

a list of subjects (i.e. a set of integers corresponding to rows in X)

Value

coef: a set of coefficients from the linear regression of Y on X

pvals: the set of corrresponding p-values


Khorramsara/myLinearPackage documentation built on May 5, 2020, 12:07 a.m.