Learn R Programming

psychmeta (version 2.3.4)

.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)

Arguments

n

Number of values to generate

mean

Mean of the distribution

sd

Standard deviation of the distribution

Value

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

Examples

Run this code
# NOT RUN {
.rbeta(n = 10, mean = .8, sd, .2)
# }

Run the code above in your browser using DataLab