Learn R Programming

rFSA (version 0.9.6)

bdist: An rFSA Criterion Function.

Description

rFSA Criterion Function to compute the Bhattacharyya distance.

Usage

bdist(model, name = "B Distance")

Arguments

model

lm or glm fit to be passed.

name

passed to print.FSA

Examples

Run this code
# NOT RUN {
#To use Bhattacharyya Distance and FSA the response must be binary, and you must
#be considering searching for two way continuous interactions. 
data(mtcars)
fit<-FSA(formula = "am~gear*hp",data = mtcars,
fitfunc = glm,family="binomial",m = 2,cores=1,
interactions = TRUE,criterion = bdist,minmax = "max")
# }

Run the code above in your browser using DataLab