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
generating an indexHi, I am trying to generate the index "z" in Stata, so that Z has the same value for all Xs and Ys. …
Creating a variable for a "life event" in panel data which occurred in different waves for different individualsHi there, I am using the BHPS and testing how quickly respondents' happiness measures revert back to…
working of egen groupHello, I've data were I have for one reporting date several observations, but I only want keep the f…
Gravity equation estimated through Bonus Vetus OLSDear Stata users, Following Agostino and Trivieri (2014), I would like to adopt the Bonus Vetus OLS…
Excel files: Merge worksheets within Excel files and append Excel files with a loopDear Statalist, We have collected annual data on minorities in several countries for 25 years. Now …
Subscribe to:
Post Comments (Atom)
0 Response to Multivariate outlier detection in Stata: MCD Command
Post a Comment