Selection bias is a kind of bias that is introduced by the selection of individuals, groups or data for analysis in such a way that proper randomization is not achieved. This means that the sample may no longer represent the population to be analyzed. Sometimes, this is called selection effect.
There are different ways a selection bias can be introduced, for example.
A statistical method called Heckman correction can correct some of these, in certain circumstances.