Re: [R] Percent damage distribution

2008-12-27 Thread diegol
Thank you, Ben. The beta distribution seems flexible enough. I knew this distribution but had never seen it in this kind of application, and somehow did not recall it. rbeta(n, shape1 = 5, shape2 = 1) looks reasonable to start with for my simple task. If I had a real dataset I could parameterize

Re: [R] Percent damage distribution

2008-12-26 Thread diegol
>In my limited experience (we have some insurance projets), 100% can occur, >but otherwise a beta distbribution may suit, which suggests a mixture >distribution. But start with an empirical examination (histogram, ecdf, >density plot) of the distribution, since it may reveal other features. G

Re: [R] Percent damage distribution

2008-12-26 Thread Prof Brian Ripley
Not an R question as yet . In my limited experience (we have some insurance projets), 100% can occur, but otherwise a beta distbribution may suit, which suggests a mixture distribution. But start with an empirical examination (histogram, ecdf, density plot) of the distribution, since it m

Re: [R] Percent damage distribution

2008-12-25 Thread Ben Bolker
diegol gmail.com> writes: > > > R version: 2.7.0 > Running on: WinXP > > I am trying to model damage from fire losses (given that the loss occurred). > Since I have the individual insured amounts, rather than sampling dollar > damage from a continuous distribution ranging from 0 to infinity, I

[R] Percent damage distribution

2008-12-25 Thread diegol
R version: 2.7.0 Running on: WinXP I am trying to model damage from fire losses (given that the loss occurred). Since I have the individual insured amounts, rather than sampling dollar damage from a continuous distribution ranging from 0 to infinity, I want to sample from a percent damage distrib