Publications by Arisara Kanaprasertkul

Intro to Stan #1 - Arisara

25.03.2020

Intro to STAN Homework Part #1 After our Intro to Stan lecture I think it would be valuable to have you go through a similar exercise. Let’s test a second research question. Research question: Is sea ice extent declining in the Southern Hemisphere over time? Is the same pattern happening in the Antarctic as in the Arctic? Fit a Stan model to fi...

917 sym R (4591 sym/21 pcs) 3 img

ANLY 505 HW 4 Arisara

16.03.2020

Summarize Data daily <- flights %>% mutate(date = make_date(year, month, day)) %>% group_by(date) %>% summarize(n = n()) ggplot(daily, aes(date, n)) + geom_line() Investigate Daily-Weekly Pattern daily <- daily %>% mutate(wday = wday(date, label = TRUE)) ggplot(daily, aes(wday,n)) + geom_boxplot() mod = lm(n ~ wday, data = daily, n...

3332 sym R (7076 sym/29 pcs) 18 img

ANLY 505 Week 3 Arisara

22.02.2020

Initial Visualization ggplot(diamonds, aes(cut,price)) + geom_boxplot() ggplot(diamonds, aes(color,price)) + geom_boxplot() ggplot(diamonds, aes(clarity,price)) + geom_boxplot() ggplot(diamonds, aes(carat, price)) + geom_hex(bins=50) Subset Data and replot diamonds2 <- diamonds %>% filter(carat <= 2.5) %>% mutate(lprice = log2(price), ...

2360 sym R (5664 sym/22 pcs) 14 img

ANLY 505 Week 1 Arisara

21.01.2020

Directions The objective of this assignment is to introduce you to R and R markdown and to complete some basic data simulation exercises. Please include all code needed to perform the tasks. This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown s...

1349 sym R (1487 sym/8 pcs) 2 img

Simulating Data in R Week 1

23.01.2020

Directions The objective of this assignment is to introduce you to R and R markdown and to complete some basic data simulation exercises. Please include all code needed to perform the tasks. This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown s...

1363 sym R (2519 sym/8 pcs) 2 img

ANLY 505 Week 2 Arisara

19.02.2020

The statistical model: \(y_t = \beta_0 + \beta_1 * (Elevation_s)_t + \beta_2 * Slope_t + (b_s)_t + \epsilon_t\) Where: \(\beta_0\) is the mean response when both Elevation and Slope are 0 \(\beta_1\) is the change in mean response for a 1-unit change in elevation. Elevation is measured at the stand level, so all plots in a stand share a single...

2567 sym R (7617 sym/30 pcs) 2 img