Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in summary when using . in formula #7

Open
mfansler opened this issue Jun 30, 2022 · 0 comments
Open

Error in summary when using . in formula #7

mfansler opened this issue Jun 30, 2022 · 0 comments

Comments

@mfansler
Copy link

Problem

The summary function does not handle formula specifications that use . (to indicate all variables).

Reproducible Example

library(DirichletReg)
data("ArcticLake")

df_al <- ArcticLake[,"depth", drop=FALSE]
df_al$Y <- DR_data(ArcticLake[,c(1,2,3)])

model_al <- DirichReg(Y ~ ., df_al)

summary(model_al)

which results in the error:

Error in terms.formula(fi, ...) : '.' in formula and no 'data' argument

Additional Info

I checked all other methods implemented for the DirichletRegModel class and found that they function as expected.

System Details

> sessionInfo()
R version 4.1.3 (2022-03-10)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: macOS Big Sur 11.6.7

Matrix products: default
LAPACK: /Users/mfansler/miniconda3/envs/brms_r41/lib/libopenblasp-r0.3.20.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] DirichletReg_0.7-1 Formula_1.2-4     

loaded via a namespace (and not attached):
 [1] zoo_1.8-10       compiler_4.1.3   generics_0.1.2   miscTools_0.6-26 sandwich_3.0-2   tools_4.1.3      maxLik_1.5-2    
 [8] grid_4.1.3       digest_0.6.29    lattice_0.20-45 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant