Learn R Programming

stochLAB (version 1.1.2)

rbeta_dmp: Customised sampling functions for the Beta distributions

Description

generate random samples from a beta distribution, parameterized as mean and sd, and returning NAs if conditions are not met

Usage

rbeta_dmp(n, p, sd)

Value

a vector of samples values from the beta distribution

Arguments

n

An integer value. The number of samples to generate

p

A decimal value. The value used to calculate parameters for the beta distribution

sd

A decimal value. The standard deviation of the beta distribution to simulate

Examples

Run this code
    rbeta_dmp(n=100,p=0.9,sd=0.01)

Run the code above in your browser using DataLab