Displaying 2 results from an estimated 2 matches for "indx00".
2013 Jun 10
2
please check this
...h(duplicated(res10Percent)),],dummy==1)? #most of the duplicated are dummy==1
res10PercentSub0<-subset(res10Percent[which(duplicated(res10Percent)),],dummy==0)
?indx1<-as.numeric(row.names(res10PercentSub1))
indx11<-sort(c(indx1,indx1+1))
indx0<- as.numeric(row.names(res10PercentSub0))
?indx00<- sort(c(indx0,indx0-1))
indx10<- sort(c(indx11,indx00))
?nrow(res10Percent[-indx10,])
#[1] 452
?res10PercentNew<-res10Percent[-indx10,]
?nrow(subset(res10PercentNew,dummy==1))
#[1] 226
?nrow(subset(res10PercentNew,dummy==0))
#[1] 226
?nrow(unique(res10PercentNew))
#[1] 452
A.K.
-----...
2013 Jun 07
4
matched samples, dataframe, panel data
I R-helpers
#I have a data panel of thousands of firms, by year and industry and
#one dummy variable that separates the firms in two categories: 1 if the firm have an auditor; 0 if not
#and another variable the represents the firm dimension (total assets in thousand of euros)
#I need to create two separated samples with the same number os firms where
#one firm in the first have a corresponding