code of Adaptive Lasso
Boyle-Coffee opened this issue · comments
I found a difference between the code of Adaptive Lasso in this package and the code in R package.
This is the code in this package:
And This is the code in R package:
It is different that the R package let the X divided by the weights which was generated from linear regression while this package let the X times the weights.
And here is the formula I found:
@Boyle-Coffee Thanks for using lingam.
In the paper, weights are defined as w=1/|beta|^gamma .
Then, X**=X/w and beta*=beta**/w are defined.
So, instead of dividing X by w, we multiply X by |beta|^gamma.
In our code, we have named the variable |beta|^gamma as weights.
OK, thank you very much.