To calculate the p-value, you typically use statistical software or tools available online. The process involves setting up a null hypothesis (the default assumption that there is no effect) and an alternative hypothesis (what you are trying to prove). After running your test, the software will provide a p-value. If this value is below a certain threshold (commonly 0.05), you can reject the null hypothesis and conclude that your variable had a significant effect.