Re: Basic Stat Question
- To: mathgroup at smc.vnet.net
- Subject: [mg42637] Re: Basic Stat Question
- From: "AngleWyrm" <no_spam_anglewyrm at hotmail.com>
- Date: Fri, 18 Jul 2003 05:25:44 -0400 (EDT)
- References: <bf5koe$mig$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Last post had some spurrious leftovers in it, so here's a corrected version:
dataBase = { {3.5, 5, "M"}, {4.8, 6, "F"}, {5.2, 12, "F"} };
subSet = Select[dataBase, Function[#1[[3]] == "F"] ]
Apply[Mean, subSet[[All, 2]]]
--
-Jonathan
<Moranresearch at aol.com> wrote in message news:bf5koe$mig$1 at smc.vnet.net...
> I have a list l1= {{xi,yi}}
> I want to find the Mean xi where s <y < t
> for a series of s and t.
>
> So say I have the height of a million children and I want to know the average
> height at age 1, 2, 3...18. How do I do this?
>
> Also the data a field "Gender" how do I select the subset "Girls" or "Boys"
> to analyze.
> Thank you.
>
> John
>
>