clean_fit_dt: Format fit data.table

Description Usage Arguments Value

View source: R/clean_fit_dt.R

Description

Format the estimates, standard errors, and significance stars for estimate tables to be printed in Latex.

Usage

1
2
3
4
5
6
7
8
clean_fit_dt(
  dt,
  id_vars,
  est_var = "estimate",
  se_var = "std.error",
  p_var = "p.value",
  dig = 3
)

Arguments

dt

data.table

id_vars

character vector, name(s) of the idifiying featues of the estimate

est_var

character, name of the estimate column

se_var

character, name pf the standard error coulumn

p_var

character, name of the value column

dig

integer, number of significant features to round estimate and standard error

Value

data.table ready to be printed with xtable


evanjflack/cfo.behavioral documentation built on Oct. 10, 2020, 11:52 p.m.