Learn R Programming

discreteRV (version 1.2.2)

Create and Manipulate Discrete Random Variables

Description

Create, manipulate, transform, and simulate from discrete random variables. The syntax is modeled after that which is used in mathematical statistics and probability courses, but with powerful support for more advanced probability calculations. This includes the creation of joint random variables, and the derivation and manipulation of their conditional and marginal distributions.

Copy Link

Version

Install

install.packages('discreteRV')

Monthly Downloads

124

Version

1.2.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

September 16th, 2015

Functions in discreteRV (1.2.2)

V

Variance of a random variable
independent

Tests whether the random variables X and Y are independent
marginal

Marginal distribution of a joint random variable
as.RV

Turn a probability vector with possible outcome values in the 'names()' attribute into a random variable:
jointRV

Make a joint random variable consisting
KURT

Kurtosis of a random variable
P

Calculate probabilities of events
margins

Marginal distributions of a joint random variable
joint

Joint probability mass function of random variables X and Y
print.RV

Print a random variable of class "RV"
SKEW

Skewness of a random variable
skewSim

Skew of the empirical distribution of simulated data
qqnorm.RV

Normal quantile plot for RVs to answer the question how close to normal it is
plot.RV

Plot a random variable of class "RV"
props

Proportions of observed outcomes in one or more vectors of simulated trials
Prop

Proportion of an event observed in a vector of simulated trials
%OR%

Compute the logical OR of two events
%AND%

Compute the logical AND of two events
RV

Make a random variable consisting of possible outcome values and their probabilities or odds
iid

Probability mass function of X^n
rsim

Simulate n independent trials from a random variable X:
SofI

Sum of independent random variables
outcomes

Outcomes of random variable X
SofIID

Sum of independent identically distributed random variables
plot.RVsim

Plot a simulated random vector
probs

Probability mass function of random variable X
%in%

Generic method for in operator function
SD

Standard deviation of a random variable
E

Expected value of a random variable