lgp functionR/aaa.R, R/methods-lgpfit.R
lgpfit-class.RdAn S4 class to represent the output of the lgp function
# S4 method for lgpfit
show(object)
# S4 method for lgpfit
component_names(object)
# S4 method for lgpfit
num_components(object)
# S4 method for lgpfit
postproc(object, verbose = TRUE)
# S4 method for lgpfit
contains_postproc(object)
# S4 method for lgpfit
clear_postproc(object)
# S4 method for lgpfit
get_model(object)
# S4 method for lgpfit
get_stanfit(object)
# S4 method for lgpfit
is_f_sampled(object)
# S4 method for lgpfit,missing
plot(x, y)The object for which to apply a class method.
Can the method print any messages?
an lgpfit object to visualize
unused argument
show(lgpfit): Print information and summary about the fit object.
component_names(lgpfit): Get names of model components.
num_components(lgpfit): Get number of model components. Returns a
positive integer.
postproc(lgpfit): Apply postprocessing. Returns an updated
lgpfit object (copies data).
contains_postproc(lgpfit): Check if object contains postprocessing information.
clear_postproc(lgpfit): Returns an updated (copies data)
lgpfit object without any postprocessing information.
get_model(lgpfit): Get the stored lgpmodel object.
Various properties of the returned object can be accessed as explained
in the documentation of lgpmodel.
get_stanfit(lgpfit): Get the stored stanfit object.
Various properties of the returned object can be accessed or plotted
as explained
here
or in the documentation of stanfit.
is_f_sampled(lgpfit): Determine if inference was done by sampling
the latent signal f (and its components).
plot(x = lgpfit, y = missing): Visualize parameter draws using plot_draws.
stan_fitAn object of class stanfit.
modelAn object of class lgpmodel.
num_drawsTotal number of parameter draws.
postproc_resultsA named list containing possible postprocessing results.
For extracting parameter draws, see get_draws,
or the rstan methods for stanfit objects.
For more detailed plotting functions, see plot_draws,
plot_beta, plot_warp,
plot_effect_times