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
Closed

Add support for handling non-full rank models #24

merliseclyde opened this issue Jul 13, 2018 · 1 comment

Comments

@merliseclyde
Copy link
Owner

related to issue #21

@merliseclyde
Copy link
Owner Author

merliseclyde 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
Projects
None yet
Development

No branches or pull requests

1 participant