Usage
nestsr(jj, nx, nn, ul, ur, zl, zr, x, y, a, b, sigma, day, enc, covar, n0, ntotal)
Arguments
jj
The number of time units(days) a nest is required to survive to be considered successful.
nx
The number of covariates.
nn
The number of observed nests (sample size).
ul
The youngest possible age that the nest could have been when first encounterd.
ur
The oldest possible age that the nest could have been when first encounterd.
zl
The smallest possible number of time units from the first encounter date to the outcome date.
zr
The largest possible number of time units from the first encounter date to the outcome date.
x
The nest-specific covariate-matrix.
a
The specified value for hyperparameter a. The prior gamma(a,b) is for age effect variances.
b
The specified value for hyperparameter b. The prior gamma(a,b) is for age effect variances.
sigma
The specified values for hyperparameters age-effect variances.
day
The iniital values for age effect of outcome rates.
enc
The initial values for age effect of encounter rates.
covar
The initial values for the coefficients for covariates.
n0
The number of burn-in cycles.
ntotal
The number of total Gibbs cycles.