hedgedrf
An Implementation of the Hedged Random Forest Algorithm
Description
This algorithm is described in detail in the paper "Hedging Forecast Combinations With an Application to the Random Forest" by Beck et al. (2024) <https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5032102>. The package provides a function hedgedrf() that can be used to train a Hedged Random Forest model on a dataset, and a function predict.hedgedrf() that can be used to make predictions with the model.
Downloads
178
Last 30 days
23249th
473
Last 90 days
1.9K
Last year
Trend: +18.7% (30d vs prior 30d)
CRAN Check Status
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | ERROR |
| r-devel-linux-x86_64-debian-gcc | ERROR |
| r-devel-linux-x86_64-fedora-clang | ERROR |
| r-devel-linux-x86_64-fedora-gcc | ERROR |
| r-devel-macos-arm64 | ERROR |
| r-devel-windows-x86_64 | ERROR |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | ERROR |
| r-patched-linux-x86_64 | ERROR |
| r-release-linux-x86_64 | ERROR |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | ERROR |
Check details (20 non-OK)
dependencies in R code
Missing or unexported object: ‘CVXR::solve’
examples
Running examples in ‘hedgedrf-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: hedgedrf
> ### Title: hedgedrf
> ### Aliases: hedgedrf
>
> ### ** Examples
>
> rf <- hedgedrf(mpg ~ ., mtcars[1:26, ])
Error: 'solve' is not an exported object from 'namespace:CVXR'
Execution halted
dependencies in R code
Missing or unexported object: ‘CVXR::solve’
examples
Running examples in ‘hedgedrf-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: hedgedrf
> ### Title: hedgedrf
> ### Aliases: hedgedrf
>
> ### ** Examples
>
> rf <- hedgedrf(mpg ~ ., mtcars[1:26, ])
Error: 'solve' is not an exported object from 'namespace:CVXR'
Execution halted
dependencies in R code
Missing or unexported object: ‘CVXR::solve’
examples
Running examples in ‘hedgedrf-Ex.R’ failed The error most likely occurred in: > ### Name: hedgedrf > ### Title: hedgedrf > ### Aliases: hedgedrf > > ### ** Examples > > rf <- hedgedrf(mpg ~ ., mtcars[1:26, ]) Error: 'solve' is not an exported object from 'namespace:CVXR' Execution halted
dependencies in R code
Missing or unexported object: ‘CVXR::solve’
examples
Running examples in ‘hedgedrf-Ex.R’ failed The error most likely occurred in: > ### Name: hedgedrf > ### Title: hedgedrf > ### Aliases: hedgedrf > > ### ** Examples > > rf <- hedgedrf(mpg ~ ., mtcars[1:26, ]) Error: 'solve' is not an exported object from 'namespace:CVXR' Execution halted
dependencies in R code
Missing or unexported object: ‘CVXR::solve’
examples
Running examples in ‘hedgedrf-Ex.R’ failed The error most likely occurred in: > ### Name: hedgedrf > ### Title: hedgedrf > ### Aliases: hedgedrf > > ### ** Examples > > rf <- hedgedrf(mpg ~ ., mtcars[1:26, ]) Error: 'solve' is not an exported object from 'namespace:CVXR' Execution halted
dependencies in R code
Missing or unexported object: 'CVXR::solve'
examples
Running examples in 'hedgedrf-Ex.R' failed The error most likely occurred in: > ### Name: hedgedrf > ### Title: hedgedrf > ### Aliases: hedgedrf > > ### ** Examples > > rf <- hedgedrf(mpg ~ ., mtcars[1:26, ]) Error: 'solve' is not an exported object from 'namespace:CVXR' Execution halted
dependencies in R code
Missing or unexported object: 'CVXR::solve'
examples
Running examples in 'hedgedrf-Ex.R' failed The error most likely occurred in: > ### Name: hedgedrf > ### Title: hedgedrf > ### Aliases: hedgedrf > > ### ** Examples > > rf <- hedgedrf(mpg ~ ., mtcars[1:26, ]) Error: 'solve' is not an exported object from 'namespace:CVXR' Execution halted
dependencies in R code
Missing or unexported object: ‘CVXR::solve’
examples
Running examples in ‘hedgedrf-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: hedgedrf
> ### Title: hedgedrf
> ### Aliases: hedgedrf
>
> ### ** Examples
>
> rf <- hedgedrf(mpg ~ ., mtcars[1:26, ])
Error: 'solve' is not an exported object from 'namespace:CVXR'
Execution halted
dependencies in R code
Missing or unexported object: ‘CVXR::solve’
examples
Running examples in ‘hedgedrf-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: hedgedrf
> ### Title: hedgedrf
> ### Aliases: hedgedrf
>
> ### ** Examples
>
> rf <- hedgedrf(mpg ~ ., mtcars[1:26, ])
Error: 'solve' is not an exported object from 'namespace:CVXR'
Execution halted
dependencies in R code
Missing or unexported object: 'CVXR::solve'
examples
Running examples in 'hedgedrf-Ex.R' failed The error most likely occurred in: > ### Name: hedgedrf > ### Title: hedgedrf > ### Aliases: hedgedrf > > ### ** Examples > > rf <- hedgedrf(mpg ~ ., mtcars[1:26, ]) Error: 'solve' is not an exported object from 'namespace:CVXR' Execution halted
Check History
ERROR 6 OK · 0 NOTE · 0 WARNING · 8 ERROR · 0 FAILURE Mar 10, 2026
dependencies in R code
Missing or unexported object: ‘CVXR::solve’
dependencies in R code
Missing or unexported object: ‘CVXR::solve’
dependencies in R code
Missing or unexported object: ‘CVXR::solve’
dependencies in R code
Missing or unexported object: ‘CVXR::solve’
dependencies in R code
Missing or unexported object: 'CVXR::solve'
dependencies in R code
Missing or unexported object: ‘CVXR::solve’
dependencies in R code
Missing or unexported object: 'CVXR::solve'
dependencies in R code
Missing or unexported object: 'CVXR::solve'