Skip to contents

Generate n random numbers from density() object

Usage

rdensity(n, x, probs, bw)

Arguments

n

The total random numbers to generate

x

numeric vector

probs

probabilities for x

bw

bandwidth used in density()