Displaying 1 result from an estimated 1 matches for "conlen3".
Did you mean:
conlen
2009 Jun 16
1
How to replace outliers by group median?
...ogramming.
Can anybody share any R script to do that? I think that is also valuable to
so many others who 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 y...