Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jul 22, 2024
1 parent e747909 commit 1cc4358
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/methods_systemfit.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ p_value.systemfit <- function(model, ...) {

#' @export
degrees_of_freedom.systemfit <- function(model, ...) {
df <- NULL
dof <- NULL
s <- summary(model)$eq
params <- insight::find_parameters(model)
f <- insight::find_formula(model)
Expand All @@ -93,10 +93,10 @@ degrees_of_freedom.systemfit <- function(model, ...) {
for (i in seq_along(system_names)) {
dfs <- rep(s[[i]]$df[2], length(params[[i]]))
df_names <- rep(names(params[i]), length(params[[i]]))
df <- c(df, stats::setNames(dfs, df_names))
dof <- c(dof, stats::setNames(dfs, df_names))
}

df
dof
}


Expand Down

0 comments on commit 1cc4358

Please sign in to comment.