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

Extreme value #219

Closed
wants to merge 45 commits into from
Closed

Extreme value #219

wants to merge 45 commits into from

Conversation

Santymax98
Copy link
Contributor

Hello Oskar, in this PR I try to solve something regarding the sampling of GalambosCopula you can notice that currently... if you take a parameter greater than 20... exactly 19.7 or greater... the function to obtain samples gives problems ...you can try this example

G = GalambosCopula(19.7)
rand(G, 1000)

You may notice that he gives an error. However, I saw that in the copula package of R the largest parameter that supports the generation of samples without error is approximately 72. In this sense I decided to implement an alternative. I added a warning to the structure and now it is possible to use larger parameter values... for example

G = GalambosCopula(210.0)
rand(G, 1000)

Santymax98 and others added 30 commits July 25, 2024 13:04
	new file:   docs/src/extremevalue/generalities.md
	modified:   src/Copulas.jl
	new file:   src/ExtremeValue.jl
	new file:   src/ExtremeValueCopulas/AsymGalambosCopula.jl
	new file:   src/ExtremeValueCopulas/AsymLogCopula.jl
	new file:   src/ExtremeValueCopulas/AsymMixedCopula.jl
	new file:   src/ExtremeValueCopulas/BC2Copula.jl
	new file:   src/ExtremeValueCopulas/CuadrasAugeCopula.jl
	new file:   src/ExtremeValueCopulas/GalambosCopula.jl
	new file:   src/ExtremeValueCopulas/HuslerReissCopula.jl
	new file:   src/ExtremeValueCopulas/LogCopula.jl
	new file:   src/ExtremeValueCopulas/MOCopula.jl
	new file:   src/ExtremeValueCopulas/MixedCopula.jl
	new file:   src/ExtremeValueCopulas/tEVCopula.jl
	new file:   src/UnivariateDistribution/ExtremeDist.jl
	new file:   test/Extreme_value_test.jl
	modified:   src/Copulas.jl
	modified:   src/ExtremeValueCopulas/tEVCopula.jl
	modified:   src/UnivariateDistribution/ExtremeDist.jl
	modified:   src/ExtremeValueCopulas/LogCopula.jl
@lrnv
Copy link
Owner

lrnv commented Sep 18, 2024

Hum... I guess that this needs a good rebase before being able to be merged, since most of the changes here actually already happend when we merged the previous extreme value things. Could you try to, starting from the current main, re-change what you changed here to fix the galambos copula only ? That would be much easier to work with and merge

@Santymax98
Copy link
Contributor Author

Yes i can do it, do you think it is better to do it in another branch?

@lrnv
Copy link
Owner

lrnv commented Sep 18, 2024

Yes, in another branch on top of an up-to-date main branch, that would be the easiest to handle

@lrnv lrnv mentioned this pull request Sep 19, 2024
@lrnv
Copy link
Owner

lrnv commented Sep 19, 2024

I extracted your galambos changes in #220 so this PR can be closed i think

@lrnv lrnv closed this Sep 19, 2024
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.

2 participants