search for: interstr

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

Did you mean: intersts
2006 Mar 03
1
extracting p-values from lmer outputs
...merout = lmer(Y ~ X1 * X2 + (1|Subj), data = dat, family = "binomial") sink("lmerout.txt") lmerout sink() lmerout.string = readChar("lmerout.txt",20000) splitstring = strsplit(lmerout.string,"\r\n") # If I counted right, the line with the interaction is [19]: interstring = strsplit(splitstring[[1]][19]," ") # Lines contain TABs, so the p-value is the eighth element along: pvalue = as.numeric(interstring[[1]][8]) if(pvalue < .05) print("The interaction is significant!")