Publications by Chang-Chun Chen
20200914 In-class exercises 4
# data management and graphics package library(tidyverse) ## -- Attaching packages ---------------------------------------------------------- tidyverse 1.3.0 -- ## √ ggplot2 3.3.2 √ purrr 0.3.4 ## √ tibble 3.0.3 √ dplyr 1.0.2 ## √ tidyr 1.1.2 √ stringr 1.4.0 ## √ readr 1.3.1 √ forcats 0.5.0 ## -- Confl...
6 sym R (1279 sym/8 pcs) 1 img
20200914 In-class exercise 2
1 Problem xxx 2 Data 3 Visualization 4 Analysis 5 Results 6 Conslusions ...
95 sym
2020 Cats example
1 Data We load the ‘MASS’ package for the dataset named ‘cats’. library(MASS) data(cats, package="MASS") The ‘cats’ data set is a data frame object in R. It have 144 rows and three columns. Each column is a variable. The first is a variable of factor type: F for female cats and M for male cats, the second and the third variables are ...
3697 sym R (4279 sym/24 pcs) 2 img
20200921 homework
1 Homework exercise 1 “Weighted regression” / example of regression with sampling weights 1.1 Problem Edit the R script with your own comments to explain what each code chunk does and then compile a report of the script in html for publication to moodle. 1.2 Setting and input data # set some options - digits: digits to print when printing n...
1860 sym R (21452 sym/66 pcs) 14 img
20201005 In-class exercise
1 Inclass exercise 1 1.1 Info Problem: Replicate the results of analysis reported the high school and beyond - null 2 3 4 examples. Data info: The High Schools and Beyond data set consists of measures on 7,185 students in 160 schools. The individual level outcome is a mathematical achievement score. The individual level covariate is a measure o...
17100 sym R (48968 sym/112 pcs) 14 img
20201012 In-class exercise
1 Inclass 1 1.1 Info Problem: Edit and comment on the analysis in the weights of Asian children in U.K. markdown file. Data: The data consist of weight gains of 68 Asian children in a British community. Measurements of weight were recorded for children on up to five occasions visiting a clinic. The ages at which the measurements were taken are ...
5203 sym R (21380 sym/89 pcs) 14 img
20201019 homework
1 Homework 1 1.1 Info Problem: Reproduce the results of analysis reported in Chapter 11 of Behavioral data analysis with R (Cheng & Sheu, 2015) with this R script and the married dataset. Data: 1.2 Data input # 讀資料 dta1 <- read.table("married.txt", header = T) # 顯示前六筆,看資料結構 # 程式報表11.1 head(dta1) ## ...
8830 sym R (42661 sym/135 pcs) 13 img
20201026 In-class exercise
1 Inclass 1 1.1 Info Problem: Replicate the analysis reported in the brightness discrimination example. Data: Consider the outcome of a brightness discrimination experiment. On each trial, two patches of light were presented: one was a standard with an intensity of 35 units, and another was a variable intensity comparison light. The subject w...
7137 sym R (12477 sym/74 pcs) 10 img
20201019 homework
1 Homework 1 1.1 Info Problem: For the claudication example, first reproduce the results of the analysis then analyze it with a model constraining baseline effect to be the same for both treatment groups while ignoring gender. Data: The new drug Novafylline is developed to reduce the symptoms of intermittent claudication, which is a medical te...
7742 sym R (23982 sym/86 pcs) 13 img
20201019 In-class exercise
1 Inclass 1 1.1 Info Problem: Replicate the analysis reported in the arrhythmogenic dose of epinephrine example. Data: The arrhythmogenic dose of epinephrine (ADE) is determined by infusing epinephrine into an animal until arrhythmia criterion is reached. The arrhythmia criterion was the occurrence of four intermittent or continuous premature ...
9104 sym R (40378 sym/73 pcs) 12 img