Skip to content

Computing Median for Subset of Data

3 messages · Matt Stati, Peter Dalgaard, Berend Hasselman

#
On Jun 2, 2013, at 08:08 , Matt Stati wrote:

            
That's not going to work. Try

subset(timeuse, (IndepTrans == 1) & (Physical == 1))

(Whenever you do things like this, run summary(subset_1) to check.)
#
On 02-06-2013, at 08:08, Matt Stati <mattstati at yahoo.com> wrote:

            
?with

with(timeuse, median(?))
with(subset_1, median(?))

Berend