Skip to content

Commit

Permalink
fix for returnAllResults
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexChristensen committed Mar 26, 2024
1 parent 6d271ac commit cc0d502
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/EBICglasso.qgraph.R
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
#' @export
#'
# Computes optimal glasso network based on EBIC ----
# Updated 24.10.2023
# Updated 26.03.2024
EBICglasso.qgraph <- function(
data, # Sample covariance matrix
n = NULL,
Expand Down Expand Up @@ -365,17 +365,17 @@ EBICglasso.qgraph <- function(
if(model.selection == "ebic"){

# Add EBICs and Log-likelihoods
results$ebic <- EBICs; results$loglik <- lik;
result$ebic <- EBICs; result$loglik <- lik;

}else if(model.selection == "jsd"){

# Add JSDs
results$jsd <- JSDs
result$jsd <- JSDs

}

# Return results
return(results)
return(result)

}

Expand Down

0 comments on commit cc0d502

Please sign in to comment.