- Several updates to the
makeDoe()
function, including an improved print out of the summary of the design (D-efficiency & balanced or not), as well as optional arguments to conduct a search of designs. - Added a new
evaluateDoe()
function which returns a list of information about a given design, including the D-efficiency and whether or not the design is balanced. - Changed the name of
recodeDesign()
torecodeDoe()
and made it more robust to different data types inlevels
. - Replaced the use of
parallel::mcapply()
inestimateModels()
that was introduced in 0.0.7 with justlapply()
as theparallel
approach is not supported in Windows. Will add more robust parallel implementation in next package update.
Bug fixes:
- Major bug introduced on commit 3ba7a3e where the data list being generated to iterate over subsets of the data was selecting far too few rows. This is fixed.
- When using
simulateChoices()
with a provided utility model, the function was incorrectly categorizing categorical variables with only 2 levels as being numeric. This is now fixed. - After updates were made in logitr v0.0.4, the returnData argument actually returned all the data, so extra repeated columns were being returned after predicting choices. This is now fixed.
- Updated functions to use new
predict.logitr()
method introduced in {logitr} v0.4.0. - Removed dependency on {data.table} and added use of {parallel} to increase speed of the
estimateModels()
function. - Added a
print.cjtools()
method for a prettier printing of the models object that is returned from theestimateModels()
function.
Improved how the models are estimated in estimateModels()
for increased speed using a nested approach with {data.table}.
Updated functions to be consistent with some breaking changes introduced when {logitr} was updated from 0.2.0 to 0.3.0, which is necessary since {logitr} is the underlying package used to estimate models in the power analyses.
- Added
estimateModels()
andgetModelResults()
functions for conducting a power analysis. - Made small changes to improve the
simulateChoices()
function. - Added support for adding an outside good in the
makeSurvey()
function.
- Major breaking changes made to the user interface.
- Overhaul of the
makeDoe()
andmakeSurvey()
functions to enable grouped designs. - Added the
recodeDesign()
function. - Added preliminary functions for simulating choices.
Interactions!
- Added support for creating interactions among variables
- Removed summary plot function to drop ggplot dependencies
- Added a few new examples on how to use the interactions argument.
- Created new functions for creating different experiment designs:
- Full factorial
- "D", "A", and "I" optimal designs
- Modified previous functions for creating a coded survey from a given experiment design
- Changed the output of the sampleSizer function to show the sample size (rather than the number of observations, which can be different since respondents may answer more than one choice question).
- Added a
NEWS.md
file to track changes to the package.