Installing R and Positron

Class Lecture

Statistics

Traditional Statistics

Traditional Statistics methods can conducted using either linear or logistic regression.

Visit Here for more information.

What is Statistics?

It is the study of variation and randomness!

What’s the goal of Statistics?

INFERENCE

Use our sample data to understand the larger population.

The data will tell us how the population generally behaves.

The data will guide us in the differences in units.

Data will tell us if there is a signal or just noise.

Final Thoughts

When conducting a study, literature review and study design are as equally important as statistics.

If you don’t see variability in the data, something is wrong.

Focus on consistency in the methodology, not consistency in data.

Understand that you can be wrong, and that is okay.

Don’t let data influence the methodology during a study/experiment.

Statistics Mantra

An image of George Box

All models are wrong,

some are useful!

Surveys

Online Course Evaluation Survey

Please fill out the course eval survey from your email.

Final Class Survey

Survery

CSUCI Rebranding Survey

Voice Your Opinion

CI Rebranding

Survey

Data Science courses

Data 200

Introduction to Data Science

  • Dr. Catalina Medina

  • MW 3-4:15 PM

  • TTH: 1:30-2:45 PM

Data 213

Programming for Data Science

  • Dr. Alona Kryshchenko

  • TTH 3-4:15 PM

Data 260

Mathematics for Data Science

  • Dr. Cynthia Flores

  • MW 2-3:50 PM

Installation

Installing R

https://cloud.r-project.org/

Installing Visual C++ Redistributable (Windows)

https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-supported-redistributable-version

Installing RStudio

https://positron.posit.co/install.html

Positron Layout

Positron Layout

  • Scripts

  • Console

  • Environment

  • Files

  • Everything else

R Packages

Tidyverse

install.packages("tidyverse")

csucistats

install.packages('csucistats', 
                 repos = c('https://inqs909.r-universe.dev', 
                           'https://cloud.r-project.org'))

Other Packages

install.packages(c("ggthemes", "statmod", "car", "ggtext", "ggpubr", "lmtest", "rms", "palmerpenguins"))

Load Packages

library(tidyverse)
library(csucistats)
library(ggthemes)
library(ggtext)
library(ggpubr)
library(ThemePark)
library(car)
library(lmtest)
library(rms)
library(palmerpenguins)

Loading Data

Downloading Data

u1 <- "https://www.inqs.info/p/plotathon/owenWilsonWows.csv"
u2 <- "https://www.inqs.info/p/plotathon/owenWilsonWows.xlsx"

download.file(u1,
              file.path(getwd(), basename(u1)))
download.file(u2,
              file.path(getwd(), basename(u2)))