fix_estout: Convert STATA estout .csv to R data frames

Description Usage Arguments Details Value Examples

View source: R/fix_estout.R

Description

Get point estimates and SEs/T-values as a numeric data frame without the extra characters or formatting issues inputted by estout.

Usage

1

Arguments

fn

A full (character) filename path pointing to the desired .csv created by estout.

Details

Ever wanted to just access the numbers from estout without having to deal with all the extra fluff included to make the output readable by Excel, Word, or LaTeX? fix_estout is for you! fix_estout takes in a filename path to a .csv created by STATA's estout, and returns two data frames (in a list): reg.results giving the point estimates and reg.ses giving whatever second line option was picked (i.e. standard errors or t-values). All fluff ("=","()", etc.) is removed. The regresands are the column names (with .1, .2, as R does by default, for multiple specifications - a future version may offer the option to put different model specifications in different list elements), the regressors are the row names. The actual data frame is therefore purely numeric.

Value

A list will be returned containing two data frames: reg.results giving the point estimates of the regression output and reg.ses giving the second line of the outputs (i.e. SEs or T values)

Examples

1
## Not run: fix_estout("~/code/regression_output.csv")

ks905383/importr documentation built on May 7, 2019, 5:01 a.m.