Publications by USER

Common Environment Effect Model

17.05.2021

An example from the Linear Models for the Prediction of Animal Breeding Values, 3rd Edition ( Example 4.3 p67) The matrix notation of the models is: y = Xb + Za + Wc + e where c is the common environment effect and W relates the records to the common environment effects. Start by installing or loading the MASS packages if they are already instal...

14863 sym R (21664 sym/88 pcs)

R_Intro_6_variable summary_(1): dlookr::

16.01.2022

이번에도 MASS 패키지 내 Cars93 데이터셋을 사용해보자. library(tidyverse) ## -- Attaching packages --------------------------------------- tidyverse 1.3.1 -- ## v ggplot2 3.3.5 v purrr 0.3.4 ## v tibble 3.1.6 v dplyr 1.0.7 ## v tidyr 1.2.0 v stringr 1.4.0 ## v readr 2.1.2 v forcats 0.5.1 ## Warning: �...

1012 sym R (8232 sym/37 pcs)

R_Intro_4_Bind and Merge

14.01.2022

1. rbind: row로 붙이기(밑으로) ex1 <- data.frame(matrix(c(1,2,3,1,1,1,2,2,2), ncol=3)) names(ex1) <- c("pid", "x", "y") ex1 ## pid x y ## 1 1 1 2 ## 2 2 1 2 ## 3 3 1 2 ex2 <-data.frame(matrix(c(1,2,3,3,3,3,4,4,4), ncol=3)) names(ex2) <- c("pid", "x", "y") ex2 ## pid x y ## 1 1 3 4 ## 2 2 3 4 ## 3 3 3 4 ex3 <- rbind(ex1, ex2...

128 sym R (1325 sym/18 pcs)

R_Intro_2_Convert Variable

14.01.2022

이전 시리즈에서 저장한 R file 불러오기 load("./r_Intro/gss_2018.RData") # .은 현재 설정된 워킹 디렉토리 \(~\) library(tidyverse) ## -- Attaching packages --------------------------------------- tidyverse 1.3.1 -- ## v ggplot2 3.3.5 v purrr 0.3.4 ## v tibble 3.1.6 v dplyr 1.0.7 ## v tidyr 1.2.0 v stri...

1318 sym R (6606 sym/80 pcs)

South Korea LGBTQ organization Network_단체 성격별로 색 넣기

18.12.2021

getwd() ## [1] "/Users/idlhy/OneDrive/R FILE/network" rm(list=ls()) setwd("/Users/idlhy/OneDrive/R FILE/network") library(tidygraph) ## ## Attaching package: 'tidygraph' ## The following object is masked from 'package:stats': ## ## filter library(ggraph) ## Loading required package: ggplot2 library(igraph) ## ## Attaching package: 'igraph...

490 sym R (18354 sym/70 pcs) 6 img

LGBTQ Network_211230_대학_비대학

30.12.2021

## [1] "C:/Users/distr/OneDrive/R FILE/network" 1990년대 2000년대 2010년대 2010년대 2 (value가 2이상인 node들의 네트워크) 2000년대 standardized betweeness 값이 1 이상 조직 뺀 뒤 2010년대 standardized betweeness 값이 1 이상 조직 뺀 뒤 ...

172 sym R (47 sym/1 pcs) 6 img

R_Intro_1_Data Import, Convert, Export, Save

13.01.2022

참고 링크 (https://data-make.tistory.com/47) (https://ordo.tistory.com/13) (https://haven.tidyverse.org/reference/read_dta.html) \(~\) 1. 워킹디렉토리 확인과 설정 1-1. 확인하기 getwd() ## [1] "C:/Users/distr/OneDrive/R FILE" 1-2. 경로 저장하기 setwd("C:/Users/distr/OneDrive/R FILE/r_Intro") 본 예제에서는 GSS 201...

1659 sym R (5412 sym/30 pcs)

Animal model

14.01.2022

This is a page for my R publications R Pubs. You can checkout some of my few code. Animal model example problem with R Consider the mixed linear equation below: \[\begin{equation}y=Xb+Zu+e\end{equation}\] Variance components sigma_e = 40 sigma_a = 20 alpha = sigma_e/sigma_a alpha ## [1] 2 Set working directory setwd("E:/R-MME") # print worki...

1056 sym R (7586 sym/40 pcs) 3 img

R_Intro_3_Dealing with Missing Values

15.01.2022

library(tidyverse) ## Warning: 패키지 'ggplot2'는 R 버전 4.1.2에서 작성되었습니다 ## Warning: 패키지 'tibble'는 R 버전 4.1.2에서 작성되었습니다 ## Warning: 패키지 'tidyr'는 R 버전 4.1.2에서 작성되었습니다 ## Warning: 패키지 'readr'는 R 버전 4.1.2에서 작성되었습니다 ## Warning: 패키지 ...

2557 sym R (16533 sym/112 pcs) 25 img

R_Intro_8_ggplot2 (1)

06.02.2022

오늘 사용할 데이터는 palmerpenguin::penguins library(palmerpenguins) library(tidyverse) ## -- Attaching packages --------------------------------------- tidyverse 1.3.1 -- ## v ggplot2 3.3.5 v purrr 0.3.4 ## v tibble 3.1.6 v dplyr 1.0.7 ## v tidyr 1.2.0 v stringr 1.4.0 ## v readr 2.1.2 v forcats 0.5.1 ## -- C...

375 sym R (3054 sym/20 pcs) 8 img