Learn R Programming

psychmeta (version 2.6.5)

.rbeta: Generate values from a beta distribution, given a mean and standard deviation of the distribution

Description

Generate values from a beta distribution, given a mean and standard deviation of the distribution

Usage

.rbeta(n, mean, sd)

Value

A vector of simulated values from a distribution bounded at 0 and 1

Arguments

n

Number of values to generate

mean

Mean of the distribution

sd

Standard deviation of the distribution

Examples

Run this code
if (FALSE) {
.rbeta(n = 10, mean = .8, sd, .2)
}

Run the code above in your browser using DataLab