[R] model non-nested random effects in nlme library

2012-01-23 Thread mwege
Hello all, In lme4 if you want to model two non-nested random effects you code it like this: mod1 - lmer(y~x + (1|randomvar1) + (1|randomvar2)) How would you go about to model something similar in nlme? In my database I have two variables for which I have repeated measures, lets call them

Re: [R] model non-nested random effects in nlme library

2012-01-23 Thread mwege
Season Individual FT FTLengthCurvIndex dir.lin 2009W GW522 1 20 0.538931977 1.8884631 2009W GW522 2 28 0.498651384 0.8379838 2010W A1841 17 0.492549537 1.23907 2010W A1842 23 0.630582873

[R] Find values from one dataframe between certain values in another dataframe

2011-06-15 Thread mwege
Hi all, I have a 2 files, one with a series of beginning and end times of animal dives in (lets call it dives). The other file is readings from a time-depth recorder, there is a datetime reading for every second, a temperature and light level reading (lets call it tdr). Now I want to say from

[R] Package diveMove readTDR problem

2011-04-06 Thread mwege
Hi, I am trying to read my TDR data into R using the readTDR function for the diveMove package. seal - readTDR(file location and name here, dateCol=1, depthCol=3, speed=FALSE, subsamp=1, concurrentCols=4:5) But I keep getting the following error: Error: all(!is.na(time)) is not TRUE All my