Re: [R] Survey Design / Rake questions

2008-08-29 Thread Thomas Lumley
quot;Balboa","De Soto",..: 11 2 5 8 6 1 12 7 10 13 ... all(levels(EBSurvey$lineon)==StnName) [1] TRUE # str(EBDesign$NumStn) NULL str(EBSurvey$NumStn) Factor w/ 12 levels "1","2","3","4",..: 10 12 4 12 8 1 8 8 12 4 ... str(ByEBNum$StnTraveld) Factor w/ 12 levels "1","2","3","4",..: 1 2 3 4 5 6 7 8

Re: [R] Survey Design / Rake questions

2008-08-28 Thread Farley, Robert
3 levels "Warner Center",..: 3 1 1 1 2 13 1 5 1 5 ... > str(ByEBOn$StnName) Factor w/ 13 levels "Balboa","De Soto",..: 11 2 5 8 6 1 12 7 10 13 ... > all(levels(EBSurvey$lineon)==StnName) [1] TRUE > # > str(EBDesign$NumStn) NULL > str(EBSurvey$NumStn) Factor w/ 12 levels "1","2","3","4",..: 10 12 4 12 8 1 8 8 12 4 ... > str(ByEBNum$StnTraveld)

Re: [R] Survey Design / Rake questions

2008-08-28 Thread Thomas Lumley
;,"2","3","4",..: 10 12 4 12 8 1 8 8 12 4 ... EBSurvey$NumStn[1:5] [1] 10 12 4 12 8 Levels: 1 2 3 4 5 6 7 8 9 10 11 12 str(ByEBNum$StnTraveld) int [1:12] 1 2 3 4 5 6 7 8 9 10 ... ByEBNum$StnTraveld[1:5] [1] 1 2 3 4 5 *

Re: [R] Survey Design / Rake questions

2008-08-25 Thread Farley, Robert
Survey$NumStn) Factor w/ 12 levels "1","2","3","4",..: 10 12 4 12 8 1 8 8 12 4 ... > EBSurvey$NumStn[1:5] [1] 10 12 4 12 8 Levels: 1 2 3 4 5 6 7 8 9 10 11 12 > str(ByEBNum$StnTraveld) int [1:12] 1 2 3 4 5 6 7 8 9 10 ... > ByEBNum$StnTraveld[1:5]

Re: [R] Survey Design / Rake questions

2008-08-25 Thread Farley, Robert
",..: 10 12 4 12 8 1 8 8 12 4 ... > EBSurvey$NumStn[1:5] [1] 10 12 4 12 8 Levels: 1 2 3 4 5 6 7 8 9 10 11 12 > str(ByEBNum$StnTraveld) int [1:12] 1 2 3 4 5 6 7 8 9 10 ... > ByEBNum$StnTraveld[1:5] [1] 1 2 3 4 5 > *

Re: [R] Survey Design / Rake questions

2008-08-23 Thread Thomas Lumley
Woodman str(EBSurvey$NumStn) Factor w/ 12 levels "1","2","3","4",..: 10 12 4 12 8 1 8 8 12 4 ... EBSurvey$NumStn[1:5] [1] 10 12 4 12 8 Levels: 1 2 3 4 5 6 7 8 9 10 11 12 str(ByEBNum$StnTraveld) Factor w/ 12 levels "1","10","11",..: 1 5 6 7 8 9 10 11 12 2 ... ByEBNum$StnTraveld[1:5] [1] 1 2 3 4 5 Levels: 1 10 11 12 2 3 4 5 6 7 8 9 ***

Re: [R] Survey Design / Rake questions

2008-08-22 Thread Farley, Robert
Canyon North Hollywood Pierce College Reseda Sepulveda Tampa Valley College Van Nuys Warner Center Woodley Woodman > > str(EBSurvey$NumStn) Factor w/ 12 levels "1","2","3","4",..: 10 12 4 12 8 1 8 8 12 4 ... > EBSurvey$NumStn[1:5] [1] 10 12 4 12 8 Levels: 1 2 3 4 5 6 7 8 9 10 11 12 > str(ByEBNum$StnTraveld) Factor w/ 12 levels "1","10","11",.

Re: [R] Survey Design / Rake questions

2008-08-21 Thread Thomas Lumley
prettyR_1.3-2 foreign_0.8-28 ############ Robert Farley Metro www.Metro.net -Original Message- From: Farley, Robert Sent: Monday, August 18, 2008 16:18 To: 'r-help@r-project.org' Subject: RE: [R] Survey Design / Rake q

Re: [R] Survey Design / Rake questions

2008-08-20 Thread Farley, Robert
NumStn ) ) Error in model.frame.default(margin, data = design$variables) : invalid type (list) for variable 'ByEBOn' > Robert Farley Metro www.Metro.net -Original Message- From: Stas Kolenikov [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2008 07:13 To: Farley,

Re: [R] Survey Design / Rake questions

2008-08-20 Thread Stas Kolenikov
On Mon, Aug 18, 2008 at 6:18 PM, Farley, Robert <[EMAIL PROTECTED]> wrote: > My motivation is to try to correct for a "time on board" bias we see in > our surveys. Not surprisingly, riders who are only on board a short > time don't attempt/finish our survey forms. We're able to weight our > surve

Re: [R] Survey Design / Rake questions

2008-08-19 Thread Farley, Robert
h_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 attached base packages: [1] graphics grDevices utils datasets stats methods base other attached packages: [1] survey_3.8 fortunes_1.3-5 moonsun_0.1prettyR_1.3-2 foreign_0.8-28 > #

Re: [R] Survey Design / Rake questions

2008-08-18 Thread Farley, Robert
tal flaws" in this concept Robert Farley Metro www.Metro.net -Original Message- From: Stas Kolenikov [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2008 10:32 To: Farley, Robert Cc: r-help@r-project.org Subject: Re: [R] Survey Design / Rake questions Yo

Re: [R] Survey Design / Rake questions

2008-08-18 Thread Stas Kolenikov
Your reading, in increasing order of difficulty/mathematical details, might be Lohr's "Sampling" (http://www.citeulike.org/user/ctacmo/article/1068825), Korn & Graubard's "Health Surveys" (http://www.citeulike.org/user/ctacmo/article/553280), and Sarndal et. al. Survey Math Bible (http://www.citeul

[R] Survey Design / Rake questions

2008-08-18 Thread Farley, Robert
I'm trying to learn how to calibrate/postStratify/rake survey data in preparation for a large survey effort we're about to embark upon. As a working example, I have results from a small survey of ~650 respondents, ~90 response fields each. I'm trying to learn how to (properly?) apply the aforemen