Forfatter av avsnitt: Danielle J. Navarro and David R. Foxcroft
Deskriptivstatistikk separat for hver gruppe
It is very commonly the case that you find yourself needing to look at
descriptive statistics broken down by some grouping variable . This is
pretty easy to do in jamovi. For instance, let us say I want to look at the
descriptive statistics for some clinical trial data, broken down separately by
therapy type. This is a new data set, one that you have never seen before.
The data is stored in the clinicaltrial data set and we will use it a lot in
chapter Sammenligning av flere gjennomsnitt (enveis ANOVA) (you can find a complete description of the
data at the start of that chapter). Let us load it and see what we have got
(Fig. 18).
Fig. 18 Skjermbilde av jamovi som viser variablene som er lagret i datasettet clinicaltrial
Evidently there were three drugs: a placebo, something called anxifree
and something called joyzepam, and there were six people administered each
drug. There were nine people treated using cognitive behavioural therapy
(CBT) and nine people who received no psychological treatment
(no.therapy). And we can see from looking at the Descriptives of the
mood.gain variable that most people did show a mood gain (mean = 0.88),
though without knowing what the scale is here it is hard to say much more than
that.
We can also go ahead and look at some other descriptive statistics, and this
time separately for each type of therapy. In jamovi, check Std. deviation,
Skewness and Kurtosis in the Statistics options. At the same
time, transfer the therapy variable into the Split by box, and you
should get something like Fig. 19.
Fig. 19 Skjermbilde av jamovi som viser Descriptives av variablene i datasettet clinicaltrial fordelt på terapitype
What if you have multiple grouping variables ? Suppose you want to
look at the average mood gain separately for all possible combinations of
drug and therapy. It is possible to do this by adding another variable,
drug, into the Split by box. Easy peasy, though sometimes if you split
too much there is not enough data in each breakdown combination to make
meaningful calculations. In this case jamovi tells you this by stating
something like NaN or Inf.[1]