Re: [R] y2z question (AGD)

2015-10-26 Thread Martin Canon
artment of Anthropology > Texas A&M University > > > > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Martin > Canon > Sent: Sunday, October 25, 2015 7:03 AM > To: R help > Subject: [R] y2z question (AGD) > > Hi

[R] y2z question (AGD)

2015-10-25 Thread Martin Canon
Hi to all. I've been trying to calculate weight-for-age z-scores with the y2z command (AGD package). However, I keep getting strange results. My hypothesis is that missings are the problem. My dataframe looks like this: data <- structure(list(sex = structure(c(3L, 3L, 3L, 2L, 3L), .Label = c("

Re: [R] tapply error svyby function "survey" package

2014-11-12 Thread Martin Canon
ot;, "18", "19", "20", "21", "22", "23", "24", "25"), class = "data.frame") Regards. Martin On Wed, Nov 12, 2014 at 1:39 PM, Anthony Damico wrote: > try resetting your levels? if that doesn't

[R] tapply error svyby function "survey" package

2014-11-12 Thread Martin Canon
69102 3.715050 If I use the recategorized d7 variable (d7c, two levels only) it works too: > svyby(~ovt, ~d7c, sii.design, svymean, na.rm = TRUE, level = 0.95) d7c ovt se No estable No estable 70.92344 1.37460 Estable Estable 74.53719 4.16954 What could be t