Exam 1 Scope and Method

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/64

encourage image

There's no tags or description

Looks like no tags are added yet.

65 Terms

1
New cards

R

A programming language and software environment used for statistical computing and graphics, widely used among statisticians and data miners.

2
New cards

R Studio

An integrated development environment (IDE) for R, providing tools for coding, debugging, and visualizing data.

3
New cards

Upper left window is called

R script (input)

4
New cards

Lower left window is called

R console (output)

5
New cards

upper right window is

environment (lists created objects)

6
New cards

##

distinguishes output from code

7
New cards

←

to create an object, left is name right is content (four← 1+3)

8
New cards

what should NOT be in quotes

names of objects, functions, and arguments as well as special values (TRUE, FALSE, NA, NULL)

9
New cards

required arguments

inputs we must specify in order to use a particular function

10
New cards

optional arguments

inputs that we could specify if we wanted to modify the functions default setting

11
New cards

sqrt()

square root

12
New cards

#

to comment on the code so R doesn’t read it

13
New cards

setwd()

set working directory

14
New cards

view()

opens a new tab in the upper left window with contents of data set

15
New cards

head()

shows first six rows of observations in a data set, n=x to display different amounts of lines

16
New cards

observation

the information collected from a particular individual in the study

17
New cards

i

row in the dataframe

18
New cards

variable

captures values of a changing characteristic for the multiple individuals

19
New cards

dim()

provides the dimensions of the data frame

20
New cards

$

access values of a single variable

21
New cards

nonbinary

average in nonprecentage

22
New cards

average causal effect

the average of all the individual causal effects of x on y within a group

23
New cards

randomized experiment

treatment assignment is random, ensuring that treatment and control groups are identical to eachother in all observed and unobserved pre-treatment characteristics

24
New cards

average effect formula

ytreatment-ycontrol

25
New cards

observational data

collected from naturally occurring events

26
New cards

==

measures whether two values are equal to eachother (TRUE or FALSE)

27
New cards

ifelse()

if logical test is true, return this, else, return that

28
New cards

““

around words

29
New cards

[]

to the left, we specify variable we want to subset, inside, specify the criterion of selection

30
New cards

to calculate average reading scores among only students who attended the small class

mean(starreading[starreading[starsmall==1])

31
New cards

nonbinary

same unit of measurement as the outcome variable

32
New cards

binary

percentage points (multiply result by 100)

33
New cards

factual outcome

potential outcome under the treatment condition taken in reality

34
New cards

counter factual outcome

potential outcome under the opposite treatment condition as the one taken in reality

35
New cards

reasons one couldn’t do a randomized experiment

ethical, logical, financial

36
New cards

ifelse must have how many arguments

3 arguments, logical test/return if TRUE/ return if FALSE

37
New cards

random sampling

randomly selecting individuals from the population

38
New cards

sampling frame

the complete list of individuals in a population

39
New cards

unit nonresponse

some randomly selected individuals might refuse to participate in the study

40
New cards

item nonresponse

when an individual chooses to not answer a question

41
New cards

misreporting

participants provide false information

42
New cards

Read and store data set

bes← read.csv(“BES.CSV”)

43
New cards

frequency table

shows the values the variable takes and the number of times each value appears in variable, table()

44
New cards

prop.table()

create a table of proportions

45
New cards

exclude=NULL

this will ensure that the function includes the missing values

46
New cards

na.rm

“NA Remove” setting equal to true

47
New cards

na.omit()

remove missing values

48
New cards

two-way frequency table

shows the number of observations that take each combination of values of two specified variables

49
New cards

two-way table of proportions

shows the proportion of observations that take each combination of values of two specified variables

50
New cards

density histogram

uses density instead of frequency as the height

51
New cards

descriptive statistics

numerically summarizes the main characteristics of its distribution

52
New cards

plot()

scatter plot

53
New cards

abline()

add straight line to the graph in R, vertical set argument equal to v, horizontal set argument equal to h

54
New cards

correlation coefficient

summarizes the direction and the linear association between 2 variables (-1 to 1)

55
New cards

z-score

the number of sd’s the observation is above or below the mean

56
New cards

cor()

correlation coefficient

57
New cards

acquiesces bias

select positive response (yes)

58
New cards

social desirability bias

select answer that makes them look good or cool

59
New cards

outcome variables

measures the attitude we are trying to explain

60
New cards

explanatory variables

measures attitude or experience we think explains the outcome

61
New cards

!

flips the value

62
New cards

Wording Pitfalls

Jargon or too much info

▶ Leading descriptions

▶ Double negatives

▶ Compound/double-barreled questions

▶ Ambiguous or vague terms

63
New cards

difference in mean

Δ ̂𝑌 = 𝑌𝑡𝑟𝑒𝑎𝑡𝑚𝑒𝑛𝑡−𝑌𝑐𝑜𝑛𝑡𝑟𝑜

64
New cards

What is partisan expressive response?

A partisan chooses the survey response option that portrays their ‘team’ in a positive light (or the other team in a negative light), even though that response is inconsistent with their real beliefs or attitudes

65
New cards