extractTraces {MoNAn} | R Documentation |
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, ...)
ans |
An object of class "result.monan" resulting from an estimation with the function |
effects |
An object of class "effectsList.monan" used in the estimation. |
x |
An object of class "traces.monan". |
... |
Additional plotting parameters, use not recommended. |
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.
# regression diagnostics
traces <- extractTraces(myResDN, myEffects)
plot(traces)