Learn R Programming

PopED (version 0.7.0)

getTruncatedNormal: Generate a random sample from a truncated normal distribution.

Description

Generate a random sample from a truncated normal distribution.

Usage

getTruncatedNormal(mean, variance)

Value

A random sample from the specified truncated normal distribution

Arguments

mean

the mean of the normal distribution

variance

The variance of the normal distribution

Examples

Run this code

getTruncatedNormal(mean=3,variance=100)


Run the code above in your browser using DataLab