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 request: Comparing Bayesian R2 #39

Open
matticervin opened this issue Jun 7, 2020 · 2 comments
Open

Feature request: Comparing Bayesian R2 #39

matticervin opened this issue Jun 7, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@matticervin
Copy link

It would be great if there was a feature that could compare Bayesian R2 for (1) variables within a network and (2) the same variable across samples.

@donaldRwilliams donaldRwilliams added the enhancement New feature or request label Jun 7, 2020
@donaldRwilliams
Copy link
Owner

I will add this soon ! Turns out we have an in progress paper looking at just this for Bayesian R2.

You can compare with the following:

# data
Y <- ptsd[,1:5]

fit <- estimate(Y)

r2 <- predictability(fit)

# compare node 1 vs node 2
diff <- r2$scores[[1]] - r2$scores[[2]]

hist(diff)

quantile(diff, probs = c(0.05, 0.95))

@matticervin
Copy link
Author

This worked! Thanks a lot!

For others that are new to this, I simply did what Donald suggested and will report:
mean(r2$scores[[1]])
mean(r2$scores[[2]]
mean(diff)
quantile(diff, probs = c(0.05, 0.95)) for credibility interval
mean(diff > 0) for posterior probability

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants