-
-
Notifications
You must be signed in to change notification settings - Fork 62
/
CmdStanPathfinder.Rd
73 lines (63 loc) · 3.31 KB
/
CmdStanPathfinder.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fit.R
\name{CmdStanPathfinder}
\alias{CmdStanPathfinder}
\title{CmdStanPathfinder objects}
\description{
A \code{CmdStanPathfinder} object is the fitted model object returned by the
\code{\link[=model-method-pathfinder]{$pathfinder()}} method of a
\code{\link{CmdStanModel}} object.
}
\section{Methods}{
\code{CmdStanPathfinder} objects have the following associated methods,
all of which have their own (linked) documentation pages.
\subsection{Extract contents of fitted model object}{\tabular{ll}{
\strong{Method} \tab \strong{Description} \cr
\code{\link[=fit-method-draws]{$draws()}} \tab Return approximate posterior draws as a \code{\link[posterior:draws_matrix]{draws_matrix}}. \cr
\code{\link[=fit-method-lp]{$lp()}} \tab Return the total log probability density (\code{target}) computed in the model block of the Stan program. \cr
\code{\link[=fit-method-lp]{$lp_approx()}} \tab Return the log density of the approximation to the posterior. \cr
\code{\link[=fit-method-init]{$init()}} \tab Return user-specified initial values. \cr
\code{\link[=fit-method-metadata]{$metadata()}} \tab Return a list of metadata gathered from the CmdStan CSV files. \cr
\code{\link[=fit-method-code]{$code()}} \tab Return Stan code as a character vector. \cr
}
}
\subsection{Summarize inferences}{\tabular{ll}{
\strong{Method} \tab \strong{Description} \cr
\code{\link[=fit-method-summary]{$summary()}} \tab Run \code{\link[posterior:draws_summary]{posterior::summarise_draws()}}. \cr
\code{\link[=fit-method-cmdstan_summary]{$cmdstan_summary()}} \tab Run and print CmdStan's \code{bin/stansummary}. \cr
}
}
\subsection{Save fitted model object and temporary files}{\tabular{ll}{
\strong{Method} \tab \strong{Description} \cr
\code{\link[=fit-method-save_object]{$save_object()}} \tab Save fitted model object to a file. \cr
\code{\link[=fit-method-save_output_files]{$save_output_files()}} \tab Save output CSV files to a specified location. \cr
\code{\link[=fit-method-save_data_file]{$save_data_file()}} \tab Save JSON data file to a specified location. \cr
\code{\link[=fit-method-save_latent_dynamics_files]{$save_latent_dynamics_files()}} \tab Save diagnostic CSV files to a specified location. \cr
}
}
\subsection{Report run times, console output, return codes}{\tabular{ll}{
\strong{Method} \tab \strong{Description} \cr
\code{\link[=fit-method-time]{$time()}} \tab Report the total run time. \cr
\code{\link[=fit-method-output]{$output()}} \tab Pretty print the output that was printed to the console. \cr
\code{\link[=fit-method-return_codes]{$return_codes()}} \tab Return the return codes from the CmdStan runs. \cr
}
}
}
\seealso{
The CmdStanR website
(\href{https://mc-stan.org/cmdstanr/}{mc-stan.org/cmdstanr}) for online
documentation and tutorials.
The Stan and CmdStan documentation:
\itemize{
\item Stan documentation: \href{https://mc-stan.org/users/documentation/}{mc-stan.org/users/documentation}
\item CmdStan User’s Guide: \href{https://mc-stan.org/docs/cmdstan-guide/}{mc-stan.org/docs/cmdstan-guide}
}
Other fitted model objects:
\code{\link{CmdStanDiagnose}},
\code{\link{CmdStanGQ}},
\code{\link{CmdStanLaplace}},
\code{\link{CmdStanMCMC}},
\code{\link{CmdStanMLE}},
\code{\link{CmdStanVB}}
}
\concept{fitted model objects}