search for: concn

Displaying 2 results from an estimated 2 matches for "concn".

Did you mean: conc
2012 Aug 28
4
predict.lm(...,type="terms") question
...olecule, use the model to predict concentrations of the molecule in the unknowns. In other words, given y = mx +b, I need to solve x' = (y'-b)/m for new data y' and in R, I'm trying something like this require(stats) data <- data.frame(area = c(4875, 8172, 18065, 34555), concn = c(25, 50, 125, 250)) new <- data.frame(area = c(8172, 10220, 11570, 24150)) model <- lm(area ~ concn, data) pred <- predict(model, type = "terms") #predicts from original data pred <- predict(model, type = "terms", newdata = new) #error pred <- p...
2009 Mar 01
1
SPSS repeated interaction contrast in R
...0,489,546,574,541,523,536,556,532, 510,543,557,531,554,532,573,528,514,842,785,851,932,888,920,856,840, 1010,877,784,901,845,923,798,907,903,758) m <- data.frame(RT, TaskSwitch,CongruenceNow,CongruenceBefore,Subjects) # defining repeated contrasts for all factors conCN = matrix(c(1,0, -1,1, 0,-1), nrow = 3, ncol = 2, byrow = TRUE) contrasts(m$CongruenceNow) <- conCN conTS = matrix(c(1, -1), nrow = 2, ncol = 1, byrow = TRUE) contrasts(m$TaskSwitch) <- conTS conCB = matrix(c(1,0,...