reg_mean: Mean of a variable using the 'lm' function

Description Usage Arguments Value

View source: R/utils.R

Description

return is the output from lmtest::coeftest which includes the mean, the standard error, the t-stat and p-value

Usage

1
reg_mean(df, var, weights.var = NULL)

Arguments

df

data.frame of data

var

a string with the variable name

weights.var

a string with variable to be used as weights. Defaults to NULL

Value

an object from lmtest::coeftest with the output from the regression in a 1x4 matrix including the mean (the estimate), the standard error, the t-value, and the p-value


ChandlerLutz/crossplotr documentation built on May 6, 2019, 9:56 a.m.