setUnivariableRegression: Perform univariable regression models

Description Usage Arguments Value Examples

View source: R/regression_function.R

Description

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

Usage

1
2
3
4
5
6
setUnivariableRegression(
  data,
  dependentVariable,
  independentVariable,
  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

independentVariable

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

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")
setUnivariableRegression(data = mtcars,
                         dependentVariable = "cyl",
                         independentVariable = "mpg")

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