Comments (5)
big_spLinReg()
may perform some scaling internally, but it will always return effect sizes corresponding to the input data (i.e. before any internal scaling).- I guess the way you compute r2 is wrong since it should be invariant of any scale of either
pred
andtrue
; just usecor()^2
orpcor()^2
(possibly also keeping the sign).
from bigstatsr.
Thank you for the very fast response!
Do you mean that if I want my predictors to be on the same scale in test data than in training data, I should scale them externally? How to do that then in case of genotype data?
Thanks for pointing out the mistake in R2 calculation. However, I'm a little confused because I have been taught that when calculating R2, MSE should be used to ensure that predictions are on the correct scale of the outcome variable, and that using cor()^2
can be misleadingly optimistic. Can you explain why I should ignore the linear scale difference between the prediction and the outcome?
from bigstatsr.
I am not saying that you should not care about the prediction not being calibrated; I'm just saying that R2 does not measure calibration.
If you use the training data as is, which is then scale internally in big_spLinReg()
but unscale to report the effects, then you should not have to scale the test data.
from bigstatsr.
Related Issues (20)
- Support for character type data? HOT 1
- OpenMP flag is not passed HOT 19
- Estimation of model performance HOT 1
- Predicting using only 1 specific lambda value HOT 2
- Fixed and random effect HOT 6
- Perform `colSums(X^2)` on FBM object HOT 2
- Variable selection HOT 6
- How to get p-value out of gwas<-big_univLinReg(...) object? HOT 10
- How to ensure indices of response are aligned with the genotype matrix in big_univLogReg? HOT 6
- Specify the location of the backing file resulting from `big_cor` HOT 8
- Binary traits problem HOT 1
- The result is NA HOT 12
- How to delete a .bk file during a session HOT 2
- Is there a function similar to rbind(), cbind() but for FBM objects HOT 2
- How to use big_apply properly HOT 4
- How to cbind/rbind two big matrices that have the same dimension HOT 11
- Issues with locking of the backing file HOT 6
- Implementation of `dimnames` for FBM matrices HOT 2
- Error in `big_cor()` when using `block.size = 1`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bigstatsr.