Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: hazreg
See also: harefit haresummary plothare

Quantlet: xhare
Description: Auxiliary quantlet for harefit and plot hare. Computes density, cumulative probability, hazard rates, quantiles, and random sample from a model fitter with harefit.

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.

Note:




Author: P. Cizek, W. Haerdle, 20010507 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006