Calculate Leave-One-Out Prediction for GLM
2015-12-14 08:34
239 查看
In the model development, the “leave-one-out” prediction is a way of cross-validation, calculated as below:
1. First of all, after a model is developed, each observation used in the model development is removed in turn and then the model is refitted with the remaining observations
2. The out-of-sample prediction for the refitted model is calculated with the removed observation one by one to assemble the LOO, e.g. leave-one-out predicted values for the whole model development sample.
The loo_predict() function below is a general routine to calculate the LOO prediction for any GLM object, which can be further employed to investigate the model stability and predictability.
1. First of all, after a model is developed, each observation used in the model development is removed in turn and then the model is refitted with the remaining observations
2. The out-of-sample prediction for the refitted model is calculated with the removed observation one by one to assemble the LOO, e.g. leave-one-out predicted values for the whole model development sample.
The loo_predict() function below is a general routine to calculate the LOO prediction for any GLM object, which can be further employed to investigate the model stability and predictability.
相关文章推荐
- ORACLE 迁移
- python学习日记_第五天(ex12~13)
- 重写和重载的区别
- java项目——java中线程共享数据同步解决办法
- mysql数据库配置安装
- 北京Uber优步司机奖励政策(12月14日)
- POJ3278 Catch That Cow 简单BFS
- 什么是设计模式
- centos 安装 使用本地图像文件来安装网络安装
- 重写和重载的区别
- 【转】Bash脚本实现批量作业并行化
- 向右滑动返回上一页
- jQuery点击按钮弹出遮罩层且内容居中特效
- 承担责任
- HDU 4544 湫湫系列故事——消灭兔子
- 学习算法 - 表指针实现~ C++
- Longest Substring Without Repeating Characters
- CMD经常使用的命令
- 使用 netcat [nc] 命令对 Linux 和 Unix 进行端口扫描
- DVWA系列之12 利用Burpsuite进行暴力破解