RMHI EXAM
GRADED A+ (ACTUAL EXAM ) Questions and Answers (Solved)
- *
Answer: multiplication operator
- ^
Answer: taking powers operator
- < -
Answer: assignment operator
- ==
Answer: equality operator
- !=
Answer: inequality operator
- Functions take arguments, for example...
Answer: sqrt(...) square root of...
- 3 variable classes
Answer: numeric, logical, character
- what is a vector?
Answer: lists of variables of the same class
- operationalization
Answer: Clearly defining variables in terms of how they can be measured
- / 3
- operationalisation steps
Answer: construct, measure, observation
- variable types that explain
Answer: predictor independent variable
Treatment
- variable types that need explaining
Answer: outcome dependent
Response
- What are descriptive statistics?
Example: Descriptive statistics are summary statistics that allow the researcher to organize data to give meaning and facilitate insight.
Histogram
- measures of central tendency
Answer: mean, median, mode
- Measures of Spread
Answer: Range, Interquartile Range, Standard Deviation
How wide is the data?
- Pipes in r
Answer: Take your data...... Do one thing... ...Then do another... ... And then one more
performs a sequence of operations on the dataset
- what do filter() and arrange() do?
- / 3
Answer: filter() lets you select a subset of the rows of the tibble, and arrange() tells you how to sort them
- what does mutate() allow you to do?
Answer: calculate new variables
- pivot_longer()
Answer: converts from wide to long format by decreasing the number of columns
and increasing the number of rows
- pivot_wider()
Answer: "widens" data, increasing the number of columns and decreas- ing the number of rows
- geoms
Answer: specify what the plot should look like (i.e., what kind of plot it is). Geoms take arguments that affect how the parts of them look.
- Facets
Answer: allow you to break your data into different panels, where each panel
corresponds to one of the values of the given variable.
- Themes
Answer: make the plot look nice in terms of background colours and things like that
24. geoms for one variable, continuous:
Answer: geom_histogram() geom_density() geom_dotplot()
25. geoms for two variables, continuous:
Answer: geom_point() geom_rug() geom_jitter()
26. geons for two variables, one discrete:
Answer: geom_boxplot() geom_violin()
- fill
Answer: fills in colour
- / 3