R/linearRegressionModel.R

Defines functions linearRegressionModel

Documented in linearRegressionModel

linearRegressionModel <-
function(x, y, pcaMethod="prcomp", pcaParams=NULL){
  m = lm(y ~ ., data=as.data.frame(x))

  resp = abs(summary(m)$r.squared)
  
  return(resp)
}
juscelino-izidoro/supcavs documentation built on Jan. 2, 2022, 7:49 a.m.