Publications by your name
ANLY505 NYCFlightsDataModel
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 = ...
1622 sym R (16067 sym/45 pcs) 19 img
ANLY505 Assignment 3
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...
826 sym R (7505 sym/32 pcs) 14 img
ANLY 505 Assignment2
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 si...
1789 sym R (6315 sym/36 pcs) 2 img
ANLY515 Assignment1
#1 Check your working directory #2 Set your working directory to RStudio folder that you have created inside the ANLY 515 forlder setwd(".") #3 Download the 3 data set, and label them BTC, LTC, ETH. These data sets reperesnet daily pricesof three chryptocurrencies: Bitcoin, Litcoin, and Ethereum. Set the first column in each data set to the date ...
3081 sym R (10828 sym/45 pcs) 9 img
ANLY505 Assignment 1
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 (7677 sym/8 pcs) 5 img
ANLY505 Stan Model Intro
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...
1014 sym R (20801 sym/16 pcs) 3 img
Factor Analysis
Load the libraries + functions library(readr) library(psych) library(GPArotation) library(paran) The Data gov_tweets <- read_csv("Gov Tweets_MEM.csv") head(gov_tweets) ## # A tibble: 6 x 507 ## State Name Party Segment WC RawTokenCount extend covid public health ## <chr> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ...
1809 sym R (116888 sym/54 pcs) 3 img
linear regression
Load the Libraries + Functions Choosing Predictors Which words did you choose as predictors and why? character, plot, Time , Story, actor great because they are essential properties of a movie or a TV show Running a Binary Logistic Regression Use the \(\chi^2\) test - is the overall model predictive of verb choice? Is it significant? LR \(\...
1878 sym R (3721 sym/12 pcs) 1 img
Correspondence Analysis
Load the libraries + functions ##r chunk library(reticulate) py_config() ## python: C:/Users/raavi/AppData/Local/r-miniconda/envs/r-reticulate/python.exe ## libpython: C:/Users/raavi/AppData/Local/r-miniconda/envs/r-reticulate/python36.dll ## pythonhome: C:/Users/raavi/AppData/Local/r-miniconda/envs/r-reticulate ## version: ...
1514 sym R (14845 sym/29 pcs) 7 img
Conditional Inference trees and random forests
Load the libraries + functions library(Rling) library(party) library(dplyr) library(skimr) library(DataExplorer) data(nerd) head(nerd) ## Noun Num Century Register Eval ## 1 nerd pl XX ACAD Neutral ## 2 nerd pl XXI ACAD Neutral ## 3 nerd pl XX ACAD Neutral ## 4 nerd pl XX ACAD Neutral ## 5 ne...
2748 sym R (9761 sym/36 pcs) 2 img