Publications by Assogba Albert
DEM 7283 Stats II Homework 8
Packages library(car) library(mice) ## Warning: package 'mice' was built under R version 4.0.5 library(ggplot2) library(dplyr) library(car) library(stargazer) library(survey) library(questionr) library(dplyr) library(tidyverse) library(haven) library(readr) library(lattice) load(url("https://github.com/coreysparks/data/blob/master/brfs...
4683 sym R (31001 sym/70 pcs) 3 img
DEM 7283 Stats II Homework 5
Load libraries Load brfss data ## [1] "dispcode" "statere1" "safetime" "hhadult" "genhlth" "physhlth" ## [7] "menthlth" "poorhlth" "hlthpln1" "persdoc2" 1. Define an ordinal or multinomial outcome variable of your choosing and define how you will recode the original variable. General ordinal coding, with 5 being the best and 1 being the w...
2152 sym R (23564 sym/66 pcs) 1 tbl
DEM 7283 Stats II Homework 6
Load libraries library(car) library(stargazer) library(survey) library(sjPlot) library(ggplot2) 1. Define a count outcome for the dataset of your choosing My outcome for this assignment is the number of days the respondent reported poor mental health in the past month: Question: Now thinking about your mental health, which includes stress, d...
2901 sym R (11957 sym/31 pcs) 2 img
DEM 7283 Stats II Homework 7
library(car) library(stargazer) library(survey) library(ggplot2) library(pander) library(dplyr) library(knitr) load(url("https://github.com/coreysparks/data/blob/master/brfss_2017.Rdata?raw=true")) What is your latent construct? In this assignment i will use Principal Component Analysis (PCA) to perform a variable reduction to look at chr...
2733 sym R (8340 sym/26 pcs) 5 img
DEM 7283 Stats II Homework 9
load Packages library(splines) library(mgcv) library(ggplot2) library(dplyr) library(car) BRFSS DATA load(url("https://github.com/coreysparks/data/blob/master/brfss_2017.Rdata?raw=true")) set.seed(1234) #samps<-sample(1:nrow(brfss_17), size = 40000, replace=F) #brfss_17<-brfss_17[samps,] renam<-names(brfss_17) newnames<-tolower(gsub(pat...
793 sym R (8658 sym/15 pcs) 2 img
DEM 7093 GIS HOMEWORK 7
Load some other packages library(survey) library(dplyr) library(car) library(ggplot2) library(tigris) library(classInt) library(tmap) library(ipumsr) ## Warning: package 'ipumsr' was built under R version 4.0.5 ddi <- read_ipums_ddi("C:/Users/chris/University of Texas at San Antonio/SPRING 2021/DEM 7093 GEOGRAPHIC INFORMATION FOR POPULATIO...
296 sym R (16249 sym/24 pcs) 2 img
DEM 7283 Stats II Homework 10
My outcome of interest is a person’s chronic disease condition, measured by asking, ‘Has a doctor, nurse, or other health professional ever told you that you had a depressive disorder (including depression, major depression, dysthymia, or minor depression)? For this homework, I am using 2017 CDC Behavioral Risk Factor Surveillance System (BRF...
3088 sym R (5926 sym/18 pcs)
DEM 7263 HOMEWORK 6
library(rgdal) library(spdep) library(INLA) library(tigris) library(tidycensus) library(tidyverse) library(spdep) library(MASS) library(spatialreg) library(ggplot2) library(rio) library(sas7bdat) library(haven) library(dplyr) library(sf) library(stringr) For this analysis,I am using Area Health Resource Files for year 2020 from the...
1307 sym R (8955 sym/24 pcs) 1 img
DEM 7263 HOMEWK 4
library(spdep) ## Loading required package: sp ## Loading required package: spData ## To access larger datasets in this package, install the spDataLarge ## package with: `install.packages('spDataLarge', ## repos='https://nowosad.github.io/drat/', type='source')` ## Loading required package: sf ## Linking to GEOS 3.9.0, GDAL 3.2.1, PROJ 7.2.1 li...
2990 sym R (19488 sym/61 pcs) 3 img
DEM 7263 HMWORK 2
library(tidycensus) library(tidyverse) library(sf) library(classInt) library(sandwich) library(tidyverse) library(spdep) library(nortest) library(car) library(lmtest) library(ggplot2) library(dplyr) v15_Profile <- load_variables(2017, "acs5/profile", cache = TRUE) search for variables by keywords in the label v15_Profile[grep(x = v1...
2462 sym R (11094 sym/31 pcs) 3 img