[R] outlier labels incorrectly assigned with ggplot2 box plot

2016-10-20 Thread Andreas Nord
Dear list, I want to label outliers in a ggplot box plot with the name of the subject for which outlying data were observed. I have proceeded by creating a simple function to identify outliers: is_outlier <- function(x) { return(x < quantile(x, 0.25) - 1.5 * IQR(x) | x > quantile(x, 0.75)

[R] ifelse for creating discriminating variable based on two conditions

2016-10-14 Thread Andreas Nord
Dear list, Apologies for a likely naive question. I am trying to create a discriminating dummy variable using 'ifelse' based on conditions in two variables. Specifically, I want to assign levels in a new factor as '0' or '1' based on a user-defined cut off. I.e. something similar to:

[R] lmer4 and variable selection

2008-08-25 Thread Andreas Nord
. Kind regards, Andreas Nord -- View this message in context: http://www.nabble.com/lmer4-and-variable-selection-tp19146850p19146850.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] lmer4 and variable selection

2008-08-25 Thread Andreas Nord
] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Nord Sent: Monday, August 25, 2008 9:22 AM To: r-help@r-project.org Subject: [R] lmer4 and variable selection Dear list, I am currently working with a rather large data set on body temperature regulation in wintering birds. My original model

[R] Problem with lme4 use and installation

2008-03-03 Thread Andreas Nord
Dear all, I've been trying to install the lme4 package from http://r-forge.r-project.org/projects/lme4/. However, when wanting to load the package, I get an message saying that x-tabs are masked (see pasted code). Can anyone point to what has gone wrong? Kind regards, Andreas Nord Sweden

[R] Problems with generating F-distr from lme()

2007-10-31 Thread Andreas Nord
really figure it out. So, what has happened and why? How to best interpret it? Further, any advice on how to best generate F-distributions from the lme-function is most appreciated. Many thanks in advance, Andreas Nord Sweden ind treat egg.temp kjday 79 2 27.33241 42.048 42 2

[R] Help with repeated measures!

2007-10-16 Thread Andreas Nord
factor. Best regards, Andreas Nord -- View this message in context: http://www.nabble.com/Help-with-repeated-measures%21-tf4634251.html#a13233742 Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https