바이올린 그림 vs 박스그림 install.packages("vioplot") library(vioplot) # 표준정규분포를 이용한 예제 par(mfrow=c(1,2)) x1 <- rnorm(2000,0,1) boxplot(x1) vioplot(x1, col="red") 참고 : [1]: https://wsyang.com/2011/04/violin-plot-in-r/ "[R] boxplot의 새로운 형태 violin plot" Bite Bits/R 2019.12.21
AIC, BIC 두 개의 서로 다른 선형 회귀 모형의 성능을 비교할 때는 보통 다음과 같은 선택 기준을 사용한다. 조정 결정 계수 (Adjusted determination coefficient) AIC (Akaike Information Criterion) BIC (Bayesian Information Criterion) 조정 결정 계수와 함께 많이 쓰이는 모형 비교 기준은 최대 우도에 독립 변수의 갯수에 .. Bite Bits/R 2019.12.21
다항 로지스틱 모델 R에서는 nnet:multinom()을 사용해 다항 로지스틱 회귀 모델을 작성할 수 있다. library(nnet) model <- nnet::multinom(Species ~. , data=iris) head(fitted(model)) # 적합 확인 > head(fitted(model)) # 적합 확인 setosa versicolor virginica 1 1.0000000 1.526406e-09 2.716417e-36 2 0.9999996 3.536476e-07 2.883729e-32 3 1.0000000 4.443506e-08 6.103424e.. Bite Bits/R 2019.12.21
How to download YouTube data in R 그냥 따라하면 기본적인 실습은 가능. 이후에 좀 더 응용해볼 것. How to download YouTube data in R using “tuber” and “purrr” http://www.storybench.org/how-to-download-youtube-data-in-r-using-tuber-and-purrr/ Bite Bits/R 2019.11.08
R 기본 연산자 정리 논리연산자 기능 산술연산자 기능 < 작다 + 더하기 <= 작거나 같다 - 빼기 > 크다 * 곱하기 >= 크거나 같다 / 나누기 == 같다 ^ 제곱 != 같지 않다 ** 제곱 | 또는 %/% 나눗셈의 몫 & 그리고 %% 나눗셈의 나머지 %in% 포함되는 Bite Bits/R 2019.11.06
[R] R 에서 excel 파일 읽어오기 install.packages('readxl') library(readxl) * 참고 : - readxl 패키지, read_excel() 함수, http://rfriend.tistory.com/313 Bite Bits/R 2018.02.07
[R] Time Series Representations in R * 참고 : - Time Series Representations in R, https://petolau.github.io/TSrepr-time-series-representations/ Bite Bits/R 2018.02.02
[R] 시계열 분석 - ARIMA 모형 * 참고 : - R을 사용한 시계열 분석 – ARIMA 모형을 통한 미래 추세 예측, http://www.dodomira.com/2016/04/21/arima_in_r/ Bite Bits/R 2018.01.04
[R] Updating R from R with installr package * 참고 : https://www.r-statistics.com/2013/03/updating-r-from-r-on-windows-using-the-installr-package/ Bite Bits/R 2018.01.04
[R] Updating R Packages R 에서 설치된 패키지 일괄 업데이트 할 때, > update.packages() 이렇게 하면 패키지 업데이트 여부를 하나씩 전부 물음. 한번에 처리하려면. 아래와 같이 옵션을 지정하면 됨. > update.packages(ask = FALSE, dependencies = c('Suggests')) 패키지들의 설치 경로를 확인할 때, > .libPaths() * 참고 : - Updating .. Bite Bits/R 2018.01.04