[Distr-commits] r905 - branches/distr-2.5/pkg/distr branches/distr-2.5/pkg/distrMod branches/distr-2.5/pkg/distrMod/tests/Examples branches/distr-2.5/pkg/distrSim pkg/distr pkg/distr/R pkg/distr/inst pkg/distr/man pkg/distr/tests/Examples pkg/distrMod pkg/distrMod/R pkg/distrMod/inst pkg/distrMod/man pkg/distrMod/tests/Examples pkg/distrSim pkg/distrSim/R pkg/distrSim/inst pkg/distrSim/man pkg/distrSim/tests/Examples
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed Sep 11 15:26:22 CEST 2013
Author: ruckdeschel
Date: 2013-09-11 15:26:21 +0200 (Wed, 11 Sep 2013)
New Revision: 905
Added:
pkg/distr/R/makedots.R
pkg/distr/man/internalGenerics.Rd
pkg/distrSim/.Rbuildignore
pkg/distrSim/distrSim-Ex.R
Modified:
branches/distr-2.5/pkg/distr/DESCRIPTION
branches/distr-2.5/pkg/distrMod/DESCRIPTION
branches/distr-2.5/pkg/distrMod/tests/Examples/distrMod-Ex.Rout.save
branches/distr-2.5/pkg/distrSim/DESCRIPTION
pkg/distr/.Rbuildignore
pkg/distr/DESCRIPTION
pkg/distr/NAMESPACE
pkg/distr/R/AllGenerics.R
pkg/distr/R/plot-methods.R
pkg/distr/R/plot-methods_LebDec.R
pkg/distr/inst/NEWS
pkg/distr/man/0distr-package.Rd
pkg/distr/man/RtoDPQ.LC.Rd
pkg/distr/man/RtoDPQ.Rd
pkg/distr/man/operators-methods.Rd
pkg/distr/man/plot-methods.Rd
pkg/distr/man/qqplot.Rd
pkg/distr/tests/Examples/distr-Ex.Rout.save
pkg/distrMod/.Rbuildignore
pkg/distrMod/DESCRIPTION
pkg/distrMod/NAMESPACE
pkg/distrMod/R/0distrModUtils.R
pkg/distrMod/R/AllClass.R
pkg/distrMod/R/AllGeneric.R
pkg/distrMod/R/AllShow.R
pkg/distrMod/R/Estimate.R
pkg/distrMod/R/Estimator.R
pkg/distrMod/R/L2GroupFamilies.R
pkg/distrMod/R/L2ParamFamily.R
pkg/distrMod/R/MCEstimator.R
pkg/distrMod/R/MDEstimator.R
pkg/distrMod/R/MLEstimator.R
pkg/distrMod/R/SimpleL2ParamFamilies.R
pkg/distrMod/R/confint.R
pkg/distrMod/R/internalMleCalc.R
pkg/distrMod/R/modifyModel.R
pkg/distrMod/inst/NEWS
pkg/distrMod/inst/TOBEDONE
pkg/distrMod/man/0distrMod-package.Rd
pkg/distrMod/man/BetaFamily.Rd
pkg/distrMod/man/Estimator.Rd
pkg/distrMod/man/GammaFamily.Rd
pkg/distrMod/man/L2ParamFamily-class.Rd
pkg/distrMod/man/L2ParamFamily.Rd
pkg/distrMod/man/MCEstimator.Rd
pkg/distrMod/man/MDEstimator.Rd
pkg/distrMod/man/MLEstimator.Rd
pkg/distrMod/man/NBinomFamily.Rd
pkg/distrMod/man/ParamFamily-class.Rd
pkg/distrMod/man/internalClassUnions-class.Rd
pkg/distrMod/man/internalmleHelpers.Rd
pkg/distrMod/man/modifyModel-methods.Rd
pkg/distrMod/tests/Examples/distrMod-Ex.Rout.save
pkg/distrSim/DESCRIPTION
pkg/distrSim/NAMESPACE
pkg/distrSim/R/AllGenerics.R
pkg/distrSim/inst/NEWS
pkg/distrSim/man/0distrSim-package.Rd
pkg/distrSim/tests/Examples/distrSim-Ex.Rout.save
Log:
prepared distr-distrMod-distrSim-2.5-versions for submission
Modified: branches/distr-2.5/pkg/distr/DESCRIPTION
===================================================================
--- branches/distr-2.5/pkg/distr/DESCRIPTION 2013-09-11 12:57:39 UTC (rev 904)
+++ branches/distr-2.5/pkg/distr/DESCRIPTION 2013-09-11 13:26:21 UTC (rev 905)
@@ -1,5 +1,5 @@
Package: distr
-Version: 2.5
+Version: 2.5.1
Date: 2013-01-09
Title: Object oriented implementation of distributions
Description: S4 Classes and Methods for distributions
Modified: branches/distr-2.5/pkg/distrMod/DESCRIPTION
===================================================================
--- branches/distr-2.5/pkg/distrMod/DESCRIPTION 2013-09-11 12:57:39 UTC (rev 904)
+++ branches/distr-2.5/pkg/distrMod/DESCRIPTION 2013-09-11 13:26:21 UTC (rev 905)
@@ -1,5 +1,5 @@
Package: distrMod
-Version: 2.5
+Version: 2.5.1
Date: 2013-01-09
Title: Object oriented implementation of probability models
Description: Object oriented implementation of probability models based on packages 'distr' and
Modified: branches/distr-2.5/pkg/distrMod/tests/Examples/distrMod-Ex.Rout.save
===================================================================
--- branches/distr-2.5/pkg/distrMod/tests/Examples/distrMod-Ex.Rout.save 2013-09-11 12:57:39 UTC (rev 904)
+++ branches/distr-2.5/pkg/distrMod/tests/Examples/distrMod-Ex.Rout.save 2013-09-11 13:26:21 UTC (rev 905)
@@ -1,3060 +1,3372 @@
-
-R version 2.15.0 Patched (2012-05-26 r59450) -- "Easter Beagle"
-Copyright (C) 2012 The R Foundation for Statistical Computing
-ISBN 3-900051-07-0
-Platform: x86_64-unknown-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.
-
- Natural language support but running in an English locale
-
-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.
-
-> pkgname <- "distrMod"
-> source(file.path(R.home("share"), "R", "examples-header.R"))
-> options(warn = 1)
-> library('distrMod')
-Loading required package: startupmsg
-:startupmsg> Utilities for start-up messages (version 0.8)
-:startupmsg>
-:startupmsg> For more information see ?"startupmsg",
-:startupmsg> NEWS("startupmsg")
-
-Loading required package: distr
-Loading required package: sfsmisc
-Loading required package: SweaveListingUtils
-:SweaveListingUtils> Utilities for Sweave together with
-:SweaveListingUtils> TeX listings package (version 0.6)
-:SweaveListingUtils>
-:SweaveListingUtils> Some functions from package 'base'
-:SweaveListingUtils> are intentionally masked ---see
-:SweaveListingUtils> SweaveListingMASK().
-:SweaveListingUtils>
-:SweaveListingUtils> Note that global options are
-:SweaveListingUtils> controlled by
-:SweaveListingUtils> SweaveListingoptions() ---c.f.
-:SweaveListingUtils> ?"SweaveListingoptions".
-:SweaveListingUtils>
-:SweaveListingUtils> For more information see
-:SweaveListingUtils> ?"SweaveListingUtils",
-:SweaveListingUtils> NEWS("SweaveListingUtils")
-:SweaveListingUtils> There is a vignette to this
-:SweaveListingUtils> package; try
-:SweaveListingUtils> vignette("ExampleSweaveListingUtils").
-
-
-Attaching package: ‘SweaveListingUtils’
-
-The following object(s) are masked from ‘package:base’:
-
- library, require
-
-:distr> Object oriented implementation of distributions (version
-:distr> 2.4)
-:distr>
-:distr> Attention: Arithmetics on distribution objects are
-:distr> understood as operations on corresponding random variables
-:distr> (r.v.s); see distrARITH().
-:distr>
-:distr> Some functions from package 'stats' are intentionally masked
-:distr> ---see distrMASK().
-:distr>
-:distr> Note that global options are controlled by distroptions()
-:distr> ---c.f. ?"distroptions".
-:distr>
-:distr> For more information see ?"distr", NEWS("distr"), as well as
-:distr> http://distr.r-forge.r-project.org/
-:distr> Package "distrDoc" provides a vignette to this package as
-:distr> well as to several extension packages; try
-:distr> vignette("distr").
-
-
-Attaching package: ‘distr’
-
-The following object(s) are masked from ‘package:stats’:
-
- df, qqplot, sd
-
-Loading required package: distrEx
-:distrEx> Extensions of package distr (version 2.4)
-:distrEx>
-:distrEx> Note: Packages "e1071", "moments", "fBasics" should be
-:distrEx> attached /before/ package "distrEx". See
-:distrEx> distrExMASK().Note: Extreme value distribution
-:distrEx> functionality has been moved to
-:distrEx>
-:distrEx> package "RobExtremes". See distrExMOVED().
-:distrEx>
-:distrEx> For more information see ?"distrEx", NEWS("distrEx"), as
-:distrEx> well as
-:distrEx> http://distr.r-forge.r-project.org/
-:distrEx> Package "distrDoc" provides a vignette to this package
-:distrEx> as well as to several related packages; try
-:distrEx> vignette("distr").
-
-
-Attaching package: ‘distrEx’
-
-The following object(s) are masked from ‘package:stats’:
-
- IQR, mad, median, var
-
-Loading required package: RandVar
-:RandVar> Implementation of random variables (version 0.8.1)
-:RandVar>
-:RandVar> For more information see ?"RandVar", NEWS("RandVar"), as
-:RandVar> well as
-:RandVar> http://robast.r-forge.r-project.org/
-:RandVar> This package also includes a vignette; try
-:RandVar> vignette("RandVar").
-
-Loading required package: MASS
-Loading required package: stats4
-:distrMod> Object oriented implementation of probability models
-:distrMod> (version 2.4)
-:distrMod>
-:distrMod> Some functions from pkg's 'base' and 'stats' are
-:distrMod> intentionally masked ---see distrModMASK().
-:distrMod>
-:distrMod> Note that global options are controlled by
-:distrMod> distrModoptions() ---c.f. ?"distrModoptions".
-:distrMod>
-:distrMod> For more information see ?"distrMod",
-:distrMod> NEWS("distrMod"), as well as
-:distrMod> http://distr.r-forge.r-project.org/
-:distrMod> There is a vignette to this package; try
-:distrMod> vignette("distrMod").
-:distrMod> Package "distrDoc" provides a vignette to the other
-:distrMod> distrXXX packages,
-:distrMod> as well as to several related packages; try
-:distrMod> vignette("distr").
-
-
-Attaching package: ‘distrMod’
-
-The following object(s) are masked from ‘package:stats4’:
-
- confint
-
-The following object(s) are masked from ‘package:stats’:
-
- confint
-
-The following object(s) are masked from ‘package:base’:
-
- norm
-
->
-> assign(".oldSearch", search(), pos = 'CheckExEnv')
-> cleanEx()
-> nameEx("BetaFamily")
-> ### * BetaFamily
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: BetaFamily
-> ### Title: Generating function for Beta families
-> ### Aliases: BetaFamily
-> ### Keywords: models
->
-> ### ** Examples
->
-> (B1 <- BetaFamily())
-An object of class "BetaFamily"
-### name: Beta family
-
-### distribution: Distribution Object of Class: Beta
- shape1: 1
- shape2: 1
- ncp: 0
-
-### param: An object of class "ParamFamParameter"
-name: shape1 and shape2
-shape1: 1
-shape2: 1
-trafo:
- shape1 shape2
-shape1 1 0
-shape2 0 1
-
-### props:
-[1] "The Beta family is invariant in the following sense"
-[2] "if (x_i)~Beta(s1,s2) then (1-x_i)~Beta(s2,s1)"
-> FisherInfo(B1)
-An object of class "PosSemDefSymmMatrix"
- shape1 shape2
-shape1 1.0000000 -0.6449341
-shape2 -0.6449341 1.0000000
-> checkL2deriv(B1)
-precision of centering: 3.96327e-05 3.963591e-05
-precision of Fisher information:
- shape1 shape2
-shape1 -1.851068e-05 1.648326e-06
-shape2 1.648326e-06 -1.851068e-05
-$maximum.deviation
-[1] 3.963591e-05
-
->
->
->
-> cleanEx()
-> nameEx("BiasType-class")
-> ### * BiasType-class
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: BiasType-class
-> ### Title: Bias Type
-> ### Aliases: BiasType-class name,BiasType-method name<-,BiasType-method
-> ### Keywords: classes
->
-> ### ** Examples
->
-> aB <- positiveBias()
-> name(aB)
-[1] "positive Bias"
->
->
->
-> cleanEx()
-> nameEx("BinomFamily")
-> ### * BinomFamily
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: BinomFamily
-> ### Title: Generating function for Binomial families
-> ### Aliases: BinomFamily
-> ### Keywords: models
->
-> ### ** Examples
->
-> (B1 <- BinomFamily(size = 25, prob = 0.25))
-An object of class "BinomFamily"
-### name: Binomial family
-
-### distribution: Distribution Object of Class: Binom
- size: 25
- prob: 0.25
-
-### param: An object of class "ParamFamParameter"
-name: probability of success
-prob: 0.25
-fixed part of param.:
- size: 25
-trafo:
- prob
-prob 1
-
-### props:
-[1] "The Binomial family is symmetric with respect to prob = 0.5;"
-[2] "i.e., d(Binom(size, prob))(k)=d(Binom(size,1-prob))(size-k)"
-> plot(B1)
-> FisherInfo(B1)
-An object of class "PosSemDefSymmMatrix"
- prob
-prob 133.3333
-> checkL2deriv(B1)
-precision of centering: -6.965857e-16
-precision of Fisher information:
- prob
-prob 2.842171e-14
-$maximum.deviation
-[1] 2.842171e-14
-
->
->
->
-> cleanEx()
-> nameEx("CauchyLocationScaleFamily")
-> ### * CauchyLocationScaleFamily
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: CauchyLocationScaleFamily
-> ### Title: Generating function for Cauchy location and scale families
-> ### Aliases: CauchyLocationScaleFamily
-> ### Keywords: models
->
-> ### ** Examples
->
-> (C1 <- CauchyLocationScaleFamily())
-An object of class "CauchyLocationScaleFamily"
-### name: Cauchy Location and scale family
-
-### distribution: Distribution Object of Class: Cauchy
- location: 0
- scale: 1
-
-### param: An object of class "ParamWithScaleFamParameter"
-name: location and scale
-loc: 0
-scale: 1
-trafo:
- loc scale
-loc 1 0
-scale 0 1
-
-### props:
-[1] "The Cauchy Location and scale family is invariant under"
-[2] "the group of transformations 'g(x) = scale*x + loc'"
-[3] "with location parameter 'loc' and scale parameter 'scale'"
-> plot(C1)
-> FisherInfo(C1)
-An object of class "PosDefSymmMatrix"
- loc scale
-loc 0.5 0.0
-scale 0.0 0.5
-> ### need smaller integration range:
-> distrExoptions("ElowerTruncQuantile"=1e-4,"EupperTruncQuantile"=1e-4)
-> checkL2deriv(C1)
-precision of centering: 0 -0.02119711
-precision of Fisher information:
- loc scale
-loc -3.137524e-05 0.00000000
-scale 0.000000e+00 -0.02118143
-$maximum.deviation
-[1] 0.02119711
-
-> distrExoptions("ElowerTruncQuantile"=1e-7,"EupperTruncQuantile"=1e-7)
->
->
->
-> cleanEx()
-> nameEx("Confint-class")
-> ### * Confint-class
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: Confint-class
-> ### Title: Confint-class
-> ### Aliases: Confint-class type,Confint-method call.estimate
-> ### call.estimate,Confint-method confint,Confint,missing-method
-> ### name.estimate name.estimate,Confint-method trafo.estimate
-> ### trafo.estimate,Confint-method samplesize.estimate
-> ### samplesize.estimate,Confint-method completecases.estimate
-> ### completecases.estimate,Confint-method nuisance.estimate
-> ### nuisance.estimate,Confint-method fixed.estimate
-> ### fixed.estimate,Confint-method show,Confint-method
-> ### print,Confint-method
-> ### Keywords: classes
->
-> ### ** Examples
->
-> ## some transformation
-> mtrafo <- function(x){
-+ nms0 <- c("scale","shape")
-+ nms <- c("shape","rate")
-+ fval0 <- c(x[2], 1/x[1])
-+ names(fval0) <- nms
-+ mat0 <- matrix( c(0, -1/x[1]^2, 1, 0), nrow = 2, ncol = 2,
-+ dimnames = list(nms,nms0))
-+ list(fval = fval0, mat = mat0)}
->
-> x <- rgamma(50, scale = 0.5, shape = 3)
->
-> ## parametric family of probability measures
-> G <- GammaFamily(scale = 1, shape = 2, trafo = mtrafo)
-> ## MLE
-> res <- MLEstimator(x = x, ParamFamily = G)
-> ci <- confint(res)
-> print(ci, digits = 4, show.details="maximal")
-A[n] asymptotic (CLT-based) confidence interval:
- 2.5 % 97.5 %
-shape 2.530 5.591
-rate 1.751 4.097
-Type of estimator: Maximum likelihood estimate
-samplesize: 50
-Call by which estimate was produced:
-MLEstimator(x = x, ParamFamily = G)
-Transformation of main parameter by which estimate was produced:
-function (x)
-{
- nms0 <- c("scale", "shape")
- nms <- c("shape", "rate")
- fval0 <- c(x[2], 1/x[1])
- names(fval0) <- nms
- mat0 <- matrix(c(0, -1/x[1]^2, 1, 0), nrow = 2, ncol = 2,
- dimnames = list(nms, nms0))
- list(fval = fval0, mat = mat0)
-}
-Trafo / derivative matrix at which estimate was produced:
- scale shape
-shape 0.000 1
-rate -8.549 0
-> print(ci, digits = 4, show.details="medium")
-A[n] asymptotic (CLT-based) confidence interval:
- 2.5 % 97.5 %
-shape 2.530 5.591
-rate 1.751 4.097
-Type of estimator: Maximum likelihood estimate
-samplesize: 50
-Call by which estimate was produced:
-MLEstimator(x = x, ParamFamily = G)
-> print(ci, digits = 4, show.details="minimal")
-A[n] asymptotic (CLT-based) confidence interval:
- 2.5 % 97.5 %
-shape 2.530 5.591
-rate 1.751 4.097
->
->
->
-> cleanEx()
-> nameEx("Estimate-class")
-> ### * Estimate-class
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: Estimate-class
-> ### Title: Estimate-class.
-> ### Aliases: Estimate-class name,Estimate-method name<-,Estimate-method
-> ### estimate estimate,Estimate-method estimate.call
-> ### estimate.call,Estimate-method Infos Infos,Estimate-method samplesize
-> ### samplesize,Estimate-method completecases
-> ### completecases,Estimate-method asvar asvar,Estimate-method
-> ### fixed,Estimate-method asvar<- asvar<-,Estimate-method
-> ### nuisance,Estimate-method main,Estimate-method Infos<-
-> ### Infos<-,Estimate-method addInfo<- addInfo<-,Estimate-method
-> ### show,Estimate-method print,Estimate-method untransformed.estimate
-> ### untransformed.estimate,Estimate-method untransformed.asvar
-> ### untransformed.asvar,Estimate-method
-> ### Keywords: classes
->
-> ### ** Examples
->
-> x <- rnorm(100)
-> Estimator(x, estimator = mean, name = "mean")
-Evaluations of mean:
---------------------
-An object of class “Estimate”
-generated by call
- Estimator(x = x, estimator = mean, name = "mean")
-samplesize: 100
-estimate:
- mean1
-0.1088874
->
-> x1 <- x; x1[sample(1:100,10)] <- NA
-> myEst1 <- Estimator(x1, estimator = mean, name = "mean")
-> samplesize(myEst1)
-[1] 90
-> samplesize(myEst1, onlycomplete = FALSE)
-[1] 100
->
->
->
-> cleanEx()
-> nameEx("Estimator")
-> ### * Estimator
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: Estimator
-> ### Title: Function to compute estimates
-> ### Aliases: Estimator
-> ### Keywords: univar
->
-> ### ** Examples
->
-> x <- rnorm(100)
-> Estimator(x, estimator = mean, name = "mean")
-Evaluations of mean:
---------------------
-An object of class “Estimate”
-generated by call
- Estimator(x = x, estimator = mean, name = "mean")
-samplesize: 100
-estimate:
- mean1
-0.1088874
->
-> X <- matrix(rnorm(1000), nrow = 10)
-> Estimator(X, estimator = rowMeans, name = "mean")
-Evaluations of mean:
---------------------
-An object of class “Estimate”
-generated by call
- Estimator(x = X, estimator = rowMeans, name = "mean")
-samplesize: 100
-estimate:
- rowMeans1 rowMeans2 rowMeans3 rowMeans4 rowMeans5 rowMeans6
--0.10612810 0.22309674 -0.01146361 -0.20224815 0.08660978 -0.13837167
- rowMeans7 rowMeans8 rowMeans9 rowMeans10
--0.03214991 -0.02971528 -0.13027892 0.10496336
->
->
->
-> cleanEx()
-> nameEx("EvenSymmetric-class")
-> ### * EvenSymmetric-class
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: EvenSymmetric-class
-> ### Title: Class for Even Functions
-> ### Aliases: EvenSymmetric-class
-> ### Keywords: classes
->
-> ### ** Examples
->
-> new("EvenSymmetric")
-type of symmetry: even function
-center of symmetry:
-numeric(0)
->
->
->
-> cleanEx()
-> nameEx("EvenSymmetric")
-> ### * EvenSymmetric
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: EvenSymmetric
-> ### Title: Generating function for EvenSymmetric-class
-> ### Aliases: EvenSymmetric
-> ### Keywords: math
->
-> ### ** Examples
->
-> EvenSymmetric()
-type of symmetry: even function
-center of symmetry:
-[1] 0
->
-> ## The function is currently defined as
-> function(SymmCenter = 0){
-+ new("EvenSymmetric", SymmCenter = SymmCenter)
-+ }
-function (SymmCenter = 0)
-{
- new("EvenSymmetric", SymmCenter = SymmCenter)
-}
->
->
->
-> cleanEx()
-> nameEx("ExpScaleFamily")
-> ### * ExpScaleFamily
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: ExpScaleFamily
-> ### Title: Generating function for exponential scale families
-> ### Aliases: ExpScaleFamily
-> ### Keywords: models
->
-> ### ** Examples
->
-> (E1 <- ExpScaleFamily())
-An object of class "ExpScaleFamily"
-### name: Exponential scale family
-
-### distribution: Distribution Object of Class: Exp
- rate: 1
-Warning in show(x) :
- arithmetics on distributions are understood as operations on r.v.'s
-see 'distrARITH()'; for switching off this warning see '?distroptions'
-
-### param: An object of class "ParamWithScaleFamParameter"
-name: scale
-scale: 1
-trafo:
- scale
-scale 1
-
-### props:
-[1] "The Exponential scale family is invariant under"
-[2] "the group of transformations 'g(y) = scale*y'"
-[3] "with scale parameter 'scale'"
-> plot(E1)
-> Map(L2deriv(E1)[[1]])
-[[1]]
-function (x)
-{
- ((x - 0)/1 * LogDeriv((x - 0)/1) - 1)/1
-}
-<environment: 0x6fb8da0>
-
-> checkL2deriv(E1)
-precision of centering: -1.51181e-06
-precision of Fisher information:
- scale
-scale -2.61793e-05
-$maximum.deviation
-[1] 2.61793e-05
-
->
->
->
-> cleanEx()
-> nameEx("FunSymmList-class")
-> ### * FunSymmList-class
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: FunSymmList-class
-> ### Title: List of Symmetries for a List of Functions
-> ### Aliases: FunSymmList-class
-> ### Keywords: classes
->
-> ### ** Examples
->
-> new("FunSymmList", list(NonSymmetric(), EvenSymmetric(SymmCenter = 1),
-+ OddSymmetric(SymmCenter = 2)))
-An object of class "FunSymmList"
-[[1]]
-type of symmetry: non-symmetric function
-NULL
-
-[[2]]
-type of symmetry: even function
-center of symmetry:
-[1] 1
-
-[[3]]
-type of symmetry: odd function
-center of symmetry:
-[1] 2
-
->
->
->
-> cleanEx()
-> nameEx("FunSymmList")
-> ### * FunSymmList
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: FunSymmList
-> ### Title: Generating function for FunSymmList-class
-> ### Aliases: FunSymmList
-> ### Keywords: math
->
-> ### ** Examples
->
-> FunSymmList(NonSymmetric(), EvenSymmetric(SymmCenter = 1),
-+ OddSymmetric(SymmCenter = 2))
-An object of class "FunSymmList"
-[[1]]
-type of symmetry: non-symmetric function
-NULL
-
-[[2]]
-type of symmetry: even function
-center of symmetry:
-[1] 1
-
-[[3]]
-type of symmetry: odd function
-center of symmetry:
-[1] 2
-
->
-> ## The function is currently defined as
-> function (...){
-+ new("FunSymmList", list(...))
-+ }
-function (...)
-{
- new("FunSymmList", list(...))
-}
->
->
->
-> cleanEx()
-> nameEx("GammaFamily")
-> ### * GammaFamily
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: GammaFamily
-> ### Title: Generating function for Gamma families
-> ### Aliases: GammaFamily
-> ### Keywords: models
->
-> ### ** Examples
->
-> (G1 <- GammaFamily())
-An object of class "GammaFamily"
-### name: Gamma family
-
-### distribution: Distribution Object of Class: Gammad
- shape: 1
- scale: 1
-
-### param: An object of class "ParamFamParameter"
-name: scale and shape
-scale: 1
-shape: 1
-trafo:
- scale shape
-scale 1 0
-shape 0 1
-Shape parameter must not be negative.
-
-### props:
-[1] "The Gamma family is scale invariant via the parametrization"
-[2] "'(nu,shape)=(log(scale),shape)'"
-> FisherInfo(G1)
-An object of class "PosDefSymmMatrix"
- scale shape
-scale 1 1.000000
-shape 1 1.644934
-> checkL2deriv(G1)
-precision of centering: -1.51181e-06 1.312514e-06
-precision of Fisher information:
- scale shape
-scale -2.617930e-05 -7.165188e-06
-shape -7.165188e-06 -2.862712e-05
-$maximum.deviation
-[1] 2.862712e-05
-
->
->
->
-> cleanEx()
-> nameEx("InfoNorm")
-> ### * InfoNorm
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: InfoNorm
-> ### Title: Generating function for InfoNorm-class
-> ### Aliases: InfoNorm
-> ### Keywords: robust
->
-> ### ** Examples
->
-> InfoNorm()
-An object of class "InfoNorm"
-Slot "QuadForm":
-An object of class "PosSemDefSymmMatrix"
- [,1]
-[1,] 1
-
-Slot "name":
-[1] "Information matrix Norm"
-
-Slot "fct":
-function (x)
-QuadFormNorm(x, A = A)
-<bytecode: 0x786cbd8>
-<environment: 0x786ca18>
-
->
-> ## The function is currently defined as
-> function(){ new("InfoNorm") }
-function ()
-{
- new("InfoNorm")
-}
->
->
->
-> cleanEx()
-> nameEx("L2GroupFamily-class")
-> ### * L2GroupFamily-class
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: L2GroupParamFamily-class
-> ### Title: L2 differentiable parametric group family
-> ### Aliases: L2GroupParamFamily-class LogDeriv
-> ### LogDeriv,L2GroupParamFamily-method LogDeriv<-
-> ### LogDeriv<-,L2GroupParamFamily-method
-> ### Keywords: classes models
->
-> ### ** Examples
->
-> F1 <- new("L2GroupParamFamily")
-> plot(F1)
->
->
->
-> cleanEx()
-> nameEx("L2LocationFamily-class")
-> ### * L2LocationFamily-class
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: L2LocationFamily-class
-> ### Title: L2 differentiable parametric group family
-> ### Aliases: L2LocationFamily-class
-> ### Keywords: classes models
->
-> ### ** Examples
->
-> F1 <- new("L2LocationFamily")
-> plot(F1)
->
->
->
-> cleanEx()
-> nameEx("L2LocationFamily")
-> ### * L2LocationFamily
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: L2LocationFamily
-> ### Title: Generating function for L2LocationFamily-class
-> ### Aliases: L2LocationFamily
-> ### Keywords: models
->
-> ### ** Examples
->
-> F1 <- L2LocationFamily()
-> plot(F1)
->
->
->
-> cleanEx()
-> nameEx("L2LocationScaleFamily-class")
-> ### * L2LocationScaleFamily-class
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: L2LocationScaleFamily-class
-> ### Title: L2 differentiable parametric group family
-> ### Aliases: L2LocationScaleFamily-class
-> ### Keywords: classes models
->
-> ### ** Examples
->
-> F1 <- new("L2LocationScaleFamily")
-> plot(F1)
->
->
->
-> cleanEx()
-> nameEx("L2LocationScaleFamily")
-> ### * L2LocationScaleFamily
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: L2LocationScaleFamily
-> ### Title: Generating function for L2LocationScaleFamily-class
-> ### Aliases: L2LocationScaleFamily
-> ### Keywords: models
->
-> ### ** Examples
->
-> F1 <- L2LocationScaleFamily()
-> plot(F1)
->
->
->
-> cleanEx()
-> nameEx("L2LocationUnknownScaleFamily")
-> ### * L2LocationUnknownScaleFamily
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: L2LocationUnknownScaleFamily
-> ### Title: Generating function for L2LocationScaleFamily-class in nuisance
-> ### situation
-> ### Aliases: L2LocationUnknownScaleFamily
-> ### Keywords: models
->
-> ### ** Examples
->
-> F1 <- L2LocationUnknownScaleFamily()
-> plot(F1)
->
->
->
-> cleanEx()
-> nameEx("L2ParamFamily-class")
-> ### * L2ParamFamily-class
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: L2ParamFamily-class
-> ### Title: L2 differentiable parametric family
-> ### Aliases: plot plot-methods L2ParamFamily-class FisherInfo
-> ### FisherInfo,L2ParamFamily,missing-method
-> ### FisherInfo,L2ParamFamily,ParamFamParameter-method L2deriv
-> ### L2deriv,L2ParamFamily,missing-method
-> ### L2deriv,L2ParamFamily,ParamFamParameter-method L2derivSymm
-> ### L2derivSymm,L2ParamFamily-method L2derivDistr
-> ### L2derivDistr,L2ParamFamily-method L2derivDistrSymm
-> ### L2derivDistrSymm,L2ParamFamily-method
-> ### checkL2deriv,L2ParamFamily-method
-> ### E,L2ParamFamily,EuclRandVariable,missing-method
-> ### E,L2ParamFamily,EuclRandMatrix,missing-method
-> ### E,L2ParamFamily,EuclRandVarList,missing-method
-> ### plot,L2ParamFamily,missing-method
-> ### Keywords: classes models
->
-> ### ** Examples
->
-> F1 <- new("L2ParamFamily")
-> plot(F1)
->
-> ## selection of subpanels for plotting
-> F2 <- L2LocationScaleFamily()
-> layout(matrix(c(1,2,3,3), nrow=2, byrow=TRUE))
-> plot(F2,mfColRow = FALSE,
-+ to.draw.arg=c("p","q","loc"))
-> plot(F2,mfColRow = FALSE, inner=list("empirical cdf","pseudo-inverse",
-+ "L2-deriv, loc.part"), to.draw.arg=c("p","q","loc"))
->
->
->
-> cleanEx()
-> nameEx("L2ParamFamily")
-> ### * L2ParamFamily
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: L2ParamFamily
-> ### Title: Generating function for L2ParamFamily-class
-> ### Aliases: L2ParamFamily
-> ### Keywords: models
->
-> ### ** Examples
->
-> F1 <- L2ParamFamily()
-> plot(F1)
->
->
->
-> cleanEx()
-> nameEx("L2ScaleFamily-class")
-> ### * L2ScaleFamily-class
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: L2ScaleFamily-class
-> ### Title: L2 differentiable parametric group family
-> ### Aliases: L2ScaleFamily-class
-> ### Keywords: classes models
->
-> ### ** Examples
->
-> F1 <- new("L2ScaleFamily")
-> plot(F1)
->
->
->
-> cleanEx()
-> nameEx("L2ScaleFamily")
-> ### * L2ScaleFamily
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: L2ScaleFamily
-> ### Title: Generating function for L2ScaleFamily-class
-> ### Aliases: L2ScaleFamily
-> ### Keywords: models
->
-> ### ** Examples
->
-> F1 <- L2ScaleFamily()
-> plot(F1)
->
->
->
-> cleanEx()
-> nameEx("L2ScaleUnknownLocationFamily")
-> ### * L2ScaleUnknownLocationFamily
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: L2ScaleUnknownLocationFamily
-> ### Title: Generating function for L2LocationScaleFamily-class in nuisance
-> ### situation
-> ### Aliases: L2ScaleUnknownLocationFamily
-> ### Keywords: models
->
-> ### ** Examples
->
-> F1 <- L2ScaleUnknownLocationFamily()
-> plot(F1)
->
->
->
-> cleanEx()
-> nameEx("LnormScaleFamily")
-> ### * LnormScaleFamily
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: LnormScaleFamily
-> ### Title: Generating function for lognormal scale families
-> ### Aliases: LnormScaleFamily
-> ### Keywords: models
->
-> ### ** Examples
->
-> (L1 <- LnormScaleFamily())
-An object of class "LnormScaleFamily"
-### name: lognormal scale family
-
-### distribution: Distribution Object of Class: Lnorm
- meanlog: 0
- sdlog: 1
-Warning in show(x) :
- arithmetics on distributions are understood as operations on r.v.'s
-see 'distrARITH()'; for switching off this warning see '?distroptions'
-
-### param: An object of class "ParamWithScaleFamParameter"
-name: scale
-meanlog: 1
-fixed part of param.:
- : 0
-trafo:
- scale
-scale 1
-
-### props:
-[1] "The lognormal scale family is invariant under"
-[2] "the group of transformations 'g(y) = scale*y'"
-[3] "with scale parameter 'scale'"
-> plot(L1)
-> Map(L2deriv(L1)[[1]])
-[[1]]
-function (x)
-{
- ((x - 0)/1 * LogDeriv((x - 0)/1) - 1)/1
-}
-<environment: 0x89c7610>
-
-> checkL2deriv(L1)
-precision of centering: -0.003003394
-precision of Fisher information:
- meanlog
-meanlog -0.01027919
-$maximum.deviation
-[1] 0.01027919
-
->
->
->
-> cleanEx()
-> nameEx("MCEstimate-class")
-> ### * MCEstimate-class
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: MCEstimate-class
-> ### Title: MCEstimate-class.
-> ### Aliases: MCEstimate-class criterion criterion,MCEstimate-method
-> ### criterion.fct criterion.fct,MCEstimate-method
-> ### startPar,MCEstimate-method method method,MCEstimate-method optimwarn
-> ### optimwarn,MCEstimate-method criterion<- criterion<-,MCEstimate-method
-> ### coerce,MCEstimate,mle-method show,MCEstimate-method
-> ### profile,MCEstimate-method
-> ### Keywords: classes
->
-> ### ** Examples
->
-> ## (empirical) Data
-> x <- rgamma(50, scale = 0.5, shape = 3)
->
-> ## parametric family of probability measures
-> G <- GammaFamily(scale = 1, shape = 2)
->
-> MDEstimator(x, G)
-Evaluations of Minimum Kolmogorov distance estimate:
-----------------------------------------------------
-An object of class “Estimate”
-generated by call
- MDEstimator(x = x, ParamFamily = G)
-samplesize: 50
-estimate:
- scale shape
-0.3398645 4.2654569
-Criterion:
-Kolmogorov distance
- 0.06350364
-> (m <- MLEstimator(x, G))
-Evaluations of Maximum likelihood estimate:
--------------------------------------------
-An object of class “Estimate”
-generated by call
- MLEstimator(x = x, ParamFamily = G)
-samplesize: 50
-estimate:
- scale shape
- 0.34200800 4.06028564
- (0.07002713) (0.78099026)
-asymptotic (co)variance (multiplied with samplesize):
- scale shape
-scale 0.2451899 -2.568863
-shape -2.5688629 30.497289
-Criterion:
-negative log-likelihood
- 47.9651
-> m.mle <- as(m,"mle")
-> par(mfrow=c(1,2))
-> profileM <- profile(m)
-> ## plot-profile throws an error
->
->
->
-> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
-> cleanEx()
-> nameEx("MCEstimator")
-> ### * MCEstimator
->
-> flush(stderr()); flush(stdout())
->
-> ### Name: MCEstimator
-> ### Title: Function to compute minimum criterion estimates
-> ### Aliases: MCEstimator
-> ### Keywords: univar
->
-> ### ** Examples
->
-> ## (empirical) Data
-> x <- rgamma(50, scale = 0.5, shape = 3)
->
-> ## parametric family of probability measures
-> G <- GammaFamily(scale = 1, shape = 2)
->
-> ## Maximum Likelihood estimator
-> ## Note: you can directly use function MLEstimator!
-> negLoglikelihood <- function(x, Distribution){
-+ res <- -sum(log(Distribution at d(x)))
-+ names(res) <- "Negative Log-Likelihood"
-+ return(res)
-+ }
-> MCEstimator(x = x, ParamFamily = G, criterion = negLoglikelihood)
-Evaluations of Minimum criterion estimate:
-------------------------------------------
-An object of class “Estimate”
-generated by call
- MCEstimator(x = x, ParamFamily = G, criterion = negLoglikelihood)
-samplesize: 50
-estimate:
- scale shape
- 0.34200800 4.06028564
- (0.07002713) (0.78099026)
-asymptotic (co)variance (multiplied with samplesize):
- scale shape
-scale 0.2451899 -2.568863
-shape -2.5688629 30.497289
-Criterion:
-
-47.9651
->
-> ## Kolmogorov(-Smirnov) minimum distance estimator
-> ## Note: you can also use function MDEstimator!
-> MCEstimator(x = x, ParamFamily = G, criterion = KolmogorovDist,
-+ crit.name = "Kolmogorov distance")
-Evaluations of Minimum Kolmogorov distance estimate:
-----------------------------------------------------
-An object of class “Estimate”
-generated by call
- MCEstimator(x = x, ParamFamily = G, criterion = KolmogorovDist,
- crit.name = "Kolmogorov distance")
-samplesize: 50
-estimate:
- scale shape
- 0.33986453 4.26545692
- (0.06950044) (0.82190816)
-asymptotic (co)variance (multiplied with samplesize):
- scale shape
-scale 0.2415156 -2.691268
-shape -2.6912675 33.776651
-Criterion:
-Kolmogorov distance
- 0.06350364
->
-> ## Total variation minimum distance estimator
-> ## Note: you can also use function MDEstimator!
-> ## discretize Gamma distribution
-> MCEstimator(x = x, ParamFamily = G, criterion = TotalVarDist,
-+ crit.name = "Total variation distance")
-Evaluations of Minimum Total variation distance estimate:
----------------------------------------------------------
-An object of class “Estimate”
-generated by call
- MCEstimator(x = x, ParamFamily = G, criterion = TotalVarDist,
- crit.name = "Total variation distance")
-samplesize: 50
-estimate:
- scale shape
- 0.28296871 5.01973059
- (0.05765312) (0.97241994)
-asymptotic (co)variance (multiplied with samplesize):
- scale shape
-scale 0.1661941 -2.665236
-shape -2.6652363 47.280027
-Criterion:
-Total variation distance
- 0.4866141
->
-> ## or smooth empirical distribution (takes some time!)
-> #MCEstimator(x = x, ParamFamily = G, criterion = TotalVarDist,
-> # asis.smooth.discretize = "smooth", crit.name = "Total variation distance")
->
-> ## Hellinger minimum distance estimator
-> ## Note: you can also use function MDEstimator!
-> ## discretize Gamma distribution
-> distroptions(DistrResolution = 1e-8)
-> MCEstimator(x = x, ParamFamily = G, criterion = HellingerDist,
-+ crit.name = "Hellinger Distance", startPar = c(1,2))
-Evaluations of Minimum Hellinger Distance estimate:
----------------------------------------------------
-An object of class “Estimate”
-generated by call
- MCEstimator(x = x, ParamFamily = G, criterion = HellingerDist,
- crit.name = "Hellinger Distance", startPar = c(1, 2))
-samplesize: 50
-estimate:
- scale shape
- 1.0574423 1.6836445
- (0.2257873) (0.3091343)
-asymptotic (co)variance (multiplied with samplesize):
- scale shape
-scale 2.548996 -3.001032
-shape -3.001032 4.778201
-Criterion:
-Hellinger Distance
- 0.3782642
-> distroptions(DistrResolution = 1e-6)
->
-> ## or smooth empirical distribution (takes some time!)
-> #MCEstimator(x = x, ParamFamily = G, criterion = HellingerDist,
-> # asis.smooth.discretize = "smooth", crit.name = "Hellinger distance")
->
->
->
-> cleanEx()
-> nameEx("MDEstimator")
-> ### * MDEstimator
->
-> flush(stderr()); flush(stdout())
->
[TRUNCATED]
To get the complete diff run:
svnlook diff /svnroot/distr -r 905
More information about the Distr-commits
mailing list