Skip to content

Dirichlet regression: how to supply a two-part formula separated by pipes? #8

Closed Answered by MarcRieraDominguez
MarcRieraDominguez asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Joseph!
I think I have found a solution building on the solution you suggested over at Stack Overflow: fit a Dirichlet model outside the domir() call, then use update() inside domir() to pass the formula to the model.
Thank you very much for your help! I'll be happy to thank you in the Acknowledgements of a future publication.

library(DirichletReg)
#> Warning: package 'DirichletReg' was built under R version 4.1.3
#> Loading required package: Formula
#> Warning: package 'Formula' was built under R version 4.1.1
library(domir)
library(performance)
#> Warning: package 'performance' was built under R version 4.1.3

RS <- ReadingSkills
response.d <- DR_data(RS$accuracy)
#> only one variabl…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MarcRieraDominguez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants