Re: [R] Help with ftable.svyby

2017-07-09 Thread Orsola Costantini via R-help
Thanks, Anthony! It worked!! Only, for future reference, I had to exclude INCOME from the reset (which is the variable in the svymean function) q50 <- update( q50 , AGECL = factor( AGECL ) , RACECL = factor( RACECL ) ) 2017-07-09 15:52 GMT-04:00 Anthony Damico : > try resetting your factor leve

Re: [R] Help with ftable.svyby

2017-07-09 Thread Anthony Damico
try resetting your factor levels and re-run? q50 <- update( q50 , INCOME = factor( INCOME ) , AGECL = factor( AGECL ) , RACECL = factor( RACECL ) ) On Sun, Jul 9, 2017 at 2:59 PM, Orsola Costantini via R-help < r-help@r-project.org> wrote: > Hi all, > > When I try the following with pkg Surve

[R] Help with ftable.svyby

2017-07-09 Thread Orsola Costantini via R-help
Hi all, When I try the following with pkg Survey it returns the error below: ftable(svyby(~INCOME, ~AGECL+RACECL, svymean, design=q50), rownames=list(AGECL=c("<35", "35-44", "45-54", "55-64", "65-74", ">=75"), RACECL=c("white non hisp