Displaying 2 results from an estimated 2 matches for "y_name".
Did you mean:
__name
2011 Jan 26
1
boxplot - code for labeling outliers - any suggestions for improvements?
...dle cases of complex functions (e.g: boxplot(y~a*b))
- Handle cases where there are many outliers leading to a clutter of text
(to this I have no idea how to systematically solve)
Best,
Tal
------------------------------
# the function
boxplot.add.outlier.text <- function(DATA, x_name, y_name, label_name)
{
boxplot.outlier.data <- function(xx, y_name)
{
y <- xx[,y_name]
boxplot_range <- range(boxplot.stats(y)$stats)
ss <- (y < boxplot_range[1]) | (y > boxplot_range[2])
return(xx[ss,])
}
require(plyr)
txt_to_run <- paste("ddply(DATA, .(",x_name,")...
2007 Jun 18
1
Question about lmer
Hello,
We have a problem with function lmer. This is our code:
Get_values<-function(ff_count, fixed_factors, rf_count, random_factors, y_values)
{
SA<-matrix(as.array(c(fixed_factors, random_factors)), ncol=3)
data<-as.data.frame(SA)
y<-as.array(y_values)
dd<-data.frame(SA)
for(i in 1:(ff_count+rf_count)){
dd[,i]<-as.factor(data[,i])
}