search for: ind_yes

Displaying 1 result from an estimated 1 matches for "ind_yes".

Did you mean: id_yes
2012 Mar 23
0
loops
Hi I'm running QDA on some data and calculating the discriminant function. qda.res <- qda(type ~ npreg + glu + bp + skin + bmi + ped + age) ind_yes <- c(1:N)[type == "Yes"] > ind_no <- c(1:N)[type == "No"] > cov_yes <- cov(table[ind_yes, 1:7] ) > cov_no <- cov(table[ind_no, 1:7] ) > covar<-list(cov_no, cov_yes) qdf<- function(x, prior, mu, covar) + {x<- matrix(as.numeric(A[i,]), ncol=1...