coefs.table | R Documentation |
This function summarizes a list of estimated models (output of estim.?
functions) and creates
a table of coefficients.
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"
)
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. |
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 the estimList
elements.
dname
: shows that the text is an endogenous variable name from the columns of coefs
matrix.
rname
: shows that the text is a key given in regInfo
.
ename
: shows that the text is an explanatory variable name from the rows of coefs
matrix.
NULL
: shows that the text is a specific code or something else.
A data frame with (formatted) requested information.
# See 'search.?' or 'estim.?' functions for some examples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.