Code Monkey home page Code Monkey logo

Comments (17)

Rick132 avatar Rick132 commented on July 29, 2024 1

Hello!
I have the same problem. I am working in R. When I run it in R it takes absolutely ages and eventually I have to kill it with getting no results. I hope someone can help

from chainladder.

trinostics avatar trinostics commented on July 29, 2024

It would appear that your RExcel issue and your "R it takes absolutely ages" issue are related. Please provide a minimal, reproducible example without RExcel. If you cannot reproduce the issue without RExcel, please resolve your issue with the RExcel people.

from chainladder.

grishaloshadinov avatar grishaloshadinov commented on July 29, 2024

I can't reproduce it in R either. How can I attach excel file with raw triangle that I am using please?

from chainladder.

actuaryzhang avatar actuaryzhang commented on July 29, 2024

Is there an example you can provide to reproduce the issue? Is this issue with glmReserve or RExcel?

from chainladder.

grishaloshadinov avatar grishaloshadinov commented on July 29, 2024

that's what I mean, they didn't take me seriously, more flaws will follow

On Monday, 25 January 2016, 17:12, actuaryzhang <[email protected]> wrote:

Is there an example you can provide to reproduce the issue? Is this issue with glmReserve or RExcel? —
Reply to this email directly or view it on GitHub.

from chainladder.

Rick132 avatar Rick132 commented on July 29, 2024

Hello there!
Thanks for replying. I am using glmReserve in R. Find attached the file. I am not sure if it because the incremental payment contains some zeros. Also, is there a way I can extract the process and parameter risk from glmReserve either with analytical or bootstrapping? Do the package provide RMSEP of Munich Chain Ladder? Hoping to get a response soon.
glmreserve1.pdf

from chainladder.

actuaryzhang avatar actuaryzhang commented on July 29, 2024

Thank you very much for providing the example. It seems that the resampling generates lots of negative values of the incrementals, which are not allowed in the current implementation. The reason that it takes forever is because it keeps resampling until all values are nonnegative. This criterion is an intuitive but perhaps not the best way to handle negative payments. I will investigate this problem more and try to use a better approach. Hopefully I can solve this soon but no promise given my current schedule. I will keep you posted.

Right now, the glmReserve function does not report separately the process and estimation errors. It is available, however, in the code. I can make the function report these details in the next release, but I seldom find such a breakdown meaningful.

from chainladder.

Rick132 avatar Rick132 commented on July 29, 2024

Thanks for the reply.

from chainladder.

kennedymwavu avatar kennedymwavu commented on July 29, 2024

Has anyone found workarounds for this issue? I'm facing the same problem in R.

from chainladder.

trinostics avatar trinostics commented on July 29, 2024

@actuaryzhang Hi Wayne. Is it possible to modify the procedure to use real valued residuals? Long time no see. Dan

from chainladder.

actuaryzhang avatar actuaryzhang commented on July 29, 2024

from chainladder.

trinostics avatar trinostics commented on July 29, 2024

@actuaryzhang In another context I have chosen to "wipe out" negative simulated values when a subsequent dependent calculation / function requires positive support (like 'log'). Is this a similar situation? What about replacing the negative values with their absolute values, rather than with zero? If replace with zero, what do you mean by "redistributing the value to other cells"?

Thus uploaded R script (renamed 'txt' for uploading) contains a few small functions that came in handy with that previous context, perhaps useful here.
truncated_normal.txt

@grishaloshadinov @Rick132 @kennedymwavu Do you have any interest in working out a solution to this issue? I am not a user of glmReserve so "I have no horse in this race." If you do not pick up this thread, it will probably remain dormant. But if you do, I will gladly watch and comment.

Dan

from chainladder.

kennedymwavu avatar kennedymwavu commented on July 29, 2024

@trinostics Yes, I'd be glad. But I have no knowledge of claims reserving so I'm not sure if I can be of help.

from chainladder.

trinostics avatar trinostics commented on July 29, 2024

@kennedymwavu I targeted you in my reply above because, when I saw your comment [Has anyone found workarounds for this issue? I'm facing the same problem in R.], I assumed you had a reserving-related reason to ask. IMO, the two of us without a horse in the race would not likely spearhead a successful solution. Where does your interest originate? More in the glm/bootstrap theory? @grishaloshadinov , as the original poster (OP), are you interested in helping see this through? How about you, @Rick132 [Hello! I have the same problem.] ? If no one is interested in this issue anymore, then it should be closed.

from chainladder.

udaykumarravada avatar udaykumarravada commented on July 29, 2024

Sorry for if I miss any information. How can we apply a GLM to negative incremental values i tried for small triangle of 10 X 10 with few negative values I have translated them made the negative values to zero.
But now the triangle is very large which 45 X 45 and has a lot of negative values and what should I do?
Any help would be very appreciated?

from chainladder.

mages avatar mages commented on July 29, 2024

I think you're trying to force a square peg in a round hole. Consider a different model that is more applicable to your data.

from chainladder.

udaykumarravada avatar udaykumarravada commented on July 29, 2024

I think you're trying to force a square peg in a round hole. Consider a different model that is more applicable to your data.

Thanks for the reply.
Can you please suggest some other models ?

from chainladder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.