Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Nov 19, 2024
1 parent ec35395 commit d3621c7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions R/methods_DirichletReg.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ standard_error.DirichletRegModel <- function(model, component = "all", ...) {
SE = as.vector(model$se)
)

if (!is.null(params$Component)) {
out$Component <- params$Component
} else {
if (is.null(params$Component)) {
component <- "all"
} else {
out$Component <- params$Component
}

if (component != "all") {
Expand All @@ -111,10 +111,10 @@ p_value.DirichletRegModel <- function(model, component = "all", ...) {
p = as.vector(2 * stats::pnorm(-abs(params$Estimate / model$se)))
)

if (!is.null(params$Component)) {
out$Component <- params$Component
} else {
if (is.null(params$Component)) {
component <- "all"
} else {
out$Component <- params$Component
}

if (component != "all") {
Expand Down

0 comments on commit d3621c7

Please sign in to comment.