I run a post-estimation analysis on market share prediction for segments (subgroups) of my sample. My sample is cross-sectional and has 434 observations.
I estimated a simple MNL named MyModel. The database contains a characteristic (categorical) inc with 5 outcomes.
When I run
Code: Select all
sharesTest_settings=list()
sharesTest_settings[["alternatives"]] = c(A=1,B=2,C=3,D=4,E=5)
sharesTest_settings[["choiceVar"]] = database$choice
sharesTest_settings[["subsamples"]] = list(
inc10k = (database$inc == 1),
inc20k = (database$inc == 2),
inc30k = (database$inc == 3),
inc40k = (database$inc == 4),
inc50k = (database$inc == 5)
)
apollo_inputs = apollo_validateInputs()
apollo_sharesTest(MyModel,apollo_probabilities,apollo_inputs,sharesTest_settings)
Code: Select all
Error in data.frame(..., check.names = FALSE) :
arguments imply differing number of rows: 0, 434
In addition: Warning message:
In split.default(x = seq_len(nrow(x)), f = f, drop = drop, ...) :
data length is not a multiple of split variable
Best
Sven