regression: regression

Description Usage Arguments Value

View source: R/regression.R

Description

Performs an lm or glm given y, a list of covariates and the indices of the covariates to take into account.

Usage

1
regression(y, names, indices, dataset, reg_method)

Arguments

y

Name of the response variable in the dataset

names

Names of the covariates in the dataset

indices

Indices of the covariates considered in the regression

dataset

Name of the dataset

reg_method

Regression method

Value

'lm' object obtained by performing the regression with the selected covariates


Skjemaa/GA documentation built on May 3, 2019, 6:42 p.m.