Learn R Programming

rv

The rv package provides tools for working with simulation-based random variables.

Installation

Stable version from CRAN

install.packages("rv")

or development version from GitHub

install.packages('devtools')  # package devtools needed
devtools::install_github("jsta/rv")

Examples

See website

Copy Link

Version

Install

install.packages('rv')

Monthly Downloads

107

Version

2.3.5

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Joseph Stachelek

Last Published

February 12th, 2022

Functions in rv (2.3.5)

as.double.rv

Coercing Random Vectors to Real-valued
as.list.rv

Coerce a random vector object to a list
Math.rv

Mathematical functions and Operators for rv Objects
as.integer.rv

Integer Random vectors
Extract-rv

Extract or Replace Parts of a Random Vector
apply.rv

Apply Functions over Margins of Random Arrays
Extremes-rv

Maxima and Minima of Random Variables
abline.rv

Add (Random) Straight Lines to a Plot
cbind.rv

Combine random vectors by columns or rows
aperm.rv

Random Array Transposition
as.vector.rv

Coerce an rv object
hist.rv

Histogram of a random vector
as.rv.bugs

Coerce a bugs object into Random Variable Objects
%*in*%

Test if in set
cor.rv

Calculate the covariance of an rv object
numeric_rv

Numeric Random Vectors
median.rv

Distribution of the Sample Median
range.rv

Distribution of the Range of a Random Vector
outer.rv

Outer Product of Random Arrays
as.rv.stanfit

Convert simulations generated by Stan to a list of rv objects
as.logical.rv

Logical Random vectors
print.rv

Print Distribution Summary of a Random Variable
matmult

Random Matrix Multiplication
mean.rv

Distribution of the Arithmetic Mean of a Random Vector
rvmultinom

Generate Random Variables from a Multinomial Sampling Model
rvmax

Get the max values of an rv object
rvcat

Generate Categorical Random Variables
rvboot

Generate a Random Vector from an Empirical Distribution
quantile.rv

Distribution of a Quantile of a Random Vector
is.constant

Constant Vectors
rvmean

Expectation of a Random Variable
rvdiscrete

Generate Random Vectors from a Discrete Sampling Model
print.rvfactor

Categorical Random Variables (Random Factors)
rv-package

Simulation-based Random Variable Objects
simapply

Apply a Function to Rows of Simulations of Random Vectors
is.na.rv

Missing Data Indicators
is.fuzzy

Fuzziness
rvexp

Generate Random Vectors from an Exponential Sampling Model
rvvar

Variances of Components of Random Vectors
rv

Random Vectors
mlplot

Horizontal interval plot of components of a random vector
rvifelse

Conditional Random Element Selection
rvRhat

R-hat Convergence Diagnostic
rvchisq

Generate Random Variables from a Chi-Square Sampling Model
posterior

Generate Posterior Simulations
sims

Retrieve the Simulations of Random Vectors
rvcauchy

Generate Random Variables from a Cauchy Sampling Model
postsim

Generate Posterior Simulations for lm or glm Objects (defunct)
rvinvchisq

Generate Random Variables from a Inverse-Chi-Square Sampling Model
summaries

Random Vector Summaries
rvmatrix

Matrices and Arrays of Random Vectors
rvci

Credible (Uncertainty) Intervals for Random Scalars
cc

Combine values in an rv object
rvempirical

Generate a Random Vector from an Empirical Distribution
rvt

Generate Random Variables from a Student-t Sampling Model
rvnchains

Number of Markov Chains Used to Generate Simulations of a Random Vector
rvpermut

Random Vectors with a Permutation Distribution
rvunif

Generate Random Vectors from a Uniform Sampling Model
rvconst

Random Vector with a Point-Mass Distribution
rvattr

Attributes of Random Variables
rvcov

Covariance Between Components of Random Vectors
rvbern

Generate a Random Vector from a Bernoulli Sampling Model
rep.rv

Replicate Elements of Random Vectors
rvrange

Get the value range of an rv object
rvmatch

Generate a Random Vector from a Bernoulli Sampling Model
rvpois

Generate Random Vectors from a Poisson Sampling Model
rvhist

Histogram of Distributions of Components of a Random Vector
detachrv

Detach the rv package
rvsample

Draw a Sample from the Simulation Matrix of a Random Variable
rvmapply

Apply a function to multiple random vector arguments
rvneff

Number of Effective Draws in Each Component of a Random Variable
rvnorm

Generate Random Variables from a Gaussian (Normal) Sampling Model
ivplot

Interval plot
unlistrv

Flatten Lists Containing rv Objects
rvpar

Set or Query Parameters of the 'rv' Package
lines.rv

Add Connected (Random) Line Segments to a Plot
rvcut

Convert Numeric to Random Factor
rvgamma

Generate Random Variables from a Gamma Sampling Model
rvpredict

Generate predictions from models
rvmin

Get the min values of an rv object
rvmeanunif

The distribution of the mean of uniform random variables
plot.rv

Plotting Scatterplots of Random Variable Objects
rvquantile

Componentwise Quantiles of Random Variables
solve.rv

Random Vectors
summary.rv

Numerical Summary of a Random Variable
points.rv

Add Points and Intervals to a Plot
rvbeta

Generate Random Vectors from a Beta Sampling Model
rvbinom

Generate Random Variables from a Binomial Sampling Model
rvnsims

Number of simulations stored in each component of an rv object
rvdens

Sample from an arbitrary density function using grid approximation
rvsims

Create Random Vectors from Simulation Draws
splitbyname

Split a vector based on the names of the components
rvdirichlet

Generate Random Variables from a Dirichlet Sampling Model
rvsimapply

Apply a Function to Columns of the Matrix of Simulation of a Random Vector
sort.rv

Distribution of Order Statistics of a Random Vector