search for: bspy01

Displaying 3 results from an estimated 3 matches for "bspy01".

Did you mean: bcpy01
2009 Jun 09
4
how to substitute missing values (NAs) by the group means
Dear Ruser's I ask for helps on how to substitute missing values (NAs) by mean of the group it is belonging to. my dummy dataframe is: > df group traits 1 BSPy01-10 NA 2 BSPy01-10 7.3 3 BSPy01-10 7.3 4 BSPy01-11 5.3 5 BSPy01-11 5.4 6 BSPy01-11 5.6 7 BSPy01-11 NA 8 BSPy01-11 NA 9 BSPy01-11 4.8 10 BSPy01-12 8.1 11 BSPy01-12 6.0 12 BSPy01-12 6.0 13 BSPy01-13 6.1 I want to substitute each "NA" by the...
2009 Jun 09
1
how to use "lapplyBy" function of "doBy" package
Dear Ruser's I want to substitute each "NA" by the group mean of which the "NA" is belonging to. For example, substitute the first record of traits "NA" by the mean of "BSPy01-10" in the dummy dataframe. I have ever tried to solve this problem by using doBy package. But, I failed. I ask for the advice on how to use "lapplyBy" function of "doBy" package. The commands used and the output I got are as followed: library(doBy) df<-orderBy(~group...
2009 Jun 16
1
How to replace outliers by group median?
...o is doing numerical data analysis. Here is a dummy dataframe with a group variable (three levels) and a numeric one. I just want to know how to replace outliers by group median. population conlen3 YXPy01 8.6 YXPy01 8.1 YXPy01 7.6 YXPy01 7.6 YXPy01 23 YXPy01 7.6 YXPy01 7.6 BSPy01 7.5 BSPy01 6.4 BSPy01 5.4 BSPy01 15 BSPy01 6.6 BSPy01 5.5 YLPy01 5.4 YLPy01 5.4 YLPy01 5.6 YLPy01 21 YLPy01 5.4 YLPy01 5.4 YLPy01 5.4 YLPy01 4.9 Thank you a lot in advance. Best regards, Mao J-F [[alternative HTML version deleted]]