merliseclyde / BAS

BAS R package https://merliseclyde.github.io/BAS/
https://merliseclyde.github.io/BAS/
GNU General Public License v3.0
41 stars 16 forks source link

[Enhancement] Remove the include.always variable from the image(obj) function #23

Closed AlexanderLyNL closed 6 years ago

AlexanderLyNL commented 6 years ago

Hi Merlise,

Would it be possible to remove the variables that are "include.always" from the plotting output:

Cheers, Alexander

merliseclyde commented 6 years ago

Yes; there is a subset option for image to specify which variables to include, so in principle we can bootstrap off of that rather easily. plot.bas does not have that option, but a similar fix should be straightforward there.

I'll probably need to add an option to save the indices of the variables that are always included as part of the output to simplify identifying them later. (needed as well for the flat prior and shrinkage in issue #22 )

merliseclyde commented 6 years ago

This is added to image.bas now in the master branch, using option drop.include.always=TRUE (default). Feedback welcome!

merliseclyde commented 6 years ago

Update: switched drop.always.included to be FALSE by default in image.bas so that defaults agree with images in Coursera course.

added subset=NULL and drop.always.included=FALSE to plot.bas so that a subset of probabilities may be shown/dropped or variables that are always forced in may be excluded. Default settings agree with what is in Coursera course.