Hi everyone!

Excuse the kind of basic question, but I am very new to Stata.

I am trying to make a scatterplot graph which shows the learning curve across trials for three groups. My variables are Chosen (meaning the chosen amount) and Trial (the trial number), and I would like to see the development of Chosen across my 20 trials for each group. I originally made this graph in Excel, due to confusion about the stata graphics section, but I realised that I need to control for age and sex for the graph to actually depict my findings. Does anyone know how I would create this plot and control for these variables?

Thanks in advance!