summary.lmestData: Summary and plot of 'lmestData'

View source: R/lmestData.R

summary.lmestDataR Documentation

Summary and plot of lmestData

Description

Methods for lmestData object providing basic descriptive statistics (summary) and plots.

Usage

## S3 method for class 'lmestData'
summary(object, type = c("all","cross", "year"),
        dataSummary = c("all", "responses", "manifest", "initial", "transition"),
        varType = rep("c", x$d), digits = getOption("digits"),
        maxsum = 10, maxobs = 20, ...)
## S3 method for class 'lmestData'
plot(x, typePlot = c("s", "sh"),
     dataPlots = c("all", "responses", "manifest", "initial", "transition"),
        ...)
## S3 method for class 'lmestData'
print(x, ...)

Arguments

object

an object of class lmestData

x

an object of class lmestData

type

type of summary to print. all prints a summary for each varaible, and a summary for each variables by time. cross prints a summary for each variable. year prints a summary for each variable by time. The summary is adapted according to varType (By default is set to all)

dataSummary

a string indicating whether summary is returned: all for the entire data, responses for the responses, manifest for covariates on the manifest distribution, initial for the covariate affecting the initial probabilities, and transition for the covariates affecting the transition probabilities. (By default is set to all)

varType

a string vector of lengh equal to the number of variables, "c" for continuous and "d" for discrete, indicating wich varaibles are continuos and which are discrete

digits

the number of significant digits

maxsum

an integer value indicating the maximum number of levels to print

maxobs

an integer value indicating the maximun number of observation in which the summary statistics are reported for each observation

typePlot

a string indicating the type of plot. "s" plots a scaterplot matrix. "sh" plots a scatterplot matrix with the histogram for each variable in the diagonal

dataPlots

a string indicating whether the plot is returned: all for the entire data, responses for the responses, manifest for covariates on the manifest distribution, initial for the covariate affecting the initial probabilities, transition for the covariates affecting the transition probabilities. (By default is set to all)

...

further arguments

Author(s)

Francesco Bartolucci, Silvia Pandolfi, Fulvia Pennoni, Alessio Farcomeni, Alessio Serafini


LMest documentation built on Aug. 27, 2023, 5:06 p.m.