# FDist: Fit of univariate distributions with censored data ignored by... In FitUltD: Fit Univariate Mixed and Usual Distributions

## Description

Fit of univariate distributions with censored data ignored by default or can be inputed.

## Usage

 ```1 2``` ```FDist(X, gen = 1, Cont = TRUE, inputNA, plot = FALSE, p.val_min = 0.05, crit = 2, DPQR = TRUE) ```

## Arguments

 `X` A random sample to be fitted. `gen` A positive integer, indicates the sample length to be generated by the fit, 1 by default. `Cont` TRUE, by default the distribution is considered as continuos. `inputNA` A number to replace censored values, if is missing, only non-censored values will be evaluated. `plot` FALSE. If TRUE, a plot showing the data distribution will be given. `p.val_min` 0.05, minimum p.value for Anderson Darling and KS Test to non-reject the null hypothesis and continue with the process. `crit` A positive integer to define which test will use. If 1, show the distributions which were non-rejected by the Anderson Darling or Kolmogorov Smirnov tests, in other cases the criterion is that they mustn't be rejected by both tests. `DPQR` TRUE, creates the distribution function, density and quantile function with the names dfit, pfit and qfit.

## Value

Calculate the distribution name with parameters, a function to reproduce random values from that distribution, a numeric vector of random numbers from that function, Anderson Darling and KS p.values, a plot showing the distribution difference between the real sample and the generated values and a list with the random deviates genetator, the distribution function, density and quantile function

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20``` ```set.seed(31109) FIT1<-FDist(rnorm(1000,10),p.val_min=.03,crit=1,plot=TRUE) #Random Variable FIT1[] #Random numbers generator FIT1[]() #Random sample FIT1[] #Goodness of fit tests results FIT1[] #Plot FIT1[] #Functions r, p, d, q FIT1[] ```

FitUltD documentation built on Sept. 11, 2019, 5:07 p.m.