lm_beta_report: Perform a simple multiple regression and get back a...

Description Usage Arguments Value

Description

Perform a simple multiple regression and get back a standardized beta

Usage

1
lm_beta_report(IV, DV, Covariate, data)

Arguments

IV

a string indicating the name of the independent variable.

DV

a string indicating the name of the dependent variable.

Covariate

a string indicating the name of a covariate.

data

a data.frame that you want to use for the analysis.

Value

This function returns a list containing the following items:

vars

variables that were used in the model

model_lm

the lm object with undstandardized betas

model_lm_z

the lm.beta obeject with standardized betas

table

table of betas and standardized betas with standard error

n

sample size

eff

standarized beta weight for the IV

report

string that provides the beta weight and sample size


ethan-young/esyr documentation built on May 15, 2019, 12:45 p.m.