summarize_nof1: Function to present a summary of our results

Description Usage Arguments Value

View source: R/nof1.summary.R

Description

A neat function to summarize the results.

Usage

1
summarize_nof1(result, alpha = 0.05)

Arguments

result

Modeling result of class nof1.result produced by nof1.run

alpha

The alpha value for the confidence interval. The default is 0.05.

Value

The function computes and returns a list of summary statistics of the raw data and the fitted model.

raw.y.mean

The raw mean of the outcome for each treatment

raw.y.median

The raw median of the outcome for each treatment

post.coef.mean

The posterior mean of the coefficient for each treatment

post.coef.median

The posterior median of the coefficient for each treatment

post.y.mean

The posterior mean of the outcome for each treatment

post.y.median

The posterior median of the outcome for each treatment

post.coef.ci

The credible interval of the coefficient for each treatment

post.y.ci

The credible interval of the outcome for each treatment

comp.treat.post.coef

The posterior quantiles of one coefficient minus the other when comparing two treatments

p.comp.coef.greater.0

The posterior probability of one coefficient minus the other greater than 0


jiabei-yang/nof1ins documentation built on Sept. 7, 2021, 1:10 p.m.