Hist() shows frequency of all values in groups. Looks for a general pattern, symmetry, outliers.
Col = c kleuren voor de barplot.
Ylim = c limiet voor de y-as.
Main naam voor de barplot.
Xlab naam voor de x-as.
Ylab naam voor de y-as.
Descriptive statistics:
Mean() mean for the variable.
Min() minimum value.
Max() maximum value.
Range() gives both min and max.
Diff() gives difference between max and min.
Var() variance: average squared deviation form mean.
Sd() standard deviation (square root of variance).
Table(dat$gender) frequency table.
Table(dat$gender, dat$study) cross table.
Lecture & lab 2:
Descriptive statistics:
- Describes data.
- Measures of central tendency mean, median, mode.
- Measures of variation range, IQR, variance, standard deviation.
o Information on distribution of the data.
Inferential statistics:
- Describes data of sample to infer patterns in population statistical tests.
- Generalize outcomes of a sample to a population.
o Compares 2 groups (or a single group with fixed value).
o Associations between 2 variables.
Categorical variables:
- Nominal just categorization, no ordering (gender).
- Ordinal categories have order, but do know distance (bad - neutral – good).
Numerical variables:
- Interval numbered categories have a known distance between them (degrees Celsius).
, - Ratio numbered categories with a meaningful 0 (age).
Density curve:
- Visualizes a distribution.
o Plot(density(), main =, xlab = )
Central tendency:
Mode most frequent (all measurement levels).
Median middle value of sorted data (ordinal, interval, ratio).
Mean sum of observations divided by number of observations (interval & ratio).
Measure of variation:
Quartiles 4 subsets of equal size. Quantile().
- Q1 cutpoint between group 1 and 2 (first 25%).
- Q2 cutpoint between group 2 and 3 (first 50%).
- Q3 cutpoint between group 3 and 4 (first 75%).
Visualization of variation boxplot (visualizes numerical data).
Important measures of variation:
Population variance
Sample variance
Standard deviation
Standard deviation relating an individual to a population.
Standard error relating a sample to a population.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller veroniquegold. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $5.88. You're not tied to anything after your purchase.