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
splitting Chinese addresses?Dear All, Suppose that I have the following addresses (in Chinese),
Code:
* Example generated by -d…
In Stata 17.0 Kaplan-Meier graph with log scale in xaxis impossible due to start at zero, why?Hi, I have tried to start Kaplan-Meier plot with logscale at time -axis using several forms of stset…
Concentration Index (industries within one sector per country)Hello,
I have a set of industries within one sector and I would like to calculate the degree of con…
Cross-level interactions vs. separated regressions for categories of the interaction variable in multilevel modelsDear all,
I want to investigate which child in a sibling group takes over the care of a parent. The…
Reshapes wide to long without wave identifierHi
I have a follow-up tricky reshape that I would like some help with please. I would like to resha…
Subscribe to:
Post Comments (Atom)
0 Response to Multivariate outlier detection in Stata: MCD Command
Post a Comment