# FDistUlt: Fits a set of observations (random variable) to test whether... In FitUltD: Fit Univariate Mixed and Usual Distributions

## Description

Fits a set of observations (random variable) to test whether is drawn from a certain distribution

## Usage

 ```1 2``` ```FDistUlt(X, n.obs = length(X), ref = "OP", crt = 1, plot = FALSE, subplot = FALSE, p.val_min = 0.05) ```

## Arguments

 `X` A random sample to be fitted. `n.obs` A positive integer, is the length of the random sample to be generated `ref` Aumber of clusters to use by the kmeans function to split the distribution, if isn't a number, uses mclust classification by default. `crt` Criteria to be given to FDist() function `plot` FALSE. If TRUE, generates a plot of the density function. `subplot` FALSE. If TRUE, generates the plot of the mixed density function's partitions. `p.val_min` Minimum p.value to be given to non-reject the null hypothesis.

## Value

A list with the density functions, a random sample, a data frame with the KS and AD p.values results, the corresponding plots an the random numbers generator functions

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22``` ```set.seed(31109) X<-c(rnorm(193,189,12),rweibull(182,401,87),rgamma(190,40,19)) A_X<-FDistUlt(X,plot=TRUE,subplot=TRUE) A_X<-FDistUlt(X,plot=TRUE,subplot=TRUE,p.val_min=.005) # Functions generated A_X[][]() # Random sample A_X[] #Distributions A_X[] # Plots par(mfrow=c(1,2)) A_X[][] A_X[][] # More functions A_X[][]() ```

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