Publications by Anika Lewis
{Bio 620} Lab 4
LOAD install.packages("ggplot2") ## Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.2' ## (as 'lib' is unspecified) library(ggplot2) Multiple Linear Regression The Data download.file("http://www.openintro.org/stat/data/evals.RData", destfile = "evals.RData") load("evals.RData") Exploring the data Exercise 1 Is this an observat...
6671 sym R (5107 sym/36 pcs) 18 img
{DataCamp} Introduction to Tidyverse
Introduction to the Tidyverse; The Gapminder dataset What is Tidyverse? + A collection of tools in R for transforming and visualizing data What is Gapminder? + Gapminder tracks economic and social indicators of countries overtime + A package created by Jenny Bryan, which contains the Gapminder dataset + It is structured as a dataframe. What is a pa...
5944 sym R (2732 sym/27 pcs) 8 img
{DataCamp} Introduction to R
Introduction to R; Intro to basics How it works Instructions In the editor on the right there is already some sample code. Can you see which lines are actual R code and which are comments? Add a line of code that calculates the sum of 6 and 12, and hit the ‘Submit Answer’ button. # Calculate 3 + 4 3 + 4 ## [1] 7 # Calculate 6 + 12 6+12 ## [...
2147 sym
How COVID-19 Ended Flu Season Before It Started
Image Credit: Anne Baek Getty Images Link to full article:https://fivethirtyeight.com/features/how-covid-19-ended-flu-season-before-it-started/ Key Points In this article author Maggie Koerth, gives several hypotheses to explain the historically low amount of flu cases reported this flu season. She gives these hypotheses: We don’t test for t...
2511 sym 3 img
Daily Cigarette Use by Year After 1997
library(ggplot2) library(gapminder) library(readr) 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, setequal, union Skillsdrillz<-read.csv("/Volumes/NO NAME/Data 333/Practice Skil...
92 sym R (2060 sym/13 pcs) 1 img
Continuous Analysis of the Relationship Between Alcohol Use and Age Group
Variable Selection & Research Question Countious variable: Behav_AlcDaysPerYear_N. “This variable represents the number of days spent drinking alcoholic beverages in the past year.” (NHIS Abbreviated Codebook.pdf) Categorical variable: Demo_agerange_C. This variable is a categorization of a continous age variable. Do younger age groups drin...
2314 sym R (2870 sym/26 pcs) 4 img
Cocaine & Marijuana Use and Work Absenteeism
Step 1 library(ggplot2) library(gapminder) library(readr) 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, setequal, union Step 2 drug_data<-read.csv("/Volumes/NO NAME/Data 333/Sk...
371 sym R (7311 sym/13 pcs) 2 img
Marital Status & Poverty level
Hypothesis After browsing the NHIS data, I suspect that there may be a relationship between the marriage status and the poverty line variables. I predict that married individuals are more likely to live above the poverty line, than the unmarried individuals. Confirming/rejecting this information may have implications on the traditional benefits o...
1537 sym R (4107 sym/17 pcs) 1 img
Categorical Analysis of the Relationship Between Religion & Political Party
Introduction I hypothesize that there is a relationship between a subject’s religion and their choice of political party. By studying the influence of religion on a subject’s choice of political party, researchers can gain insights into the values, wants, and needs that particular groups have. Political parties can use this information to ide...
1284 sym R (12972 sym/26 pcs) 1 img
Family size, Marital status, and # of kids in Household & their effects on BMI
0. Set Up library(readr) NHANES<-read.csv("/Volumes/FLASHDRIVE/Data 306/NHANES_v1.csv") 1. Categorical independent predictor (IV) & (DV) DMDMARTL - Marital status bmxbmi - Body mass index 2. Simple linear regression model 1 I will model the relationship between body mass index and marital status with marital status being the independent predi...
7586 sym R (10209 sym/67 pcs) 2 img