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
"Prob > F" is larger than 0.5 for a single linear regressionArray I am writing a simple linear regression. Inventory data of products are dependent variable P…
The matched sample of teffects nnmatchI am interested in obtaining the matched sample (observations in the treatment group that are matche…
Count in how many districts two certain parties competeDear all, I am working on Data on election in Japan. I need to count in how many same distrcits the…
Storing values to a list and expand the list in each iterationI would like store certain values to a list and drop if certain variable's value is equivalent to th…
Help with dynamic panels (xtabond)Hi all! First time posting here. I am writing research on digitalization in EU28 and its economic …
Subscribe to:
Post Comments (Atom)
0 Response to Multivariate outlier detection in Stata: MCD Command
Post a Comment