Learn R Programming

eco (version 3.1-2)

summary.ecoML: Summarizing the Results for the Maximum Likelihood Parametric Model for Ecological Inference in 2x2 Tables

Description

summary method for class eco.

Usage

## S3 method for class 'ecoML':
summary(object, CI = c(2.5, 97.5),  param = TRUE, units = FALSE,
     subset = NULL, ...) 

## S3 method for class 'summary.ecoML': print(x, digits = max(3, getOption("digits") - 3), ...)

Arguments

object
An output object from eco.
CI
A vector of lower and upper bounds for the Bayesian credible intervals used to summarize the results. The default is the equal tail 95 percent credible interval.
param
Ignored.
subset
A numeric vector indicating the subset of the units whose in-sample predications to be provided when units is TRUE. The default value is NULL where the in-sample predictions for each unit will be provi
units
Logical. If TRUE, the in-sample predictions for each unit or for a subset of units will be provided. The default value is FALSE.
x
An object of class summary.ecoML.
digits
the number of significant digits to use when printing.
...
further arguments passed to or from other methods.

Value

  • summary.eco yields an object of class summary.eco containing the following elements:
  • callThe call from eco.
  • semWhether the SEM algorithm was executed, as specified by the user upon calling ecoML.
  • fix.rhoWhether the correlation parameter was fixed or allowed to vary, as specified by the user upon calling ecoML.
  • epsilonThe convergence threshold specified by the user upon calling ecoML.
  • n.obsThe number of units.
  • iters.emThe number iterations the EM algorithm cycled through before convergence or reaching the maximum number of iterations allowed.
  • iters.semThe number iterations the SEM algorithm cycled through before convergence or reaching the maximum number of iterations allowed.
  • loglikThe final observed log-likelihood.
  • rhoA matrix of iters.em rows specifying the correlation parameters at each iteration of the EM algorithm. The number of columns depends on how many correlation parameters exist in the model. Column order is the same as the order of the parameters in param.table.
  • param.tableFinal estimates of the parameter values for the model. Excludes parameters fixed by the user upon calling ecoML. See ecoML documentation for order of parameters.
  • agg.tableAggregate estimates of the marginal means of $W_1$ and $W_2$
  • agg.wtableAggregate estimates of the marginal means of $W_1$ and $W_2$ using $X$ and $N$ as weights.
  • If units = TRUE, the following elements are also included:
  • W.tableUnit-level estimates for $W_1$ and $W_2$.
  • This object can be printed by print.summary.eco

See Also

ecoML