Skip to content

Instantly share code, notes, and snippets.

View jangsean's full-sized avatar

Sean Jang jangsean

View GitHub Profile
@jangsean
jangsean / Regression.R
Created September 19, 2023 16:09 — forked from cherryyingzizhang/Regression.R
Regression.R
########################################################################
#1-var Linear Regression
########################################################################
#lm(formula you wanna fit, dataFrame)
cmodel <- lm(temperature ~ chirps_per_sec, data = cricket)
#Formula
fmla <- temperature ~ chirps_per_sec
fmla <- blood_pressure ~ age + weight
#LHS: outcome, RHS: inputs.
@jangsean
jangsean / beginnerR.R
Created September 19, 2023 16:09 — forked from cherryyingzizhang/beginnerR.R
beginnerR.R
#Ctrl+L Clears Console
########################################################################
#Vectors & Matrices
########################################################################
#views <- matrix(c(linkedin, facebook), nrow = 2, byrow = TRUE)
########################################################################
#Factors
########################################################################
@jangsean
jangsean / Search my gists.md
Created September 19, 2023 15:56 — forked from santisbon/Search my gists.md
How to #search gists

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html