## default IC
IC1 <- new("IC")
## L2-differentiable parametric family
B <- BinomFamily(13, 0.3)
## check IC properties
checkIC(IC1, B)
## make IC
IC2 <- makeIC(IC1, B)
## check IC properties
checkIC(IC2)
## slot modifyIC is filled in case of IC2
IC3 <- modifyIC(IC2)(BinomFamily(13, 0.2), IC2)
checkIC(IC3)
## identical to
checkIC(IC3, BinomFamily(13, 0.2))
IC4 <- makeIC(sin, B)
checkIC(IC4)
(IC5 <- makeIC(list(function(x)x^3), B, name="a try"))
plot(IC5)
checkIC(IC5)
## don't run to reduce check time on CRAN
# \donttest{
N0 <- NormLocationScaleFamily()
IC6 <- makeIC(list(sin,cos),N0)
plot(IC6)
checkIC(IC6)
getRiskIC(IC6,risk=trAsCov())$trAsCov$value
getRiskIC(IC6,risk=asBias(),neighbor=ContNeighborhood())$asBias$value
# }
Run the code above in your browser using DataLab