I am being honest with you, I cannot really say neither. As I said I am mostly working according to what my PI instructs me to do. But I can post a screenshot of the table I was asked to work on. ![Bildschirmfoto 2021-10-20 um 10.48.30.png Bildschirmfoto 2021-10-20 um 10.48.30.png](https://community.jmp.com/t5/image/serverpage/image-id/36848i7DAAEEF9632D5873/image-size/large?v=v2&px=999)
Basically I use a multivariate analysis to calculate the correlation coefficient and p-value within group via Spearmans. And the question is how to calculate "mean dose" and "mean blood level".
![Bildschirmfoto 2021-10-20 um 10.57.51.png Bildschirmfoto 2021-10-20 um 10.57.51.png](https://community.jmp.com/t5/image/serverpage/image-id/36849i2F70C5C849F5F6B3/image-size/large?v=v2&px=999)
Y --> 1) med level 2) med dose
By --> a) list of meds b) e.g. sex
![Bildschirmfoto 2021-10-20 um 11.09.06.png Bildschirmfoto 2021-10-20 um 11.09.06.png](https://community.jmp.com/t5/image/serverpage/image-id/36850iAD214AD710DC9AB9/image-size/medium?v=v2&px=400)
and I was looking for a way to find a median here in the list of commands. Since you can access the mean value via "simple statistics"
I use Fit model to calculate p value across groups and y by x to for
"N" --> *number of blood draws post-baseline with available information about antipsychotic dose and blood level (maximum 3 time points per patient, i.e. at week 4, 8 and 12).
Thats all the information I can provide.