--- title: "Package DTDA.ni" author: "José Carlos Soage González" date: "`r Sys.Date()`" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Vignette Title} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ```{r setup, include = FALSE} knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ``` ### Doubly truncated data analysis, non iterative ### Description [package] This package implements a non-iterative estimator for the cumulative distribution of a doubly truncated variable, see [de Uña-Álvarez (2018)](https://link.springer.com/chapter/10.1007%2F978-3-319-73848-2_37). The package is restricted to interval sampling. de Uña-Álvarez J. (2018) A Non-iterative Estimator for Interval Sampling and Doubly Truncated Data. In: Gil E., Gil E., Gil J., Gil M. (eds) The Mathematics of the Uncertain. Studies in Systems, Decision and Control, vol 142. Springer, Cham, pp. 387-400. ## DTDAni(x, u , tau) ### Description [function DTDAni] This function calculates the non-iterative estimator for the cumulative distribution of a doubly truncated variable proposed by [de Uña-Álvarez (2018)](https://link.springer.com/chapter/10.1007%2F978-3-319-73848-2_37). The package works for interval sampling. ### Details [function DTDAni] The function DTDAni is adapted to the presence of ties. It can be used to compute the direct $(Fd)$ and the reverse $(Fr)$ estimators; see the example below. Both curves are valid estimators for the cumulative distribution $(F)$ of the doubly truncated variable. Weighted estimators $Fw = w*Fd + (1-w)*Fr$ with $0