Publications by Ching-Fang Wu

W2 Homework 2

15.07.2021

Problem statement In Rstudio, open and edit this R script from the SAT scores example to add an overall regression line of SAT score by teacher’s salary to three separate regression lines of the same set of variables by states with low, medium and high percentage of students taking the SAT exam. Data management # input data dta <- read.table(...

361 sym R (1704 sym/10 pcs) 1 img 2 tbl

W2 in-class exercise 7

14.07.2021

Problem statement Reproduce the results of the loudness example by completing the R markdown file 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 pe...

1067 sym R (1684 sym/12 pcs) 4 img

W2 in-class exercise 4

14.07.2021

Problem statement Download the data file from the language and math example first to a data folder. In Rstudio, open the R script and compile a report in html directly or use the command > knitr::spin(“foo.R”, knit=FALSE) to render it as an RMD file format first. Data management # data management and graphics package library(tidyverse) # in...

320 sym R (759 sym/4 pcs) 1 img

W1 in-class example 2

14.07.2021

1 Learning target Ecological fallacy 2 Introduction This dataset contains variables that address the relationship between public school expenditures and academic performance, as measured by the SAT. The scatterplot shows that SAT performance is lower, on average, in high-spending states than in low-spending states, this statistical relationship ...

1610 sym R (2290 sym/12 pcs) 1 img

W1 in-class exercise 2

13.07.2021

1 Problem statement In the NLSY86 example, does it appear that the trends of reading scores over time (in months) vary between gender and ethnicity? 2 Introduction The data are drawn from the National Longitudinal Survey of Youth (NLSY). The sample observations are from the 1986, 1988, 1990, and 1992 assessment periods. Children were selected to...

1387 sym R (1850 sym/10 pcs) 1 img

W1 in-class exercise 1

13.07.2021

1 Problem statement Interpret the figure in the bottom panel of the Chem97 example. 2 Introduction The data set contains the results of examination on A-level chemistry for 31,022 students from 2,410 schools in Britain in 1997. A mean General Certificate of Secondary Education (GCSE) score is derived from all GCSE subjects of the student. The co...

697 sym R (1878 sym/12 pcs) 2 img

W1 in-class exercise 3

13.07.2021

1 Problem statement There are two regression lines (ligh blue and dark blue) on the figure of the language and math example. One of them is based on aggregates while the other, on individual scores. Indicate which is which? Which has a steeper slope? 2 Introduction Ecological correlations are based on rates or averages. They tend to overstate th...

1018 sym R (1724 sym/11 pcs) 1 img

W1 in-class example 1

14.07.2021

1 Learning target Clustered & longitudinal data 2 Introduction A total of 84 individual clients was treated by 17 therapists using either cognitive-behavioral or interpersonal therapy. The Beck Depression Inventory (BDI) was used to assess depression. Source: Kenny, D.A., & Hoyt, W. (2009). Multiple levels of analysis in psychotherapy research, ...

466 sym R (1981 sym/19 pcs) 1 img

W2 in-class exercise 2

14.07.2021

1 Problem statement Download this rmarkdown template recommended for class exercises. Open it from within RStudio, edit the relevant information, and knit it. 2 Data 3 Visualization 4 Analysis 5 Results 6 Conslusions ...

240 sym

W2 in-class exercise 3

14.07.2021

Problem statment Reproduce the results in homework example using the rmarkdown file and publish it with a web link on the course moodle page. 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 ...

897 sym R (3442 sym/15 pcs) 4 img