search for: this_is_a_test

Displaying 1 result from an estimated 1 matches for "this_is_a_test".

2010 Jun 03
1
problem with 'svyby' function from SURVEY package
...167 0.15622274 ...and it works just fine. I get a nice table of the mean and standard error for each level of the covariate. I started writing a custom function to automate this and I had problems. Consider this really basic custom function (that does not seem very different from the above code): this_is_a_test <-function(outcome, covariate) { svyby(~outcome, ~covariate, design=dhanes, svymean, na.rm=T) -> haha print(hah) } I get the following output: Error in `[.survey.design2`(design, nas == 0, ) : (subscript) logical subscript too long I really don't understand this because I h...