Skip to content

Commit

Permalink
more tweaks gorica
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyDoorn committed Mar 12, 2024
1 parent e376823 commit 85bfe8a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/commonOrdinalRestrictions.R
Original file line number Diff line number Diff line change
Expand Up @@ -1173,11 +1173,12 @@
args <- list(
object = unrestrictedModel[["parsForGorica"]][["coef"]],
VCOV = unrestrictedModel[["parsForGorica"]][["vcov"]],
constraints = list(syntax),
# constraints = list(syntax),
hypotheses = list(syntax),
comparison = "none",
type = "gorica"
)

# browser()
fit <- do.call(restriktor::goric, args)
fit <- fit[["objectList"]][[1]]

Expand All @@ -1199,7 +1200,7 @@
args[["VCOV"]] <- models[["unrestricted"]][["parsForGorica"]][["vcov"]]
args[["comparison"]] <- comparison
args[["type"]] <- "gorica"
args[["constraints"]] <- as.list(.aorGetModelSyntaxes(models = models[["restricted"]]))
args[["hypotheses"]] <- as.list(.aorGetModelSyntaxes(models = models[["restricted"]]))

modelComparison <- do.call(restriktor::goric, args)
return(modelComparison)
Expand Down

0 comments on commit 85bfe8a

Please sign in to comment.