Consider a researcher planning a study to investigate the association between smoking and lung cancer. Using G*Power, the researcher can calculate the sample size needed to detect a specific relative risk with a given power and significance level. Another example could be a study on the effectiveness of a new vaccine where G*Power is used to determine the number of participants required to observe a significant difference in infection rates between vaccinated and unvaccinated groups.