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

Feature/class effects #37

Open
wants to merge 84 commits into
base: develop
Choose a base branch
from

Conversation

sjperren
Copy link

Adding class effects into the multinma package

…classes in the network (is.null(network$classes)) and give an error if not
…rior_class_sd being left at default values if class_effects == "exchangeable"
…eviations to pass on to nma.fit() (and then to Stan), based on the specification given in class_effects and class_sd. Let 0 mean no class effect on this treatment/arm. With the list structure for class_sd, passing this to forcats::fct_collapse() as a simple way to collapse the class SDs
…uments and design vectors into nma.fit(). Also added checks
…s. Also a flag (integer 0/1) for whether a class model is used or not might be helpful? E.g. class_effects which is 1 if exchangeable class effects are used, 0 otherwise.
Change inputs into nma.fit() from CE_vector to CE_vector_num
Moved class naming to nma() rather than nma.fit()
Change the coding of which_class function
…tatements to != "independent" to =="exchangeable".

Quick fix of if (class_effects != "common" && !is_network_connected(network)) as produced errors before
@dmphillippo dmphillippo self-requested a review April 17, 2024 14:12
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

Successfully merging this pull request may close these issues.

None yet

2 participants