Facility to display the results of multiple feNmlm estimations.

Share:

Description

This function aggregates the results of multiple estimations and display them in the form of only one table whose rownames are the variables and the columns contain the coefficients and standard-errors.

Usage

1
2
3
res2table(..., sd = c("standard", "white", "cluster", "twoway"),
          cluster, digits = 4, pseudo = TRUE,
          sdBelow = TRUE, drop, order, convergence = TRUE)

Arguments

...

Used to capture different feNmlm objects. Note that any other type of element is discarded.

sd

A character scalar. The standard-error is computed similarly for each feNmlm object. Which kind of standard error should be prompted: “standard” (default), “White”, “cluster” or “twoway”?

cluster

A list of vectors. Used only if sd = "cluster" or sd="twoway". The vectors should give the cluster of each observation. Note that if the estimation was run using dummy, the standard error is automatically clustered along the cluster given in feNmlm.

digits

Integer. The number of digits to be displayed.

pseudo

Logical. Should the pseudo R2 be displayed? (Default is TRUE.)

sdBelow

Logical. Should the standard-error be displayed below the coefficients? (Default is TRUE.)

drop

Character vector. This element is used if some variables are not to be displayed. This should be a regular expression (see regexp help for more info). There can be more than one regular expression. Each variable satisfying the regular expression will be discarded.

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 regexp help for more info). There can be more than one regular expression. The variables satisfying the first regular expression will be placed first, then the order follows the sequence of regular expressions.

convergence

Logical. Should the convergence state of the algorithm be displayed? (Default is TRUE.)

Value

There is nothing returned, the result is only displayed on the console.

Author(s)

Laurent Berge

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
n = 100
x = rnorm(n,1,5)**2
y = rnorm(n,-1,5)**2
z = rpois(n,x*y)
base = data.frame(x,y,z)

# Results of the Poisson..
est_poisson = femlm(z~log(x)+log(y),base,family="poisson")
# .. and of the Negative Binomial
est_negbin = femlm(z~log(x)+log(y),base,family="negbin")

# We display the two results in one table:
res2table(est_poisson,est_negbin)