reg: Multiple Linear Regression

View source: R/reg.R

regR Documentation

Multiple Linear Regression

Description

[Experimental]

  • reg() performs a multiple linear regression analysis with extracting the attributed parameters

Usage

reg(datap, resp, verbose = FALSE)

Arguments

datap

The data set

resp

an integer value indicating the column in datap that

verbose

If verbose = TRUE then some results are printed in the console. corresponds to the response variable.

Details

The reg function fits a multiple linear regression analysis of one or more independent (exogenous) variables on a dependent(endogenous) variable in a linear pattern along with testing the significance of parameters. It is important that according to the type of data may produce some warning errors e.g., for dtsimp as: Warning message: In summary.lm(mlreg): essentially perfect fit: summary may be unreliable. This case is due to the intrinsic characteristics of data

Value

An object of class list

Author(s)

Ali Arminian abeyran@gmail.com

See Also

⁠multiple linear regression⁠

Examples


data(dtsimp)
reg(dtsimp, 1, verbose = FALSE)


data(heart)
reg(heart, 1, verbose = FALSE)


Path.Analysis documentation built on Sept. 30, 2024, 9:25 a.m.