pr_list: Function to easily create a nicely formatted prediction list.

View source: R/analyze.r

pr_listR Documentation

Function to easily create a nicely formatted prediction list.

Description

This function allows you to create formatted predictions and contrasts.

Usage

pr_list(..., .constant = NULL, .diff.in.diff = NULL, .add = NULL)

pr(..., .constant = NULL, .diff.in.diff = NULL, .add = NULL)

Arguments

...

Variables that will be used to create the predictions. If the variable values are named vectors, predictions are generated by sampling the vector.

.constant

Variable(s) to hold constant within a contrast.

.diff.in.diff

Variable(s) to use to create a "difference-in-difference" contrast.

.add

Text to add to a contrast.

Examples

pr_list(treatment = c(1, 0), condition = c("High", "Low"), .constant = "condition")


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