summary.sns | R Documentation |
Methods for summarizing the output of sns.run
, and for printing the summary.
## S3 method for class 'sns' summary(object, quantiles = c(0.025, 0.5, 0.975) , pval.ref = 0.0, nburnin = max(nrow(object)/2, attr(object, "nnr")) , end = nrow(object), thin = 1, ess.method = c("coda", "ise"), ...) ## S3 method for class 'summary.sns' print(x, ...)
object |
An object of class "sns", typically the output of |
quantiles |
Values for which sample-based quantiles are calculated. |
pval.ref |
Reference value for state space variables, used for calculating sample-based p-values. |
nburnin |
Number of initial iterations to discard before calculating the sample statistics. A warning is issued if this number is smaller than the initial iterations run in NR mode. |
end |
Last iteration to use for calculating sample statistics. Defaults to last iteration. |
thin |
One out of |
ess.method |
Method used for calculating effective sample size. Default is to call |
x |
An object of class "summary.sns", typically the output of |
... |
Arguments passed to/from other functions. |
summary.sns
returns a list with these elements:
K |
Dimensionality of state space. |
nnr |
Number of NR (Newton-Raphson) iterations performed at the beginning. |
nburnin |
Number of burn-in iterations. These are discarded before calculating sample statistics. |
end |
Last iteration to use for calculating sample statistics. |
thin |
One out of every |
niter |
Total iterations, including NR and MCMC modes. |
nsmp |
Number of samples within specified range (before applying thinning). |
nseq |
Number of samples used for calculating sample statistics (after applying thinning). |
npart |
Number of subsets used in state space partitioning. If no partitioning is done, the value is |
accept.rate |
Acceptance rate for the MH transition proposals, calculated over |
reldev.mean |
Mean relative deviation from quadratic approximation, defined as difference between actual log-density change and the value predicted from quadratic fit at density maximum, divided by the actual change. The location of density maximum is assumed to be the value at the end of the last NR iteration. Therefore, for this measure to be accurate, users must ensure |
pval.ref |
Same as input. |
ess.method |
Same as input. |
smp |
A list with elements |
Alireza S. Mahani, Asad Hasan, Marshall Jiang, Mansour T.A. Sharabiani
Mahani A.S., Hasan A., Jiang M. & Sharabiani M.T.A. (2016). Stochastic Newton Sampler: The R Package sns. Journal of Statistical Software, Code Snippets, 74(2), 1-33. doi:10.18637/jss.v074.c02
sns.run
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.