#Sample size
library(gtsummary)
library(dplyr)
#Annual Canadian Lynx trappings 1821–1934
head(lynx)
Time Series:
Start = 1821
End = 1826
Frequency = 1
[1] 269 321 585 871 1475 2821
data(lynx)
class(lynx)
[1] "ts"
start(lynx)
[1] 1821 1
end(lynx)
[1] 1934 1
frequency(lynx)
[1] 1
plot(lynx)
summary(lynx)
Min. 1st Qu. Median Mean 3rd Qu. Max.
39.0 348.2 771.0 1538.0 2566.8 6991.0
Interpretation:
Min (39.0): The smallest observed value in your dataset.
1st Quartile (348.2): 25% of the data values are less than or equal to 348.2.
Median (771.0): The 50th percentile; half the data values are below 771.0 and half are above.
Mean (1538.0): The arithmetic average; noticeably higher than the median, suggesting a right-skewed distribution.
3rd Quartile (2566.8): 75% of the values are less than or equal to 2566.8.
Max (6991.0): The largest observed value.
👉 Overall interpretation: The data are positively skewed (since the mean > median, and the maximum is much larger than the quartiles). Most values cluster between ~350 and ~2600, but a few large values (outliers) push the mean up to ~1538.