res2tex {FENmlm} | R Documentation |
Facility to export the results of multiple femlm
estimations in a Latex table.
Description
This function aggregates the results of multiple estimations and display them in the form of one Latex table whose rownames are the variables and the columns contain the coefficients and standard-errors.
Usage
res2tex(..., se = c("standard", "white", "cluster", "twoway", "threeway",
"fourway"), cluster, digits = 4, pseudo = TRUE, title,
sdBelow = TRUE, drop, order, dict, file, replace = FALSE,
convergence, signifCode = c(`***` = 0.01, `**` = 0.05, `*` = 0.1),
label, aic = FALSE, sqCor = FALSE, subtitles,
showClusterSize = FALSE, bic = TRUE, loglik = TRUE,
yesNoCluster = c("Yes", "No"), keepFactors = FALSE, family,
powerBelow = -5)
Arguments
... |
Used to capture different |
se |
Character scalar. Which kind of standard error should be computed: “standard” (default), “White”, “cluster”, “twoway”, “threeway” or “fourway”? |
cluster |
A list of vectors. Used only if |
digits |
Integer, default is 4. The number of digits to be displayed. |
pseudo |
Logical, default is |
title |
Character scalar. The title of the Latex table. |
sdBelow |
Logical, default is |
drop |
Character vector. This element is used if some variables are not to be displayed. This should be a regular expression (see |
order |
Character vector. This element is used if the user wants the variables to be ordered in a certain way. This should be a regular expression (see |
dict |
A named character vector. If provided, it changes the original variable names to the ones contained in the |
file |
A character scalar. If provided, the Latex table will be saved in a file whose path is |
replace |
Logical, default is |
convergence |
Logical, default is missing. Should the convergence state of the algorithm be displayed? By default, convergence information is displayed if at least one model did not converge. |
signifCode |
Named numeric vector, used to provide the significance codes with respect to the p-value of the coefficients. Default is |
label |
Character scalar. The label of the Latex table. |
aic |
Logical, default is |
sqCor |
Logical, default is |
subtitles |
Character vector of the same lenght as the number of models to be displayed. If provided, subtitles are added underneath the dependent variable name. |
showClusterSize |
Logical, default is |
bic |
Logical, default is |
loglik |
Logical, default is |
yesNoCluster |
A character vector of lenght 2. Default is |
keepFactors |
Logical, default is |
family |
A logical, default is missing. Whether to display the families of the models. By default this line is displayed when at least two models are from different families. |
powerBelow |
Integer, default is -5. A coefficient whose value is below |
Value
There is nothing returned, the result is only displayed on the console or saved in a file.
Author(s)
Laurent Berge
See Also
See also the main estimation function femlm
. Use summary.femlm
to see the results with the appropriate standard-errors, getFE
to extract the cluster coefficients, and the functions res2table
and res2tex
to visualize the results of multiple estimations.
Examples
# two fitted models with different expl. variables:
res1 = femlm(Sepal.Length ~ Sepal.Width + Petal.Length +
Petal.Width | Species, iris)
res2 = femlm(Sepal.Length ~ Petal.Width | Species, iris)
# We export the three results in one Latex table,
# with clustered standard-errors:
res2tex(res1, res2, se = "cluster")
# Changing the names & significance codes
res2tex(res1, res2, dict = c(Sepal.Length = "The sepal length", Sepal.Width = "SW"),
signifCode = c("**" = 0.1, "*" = 0.2, "n.s."=1))