Skip to content

Commit d3621c7

Browse files
committed
lintr
1 parent ec35395 commit d3621c7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

R/methods_DirichletReg.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ standard_error.DirichletRegModel <- function(model, component = "all", ...) {
8383
SE = as.vector(model$se)
8484
)
8585

86-
if (!is.null(params$Component)) {
87-
out$Component <- params$Component
88-
} else {
86+
if (is.null(params$Component)) {
8987
component <- "all"
88+
} else {
89+
out$Component <- params$Component
9090
}
9191

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

114-
if (!is.null(params$Component)) {
115-
out$Component <- params$Component
116-
} else {
114+
if (is.null(params$Component)) {
117115
component <- "all"
116+
} else {
117+
out$Component <- params$Component
118118
}
119119

120120
if (component != "all") {

0 commit comments

Comments
 (0)