Learn R Programming

Path.Analysis (version 0.1)

reg: Multiple Linear Regression

Description

[Experimental]

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

Usage

reg(datap, resp, verbose = FALSE)

Value

An object of class list

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.

Author

Ali Arminian abeyran@gmail.com

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

See Also

multiple linear regression

Examples

Run this code
# \donttest{
data(dtsimp)
reg(dtsimp, 1, verbose = FALSE)
# }
# \donttest{
data(heart)
reg(heart, 1, verbose = FALSE)
# }

Run the code above in your browser using DataLab