gemmr.sample_size.linear_model._save_linear_model
- gemmr.sample_size.linear_model._save_linear_model(model, data_home=None, verbose=False)
Save linear model.
Creates csv files with parameters for
criterion == ‘combined’
target_power == 0.9
target_error == 0.1
When these parameters are given in
cca_sample_size()orpls_sample_size(), then linear model coefficients are read from file “gemmr.datasets.sample_size_lm_[model].csv”. This allows to quickly calculate sample sizes without having the complete outcome data available.For internal use.
- Parameters:
model (str) – ‘cca’ or ‘pls’
data_home (None or str) – if
strindicates path where outcome data are stored,Noneis interpreted as default pathverbose (bool) – if
Trueintercept and coefficients of fitted linear model are printed to stdout