Re: [R] Case weighting

2012-03-03 Thread Hed Bar-Nissan
ot;,"Four")) ); weight=c(10, 1, 1, 1) weightBy(data.recieved,weight); On Fri, Feb 24, 2012 at 8:03 AM, Thomas Lumley wrote: > >On Fri, Feb 24, 2012 at 9:40 AM, David Winsemius > wrote: > > > > On Feb 23, 2012, at 3:27 PM, Hed Bar-Nissan wrote: > >

Re: [R] Case weighting

2012-02-23 Thread Hed Bar-Nissan
Feb 23, 2012 at 7:43 PM, David Winsemius wrote: > > On Feb 23, 2012, at 10:49 AM, Hed Bar-Nissan wrote: > > The need comes from the PISA data. (http://www.pisa.oecd.org) >> >> In the data there are many cases and each of them carries a numeric >> variable that si

[R] Case weighting

2012-02-23 Thread Hed Bar-Nissan
The need comes from the PISA data. (http://www.pisa.oecd.org) In the data there are many cases and each of them carries a numeric variable that signifies it's weight. In SPSS the command would be "WEIGHT BY" In simpler words here is an R sample ( What is get VS what i want to get ) > data.rec