Skip to content
Prev 324947 / 398503 Next

matched samples, dataframe, panel data

Sorry, it included a case with both values for dummy were 1.

lst7<-lapply(lst6,function(x) {lst<-lapply(x,function(y) y[sum(y$dummy)==1,]);lst[lapply(lst,nrow)>0]})

?res<-do.call(rbind,lapply(lst7,function(x) do.call(rbind,x)))
?row.names(res)<-1:nrow(res)
nrow(subset(res,dummy==0))
#[1] 22
?nrow(subset(res,dummy==1))
#[1] 22
A.K.



----- Original Message -----
From: Cecilia Carmo <cecilia.carmo at ua.pt>
To: arun <smartpink111 at yahoo.com>
Cc: R help <r-help at r-project.org>
Sent: Friday, June 7, 2013 12:03 PM
Subject: RE: [R] matched samples, dataframe, panel data

Sorry,

Something is not ok, because when? I do
[1] 22
[1] 24

There the number? o observatios in the two subsets is not equal.


Thanks again,

Cec?lia