Merged
Conversation
List of to do's (from .._anova.cpp): 1. Fix "main_model = "Free"". 2. Use "index" to vary updates to pairwise effects. 3. Add between model moves. 4. Add g prior. 5. Output for ``save''.
List of to do's (from _anova.cpp) 1. Use "index" to vary updates to pairwise effects. 2. Add between model moves. 3. Add g prior. 4. Output on ``save''
* bgmCompare; function documentation, output handling * utility_functions; helper functions for data checks and output handling * gibbs_..._anova.cpp; save options, dynamic declaration of output
Implemented RcppArmadillo for more efficient memory management in bgmCompare().
* Added full-conditional for the selection of category threshold differences for regular ordinal variables. * Small performance improvement print.bgms: * Update to variable name changes.
…g code can be used to compare new to old code.
a = Wenchuan[1:50,1:5] - 1
b = Wenchuan[151:200,1:5] - 1
a = na.omit(a)
b = na.omit(b)
a[a[,1]==3,1] = 2
xx = rbind(a,b)
group = as.vector(c(rep(1, nrow(a)), rep(2, nrow(b))))
t = bgmCompare_dev(x = a, y = b,
t.test = TRUE,
main_difference_model = "Collapse",
difference_selection = FALSE,
save = FALSE)
an = bgmCompare(x = xx,
g = group,
main_difference_model = "Collapse",
difference_selection = FALSE,
save = FALSE)
par(mfrow = c(2,2))
plot(t$posterior_mean_pairwise[,1], an$posterior_mean_pairwise[,1]); abline(0,1)
plot(t$posterior_mean_pairwise[,2], an$posterior_mean_pairwise[,2]); abline(0,1)
if("posterior_mean_indicator" %in% names(t)) {
plot(t$posterior_mean_main, an$posterior_mean_main); abline(0,1)
plot(t$posterior_mean_indicator, an$posterior_mean_indicator,
xlim = c(0,1), ylim = c(0,1)); abline(0,1)
} else {
plot(t$posterior_mean_main[,1], an$posterior_mean_main[,1]); abline(0,1)
plot(t$posterior_mean_main[,2], an$posterior_mean_main[,2]); abline(0,1)
}
Clean-up utility functions.
Fixed a parameter issue in bgmCompare
Collaborator
Author
|
@vandenman Heb jij een idee waarom de Windows check faalt? |
Collaborator
|
Heb je geprobeerd een Makevars.win te maken zoals hier? Die skeleton functie van rcpparmadillo zou dat ook maken, maar wel vreemd dat je er op de andere platforms geen nodig hebt. |
Collaborator
Author
|
Ja check, dat had ik geprobeerd idd. Maar dan zowel src/Makevars en src/Makevars.win<http://makevars.win/>, en dan compileert het niet voor de Mac. Nu los met Makevars.win wel, en nu lijken de checks ook goed te gaan! Thanks! :-)
On 3 Feb 2025, at 20:41, Don van den Bergh ***@***.***> wrote:
Heb je geprobeerd een Makevars.win te maken zoals hier<https://stackoverflow.com/a/39125546/4917834>? Die skeleton functie van rcpparmadillo zou dat ook maken, maar wel vreemd dat je er op de andere platforms geen nodig hebt.
—
Reply to this email directly, view it on GitHub<#31 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMT3LM7YXU64WI3GOUXBABL2N7A6JAVCNFSM6AAAAABWMHWCDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZRHEYTANRVGE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a major update to bgmCompare, which now allows for the comparison for two or more groups.