I'm following this article for implementing the single and double LASSO procedures in the hdm package, but somehow the double LASSO isn't functioning properly for me. I'll use the dataset provided by the package because that isn't working for me either, in addition to my own dataset.
As in the article, I load the GrowthData dataset, then I try to implement the double LASSO procedure:
library(hdm)
DS=rlassoEffects(Outcome~. , I=~gdpsh465, data=GrowthData)
summary(DS)
However, I'm getting the following error message:
> DS=rlassoEffects(Outcome~. , I=~gdpsh465, data=GrowthData)
Error in colnames(X) : object 'X' not found
> summary(DS)
Error in summary(DS) : object 'DS' not found
I know the official guide for rlassoEffects provides two different syntaxes for the function, so the reference to "object X" seems to refer to the other syntax.
However, why isn't the syntax style I'm using working?
Thanks!