Learn R Programming

LNPar (version 1.1.3)

rpareto: Random number generation for a Pareto r.v.

Description

This function simulates random numbers for a Pareto r.v.

Usage

rpareto(n, xmin, alpha)

Value

n iid random numbers from the Pareto distribution.

Arguments

n

positive integer: number of simulated random numbers.

xmin

positive scalar: Pareto scale parameter.

alpha

non-negative scalar: Pareto shape parameter.

Examples

Run this code
ySim <- rpareto(5,4,1.5)

Run the code above in your browser using DataLab