You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get_partial_correlation_from_precision = function(Theta,selfEdges=FALSE)
{
# by default, does not return self edges (diagonal is set to zero)
ggm = -cov2cor(Theta)
if(!selfEdges)
ggm[diag(ggm)] = 0
return(ggm)
}
ggm[diag(ggm)] = 0 needs to be changed to diag(ggm)=0
Thanks,
Chen
The text was updated successfully, but these errors were encountered:
@katehoffshutta
ggm[diag(ggm)] = 0
needs to be changed todiag(ggm)=0
Thanks,
Chen
The text was updated successfully, but these errors were encountered: