simulate_all
- pyoptex.analysis.estimators.sams.simulation.simulate_all(model, model_size, tqdm=True)[source]
Sample and fits all possible models.
Parameters
- model
Model The model to fit such as an OLS or a mixed model.
- model_sizeint
The total size of each overfitted model.
- tqdmbool
Whether to use tqdm to track the progress.
Returns
- resultsnp.array(1d)
A numpy array with a special datatype where each element contains two arrays of size model_size (‘model’, np.int64), (‘coeff’, np.float64), and one scalar (‘metric’, np.float64). Results contains nb_models elements.
- model