Displaying 1 result from an estimated 1 matches for "replval".
Did you mean:
rep_val
2002 Jun 28
0
handling of missing values in aov/lm
...on to find the factor columns!
Subjects<-length(levels(df$Snr))
## construct an array to receive the means for each combination of
the relevant factors:
Types<-length(levels(df$Type))
sizes<-length(levels(df$size))
Modalities<-length(levels(df$Modality))
replval<-rep(NA, Subjects*Types*sizes*Modalities)
dim(replval)<-c(Subjects,Types,sizes,Modalities)
nSS<-as.numeric(df$Snr)
nT<-as.numeric(df$Type)
nS<-as.numeric(df$size)
nM<-as.numeric(df$Modality)
for( i in 1:ncol(df) ){
m<-mean(df[,i],na.rm=T)...