Displaying 3 results from an estimated 3 matches for "logduration".
2009 Aug 31
1
ssanova help
.... I would
like to smooth over time, and the following works:
ssanova(Measurement ~ ScaleTime, data = data)
I would also like to see how the variable duration affects the curve, so I
have another column in the dataframe which contains the log duration. I did
it like so:
Durations <- data.frame(LogDuration = log(tapply(data$Time, data$Token,
max)), Token = levels(data$Token)
data <- merge(data, Durations, by = "Token")
Now every measurement point for every observation also has the log(duration)
of the entire observation associated with it.
I would assume that the following is how I sho...
2012 Apr 05
0
Warning message: Gamlss - Need help
...code that I wrote:
install.packages("gamlss")
library(utils)
library(MASS)
library (gamlss)
Data_Reduced = read.table(file.choose(), header=TRUE, sep="\t")
model1<-gamlss(Events~ factor(Solo_Time) + factor(Fleet)+ Father_SS + Mother_SS + random(factor(Driver_ID)) + offset(logDuration), sigma.fo=~random(factor(Driver_ID)), data = na.omit(Data_Reduced), family=NBI, na.action = "na.omit")
summary(model1)
Thanks in advance.
Best regards,
Haneen
--------------------------------------------------------------------------------------
Haneen Farah, Ph.D.
Department of Tra...
2012 Mar 25
2
avoiding for loops
I have data that looks like this:
> df1
group id
1 red A
2 red B
3 red C
4 blue D
5 blue E
6 blue F
I want a list of the groups containing vectors with the ids. I am
avoiding subset(), as it is
only recommended for interactive use. Here's what I have so far:
df1 <- data.frame(group=c("red", "red", "red", "blue",