Publications by Mahmuda Sultana
DEM 5093 Homework 7
#Perform an extract of the 2019 5 Year ACS data: library(ipumsr) ## Warning: package 'ipumsr' was built under R version 4.1.3 ddi <- read_ipums_ddi("C:/Users/shahi/OneDrive - University of Texas at San Antonio/Desktop/Spring'22/Dem 5093 (GIS)/usa_00006.xml") data <- read_ipums_micro(ddi) ## Use of data from IPUMS USA is subject to conditions inc...
4911 sym R (8893 sym/22 pcs) 1 img
Dem5283Homework8
library(car) ## Loading required package: carData library(mice) ## ## Attaching package: 'mice' ## The following object is masked from 'package:stats': ## ## filter ## The following objects are masked from 'package:base': ## ## cbind, rbind library(ggplot2) library(dplyr) ## ## Attaching package: 'dplyr' ## The following object...
11643 sym R (29417 sym/84 pcs) 10 img
Homework 7 Dem5283
library(car) ## Loading required package: carData library(stargazer) ## ## Please cite as: ## Hlavac, Marek (2018). stargazer: Well-Formatted Regression and Summary Statistics Tables. ## R package version 5.2.2. https://CRAN.R-project.org/package=stargazer library(survey) ## Loading required package: grid ## Loading required package: Matrix #...
7158 sym R (8735 sym/48 pcs) 5 img
Homework 6 Dem5283
1) Define a count outcome for the dataset of your choosing, the Area Resource File used in class provides many options here ##a. State a research question about your outcome: My Count outcome is Infant Mortality Rate. Research queation is what is the prevalence of infant mortality rate at county level in USA? temp <- tempfile() #Download the SA...
10971 sym R (58187 sym/58 pcs) 2 img 4 tbl
Dem 5093 Homework 5
library(tidycensus) library(tidyverse) ## -- Attaching packages --------------------------------------- tidyverse 1.3.1 -- ## v ggplot2 3.3.5 v purrr 0.3.4 ## v tibble 3.1.6 v dplyr 1.0.7 ## v tidyr 1.1.4 v stringr 1.4.0 ## v readr 2.1.1 v forcats 0.5.1 ## -- Conflicts ------------------------------------------ tidyve...
367 sym R (5447 sym/39 pcs)
DEM5093 Homework4
#Find the ACS variable for the Percent Vacant housing units for 2011 and 2019 for Harris County, TX: library(tidycensus) library(tidyverse) ## -- Attaching packages --------------------------------------- tidyverse 1.3.1 -- ## v ggplot2 3.3.5 v purrr 0.3.4 ## v tibble 3.1.6 v dplyr 1.0.7 ## v tidyr 1.1.4 v stringr 1.4.0 ## ...
1115 sym R (17419 sym/49 pcs) 5 img
Dem5283Homework3
library(car) ## Loading required package: carData library(stargazer) ## ## Please cite as: ## Hlavac, Marek (2018). stargazer: Well-Formatted Regression and Summary Statistics Tables. ## R package version 5.2.2. https://CRAN.R-project.org/package=stargazer library(survey) ## Loading required package: grid ## Loading required package: Matrix #...
11327 sym R (7312 sym/45 pcs) 4 img 2 tbl
Dem5283Homework4
#load libraries library(car, quietly = T) library(stargazer, quietly = T) ## ## Please cite as: ## Hlavac, Marek (2018). stargazer: Well-Formatted Regression and Summary Statistics Tables. ## R package version 5.2.2. https://CRAN.R-project.org/package=stargazer library(survey, quietly = T) ## ## Attaching package: 'survey' ## The followin...
2529 sym R (14116 sym/56 pcs) 4 img 1 tbl
DEM 5283Homework 5
#Define an ordinal or multinomial outcome variable of your choosing and define how you will recode the original variable: brfss20sm <- readRDS("C:/Users/shahi/Dropbox/PC/Downloads/brfss20sm.rds") names(brfss20sm) <- tolower(gsub(pattern = "_",replacement = "",x = names(brfss20sm))) #My binary outcome variable is Poor Mental Health (MENT14D) b...
11099 sym R (5062 sym/18 pcs) 1 img 1 tbl
Dem 5093 Homework 6
library(mapview) library(sf) ## Linking to GEOS 3.9.1, GDAL 3.2.1, PROJ 7.2.1; sf_use_s2() is TRUE library(censusxy) library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequ...
1113 sym R (7294 sym/62 pcs) 2 img