search for: testinflu

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

2011 Mar 07
0
Difference between the S-plus influence and R empinf functions
...es of this vector). If data is a data frame, this may be a variable in the data frame, or expression involving such variables. empinf() accepts an argument called "strata" but it doesn't seem to correspond to "group". Below is a sample test showing my problem: "testinflu" = function(data, weights) { sum(data[,1]*weights) } mydata <- cbind(c(1,2,3,4,5), c(1,1,1,1,0)) # In S-plus : > testinflu(data=mydata, weights=rep(1,length(mydata[,1]))) 15 # In R: > testinflu(data=mydata, weights=rep(1,length(mydata[,1]))) 15 # In S-plus : &...