Hello, consider a simple regression model:

Code:
regress test_score i.gender age
However, upon inspection of my data, the relationship between test_score and age is not linear. How can I tell Stata to treat the age covariate as polynomial? In R, for example (which I am more familiar with), this would be done simply by doing: test_score ~ gender + I(age^2). But I am unsure of the equivalent in Stata. Thank you.