search for: matcheddata

Displaying 2 results from an estimated 2 matches for "matcheddata".

2012 Jun 19
2
matchit - can I weight the parameters?
...matched on Stage. Stage is the biggest influence on outcome... so I must match it as close to perfect as possible even if that means dropping some data from the 'treatment' group. Here's some code: match = matchit(Group ~ Stage + Age + Gender + PS, myData, method="optimal") matchedData = match.data(match) by (matchedData$Stage, matchedData$Group, table) matchedData$GP: 0 1 3A 3B 4 1 6 9 10 -------------------------------------------------------------------------------------------------------- myreData$GP: 1 1 3A 3B 4 1 3 9 13 Can anyone point me to a method that...
2012 Dec 15
3
How to speed up the for loop by releasing memeory
Dear list; How can I speed up the run of following code (illustrative) #======================================================================== con<-vector("numeric") for (i in 1:limit) { if(matched data for the ith item found) { if(i==1) {con<-RowOfMatchedData } else {con<-rbind(con,matchedData)} } } #======================================================================== each RowOfMatchedData contains 105 variables, when "i" runs over 10^7 and the data container "con" get l...