Psych10A quiz 2

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

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:01 AM on 10/24/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

26 Terms

1
New cards

dim(dat)

A function that helps you find the number of rows and columns in a dataset.

2
New cards

Boolean indexing

An indexing method that uses truth values (True/False) to filter data.

3
New cards

Wide data

Data format where each subject has one row, and different variables are stored in separate columns.

4
New cards

Long data

A data format where each row represents one observation of a single variable for a given subject.

5
New cards

Correlation

Statistical measure ranging from -1 to 1 indicating the strength and direction of a relationship between two variables.

6
New cards

round(cor(Dat),2)

A command to round correlation data to two decimal places.

7
New cards

R = 1

Indicates a perfect positive correlation between variables.

8
New cards

R = 0

Indicates no correlation between variables.

9
New cards

R = -1

Indicates a perfect negative correlation between variables.

10
New cards

tapply(score,group,mean)

A function used to compute the mean of 'score' grouped by 'group'.

11
New cards

Truth values

Values that can be either True or False, used in Boolean indexing.

12
New cards

Strings

Text values contained within quotation marks, including vector of strings.

13
New cards

dat[1:5,]

Indexing command in R to retrieve rows 1 to 5 from dataset 'dat'.

14
New cards

dat[1,0]

An incorrect data indexing command as it implies grabbing all from row one with a non-existent column.

15
New cards

To check that if there is missing data

we check whether the number of elements of score is the number of courses times the number of questions.

16
New cards

function for finding if there are any missing data

ncourse * nquestion == length(dat$score) if you get TRUE, than there are no missing data points

17
New cards

The function to find the output mean for each question in a data set

question_mean <- tapply(dat$score,dat$question,mean)

18
New cards

To make a filter for only searching for select scores of a data set

filterQ1 <- dat$question=="q1"

19
New cards
20
New cards
21
New cards
22
New cards
23
New cards
24
New cards

Function To make a filter for a select question

FilterQ1<- (dat$question=="q1")

q1scores<-(dat$score[FilterQ1])

print(q1scores)

25
New cards

To make a histogram

hist(q1scores)

abline(v=c1_q1scores)

26
New cards

what is the SEQ function used for?

used to generate sequences of numbers — similar to the : operator(from, to,by)

Explore top notes

note
Photosynthesis Quiz
Updated 1282d ago
0.0(0)
note
Unit 5: Period 5: 1844-1877
Updated 1063d ago
0.0(0)
note
Dutch
Updated 410d ago
0.0(0)
note
Iteration
Updated 1094d ago
0.0(0)
note
Specific Phobias
Updated 1161d ago
0.0(0)
note
Photosynthesis Quiz
Updated 1282d ago
0.0(0)
note
Unit 5: Period 5: 1844-1877
Updated 1063d ago
0.0(0)
note
Dutch
Updated 410d ago
0.0(0)
note
Iteration
Updated 1094d ago
0.0(0)
note
Specific Phobias
Updated 1161d ago
0.0(0)

Explore top flashcards

flashcards
Unit 2 Health ILSW 7
149
Updated 277d ago
0.0(0)
flashcards
Religion 2 - Kristendom
53
Updated 1146d ago
0.0(0)
flashcards
La Siesta del Martes
55
Updated 928d ago
0.0(0)
flashcards
Piliavin
59
Updated 1105d ago
0.0(0)
flashcards
9
106
Updated 1138d ago
0.0(0)
flashcards
Structures with Hammy
92
Updated 1072d ago
0.0(0)
flashcards
Unit 2 Health ILSW 7
149
Updated 277d ago
0.0(0)
flashcards
Religion 2 - Kristendom
53
Updated 1146d ago
0.0(0)
flashcards
La Siesta del Martes
55
Updated 928d ago
0.0(0)
flashcards
Piliavin
59
Updated 1105d ago
0.0(0)
flashcards
9
106
Updated 1138d ago
0.0(0)
flashcards
Structures with Hammy
92
Updated 1072d ago
0.0(0)