Calculating mean minus index observation
Posted: Tue May 06, 2014 7:04 am
I am trying to calculate mean preschool enrolment in each class, excluding the index child. I am using the command
series meanenrol= @meansby(preschool, t2_id, "@all")
t2_id is the teacher id which identifies the class and this is working fine to give me the average for the class but I want the average for the class excluding the observation child. Does anybody have any idea how I can do this? Thanks in advance.
series meanenrol= @meansby(preschool, t2_id, "@all")
t2_id is the teacher id which identifies the class and this is working fine to give me the average for the class but I want the average for the class excluding the observation child. Does anybody have any idea how I can do this? Thanks in advance.