I need some help utilizing the summarize function and I will use the big class as an example dataset. The below example works perfect but I need to summarize the data by sex. When I use the BY(:Sex) operator I keep getting an error. The purpose of me doing this is to output the results and use this in a calculated reference number per multiple variables for graphing purposes. .
That works but I can't use it in matrix form for what I'm trying to do. My goal is to output the mean and Std deviation of a height by the female population in a variables. I then use those variables for a calculated reference line. By population changes constantly and having a reference line that is dynamic is handy. Here is my example.