momApp-methods: Methods for objects of class 'momApp'

Description Usage Arguments Examples

Description

Objects of class momApp occur as results of function momApp. Their structure is described in the Details section of the documentation of momApp. There are several methods to examine such objects, namely print, summary, plot, tail and head. Function addSimulation adds moments that come from simulated data to object$moments and adds a new element object$seeds containing the vector with seeds that were used for simulation. Adding simulated moments makes it easy to compare the results, i.e. with plot.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
addSimulation(x, multSim)

plot.momApp(x, plotorder = 1, vars = names(init(x$model)), ...)

## S3 method for class 'momApp'
print(x, ...)

## S3 method for class 'momApp'
summary(object, ...)

## S3 method for class 'momApp'
tail(x, ...)

## S3 method for class 'momApp'
head(x, ...)

Arguments

x

object of class momApp

multSim

object of class multSim that contains simulated data

plotorder

numerical vector specifying the orders for which moments shall be plotted.

vars

character vector specifying the variables for which moments shall be plotted.

...

further arguments to the default method

object

object of class momApp

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(genePolyBF)
a <- momApp(genePolyBF, maxorder = 4, 
            closure = c("normal", "zero", "lognormal"), 
            centralize = c(TRUE, FALSE, FALSE))
print(a)
summary(a)

data(genePdmpBF)
b <- addSimulation(a, multSim(genePdmpBF, seeds = 1:30))
tail(b)
plot(b, plotorder = c(1, 4))

CharlotteJana/pdmppoly documentation built on Sept. 4, 2019, 4:40 p.m.