Hello, I am trying to start a code with midas package installed. On the internet, I have not found any similar issue.
library(midasml)
high_frequency_data <- c(1, 2, 3, 4, 5)
low_frequency_data <- c(10, 20, 30)
lags <- c(1, 2)
midas_model <- midas_r(high_frequency_data, low_frequency_data, lags = lags)
summary(midas_model)
even when I use midasr package, the issue persists.
type orlibrary(midasr)
high_frequency_data <- c(1, 2, 3, 4, 5)
low_frequency_data <- c(10, 20, 30)
lags <- c(1, 2)
midas_model <- midas_r(high_frequency_data, low_frequency_data, lags = lags)
summary(midas_model) paste code here
This is the error I get:
Loading required package: sandwich
Loading required package: optimx
Loading required package: quantreg
Loading required package: SparseM
Attaching package: ‘SparseM’
The following object is masked from ‘package:base’:
backsolve
Registered S3 method overwritten by 'quantmod':
method from
as.zoo.data.frame zoo
Error in new.env(parent = environment(formula)) :
use of NULL environment is defunct
Calls: midas_r -> new.env
Execution halted
Any help would be welcome