SachaEpskamp / bootnet

Bootstrap methods for various network estimation routines
30 stars 14 forks source link

How to set alpha parameter of elastic net penalty in estimatenetwork function? #112

Closed dengxuebin closed 1 year ago

dengxuebin commented 1 year ago

Hi,SachaEpskamp, I have a piece of code like the following, but I don't know how to specify elastic net penalty for estimation. I think the code should employ the Lq penalty as default(i.e., "tuning=0.5" means γ=0.5), right? How to set α parameter from elastic net penalty? Hope you reply, thanks a lot!

Network<-estimateNetwork(as.matrix(sdrgroup), default = "mgm", type = types, criterion ="EBIC", level = levelgroup, order = 2, threshold = "HW", )

SachaEpskamp commented 1 year ago

Hi! The ... in the help page indicate that any argument can be passed to the underlying mgm function, so you can just use the alphaSeq argument from mgm directly in estimateNetwork.

dengxuebin commented 1 year ago

I got it,thanks a lot!