Hi everyone,

I am self-learning STATA and I am very new to this Software.
I want to detect multivariate outlier using MCD command. (My dataset consists of 6 times repeated measurements of 18 items in 7 point Likert scale). I want to detect outliers for every 6 measurements seperately.

Based on the following syntax (learned from https://journals.sagepub.com/doi/pdf...867X1001000206)

mcd varlist [if] [in] [, e(#) proba(#) trim(#) generate(newvar1 newvar2) bestsample(newvar) raw setseed(#)

I framed my command as bellow:
mcd varlist1 [if] [f, l] [, e(0.2) proba(0.99) trim(0.5) generate(newExp1_simplistic newExp1_quiet) bestsample(newvar) raw setseed(123)

1. Could you please help me by learning how should I frame [if] and bestsample(newvar)?
2. I'm not sure whether framing generate(newvar1 newvar2) as generate(newExp1_simplistic newExp1_quiet) is true or not. I have detected these two variables (i.e. Exp1_simplistic & Exp1_quiet) as univariate outliers using SPSS as I am more familiar with SPSS.

I am looking forward to hearing from you.
Thanks,
Hakimeh