Re: [R] simple generation of artificial data with defined features

2008-08-25 Thread Greg Snow
> -Original Message- > From: drflxms [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 23, 2008 6:47 AM > To: Greg Snow > Cc: r-help@r-project.org > Subject: Re: Re: [R] simple generation of artificial data > with defined features > > Hello Mr. Greg Snow! >

Re: [R] simple generation of artificial data with defined features

2008-08-24 Thread drflxms
Hello all, beside saying again thank you for your help, I'd like to present the final solution of my problem and the results of the kappa-calculation: > election.2005 <- c(16194,13136,3494,3838,4648,4118) #data obtained via genesis-database of "Statistisches Bundesamt" www.destatis.de #simply cut

Re: [R] simple generation of artificial data with defined features

2008-08-24 Thread drflxms
Hi Christoph, perfect! Your code worked out of the box (copy and paste ;-). I had expected at least some lines of code, but this is really easy! So once you get used to command line, this is much more flexible (and comfortable!) than all these coloured windows. Can't tell you how happy I am, that

Re: [R] simple generation of artificial data with defined features

2008-08-23 Thread drflxms
ods" section. Thank you again very much for your tips and the quick reply. Have a nice weekend! Greetings from Munich, Felix Mueller-Sarnowski >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of drflxms >> Sent: Friday, Au

Re: [R] simple generation of artificial data with defined features

2008-08-23 Thread Christoph Meyer
Hi, to add voter.id and election.year to your data frame you could try: el.dt.exp$voter.id=seq(1:nrow(el.dt.exp)) el.dt.exp$election.year=2005 Cheers, Christoph Meyer *** Dr. Christoph Meyer Institute of Experimental Ecology Univers

Re: [R] simple generation of artificial data with defined features

2008-08-23 Thread drflxms
onding frequencies to yield the expanded dataset that conforms with > the original table. > > >> bw.dt.exp <- bw.dt[rep(1:nrow(bw.dt), bw.dt$Freq), -ncol(bw.dt)] >> dim(bw.dt.exp) >> > [1] 200 2 > >> table(bw.dt.exp) >> > Var2 &g

Re: [R] simple generation of artificial data with defined features

2008-08-22 Thread Christos Hatzis
The above approach is not restricted to 2x2 tables, and should be straightforward generate datasets that conform to arbitrary nxm frequency tables. -Christos Hatzis > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Greg Snow > Sent: Fri

Re: [R] simple generation of artificial data with defined features

2008-08-22 Thread Greg Snow
e- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of drflxms > Sent: Friday, August 22, 2008 6:12 AM > To: r-help@r-project.org > Subject: [R] simple generation of artificial data with > defined features > > Dear R-colleagues, > > I am quite a n

[R] simple generation of artificial data with defined features

2008-08-22 Thread drflxms
Dear R-colleagues, I am quite a newbie to R fighting my stupidity to solve a probably quite simple problem of generating artificial data with defined features. I am conducting a study of inter-observer-agreement in child-bronchoscopy. One of the most important measures is Kappa according to Fleis