multiformat_plm: : Format a given list of plm() regression objects for easy...

Description Usage Arguments Value Examples

Description

:Given a list of OLS regressions on panel data, *performed using plm()* (in order to obtain clustered SEs), format, return and optionally, write the results side-by-side in a csv.

Usage

1
2
multiformat_plm(plm_list, output_file = NA, formula_list = NA,
  title_list = "", ndigit = 5)

Arguments

plm_list

a list() of plm model objects (list of plm objects)

output_file

the file path (with ".csv" extension) to write the results to, if no value provided, no output file will be created (character)

formula_list

optional list of custom formulae to provide to print in results (code pulls regression formula call by default) (list of character)

title_list

optional list of titles for each regression in the list to write atop output file (blank by default) (list of character)

ndigit

level of precision in output, 5 by default (integer)

Value

matrix containing formatted results from the provided regression list (matrix)

Examples

1
2
3
4
5
6
7
## Not run: 
plm_income_age_gender <- plm (monthly_income ~ age , index = "gender", data=dem, model="pooling") 
plm_income_dob_gender <- plm (monthly_income ~ date_of_birth, index = "gender", data=dem, model="pooling") 
plm_list <- list(plm_income_age_gender, plm_income_dob_gender)
multiformat_plm(plm_list = plm_list, output_file = "income_plm_variation.csv")

## End(Not run)

ClaraMarquardt/ehR documentation built on May 6, 2019, 12:02 p.m.