View source: R/the_mode_jumping_package5.r View source: R/the_mode_jumping_package4.r View source: R/the_mode_jumping_package4.0.r View source: R/the_mode_jumping_package3.r View source: R/the_mode_jumping_package2.r View source: R/the_mode_jumping_package2.0.r
estimate.logic.glm | R Documentation |
estimate.logic.glm(formula, data, family, n, m, r = 1)
formula |
a formula object for the model to be addressed |
data |
a data frame object containing variables and observations corresponding to the formula used |
family |
either poisson() or binomial(), that are currently adopted within this function |
n |
sample size |
m |
total number of input binary leaves |
r |
omitted |
a list of
mlik |
marginal likelihood of the model |
waic |
AIC model selection criterion |
dic |
BIC model selection criterion |
summary.fixed$mean |
a vector of posterior modes of the parameters |
BAS::bayesglm.fit, estimate.logic.lm
X1=as.data.frame(array(data = rbinom(n = 50*1000,size = 1,prob = 0.3),dim = c(1000,50)))
Y1=-0.7+1*((1-X1$V1)*(X1$V4)) + 1*(X1$V8*X1$V11)+1*(X1$V5*X1$V9)
X1$Y1=round(1.0/(1.0+exp(-Y1)))
formula1 = as.formula(paste(colnames(X1)[51],"~ 1 +",paste0(colnames(X1)[-c(51)],collapse = "+")))
estimate.logic.glm(formula = formula1, data = X1,family = binomial(),n = 1000, m = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.