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

glmReserve #2

Open
grishaloshadinov opened this issue Feb 3, 2015 · 17 comments
Open

glmReserve #2

grishaloshadinov opened this issue Feb 3, 2015 · 17 comments
Assignees

Comments

@grishaloshadinov
Copy link

when I run "glmReserve" in RExcel with "var.power=1" and "cum=FALSE" and "mse.method = bootstarp" and "nsim =1000" I get error message "Microsoft Excel is waiting for another application to complete an OLE action"
When I run it in R it takes absolutely ages and eventually I have to kill it with getting no results

@trinostics
Copy link
Collaborator

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.

@grishaloshadinov
Copy link
Author

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

@Rick132
Copy link

Rick132 commented Jan 20, 2016

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

@actuaryzhang
Copy link
Collaborator

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

@grishaloshadinov
Copy link
Author

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.

@Rick132
Copy link

Rick132 commented Jan 27, 2016

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

@actuaryzhang
Copy link
Collaborator

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.

@Rick132
Copy link

Rick132 commented Jan 27, 2016

Thanks for the reply.

@kennedymwavu
Copy link

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

@trinostics
Copy link
Collaborator

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

@actuaryzhang
Copy link
Collaborator

actuaryzhang commented Mar 21, 2022 via email

@trinostics
Copy link
Collaborator

@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

@kennedymwavu
Copy link

@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.

@trinostics
Copy link
Collaborator

@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.

@udaykumarravada
Copy link

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?

@mages
Copy link
Owner

mages commented Feb 22, 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.

@udaykumarravada
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants