Skip to content

LLchisq chokes when faced with non-likelihood based model #321

Description

@jslefche
library(piecewiseSEM)
library(MASS)

df <- data.frame(
  a = rnorm(100),
  b = rnorm(100),
  c = rnorm(100),
  random = letters[1:4])

model <- psem(
  glmmPQL(a ~ b, random = ~ 1 | random, family = "gaussian", data = df),
  glmmPQL(b ~ c, random = ~ 1 | random, family = "gaussian", data = df)
)

summary(model)

LLchisq(model)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions