variable_summary: Computes mean and optional probabilities for a given...

View source: R/variable_summary.R

variable_summaryR Documentation

Computes mean and optional probabilities for a given variable.

Description

Computes mean and optional probabilities for a given variable.

Usage

variable_summary(var_name, var_matrix, probs)

Arguments

var_name

String, name of the dependent variable

var_matrix

Numeric matrix samplesN x observationsN.

probs

A numeric vector of quantiles to compute.

Value

data.frame with "var_name" column for the mean and "var_name_prob" columns for each probability.

Examples

variable_summary("test", matrix(1:1000, ncol = 1), c(0.05, 0.95))

TriDimRegression documentation built on Sept. 13, 2023, 5:07 p.m.