search for: cs_jail_2

Displaying 1 result from an estimated 1 matches for "cs_jail_2".

Did you mean: cs_jail_4
2011 Feb 04
1
<environment: 0x000000000734f888> in object of class formula
...ction(data.frame) { h <- which.constant(data.frame) hh <- names(data.frame)[-h] hh <- paste("~",paste(hh,collapse="+"),sep="") return(as.formula(hh))} # The following structure should give an example of how it works: Data <- structure(list(cs_jail_2 = c(2L, 1L, 1L, 0L, 0L, 1L), cs_jail_3 = c(0L, 0L, 0L, 0L, 0L, 0L), cs_jail_4 = c(1L, 2L, 2L, 2L, 0L, 0L)), .Names = c("cs_jail_2", "cs_jail_3", "cs_jail_4"), row.names = c(NA, 6L), class = "data.frame") make.formula(Data) # ~cs_jail_2 + cs_jail_4 # <env...