getSummary.StratSel: getSummary Method for extending mtable()

Description Usage Arguments Value Author(s) References See Also Examples

Description

This function extends the mtable() to report strategic selection models (StratSel). Together with setStratSelDefault and the mtable command from the memisc package users can create multi-model tables and export them to LaTeX.

Usage

1
2
## S3 method for class 'StratSel'
getSummary(obj, alpha = 0.05, ...)

Arguments

obj

An object of class StratSel.

alpha

Significance level.

...

additional arguments

Value

Returns a list of objects to be fed to mtable. Do not use this command directly. The command mtable will automatically call this function for an object of the StratSel class.

Author(s)

Lucas Leemann lleemann@gmail.com

References

Elff, Martin. (2013). memisc: Tools for Management of Survey Data, Graphics, Programming, Statistics, and Simulation R package version 0.96-7.

See Also

toLatex, mtable

Examples

1
2
3
4
data(data.fake)
out1 <- StratSel(Y ~ var.A | var.D | var.E , data=data.fake, corr=FALSE)
out2 <- StratSel(Y ~ var.A | var.C | var.E, data=data.fake, corr=FALSE)
mtable(out1,out2)

Example output

Loading required package: MASS
Loading required package: memisc
Loading required package: lattice

Attaching package:memiscThe following objects are masked frompackage:stats:

    contr.sum, contr.treatment, contrasts

The following object is masked frompackage:base:

    as.array

Loading required package: Formula
Loading required package: mnormt
Loading required package: pbivnorm

Calls:
out1: StratSel(formula = Y ~ var.A | var.D | var.E, corr = FALSE, data = data.fake)
out2: StratSel(formula = Y ~ var.A | var.C | var.E, corr = FALSE, data = data.fake)

============================================
                     out1         out2      
--------------------------------------------
  u11 constant      -0.494       -0.347     
                    (0.304)      (0.298)    
  u11 var.A          1.052***     0.883***  
                    (0.218)      (0.207)    
  u14 constant      -0.660       -0.456     
                    (0.454)      (0.446)    
  u14 var.D          0.774***               
                    (0.073)                 
  u24 constant       0.454***     0.453***  
                    (0.058)      (0.058)    
  u24 var.E          0.607***     0.586***  
                    (0.129)      (0.137)    
  u14 var.C                       0.927**   
                                 (0.294)    
--------------------------------------------
  Log-likelihood                            
  N               1000         1000         
============================================
  Significance: *** = p < 0.001;   
                ** = p < 0.01;   
                * = p < 0.05  

StratSel documentation built on May 2, 2019, 11:11 a.m.