author: Piotr Sulewski, Pomeranian University
Distributions derived from normal distribution are: two-piece power normal (TPPN), plasticizing component (PC), DS normal (DSN), expnormal (EN), Sulewski plasticizing component (SPC), easily changeable kurtosis (ECK) distributions. Density, distribution function, quantile function and random generation are presented. To read more about the package please see (and cite :)) papers:
You can install the released version of PSDistr from CRAN with:
You can install the development version of PSDistr from GitHub with:
ddsn, pdsn, qdsn, rdsn
Density, distribution function, quantile function and random generation for the DS Normal Distribution are calculated
library(PSDistr)
ddsn(-0.5,2,2,2,0)
#> [1] 1.053981
pdsn(-0.5,2,2,2,0)
#> [1] 0.7733726
qdsn(0.5,2,2,2,0)
#> [1] -0.6823278
rdsn(10,2,2,2,0)
#> [1] -0.6529664 -0.7102386 -0.4949421 -0.8596480 -1.0344504 -0.2407755
#> [7] -0.8469891 -0.8071926 -0.6879329 -0.7272779
deck, peck, qeck, reck
Density, distribution function, quantile function and random generation for the Easily Changeable Kurtosis Distribution are calculated
deck(1,2,3)
#> [1] 0.2307129
peck(1,2,3)
#> [1] 0.9294434
qeck(0.5,2,3)
#> [1] 0
reck(10,2,3)
#> [1] -0.499498764 0.535226976 -1.356703262 -0.000939346 0.882150359
#> [6] 1.519834273 0.175627854 -0.633157917 -0.783668929 -1.090810172
den, pen, qen, ren
Density, distribution function, quantile function and random generation for the Expnormal Distribution are calculated
den(1,1,2,2,2,1)
#> [1] 0.2666153
pen(1,1,2,2,2,1)
#> [1] 0.7279188
qen(0.5,1,2,2,2,1)
#> [1] 0.2909696
ren(10,1,2,2,2,1)
#> [1] -0.1784777 -0.3081824 1.2238767 0.1269517 2.5123768 -0.7839138
#> [7] -0.7072688 2.0514635 0.7582515 1.0907873
dpc, ppc, qpc, rpc
Density, distribution function, quantile function and random generation for the Plasticizing Component are calculated
dpc(0,1,2,2)
#> [1] 0.1933341
ppc(0,1,2,2)
#> [1] 0.4012937
qpc(0.5,1,2,2)
#> [1] 1
rpc(10,1,2,2)
#> [1] 0.1838732 1.6066715 -0.3287267 2.2978665 0.5166620 -0.5581222
#> [7] 0.2213994 2.0788694 2.7876198 1.9772443
dspc, pspc, qspc, rspc
Density, distribution function, quantile function and random generation for the Sulewski Plasticizing Component Distribution are calculated
dspc(0,1,1,1,1,0)
#> [1] 0.2419707
pspc(0,1,1,1,1,0)
#> [1] 0.8413447
qspc(0.5,1,1,1,1,0)
#> [1] -0.6823278
rspc(10,1,1,1,1,0)
#> [1] -0.5500140 -0.5768047 -0.6699699 -0.9199476 -0.9253605 -0.2290325
#> [7] -0.6966746 -0.8136724 -0.6192574 -0.5846010
dspc, pspc, qspc, rspc
Density, distribution function, quantile function and random generation for the Two-piece Power Normal distribution are calculated