N1binom | R Documentation |
Density, and random generation for the (four parameter bivariate) Linear Model–Bernoulli copula distribution.
dN1binom(x1, x2, mean = 0, sd = 1, prob, apar = 0,
copula = "gaussian", log = FALSE)
rN1binom(n, mean = 0, sd = 1, prob,
apar = 0, copula = "gaussian")
x1 , x2 |
vector of quantiles.
The valid values of |
n |
number of observations.
Same as |
copula |
See |
mean , sd , prob , apar |
See |
log |
Logical.
If |
See N1binomial
, the VGAM
family functions for estimating the
parameter by maximum likelihood estimation,
for details.
dN1binom
gives the probability density/mass function,
rN1binom
generates random deviate and returns
a two-column matrix.
T. W. Yee
N1binomial
,
rnorm
,
rbinom
.
## Not run:
nn <- 1000; apar <- rhobitlink(1.5, inverse = TRUE)
prob <- logitlink(0.5, inverse = TRUE)
mymu <- 1; sdev <- exp(1)
mat <- rN1binom(nn, mymu, sdev, prob, apar)
bndata <- data.frame(y1 = mat[, 1], y2 = mat[, 2])
with(bndata, plot(jitter(y1), jitter(y2), col = "blue"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.