rnegbinomcor: Generate a vector from a negative binomial distribution...

Description Usage Arguments Details Value Author(s)

View source: R/correlatedsamplers.R

Description

Allow user to draw from a negative binomial distribution correlated with a user specified vector

Usage

1
rnegbinomcor(x, rho, scale = NULL, na.rm = FALSE)

Arguments

x

variable to draw from

rho

correlation coefficient between x and result of function

scale

a scale factor for the negative binomial draws

na.rm

a logical indicating whether to fit the distribution excluding missing values or to fail on missing values

Details

Rough estimate

Value

a vector of the same length as x drawn from a negative binomial distribution correlated with x at the level of rho

Author(s)

Jared E. Knowles


jknowles/datasynthR documentation built on May 19, 2019, 11:42 a.m.