setMultivariableRegression: Perform univariable regression models

Description Usage Arguments Value Examples

View source: R/regression_function.R

Description

A fonction that allow to perform multivariable linear and logistic regression and produce a data.frame to display

Usage

1
2
3
4
5
6
setMultivariableRegression(
  data,
  dependentVariable,
  independentVariables,
  round = 2
)

Arguments

data

a data.frame, containing the data to be used in the regression

dependentVariable

a character vector of length one, containing the names of the dependant variable

independentVariables

a character vector containing the names of the independant variables

round

a numeric vector of length one, containing the round value to apply

Value

a data.frame, containing the result of the regression model

Examples

1
2
3
4
data("mtcars")
setMultivariableRegression(data = mtcars,
                           dependentVariable = "cyl",
                           independentVariables = c("mpg", "drat")

rgriffier/statsBordeaux documentation built on Aug. 11, 2021, 9:59 a.m.