简体   繁体   English

最小但快速的加权-最小二乘回归

[英]Minimal but fast Weighted- Least Squares Regression

I know that similar questions have been asked in the past but mine has to do with weighted regression in which only the coefficients are needed. 我知道过去也曾提出过类似的问题,但我的工作与只需要系数的加权回归有关。 The computation should be as fast as possible. 计算应尽可能快。 I know that ls.fit and some Rcpp package functions are options here. 我知道ls.fit和一些Rcpp软件包功能是这里的选项。 What is the consensus on the fastest, most minimal way to carry out weighted regressions though? 但是,关于进行加权回归的最快,最最少方法的共识是什么?

First, work out the linear algebra to get just the terms you need (a problem outside the scope of this site; try stats.stackexchange.com if you need help). 首先,计算线性代数以获取所需的项(此站点范围外的问题;如果需要帮助,请尝试stats.stackexchange.com)。 Then run that calculation in a speedy fashion. 然后以快速的方式运行该计算。 Depending on what that calculatin looks like, your approach will vary. 根据钙调蛋白的外观,您的方法会有所不同。

Likely ways to speed things up: 加快速度的可能方法:

  • Install an optimized BLAS 安装优化的BLAS
  • Buy a cluster and use parallel computing 购买集群并使用并行计算
  • Buy a graphics card and use gpu-tools 购买图形卡并使用GPU工具

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM