cmidecdf | R Documentation |
Compute conditional mid-cumulative probabilities
cmidecdf(formula, data, ecdf_est = "npc", npc_args = list(),
theta = NULL, subset, weights, na.action,
contrasts = NULL)
cmidecdf.fit(x, y, intercept, ecdf_est, npc_args = list(),
theta = NULL)
formula |
an object of class " |
data |
an optional data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model. By default the variables are taken from the environment from which the call is made. |
ecdf_est |
estimator of the (standard) conditional cumulative distribution. The options are: |
npc_args |
named list of arguments for |
theta |
values of the Aranda-Ordaz transformation parameter for grid search when |
subset |
an optional vector specifying a subset of observations to be used in the fitting process. |
weights |
an optional vector of weights to be used in the fitting process. Not currently implemented. |
na.action |
a function which indicates what should happen when the data contain |
contrasts |
an optional list. See the contrasts.arg of |
x |
design matrix of dimension |
y |
vector of observations of length |
intercept |
logical flag. Does |
An object of class class
cmidecdf
with mid-cumulative probabilities. This is a list that contains:
G |
Estimated conditional mid-probabilities. This is a |
Fhat |
Estimated (standard) cumulative probabilities. |
Fse |
Standard error for Fhat. |
yo |
unique values of |
bw |
|
ecdf_est |
estimator used. |
Marco Geraci with contributions from Alessio Farcomeni
Geraci, M. and A. Farcomeni. Mid-quantile regression for discrete responses. arXiv:1907.01945 [stat.ME]. URL: https://arxiv.org/abs/1907.01945.
Li, Q. and J. S. Racine (2008). Nonparametric estimation of conditional cdf and quantile functions with mixed categorical and continuous data. Journal of Business and Economic Statistics 26(4), 423-434.
Peracchi, F. (2002). On estimating conditional quantiles and distribution functions. Computational Statistics and Data Analysis 38(4), 433-447.
midecdf
## Not run:
n <- 100
x <- rnorm(n, 0, 3)
y <- floor(1 + 2*x) + sample(1:5, n, replace = TRUE)
cmidecdf(y ~ x, ecdf_est = "logit")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.