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

Add support for handling non-full rank models #24

Closed
merliseclyde opened this issue Jul 13, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@merliseclyde
Copy link
Owner

commented Jul 13, 2018

related to issue #21

@merliseclyde

This comment has been minimized.

Copy link
Owner Author

commented Jul 20, 2018

added in branch interaction [Edited to add that update is now in master]

Example

devtools::install_github("merlise clyde/BAS")
set.seed(42)
dat = data.frame(Y = rnorm(5), X1=1:5, X2=1:5, X3 = rnorm(5))
lm.ob = lm(Y ~ ., data=dat)
summary(lm.ob)$coefficients
(summary(lm.ob)$sigma)^2

set.seed(42)
tmp = bas.lm(Y ~ ., data=dat, prior="BIC", modelprior=uniform(), method="BAS", pivot=TRUE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.