extractTraces {MoNAn}R Documentation

extractTraces

Description

This function shows the values of simulated statistics in Phase 3 for subsequent draws from the chain. Ideally, the plots show points randomly scattered around the red line, which indicates the statistics in the data.

Usage

extractTraces(ans, effects)

## S3 method for class 'traces.monan'
plot(x, ...)

Arguments

ans

An object of class "result.monan" resulting from an estimation with the function estimateMobilityNetwork().

effects

An object of class "effectsList.monan" used in the estimation.

x

An object of class "traces.monan".

...

Additional plotting parameters, use not recommended.

Value

The function extractTraces returns a list that includes (1) the observed statistics for all effects, (2) the distribution of statistics for all simulations and (3) effect names. It is recommended to use the plotting function to inspect the traces.

The function plot.traces.monan shows a scatter plot of the statistics of simulated networks from phase three of the esimtation.

See Also

createEffectsObject()

Examples


# regression diagnostics
traces <- extractTraces(myResDN, myEffects)


plot(traces)


[Package MoNAn version 1.0.0 Index]