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
Hello Mr. Greg Snow! Thank you very much for your prompt answer. > I don't think that the election data is the right data to demonstrate Kappa, > you need subjects that are classified by 2 or more different raters/methods. > The election data could be considered classifying the voters into whic

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
I don't think that the election data is the right data to demonstrate Kappa, you need subjects that are classified by 2 or more different raters/methods. The election data could be considered classifying the voters into which party they voted for, but you only have 1 rater. Maybe if you had so