R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(NormalLaplace)
Loading required package: DistributionUtils
Loading required package: RUnit
Loading required package: GeneralizedHyperbolic
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/NormalLaplace/nlFitStart.Rd_%03d_medium.png", width=480, height=480)
> ### Name: nlFitStart
> ### Title: Find Starting Values for Fitting a Normal Laplace Distribution
> ### Aliases: nlFitStart nlFitStartMoM
> ### Keywords: distribution
>
> ### ** Examples
>
> param <- c(2, 2, 1, 1)
> dataVector <- rnl(500, param = param)
> nlFitStart(dataVector, startValues = "MoM")
$paramStart
mu sigma alpha beta
0.3171165 2.0224550 5.8837492 6.3964890
$breaks
[1] -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6
[20] 7 8 9 10 11 12 13
$midpoints
[1] -11.5 -10.5 -9.5 -8.5 -7.5 -6.5 -5.5 -4.5 -3.5 -2.5 -1.5 -0.5
[13] 0.5 1.5 2.5 3.5 4.5 5.5 6.5 7.5 8.5 9.5 10.5 11.5
[25] 12.5
$empDens
[1] 0.002 0.002 0.004 0.016 0.012 0.034 0.024 0.058 0.062 0.076 0.080 0.094
[13] 0.088 0.112 0.074 0.072 0.060 0.046 0.036 0.024 0.008 0.006 0.004 0.004
[25] 0.002
$svName
[1] "Method of Moments"
$startValues
[1] "MoM"
>
>
>
>
>
> dev.off()
null device
1
>