Prop: Proportion of an event observed in a vector of simulated...

Description Usage Arguments Examples

Description

Proportion of an event observed in a vector of simulated trials

Usage

1
Prop(X.sim)

Arguments

X.sim

A simulated data vector produced with the 'rsim()' function

Examples

1
2
3
4
5
6
X <- RV(c(100000,10000,0), c(0.00025,0.005,0.99475))
X.sim <- rsim(X, 200000)

Prop(X.sim>0)
Prop(X.sim==100000)
Prop(X.sim==2000)

erichare/discreteRV documentation built on May 16, 2019, 8:27 a.m.