Learn R Programming

FitUltD (version 3.0.0)

FDistUlt: Fit to a mixed univariate distributions

Description

Fit to a mixed univariate distributions

Usage

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 whe density functions, a random sample, a data frame with p.values results, the corresponding plots an the random numbers generator functions

Examples

Run this code
# NOT RUN {
X<-c(rnorm(73,189,12),rweibull(82,401,87),rgamma(90,40,19))
A_X<-FDistUlt(X,plot=TRUE,subplot=TRUE)
#A_X[[1]][[1]]()
#A_X[[2]]
#A_X[[3]]
#x11();A_X[[4]][[1]]
#x11();A_X[[4]][[2]]
#A_X[[5]][[1]]()


# }

Run the code above in your browser using DataLab