Publications by You!
Week3_Lab_DataCleaning_Zscore_Prob.
Continuing from the slide of Lab 3, this document will guide you through (1) reading the downloaded data into R, (2) cleaning the data, (3) calculate z-score using the cleaned data, and (4) some basic probability-related functions in R. Functions Tasks data.frame() Create a data.frame object separate() Turns a single character column into mult...
14536 sym R (27291 sym/50 pcs) 4 img 1 tbl
Publish Document
Continuing from the slide of Lab 3, this document will guide you through (1) reading the downloaded data into R, (2) cleaning the data, (3) calculate z-score using the cleaned data, and (4) some basic probability-related functions in R. Functions Tasks data.frame() Create a data.frame object separate() Turns a single character column into mult...
15459 sym R (27291 sym/50 pcs) 4 img 1 tbl
Document
#Install required packages pkg <- c("sqldf", "tidyverse") new.packages <- pkg[!(pkg %in% installed.packages()[,"Package"])] if(length(new.packages))install.packages(new.packages) #Set working directory and read the CSV file setwd("C:\\Users\\cod\\Desktop\\PhD Files\\Course Works\\2nd Year Falls Semester\\Urban Analytic...
716 sym R (5267 sym/22 pcs) 2 img
Publish Document
Today we will learn how to conduct hypothesis test using t-test and ANOVA. We will use the data we cleaned in Lab 3 for today’s exercise. Below is a list of functions that are newly introduced in this lab. Functions Tasks describeBy() Creates a basic summary statistic by a grouping variable (in psych package) t.test() Performs one and two sa...
9487 sym R (12651 sym/30 pcs) 7 img 1 tbl
Publish Document
Functions Tasks full_join() Return all rows and all columns from both x and y. Where there are not matching values, returns NA for the one missing. left_join() Returns all rows from x, and all columns from x and y. Rows in x with no match in y will have NA values in the new columns. If there are multiple matches between x and y, all combination...
15392 sym R (29552 sym/53 pcs) 6 img 2 tbl
Publish Document
Functions Tasks cor.test() Calculates correlation coefficient and conduct hypothesis testing. lm() Performs a linear modeling using ordinary least squares method. abline() Adds one or more straight lines through the current plot. cor() Computes correlations with either vectors or a matrix or data.frame. tab_model() Creates a well-formatted r...
6513 sym R (7846 sym/19 pcs) 2 img 6 tbl
Document
Functions Tasks lm() Performs a linear modeling using ordinary least squares method. abline() Adds one or more straight lines through the current plot. cor() Computes correlations with either vectors or a matrix or data.frame. tab_model() Creates a well-formatted regression outputs into HTML format. tab_xtab() Creates a well-formatted contin...
6584 sym R (7855 sym/19 pcs) 2 img 6 tbl
Publish Document
Lab 8 will focus on getting hands-on experience of multiple regression modeling in R. In addition to running regression models, we usually do data visualization and inspection before the modeling and regression diagnostics after the modeling. Functions Tasks left_join() Joins two data.frames such that all rows in the table on the left are prese...
9798 sym R (8139 sym/22 pcs) 1 img 2 tbl
Publish Document
Functions Tasks plot_summs() Creates regression coefficient plots stargazer() Formats regression analysis results into a well-organized table. formula() Returns a formulae included in other R objects. par() Can be used to set or query graphical parameters. See ?par for more details. points() Draws a point or sequence of points at the specifi...
7448 sym R (7442 sym/23 pcs) 5 img 2 tbl