mcpqest {mratios}R Documentation

Point and variance estimation for quantiles of independent groups of samples

Description

Computes the pth quantile and variances for groups of given samples in one-way anova layout. It has option for right censored data.

Usage

mcpqest(y, f, event = NULL, 
Right.Censored = FALSE, p = 0.5, ...)

Arguments

y

a numeric vector, the response variable. If Right.Censored = True, y is non-negative follow up time for right censored in survival data.

f

a factor variable of the same length as y, assigning the observations in y into k groups.

event

a binary variable indicating status for right censored data. Usually, 1 if event of interest has occurred (death = 1) and 0 otherwise (alive = 0).

Right.Censored

a logical expression indicating right-censored data is being used for constructing simultaneous confidence interval.

p

a single numeric value between 0 and 1 indicating the level of quantile for the contrasts. The default is p = 0.5 (the median).

...

further arguments to be passed to the internal methods, in particular: bw.selec is a single character string specifying the method of bandwidth selection when using right censored survival data; bw.selec= "plug-in".

Details

Mainly for internal use.

Value

a list with elements:

quantileEST

a numeric vector, the point estimates of quantiles for each factor level.

varEST

a numeric vector, the variance estimates for each factor level.

n

a numeric vector, the sample size of each factor level

Author(s)

Lawrence S. Segbehoe, Gemechis Dilba Djira, Frank Schaarschmidt (package inclusion)


[Package mratios version 1.4.2 Index]