In the following command:

s <- aggregate(income,list(age,sex),function(x) (svymean(~x,design=d.na)))

Since 'is.element("income", objects())' was FALSE, it was not in the search path, which it must be for "aggregate" to find it. I suggest you read or reread something like "An Introduction to R", downloadable from "www.r-project.org" -> "Manuals".

hope this helps. spencer graves

[EMAIL PROTECTED] wrote:

In a message dated 9/19/03 7:46:07 PM Pacific Daylight Time, [EMAIL PROTECTED] writes:



What do you get from the following:

is.element("income", objects())

spencer graves






is.element("income", objects())


[1] FALSE

The following may give further info about why I am getting this. Design object is "d.na"



attributes(d.na)


$names
[1] "cluster" "strata" "prob" "allprob" "call" "variables"
[7] "nPSU"


$class
[1] "survey.design"

[[alternative HTML version deleted]]

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help



______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to