Chapter 1 (1.1-1.6) Flashcards

1
Q

What are the three fundamental goals of quantitative social science research?

A
  1. measure
  2. predict
  3. explain
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True or false: “successfully executed code” and “output” are different things.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does R store information?

A

In the form of objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

True or false: “replace” and “overwrite” is the same thing.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

To create an object called “seven” containing the number 7, you run:
A. “seven” <- 7
B. seven <- “7”
C. seven <- 7
D. 7 <- seven

A

C. (“seven <- 7”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does “##” indicate?

A

The beginning of an output.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the three steps to create an object?

A
  1. give the object a name
  2. specify its contents
  3. use the assignment operator “<-“
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Is R case sensitive?

A

Yes (for example, “student” and “Student” are different things).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What’s the definition of a function?

A

An action that you request R to perform on an object or dataset.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Explain the process of an object.

A
  1. take an input (or multiple inputs)
  2. perform an action with the input
  3. produce an output
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Explain the following sentence: “code is sequential”.

A

Code must be run in order.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Account for the four parts of R.

A

Upper left window: RScript (where you write and run code)
Lower left window: RConsole (where R provides the executed code and its outputs and errors)
Upper right window: Environment (storage room of the current R session; lists the objects that have been created)
Lower right window: Help and plots tables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly