Usage: |
z=xhare(iwhat,q,fit,covar)
|
Input: |
| iwhat | a scalar;
0 instructs xhare to compute cumulative probablity,
1 represents quantile computation,
2 correspond to computation of hazard rates, and
3 means computation of density
|
| q | vector of quantiles or probabilities. Missing values (NaNs) are allowed.
|
| fit | a list like the output from harefit.
|
| covar | covariates. There are several possibilities. If a vector of length
fit.ncov is provided, these covariates are used for all elements of p or
q or for all random numbers. If a matrix of dimension
length(q) by fit.ncov is provided, the rows of cov are
matched with the elements of q or every row of cov has its own
random number. If a matrix of dimension m times fit.ncov is provided,
while length(q) = 1, the single element of p or q is
used m times, or m random numbers with different sets of covariates are
generated.
|
Output: |
| z | Densities, hazard rates, probabilities,
quantiles, or a random sample from a hare density. |