Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speed-up of RVineMatrix by not calling BiCop for the independence copula #29

Merged
merged 5 commits into from Dec 10, 2016

Conversation

tvatter
Copy link
Contributor

@tvatter tvatter commented Dec 6, 2016

No description provided.

@tvatter
Copy link
Contributor Author

tvatter commented Dec 6, 2016

OK, so the idea is to speed-up RVineMatrix by not calling the constructor BiCop for the independence copula. It's quite useful for e.g. truncated vines in high dimensions!

Copy link
Owner

@tnagler tnagler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code should be a little cleaner.

utds[sel] <- sapply(objlst, function(x) x$taildep$upper)
ltds[sel] <- sapply(objlst, function(x) x$taildep$lower)
bets[sel] <- sapply(objlst, function(x) x$beta)
taus[sel] <- sapply(objlst, function(x) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code could be a little cleaner. Something like

 taus[sel] <- vapply(objlst, function(x) ifelse(inherits(x, "BiCop"), x$tau, 0), numeric(1))

@tnagler tnagler merged commit 1bb7724 into tnagler:master Dec 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants