try this:

> data.frame(dates = format(seq(ISOdate(2003,1,1), by='month', length=36),
+     format='%d.%m.%Y'), date=rpois(36,10))
        dates date
1  01.01.2003   11
2  01.02.2003    8
3  01.03.2003    7
4  01.04.2003    7
5  01.05.2003    5
6  01.06.2003   12
7  01.07.2003    9
8  01.08.2003   12
9  01.09.2003   11
.......


On 3/26/06, Carsten Steinhoff <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I have to generate a couple of random datasets to validate an actuarial
> software.
> Each set has to contain at least two columns: (1) Date of the loss events
> occurrence; (2) Severity of loss
>
> I'm generating the dates on a monthly basis by, for example:
>        ts(matrix(rpois(36,10)), start=c(2003, 1), frequency=12).
> >From that output I generate dates "by hand", what is REALLY time
> consuming
> :-(.
>
> I think it should be possible to get a direct output in "real" dates
> (dd.mm.yyyy). The day of occurence doesn't matter,it can be chosen
> randomly,
> too. Important is only, that the MONTHLY simulated frequency follows the
> chosen distribution.
> Any ideas?
>
> Thank you very much,
>
> Carsten
>
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>



--
Jim Holtman
Cincinnati, OH
+1 513 646 9390 (Cell)
+1 513 247 0281 (Home)

What the problem you are trying to solve?

        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to