Skip to content

Commit

Permalink
version 0.999-19.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaechler authored and cran-robot committed Apr 22, 2019
1 parent 22b51c5 commit ac3b475
Show file tree
Hide file tree
Showing 31 changed files with 3,865 additions and 1,879 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
@@ -1,5 +1,5 @@
Package: copula
Version: 0.999-19
Version: 0.999-19.1
VersionNote: Last CRAN: 0.999-18 on 2017-08-31
Date: 2018-12-19
Title: Multivariate Dependence with Copulas
Expand Down Expand Up @@ -54,7 +54,7 @@ Collate: AllClass.R Classes.R AllGeneric.R Auxiliaries.R aux-acopula.R
Encoding: UTF-8
URL: http://copula.r-forge.r-project.org/
NeedsCompilation: yes
Packaged: 2018-12-20 09:01:55 UTC; maechler
Packaged: 2019-04-21 08:56:20 UTC; ripley
Author: Marius Hofert [aut] (<https://orcid.org/0000-0001-8009-4665>),
Ivan Kojadinovic [aut] (<https://orcid.org/0000-0002-2903-1543>),
Martin Maechler [aut, cre] (<https://orcid.org/0000-0002-8685-9910>),
Expand All @@ -63,4 +63,4 @@ Author: Marius Hofert [aut] (<https://orcid.org/0000-0001-8009-4665>),
<https://orcid.org/0000-0001-9634-4796>)
Maintainer: Martin Maechler <maechler@stat.math.ethz.ch>
Repository: CRAN
Date/Publication: 2018-12-21 14:50:18 UTC
Date/Publication: 2019-04-22 06:55:54 UTC
49 changes: 30 additions & 19 deletions MD5
@@ -1,5 +1,5 @@
abd18b430ad44646bf5dbe2de2a9bb8e *ChangeLog
9018befaf763b0a5236e88ab3aeaa40f *DESCRIPTION
5523d1a5737d76eb5ffb40089f2db0d8 *DESCRIPTION
35020cdf0f6debb5ef3cdc5bb48f8ef7 *LICENCE
dab5b83987901f814119d77d85a66ff8 *NAMESPACE
7118e7ef7f16e946a2e66741ee9d5823 *R/AllClass.R
Expand Down Expand Up @@ -82,8 +82,8 @@ ad10d3b43368fe2140fb29a0af0dc54b *R/varianceReduction.R
3153d33bf6ade7574a60f09a950c0cb5 *R/xvCopula.R
4149d30506e212eb21bd319de849d0c5 *R/zzz.R
ca24b57ede90869d3a7709d72c3d8f79 *TODO
ae679499e78c271f54e89c51adb43ca3 *build/partial.rdb
1fb3f3d5f713a438bd59a525c48a0c5a *build/vignette.rds
eaf5fdcc0e39c3e3b4dbab4c58a59eec *build/partial.rdb
0e1d203faec49d65ccadb9c25c648a0a *build/vignette.rds
a236e4e8b224766c3f7560c357b9e89b *data/SMI.12.rda
ca465e20140ff79dfbed3fc1880c7d8b *data/gasoil.rda
7f877edede2a0a1e605a527fb9fd45b5 *data/loss.tab.gz
Expand Down Expand Up @@ -115,39 +115,50 @@ c9c6a23772b544c5800790ed415620c6 *inst/Rsource/estim-gof-fn.R
4bb859cca43b0e60861e71b4a3f9a285 *inst/Rsource/gof-sim.R
8d9e0d44dd29e5e0cfa702fc68a365ff *inst/Rsource/tstFit-fn.R
e3f2c67b1fa030b7857751c91eeb5d47 *inst/Rsource/utils.R
05052410876c8a0e9e86b180ce17dba9 *inst/doc/AC_Liouville.R
265a03e17fe677bdbb678c78672b901b *inst/doc/AC_Liouville.Rmd
2eb82a135b67d0d01c2d6c77a171fc4d *inst/doc/AC_Liouville.html
7a31eb74e400ba6dbb604724a4a090f1 *inst/doc/AC_Liouville.html
c65962d0dd17b41acf366a053947dacc *inst/doc/AR_Clayton.R
eee070dda6b3c935a408a8dab7723c90 *inst/doc/AR_Clayton.Rmd
dee133056763f68a68d5ff8094dc4609 *inst/doc/AR_Clayton.html
85c565780f26569c29975a9ccb6e39e9 *inst/doc/AR_Clayton.html
b323fe9bdfe5348fb6b2eea56a3bf75e *inst/doc/Frank-Rmpfr.R
05ec76c948a51916376419a16e38b5dd *inst/doc/Frank-Rmpfr.Rnw
e7f706bf55a50d1d12af755509a5bace *inst/doc/Frank-Rmpfr.pdf
7bd9382aad8ec27f54fbc2f70658180c *inst/doc/Frank-Rmpfr.pdf
b8847ce5993473af7b6110616a06c05a *inst/doc/GIG.R
07397f3d04361a796c9f3e1cff9420c4 *inst/doc/GIG.Rmd
4ef0fcedebdca4df001086cbbfd4f3fd *inst/doc/GIG.html
dff2b218d056f74002b6356392c306d8 *inst/doc/GIG.html
bfbc665f773a5730f09f3b48a75e51c6 *inst/doc/HAXC.R
e769dad45f93d67d639fe0255781d1d2 *inst/doc/HAXC.Rmd
c3abb708c1b5fa284e79112eef1cfdf0 *inst/doc/HAXC.html
9046383a851cfcff3cd1eda8b4973906 *inst/doc/HAXC.html
214e7d67472356bb8dff1d123eff46a0 *inst/doc/NALC.R
7ef65090ce5df4d72e4b67096d756443 *inst/doc/NALC.Rmd
ef4923c407fb3c05d6b33539ad53f27d *inst/doc/NALC.html
144e5e8286616f2da351b650f93ead12 *inst/doc/NALC.html
203ad178617655a43f383c129461a763 *inst/doc/copula_GARCH.R
04ed41004b9c6350eecfdbd07f7b7059 *inst/doc/copula_GARCH.Rmd
8b956a11ae24a50603ed0b4e4ccc0060 *inst/doc/copula_GARCH.html
e4391a82609d514dd85e6ae4f10c8989 *inst/doc/copula_GARCH.html
48caef8227c63e3aa7ec76d52eab9e70 *inst/doc/dNAC.R
c501740317daf817b3ec9e6206d9a778 *inst/doc/dNAC.Rmd
88a75c759ff26d1b9de27f810408d31f *inst/doc/dNAC.html
2aff561c029fb1f2c7951722ff1498c3 *inst/doc/dNAC.html
d6265742b410ad79db73ae7ec43568ae *inst/doc/empiricial_copulas.R
226549ef7eded80bee7681f36063570f *inst/doc/empiricial_copulas.Rmd
642ef453bda4cf8a310cff09c4de416f *inst/doc/empiricial_copulas.html
415dabc886827392e6587d524cd86be0 *inst/doc/empiricial_copulas.html
0098b3c1ab3bf7488df1a7069059b13c *inst/doc/logL_visualization.R
0ec7e0d406a9414c7887ed8b677585ba *inst/doc/logL_visualization.Rmd
a2e4a12c3b8dae4894f2709d04355b05 *inst/doc/logL_visualization.html
d12df93d942376e465ee0148b9121c98 *inst/doc/logL_visualization.html
a1cc2e0861c93ec8e45da66e547ab397 *inst/doc/mlogL_mpfr_i686.rds
11e454529af1e77db78cfe7457ba676b *inst/doc/mlogL_mpfr_x86_64.rds
035070e208435364886076fe0894b8fb *inst/doc/nacopula-pkg.R
0a405bb83a114a7bcf29e159487abd6f *inst/doc/nacopula-pkg.Rnw
6005f84b95b5fe4dd3b3beb6ee8b57f4 *inst/doc/nacopula-pkg.pdf
f80d89a08e9028ca242b25c85476532e *inst/doc/nacopula-pkg.pdf
8131b65d8dc1fd97d00ce1668da88b9d *inst/doc/qrng.R
9afb81cfc5a432a22c793bb2758f0131 *inst/doc/qrng.Rmd
14d9002bf036a4b5eb3c68d6ef2f630c *inst/doc/qrng.html
d4a768038b42461c9933564be7272694 *inst/doc/qrng.html
4400c15acd6518597dbe1450eb7c1818 *inst/doc/rhoAMH-dilog.R
ba709b50bf4bc8e561d9743dea270712 *inst/doc/rhoAMH-dilog.Rnw
668aeee8b1fc6f901cd19e759937837e *inst/doc/rhoAMH-dilog.pdf
f959c1824feae77f40fccf90267fb434 *inst/doc/rhoAMH-dilog.pdf
0a0df3761e4b32fdf2921b72c93608cd *inst/doc/wild_animals.R
786946615906c02dfb6b1bc40ef370db *inst/doc/wild_animals.Rmd
6950d6bd907a9f940683275518436bc1 *inst/doc/wild_animals.html
99ff1d8e9ab7b20eda9dd03cfe5d624b *inst/doc/wild_animals.html
da166243d2eda0690d3de081985add73 *inst/docs/mathnb/README
d5d9a616711271a879cc868f78e90ec0 *inst/docs/mathnb/amhCopula.cdf.expr
1a4a238485ab89994d7df8865b8f0d9e *inst/docs/mathnb/amhCopula.cdfDerWrtArg.expr
Expand Down Expand Up @@ -374,12 +385,12 @@ f658b460415c06e4aea472b9786603d7 *tests/copula-play.R
6ff678df6b9d788f1c921e25fa3615ac *tests/dC-dc-ex.R
d4ba1385e83f73fdd96e64dfc4f533e0 *tests/estim-ex.R
c3ac08fdea4fffdfbc98d637c04b2a94 *tests/explicitCop-ex.R
acbfbd90d2db5a3607365f3b9bc9c058 *tests/fitting-ex.R
892cf5f96918365b3ff976b280d63a1e *tests/fitting-ex.R
8239b241a2f48b42c1474f01d9b71ace *tests/fixedPar-ex.R
e152c2788523377f5eae3c378130b290 *tests/ggraph-tst.R
5b1a209c40b51c2b7926c1e310f33a67 *tests/khoudraji-ex.R
1ad2631d818fa2a8a1604e08bbebbafa *tests/misc.R
07bcedb4ed94c764ceda0719753c3ec2 *tests/mixCop-tst.R
a00db88f6e9632129a9f488716b3dcc0 *tests/mixCop-tst.R
27fe50f256d557c0d6691dd3829e4c28 *tests/moments.R
bf3237b322ff574013120bef6a6315d0 *tests/nac-experi.R
915ecf2278acdf2d5d74d0ddf23b40c1 *tests/retstable-ex.R
Expand Down
Binary file modified build/partial.rdb
Binary file not shown.
Binary file modified build/vignette.rds
Binary file not shown.
38 changes: 38 additions & 0 deletions inst/doc/AC_Liouville.R
@@ -0,0 +1,38 @@
## ---- message=FALSE------------------------------------------------------
require(copula)
source(system.file("Rsource", "AC-Liouville.R", package="copula"))
set.seed(271)

## ------------------------------------------------------------------------
n <- 1000
theta <- 0.59
d <- 3
U <- rACsimplex(n, d=d, theta=theta, Rdist="Gamma")
cor(U, method="kendall")

## ---- fig.align="center", fig.width=6, fig.height=6----------------------
par(pty="s")
pairs(U, gap=0, cex=0.5)

## ------------------------------------------------------------------------
n <- 2000
theta <- 0.6
alpha <- c(1, 5, 20)
U <- rLiouville(n, alpha=alpha, theta=theta, Rdist="Gamma")
cor(U, method="kendall")

## ---- fig.align="center", fig.width=6, fig.height=6----------------------
par(pty="s")
pairs(U, gap=0, cex=0.5)

## ------------------------------------------------------------------------
n <- 1000
theta <- 0.59
alpha <- c(1, 3, 4)
U <- rACLiouville(n, alpha=alpha, theta=theta, family="Clayton")
cor(U, method="kendall")

## ---- fig.align="center", fig.width=6, fig.height=6----------------------
par(pty="s")
pairs(U, gap=0, cex=0.5)

69 changes: 35 additions & 34 deletions inst/doc/AC_Liouville.html

Large diffs are not rendered by default.

65 changes: 65 additions & 0 deletions inst/doc/AR_Clayton.R
@@ -0,0 +1,65 @@
## ---- message=FALSE------------------------------------------------------
require(copula)
set.seed(271)

## ------------------------------------------------------------------------
mu <- 0
sigma <- 1
df <- 3
alpha <- 10

## ------------------------------------------------------------------------
rtls <- function(n, df, mu, sigma) sigma * rt(n,df) + mu
ptls <- function(x, df, mu, sigma) pt((x - mu)/sigma,df)
qtls <- function(u, df, mu, sigma) sigma * qt(u,df) + mu
dtls <- function(u, df, mu, sigma) dt((x - mu)/sigma,df)/sigma

## ------------------------------------------------------------------------
rclayton <- function(n, alpha) {
u <- runif(n+1) # innovations
v <- u
for(i in 2:(n+1))
v[i] <- ((u[i]^(-alpha/(1+alpha)) -1)*v[i-1]^(-alpha) +1)^(-1/alpha)
v[2:(n+1)]
}
n <- 200
u <- rclayton(n, alpha = alpha)
u <- qtls(u, df=df, mu=mu, sigma=sigma)
y <- u[-n]
x <- u[-1]

## ------------------------------------------------------------------------
fitCopula(claytonCopula(dim=2),
cbind(ptls(x,df,mu,sigma), ptls(y,df,mu,sigma)))

## ------------------------------------------------------------------------
## Identical margins
M2tlsI <- mvdc(claytonCopula(dim=2), c("tls","tls"),
rep(list(list(df=NA, mu=NA, sigma=NA)), 2), marginsIdentical= TRUE)
(fit.id.mar <- fitMvdc(cbind(x,y), M2tlsI, start=c(3,1,1, 10)))

## Not necessarily identical margins
M2tls <- mvdc(claytonCopula(dim=2), c("tls","tls"),
rep(list(list(df=NA, mu=NA, sigma=NA)), 2))
fitMvdc(cbind(x,y), M2tls, start=c(3,1,1, 3,1,1, 10))

## ---- fig.align="center", fig.width=6, fig.height=6----------------------
u.cond <- function(z, tau, df, mu, sigma, alpha)
((tau^(-alpha/(1+alpha)) -1) * ptls(z,df,mu,sigma)^(-alpha) + 1) ^ (-1/alpha)
y.cond <- function(z, tau, df, mu, sigma, alpha) {
u <- u.cond(z, tau, df, mu, sigma, alpha)
qtls(u, df=df, mu=mu, sigma=sigma)
}
plot(x, y)
title("True and estimated conditional quantile functions")
mtext(quote("for" ~~ tau == (1:5)/6))
z <- seq(min(y),max(y),len = 60)
for(i in 1:5) {
tau <- i/6
lines(z, y.cond(z, tau, df,mu,sigma, alpha))
## and compare with estimate:
b <- fit.id.mar@estimate
lines(z, y.cond(z, tau, df=b[1], mu=b[2], sigma=b[3], alpha=b[4]),
col="red")
}

0 comments on commit ac3b475

Please sign in to comment.