Learn R Programming

Sim.DiffProc (version 2.5)

fctgeneral: Adjustment the Empirical Distribution of Random Variable X

Description

Adjusted your empirical distribution of Random Variable X.

Usage

fctgeneral(Data, Law = c("exp", "GAmma", "chisq", "Beta", "fisher",
                      "student", "weibull", "Normlog", "Norm"))

Arguments

Data
a numeric vector of the observed values.
Law
distribution function with Adjusted. see details Distributions (R >= 2.12.1)

Value

  • Plot the empirical distribution with Adjustment and Estimation.

Details

calculating the empirical distribution F[i]= (1/n)*Sum(V[i]) with V[i]= 1 if x[i] <= x="" else="" v[i]="0. And ajusted with the Distribution c("pexp","pgamma","pchisq", "pbeta","pf","pt","pweibull","plnorm","pnorm")

See Also

hist_general Histograms Methods,Kern_general Kernel Methods.

Examples

Run this code
X <- rgamma(100,1,4)
 par(mfrow=c(2,2))
 fctgeneral(Data=X,Law=("exp"))
 fctgeneral(Data=X,Law=("GAmma"))
 fctgeneral(Data=X,Law=("weibull"))
 fctgeneral(Data=X,Law=("Normlog"))

Run the code above in your browser using DataLab