print() shows a short overview of a fit (class pvstackr_fit, see
pv_fit()). summary() returns the same overview, together with the
estimate table and the diagnostics, as a list of class
summary.pvstackr_fit; its print() method also shows the estimates.
Value
print() returns its input invisibly. summary() returns a list
of class summary.pvstackr_fit with these elements:
method,status,reason_codesandwarnings: as in the fit.n_termsandterms: the number and the names of the fixed effects in the estimate table (0andcharacter()for a blocked fit).has_targetandtarget_source: whether the fit has a target object (get_target()does not returnNULL), and itstarget_sourcelabel, which is"none"for astack_psisfit.has_drawsanddraw_dim: whether the fit has calibrated draws (get_draws()does not returnNULL), and their numbers of rows and columns (c(0L, 0L)when it has none).diagnostic_keys: the names of the list thatget_diagnostics()returns.interval_note: the text of the line beginning "interval note:", orNAwhen there is no such line.estimatesanddiagnostics: the estimate table and the diagnostics list.schema_version,summary_schema_version,source_validation,source_reportability_fitandvalidation: the format versions of the fit and of the summary; the checksum of the fit that the summary was made from; for astack_psisfit, a copy of the fit without its stacked draws and weights, from whichestimatesanddiagnosticsare taken (NULLfor the other methods); and a SHA-256 checksum of the summary, whichprint()recomputes to detect changes.
Details
The overview has one line each for the method, the status, the number of
fixed effects, the target (its target_source label, or "none" when
get_target() returns NULL, as for a stack_psis fit), the calibrated
draws (their numbers of rows and columns, or "not retained" when
get_draws() returns NULL) and the names of the diagnostics. A line
beginning "interval note:" follows when some or all intervals are
descriptive, and the reason codes and the number of warnings are shown
when there are any. The print() method of the summary adds the columns
term, estimate, se, df, conf_low and conf_high of the
estimate table.
The three methods stop with an error if the fit or the summary was
changed after it was created, and for a fit saved by pvstackr 0.1.x,
which has to be made again. A summary of a stack_psis fit that was saved
by an earlier version of pvstackr also stops with an error when printed
(see pv_migrate_legacy_psis_fit()).
See also
get_estimates() and get_diagnostics() to read a fit.