Publications by HJ Wu

programming in class exercise and HW

18.05.2020

programming exercise 1-5 HW 1-5 Exercise Exercise 1 (GIF plot) Exercise 2 (need explain) Exercise 3 (unsolved) Exercise 4 Exercise 5 HW HW 1 HW 2 HW 3 HW4 HW5 HJ Wu 2020/5/13 Exercise Exercise 1 (GIF plot) What does the R script do? Revise the code so that it does the same job without resorting to the use of a nested ‘for’ loop. # orig...

2551 sym R (11802 sym/43 pcs) 1033 img

Function HW 1-5

11.05.2020

Functions exercise 1-5 HW 1 (a) test if any pairs of the five variables: read, write, math, science, and socst, are different in means. (c) Perform all pairwise simple regressions for these variables: read, write, math, science, and socst. HW 2 HW 3 HW 4 HW 5 HJ Wu 2020/5/011 HW 1 library(dplyr) library(MASS) library (reshape) dta <- rea...

2253 sym R (11168 sym/36 pcs) 2 img

Statistical graphics Exercise 1,3

26.04.2020

Statistical graphics Exercise Exercise 1 Exercise 3 HJ Wu 2020/4/26 Exercise 1 The distribution of personal disposable income in Taiwan in 2015 has a story to tell. Revise the following plot to enhance that message loading data and check data structure dta<-read.csv("C:/Users/USER/Desktop/R_data management/0420/data/income_tw.csv", header=T)...

888 sym R (3618 sym/16 pcs) 3 img

grammar of graphics HW 1,3,5

25.04.2020

grammer of graphics HW HW 1 HW3 HW5 HJ Wu 2020/4/25 HW 1 Fifty male and fifty female students fill out the same questionnaire in weekly intervals starting five weeks before an important examination to measure state anxiety. The research interests are: 1. whether there are gender difference in state anxiety 2. individual differences in sta...

2551 sym R (6821 sym/23 pcs) 6 img

grammar of graphics HW 2

25.04.2020

HW2 Use the markdown file to replicate the contents of Weissgerber, T.L., Milic, N.M., Winham, S.J., Garovic, V.D. (2015). Beyond Bar and Line Graphs: Time for a New Data Presentation Paradigm. PLOS Biology , 13. Using R for the examples in "Beyond Bar and Line Graphs: Time for a New Data Presentation Paradigm’ What is this? Here I show how w...

9455 sym R (10482 sym/22 pcs) 10 img 3 tbl

grammar of graphics

25.04.2020

grammer of graphics exercise 1-6 exercise 1 exercise 2 exercise 3 exercise 4 exercise 5 exercise 6 HJ Wu 2020/4/25 exercise 1 Find out what each code chunk (indicated by ‘##’) in the R script does and provide comments. base graphics plot(women, type='n') #scatter plots of women dataset, "n": no plotting points(women[1,]) # plot the fi...

3555 sym R (11863 sym/40 pcs) 21 img

0420 ggplot exercise 2, 4

22.04.2020

grammer of graphics exercise 2, 4 exercise 2 exercise 4 HJ Wu 2020/4/21 exercise 2 The data set is concerned with grade 8 pupils (age about 11 years) in elementary schools in the Netherlands. After deleting pupils with missing values, the number of pupils is 2,287 and the number of schools is 131. Class size ranges from 4 to 35. The respons...

2050 sym R (3980 sym/13 pcs) 6 img

0413 Trellis graphics in class exercise 2-4

19.04.2020

0413 Trellis graphics in class exercise in class exercise 2 in class exercise 3 in class exercise 4 HJWu 2020/4/19 in class exercise 2 Create a new student-teacher ratio variable from the enrltot and teachers variables in the data set Caschool{Ecdat} to generate the following plot in which reading scores (readscr) for grade span assignment g...

1787 sym R (8772 sym/21 pcs) 5 img

0413 HW 3,5

18.04.2020

0413 base graphic HW 3,5 HW 3 HW 5 HJWu 2020/4/18 HW 3 loading data and check data structure library(MASS) dta<-nlschools head(dta) ## lang IQ class GS SES COMB ## 1 46 15.0 180 29 23 0 ## 2 45 14.5 180 29 10 0 ## 3 33 9.5 180 29 15 0 ## 4 46 11.0 180 29 23 0 ## 5 20 8.0 180 29 10 0 ## 6 ...

220 sym R (5493 sym/10 pcs) 2 img

0413 HW 4

17.04.2020

0413 HW exercise 4 HW 4 Huei Jiuan Wu 04/17/2020 HW 4 Use the dataset to replicate the plot below: load data and check data structure dta<-read.table("C:/Users/user/Desktop/sat_gpa.txt", header=TRUE) str(dta) 'data.frame': 6 obs. of 5 variables: $ College: Factor w/ 6 levels "Barnard","Bowdoin",..: 1 6 2 4 3 5 $ SAT_No : int 1210 12...

267 sym R (2208 sym/6 pcs) 1 img