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
Related Posts with Multivariate outlier detection in Stata: MCD Command
Difference-in-Differences Matching with Multiple Periods TreatmentHi Everyone, I would be so pleased to get some help concerning the following issue: I have done wi…
How do conduct one-sided/tailed t-test in Stata?Can anyone tell me the code for conducting one-sided/tailed t-test on a coefficient in Stata? …
line graph with year marks on lineDear Forum, I have time-series data and I want to plot two variables 'against' each other, so that …
Panel - Loop collapse or egen with conditionDear all, I googled and tried many command from yesterday and until now it's still unsuccessful. Co…
industry year regressions without firm i: additional retrictions can not be added?The Following code should run industry and year regressions excluding company i and then estimate th…
Subscribe to:
Post Comments (Atom)
0 Response to Multivariate outlier detection in Stata: MCD Command
Post a Comment