search for: weightx

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

Did you mean: weight
2009 Mar 20
2
functions within a list
...So, there can be say 1 to 600 tick values per element in a list, that would mean I would like to find the 600 mean values for each of the ticks values in the 1000 elements. I tried a simple attempt below, but I am sure it is way off as it didn't produce what I expected: //res=res[[1..1000]] weightX<-sapply(res, function(.df) {mean(.df$X[.df$Id>0 & .df$Tick<601])}) Basically, I was trying to get the mean for all tick values less than 600 that have an Id variable greater than 0. So, since there are 600 ticks I would like to return a result with 600 mean values, for each of the 600...
2010 Jul 16
1
Weighted densityplot?
...ce to weights and subscripts, but I don't understand how to implement that. My data are of the form: I, J, Actual, Distance, Subset, Weight1, Weight2, ... I'm trying to see the effect of the distance distribution (Actual by Distance) compared to the various weighted distributions (Subset*WeightX by Distance) I presume I and J are the subscripts to the weight Variable in densityplot. If anyone has a code snippet of densityplot using weights, I could get started.... Thanks in advance, Robert Farley Metro 1 Gateway Plaza Mail Stop 99-23-7 Los Angeles, CA 90012-2952 Voice: (213)922-2532...