Comments (17)
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.
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.
I can't reproduce it in R either. How can I attach excel file with raw triangle that I am using please?
from chainladder.
Is there an example you can provide to reproduce the issue? Is this issue with glmReserve or RExcel?
from chainladder.
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.
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.
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.
Thanks for the reply.
from chainladder.
Has anyone found workarounds for this issue? I'm facing the same problem in R.
from chainladder.
@actuaryzhang Hi Wayne. Is it possible to modify the procedure to use real valued residuals? Long time no see. Dan
from chainladder.
from chainladder.
@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.
@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.
@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.
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.
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.
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)
- Mack chainladder provides different standarized residuals. HOT 8
- MultiChainLadder plot error when NA's in triangle HOT 1
- Triangle with empty values in early development periods HOT 27
- glmReserve: Missing row in summary HOT 5
- dev.period order not correct when using plot(triang, lattice=TRUE) HOT 2
- Bootchainladder Gamma process variance incorrect parametrization
- tweedieReserve : var.power=NULL not working HOT 2
- tweedieReserve : Error in summary.tweedie when rereserving = FALSE
- package car is missing HOT 5
- dfCorTest and cyEffTest fail for mxn triangle HOT 1
- Probable bug in `glmReserve()` source code HOT 1
- I want to change presaved claims (from ChainLadder-package) HOT 2
- Is it possible to summarize P/I ratio values according to Mack?
- MackChainLadder: `tail = FALSE` works fine, `tail = TRUE` errors. HOT 2
- Cross Reference R/Python in README? HOT 4
- Theoretical Understanding of How Methods Should Handle 0's HOT 5
- Mean IBNR & Quantiles Not Comparable, MackChainLadder HOT 3
- Problems Loading on MacBook Pro OS 10.13 HOT 1
- class triangle object
- as.triangle.data.frame has column gaps
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chainladder.