Skip to content

Beta family: Error due to 1s being generated #116

Description

@IreneSophia

I want to use this package with the standard Beta function. However, whenever I'm trying to simulate the data, I always get this error:

Error in data_response.brmsframe(bframe, data, check_response = check_response, : Family 'beta' requires response smaller than 1.

Any ideas what's happening here? Using SBC version 0.5.0.9000 and brms version 2.23.0.

Here's a minimal example:

library(SBC)
library(brms)

df = data.frame(Outcome = rep(0.5, times = 100))

gen = SBC_generator_brms(Outcome ~ 1, data = df, family = Beta,
                         thin = 50, warmup = 10000, refresh = 2000,
                         generate_lp = TRUE)
dat = generate_datasets(gen, 100)

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