results: Function to get results from an object returned by analysis.

View source: R/results.r

resultsR Documentation

Function to get results from an object returned by analysis.

Description

This function allows you to get results based on specified predictions from the return object produced by the 'analyze' function. Results are produced on the scale of the response variable.

Usage

results(
  object,
  predictions = NULL,
  method = c("observed values", "mean"),
  response = T,
  times = NULL,
  draws = 1000,
  .full.matrix = F,
  ci = 0.95,
  hdi = T
)

Arguments

object

Object returned from 'analysis' function.

predictions

The predictions returned from "pr_list."

method

Method for producing predictions Either uses observed values (the default) or mean values.

times

Vector of times to produce predictions for. Only used for survival analysis.

.full.matrix

Whether to return structured predictions (the default) or the full matrix.

Details

Predictions estimate the value of the response variable when one or more independent variables is set to a desired value (as indicated by 'predictions'). Contrasts compare two or more predictions.

Value

A list with coefficient values, predictions, and contrasts. If '.full.matrix' is set, the unsummarized matrix for both predictions and contrasts is returned as well.

See Also

Other results: get_prediction_frequentist(), qualitative_assessment(), results_mediation(), summarize_interval()

Examples

results(object = output, predictions = main.predictions)


jacobaro/danalyze documentation built on Oct. 20, 2022, 8:09 a.m.