YosefLab / scone

53 stars 12 forks source link

R-squared #91

Open drisso opened 7 years ago

drisso commented 7 years ago

This line of code: https://github.com/YosefLab/scone/blob/e2436a33f6121ec36c1a6ba13906379dbf894559/R/scone_eval.R#L319

could be more easily written as:

summary(lm(y ~ qc_factors))$r.squared
drisso commented 7 years ago

But it could be less efficient since summary computes a bunch of things not just the R-squared.