Learn R Programming

EcoMetrics (version 0.1.1)

ols_model: Fitting a simple or multiple linear regression

Description

Fitting a simple or multiple linear regression

Usage

ols_model(data, y, x)

Value

A tibble of the coefficients, standard errors, t-statistics and p-value

Arguments

data

A data frame containing the variables to use

y

The dependent variable

x

Set of independent variables

Author

Mutua Kilai

Examples

Run this code
ols_model(data = eduperform, "pi", c("hs", "ps"))


Run the code above in your browser using DataLab