Publications by Karlerik Naslund
Homework6
library(tibble) library(ggplot2) library(readxl) read_excel("TexasCountyPoverty.xlsx") ## # A tibble: 7 × 4 ## `Label (Grouping)` Population for whom …¹ pct_decimal county_vote_turnout …² ## <chr> <dbl> <dbl> <dbl> ## 1 Bexar County, Texas… 0.157 0.157...
272 sym R (2097 sym/10 pcs) 2 img
Homework4
library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.4 ✔ readr 2.1.5 ## ✔ forcats 1.0.0 ✔ stringr 1.5.1 ## ✔ ggplot2 3.5.1 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.3 ✔ tidyr 1.3.1...
97 sym R (1268 sym/8 pcs) 2 img
CruzDatasetWORKS!
AustinVoters <- read.csv("VotersAustin.csv") summary(AustinVoters$"Voter_Turnout") ## Min. 1st Qu. Median Mean 3rd Qu. Max. ## 0.0000 0.4467 0.5271 0.5165 0.5941 0.7392 hist(AustinVoters$Voter_Turnout) plot(AustinVoters$Precinct,AustinVoters$Voter_Turnout) cor(AustinVoters$Precinct,AustinVoters$Voter_Turnout) ## [1] 0.02596798...
12 sym 2 img
Homework2
wd<-getwd() cars<-read.csv("cars_data.csv") mean(cars $mpg) ## [1] 20.09062 min(cars$mpg) ## [1] 10.4 max(cars$mpg) ## [1] 33.9 length(cars$mpg) ## [1] 32...
12 sym
AnthonyCruzPAD6833Homework1
When you make an Rmarkdown file, always keep this chunk: lets also load tidyverse library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.4 ✔ readr 2.1.5 ## ✔ forcats 1.0.0 ✔ stringr 1.5.1 ## ✔ ggplo...
5176 sym R (2437 sym/58 pcs) 5 img
DEM 7223 - Homework 1
For homework #1 in DEM 7223, I will be performing a survival analysis on ELS:2002 data, specifically measuring the survival time for entry into community college after high school. #loading packages library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The followi...
5598 sym R (12729 sym/35 pcs) 5 img
DEM7223 - Homework 4
Homework 4 - Discreet Time Hazard Models In this assignment, I will be creating discreet time hazard models with the ELS:2002 data. The dependent variable, as usual, is community college entry after high school, the independent variables are as follows: Low SES (0 for high SES, 1 for low) Sex (Male/Female - as Factor) Race (Race/Ethnicity as def...
4148 sym R (71641 sym/24 pcs) 3 img
DEM 7223 - Homework 2
Dependent Variable In this homework assignment, I'll be creating various parametric models to estimate the effects of independent variables upon our outcome variable: first-time entry into community college after high school. This data is derived from the ELS:2002 dataset. #loading packages library(dplyr) ## ## Attaching package: 'dplyr' ## T...
7657 sym R (14518 sym/46 pcs) 6 img
DEM 7223 Homework 3
Homework 3 - Cox Regression Models For this assignment, I will be fitting a cox regression model to the ELS:2002 dataset, in an attempt to answer the following question: what are the main variables affecting community college entry directly out of High school? To this end, I have chosen a set of independent variables that I hypothesize will eff...
5487 sym R (29550 sym/15 pcs) 6 img
DEM_5213
fit.1<-glm(PCT_NON_MEDICAL_REFUSAL~PCT_BELOW_POV+TOTAL_POP+PCT_BA_OR_MORE+PCT_WHITE,data=schools_county,family=poisson) summary(fit.1) ## ## Call: ## glm(formula = PCT_NON_MEDICAL_REFUSAL ~ PCT_BELOW_POV + TOTAL_POP + ## PCT_BA_OR_MORE + PCT_WHITE, family = poisson, data = schools_county) ## ## Deviance Residuals: ## Min ...
3174 sym R (4414 sym/11 pcs) 1 img