extractTraces function

extractTraces

extractTraces

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.

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.

Returns

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.

Examples

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

See Also

createEffectsObject()

  • Maintainer: Per Block
  • License: GPL (>= 3)
  • Last published: 2024-09-12

Useful links