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

PUCopula@rpatch: Error when patch="lFrechet" and more than 3 coloumns in the dataset #1

Open
amaendle opened this issue Jul 6, 2022 · 1 comment

Comments

@amaendle
Copy link
Owner

amaendle commented Jul 6, 2022

When patch="lFrechet" and more than 3 coloumns in the dataset are present, the following error appears:

Error in dimnames(x) <- dn :
length of 'dimnames' [2] not equal to array extent

Obviously the lower Fréche patchwork driver will work only for two random variables, i.e. 2 coloumns in the dataset.

A more helpful error message should be prompted in this case.

@amaendle
Copy link
Owner Author

amaendle commented Jul 7, 2022

similarly - also the error message should be adjusted which appears when:

x <- PUCopula(family="beta", pars.a=c(40, 43), patch="lFrechet",data=as.matrix(dat[,1:3])) x@rand(5)

however: we have no error at all when doing:
x <- PUCopula(family="gamma", pars.a=c(40, 43), patch="lFrechet",data=as.matrix(dat[,1:3])) x@rand(7)

investigate the source of this behavior!

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

No branches or pull requests

1 participant