作者:王力
链接:https://zhuanlan.zhihu.com/p/22198528
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
Standard regression models
- A detailed overview of the available regression methodologies is provided by the Econometrics task view. This is complemented by the Robust which focuses on more robust and resistant methods.
- Linear models such as ordinary least squares (OLS) can be estimated by (from by the stats package contained in the basic R distribution). Maximum Likelihood (ML) estimation can be undertaken with the standard function. Many other suitable methods are listed in the Optimization view. Non-linear least squares can be estimated with the function, as well as with from the nlme package.
- For the linear model, a variety of regression diagnostic tests are provided by the car, lmtest, strucchange, urca, and urca. The Rmetrics packages fGarch, timeSeries (formerly: fSeries), fTrading, fUnitRoots and contains a very large number of relevant functions for different aspect of empirical and computational finance.
- The RQuantLib package provides several option-pricing functions as well as some fixed-income functionality from the QuantLib project to R.
- The quantmod package offers a number of functions for quantitative modelling in finance as well as data acqusition, plotting and other utilities.
- The portfolio package contains classes for equity portfolio management; the portfolioSim builds a related simulation framework. The backtest offers tools to explore portfolio-based hypotheses about financial instruments. The stockPortfolio package provides functions for single index, constant correlation and multigroup models. The pa package offers performance attribution functionality for equity portfolios.
- The PerformanceAnalytics package contains a large number of functions for portfolio performance calculations and risk management.