Publications by Chang-Chun Chen
20201012 homework
1 Homework 1 1.1 Info Problem: Replicate the results of analysis reported in the visual search example. Data: Response times in a conjunction visual search task tend to increase linearly as a function of the number of objects in the display (called “set size”). For example, when looking for a green letter “Y” among green “X’s” and...
2889 sym R (11851 sym/33 pcs) 6 img
20201005 homework
1 Homework 1 1.1 Info Problem: Use the models specified in the “IQ and language” example to replicate the results of analysis. Data: The data set is concerned with grade 8 pupils (age about 11 years) in elementary schools in the Netherlands. The number of pupils is 2287, and the number of schools is 131. Class sizes are from 4 to 35. The qu...
3876 sym R (11499 sym/47 pcs) 7 img
20200928 homework
1 Homework-1 Anorexia example 1.1 Problem Perform an analysis of the anorexia data example following the paired or independent samples example in the course note. Data info: This dataset presents 17 paired data corresponding to the weights of girls before and after treatment for anorexia. A more complete version can be found in the package MASS...
3243 sym R (34735 sym/122 pcs) 14 img
20200928 In-class exercise
1 In-class exercise 1 1.1 Problem Assess how similar family members are in their ratings of liberalism in the family example using the intraclass correlation(組內相關). Data into: Researchers were interested in determining the correlation between family members on a measure of liberalism. They took a simple random sample of families and obt...
2980 sym R (12881 sym/57 pcs) 2 img
20200921 In-class exercise
1 Inclass exercise 1: “Framingham example” 1.1 File location fL<-"https://math.montana.edu/shancock/data/Framingham.txt" dta <- read.table(fL, header=T) knitr::kable(head(dta)) sex sbp dbp scl chdfate followup age bmi month id 1 120 80 267 1 18 55 25.0 8 2642 1 130 78 192 1 35 53 28.4 12 4627 1 144 90 207 1 109 61 25.1 8 2568 1 92 66 ...
2862 sym R (12750 sym/68 pcs) 9 img
20200914 Homework exercise
1 Homework Exercises 1 1.1 Data management # install.package("mlmRev") library(mlmRev) # load the data from the package data(Gcsemv, package="mlmRev") # invoke help document ?Gcsemv # view first 6 lines head(Gcsemv) school student gender written course 1 20920 16 M 23 NA 2 20920 25 F NA 71.2 3 2092...
931 sym R (10925 sym/40 pcs) 6 img
20200914 In-class exercise 7
1 Introduction Ten subjects were played tones at each of 5 loudnesses, in random order. Subjects were asked to draw a line on paper whose length matched the loudness of the tone. Each subject repeated each loudness 3 times, for a total of 30 trials per subject. Here is the mean of the 3 log-lengths for each loudness, the sd of the three log-lengt...
979 sym R (1639 sym/11 pcs) 4 img
20200914 In-class exercise 6
1 Data management # install.package("mlmRev") library(mlmRev) # load the data from the package data(Gcsemv, package="mlmRev") # invoke help document ?Gcsemv # view first 6 lines head(Gcsemv) school student gender written course 1 20920 16 M 23 NA 2 20920 25 F NA 71.2 3 20920 27 F 39 ...
85 sym R (1151 sym/14 pcs) 1 img
20200914 In-class exercises: 5
1 Data management In this section, we load the exam scores data set, activate the help page for it, and examine the first 6 lines of the data frame object. # load the package to working directory library(mlmRev) # load the data from the package data(Exam, package="mlmRev") # invoke help document ?Exam # view first 6 lines head(Exam) school ...
783 sym R (1265 sym/11 pcs) 1 img
20200914 In-class exercise 3
1 Introduction Kreft and de Leeuw (1998) obtained a sub-sample of students in eighth grade from the National Education Longitudinal Study of 1988 (NELS–88) collected by the National Center for Educational Statistics of the U.S. Department of Education. The students are nested in schools. Here, we consider the following subset of the variables: ...
762 sym R (3423 sym/15 pcs) 4 img