coefs.table {ldt} | R Documentation |
Create Table of Coefficients
Description
This function summarizes a list of estimated models (output of estim.?
functions) and creates
a table of coefficients.
Usage
coefs.table(
estimList,
depList = NULL,
tableFun = "coef_star",
formatNumFun = NULL,
regInfo = NULL,
textFun = NULL,
textFun_sub = NULL,
textFun_max = 20,
expList = NA,
latex = TRUE,
numFormat = "%.2f"
)
Arguments
estimList |
A named list where each element is output from a |
depList |
List of endogenous variable name to be included in the columns of the table. If |
tableFun |
Function with arguments |
formatNumFun |
Function to format numbers if |
regInfo |
List of keys (such as |
textFun |
Function to change any text in columns or rows of the table to a more informative text.
It has two arguments: |
textFun_sub |
List for replacing special characters. If |
textFun_max |
Maximum length for texts in the table. |
expList |
Determines the name of the explanatory variables to insert in table.
If |
latex |
If |
numFormat |
default formatting for the numbers. |
Details
The first part of the table is the header, followed by the coefficients. At the bottom, you can insert
the following items by specifying regInfo
:
An empty character string (i.e., "") for inserting empty line.
-
"sigma2"
for the covariance of regression, if it is available. An available metric name in the row names of
estimList[[...]]$metrics
.
Furthermore, second argument in textFun
can be:
-
hname
: shows that the text is a header name from theestimList
elements. -
dname
: shows that the text is an endogenous variable name from the columns ofcoefs
matrix. -
rname
: shows that the text is a key given inregInfo
. -
ename
: shows that the text is an explanatory variable name from the rows ofcoefs
matrix. -
NULL
: shows that the text is a specific code or something else.
Value
A data frame with (formatted) requested information.
Examples
# See 'search.?' or 'estim.?' functions for some examples.