stuwrighthealthecon / MANC-RISK-SCREEN

This repository contains the files required to run a discrete event simulation based economic evaluation of a number of different screening strategies to detect breast cancer in women in the UK
3 stars 1 forks source link

Warnings generated after running i loop #49

Open stuwrighthealthecon opened 10 months ago

stuwrighthealthecon commented 10 months ago

Problem After running an analysis the code reports a large number of warnings

Probably cause An object in the code being written into a space that is too large for it. I.e. a vector being written into a longer vector whose size is not a multiple of the original vector. Alternatively, the model may be trying to combine vectors of different lengths in an object resulting in open spaces at the end of some vectors which are then filled with the first value.

Consequence We do not believe this error affects the results. It has only appeared in a recent version of the model and the results align with the results of previous versions. It is likely that part of the vector just repeats itself again at the end of the larger vector. It may be worth checking the clinical outputs of the model if these are being used in case a column is being repeated.

Short term fix Ignore warnings

Long term fix Check length of vectors aligns in code