PrettyResultsTable: A pretty summary results table for reports. NOTE: This...

Description Usage Arguments Value Author(s) Examples

View source: R/PrettyResultsTable.R

Description

Creates a ‘pretty’ summary results table from a Reversible Jump results object

Usage

1
2
3
4
5
6
7
PrettyResultsTable(
  results,
  round.digits.betas = 2,
  round.digits.postprob = 2,
  round.digits.bf = 1,
  normalised.sds = NULL
)

Arguments

results

A R2BGLiMS_Results-class object frum running the R2BGLiMS command.

round.digits.betas

Number of decimal places to include for effect estimates. (Default is 2)

round.digits.postprob

Number of decimal places to include for posterior probabilities. (Default is 2)

round.digits.bf

Number of decimal places to include for Bayes factors. (Default is 1)

normalised.sds

If covariates were normalised by their standard deviation, provide a named vector of the standard deviations on the original scale using this argument. Effects in the resulting table will then be interpretable according to unit changes on each covariate's original scale, rather than according to standard deviation changes.

Value

A nice summary results table.

Author(s)

Paul Newcombe

Examples

1
2
3
4
5
6
library(R2BGLiMS)

### --- Logistic regression with two model space prior components
# Load results from the VA survival analysis (see R2MHRJ examples)
data(VAResults)
PrettyResultsTable(VAResults)

pjnewcombe/R2BGLiMS documentation built on Feb. 10, 2020, 8:52 p.m.