Displaying 1 result from an estimated 1 matches for "quantificatio".
Did you mean:
quantification
2009 Aug 20
1
Questions on factors in regression analysis
...without quantifying these factors and assigning different values to factors
would not change the fittings as shown:
x <- 1:20 ## numeric predictor
yes.no <- c("yes","no")
factors <- gl(2,10,20,yes.no) ##factor predictor
factors.quant <- rep(c(18.8,29.9),c(10,10)) ##quantificatio of factors
factors.quant.1 <- rep(c(16.9,38.9),c(10,10))
##second quantificatio of factors
response <- 0.8*x + 18 + factors.quant + rnorm(20) ##response
lm.quant <- lm(response ~ x + factors.quant) ##lm with quantifications
lm.fact <- lm(response ~ x + factors) ##lm with factors
lm...