Publications by USER
Canonical Transformation
1. Canonical Transformation Canonical transformations involve the use of special matrices in the transformation of related traits into unrelated traits and thus using single trait models for evaluation( transformation of polymorphic model into monomorphic models). Using the transformation matrix Q and P we are able to transform the models. Limit...
13065 sym R (14627 sym/92 pcs)
Repeatability Model
# The Repeatability Model - Date : 2020-11-11 # An example of a single diary herd # Linear Models for the Prediction of Animal Breeding Values, Raphael Mrode, 3rd Edition # Julius Mugambe(PhD) # Clear works pace rm(list = ls()) # Set working directory # Setting working directory setwd("G:/R-MME") getwd() ## [1] "G:/R-MME" # install....
96 sym R (29054 sym/90 pcs)
The Sire Model
# A sire Model # Linear Models for the prediction of Animal Breeding values. # Julius Mugambe PhD # variance components sigma_s <- 5.0 sigma_e <- 55 alpha <- sigma_e/sigma_s # AINV Ainv = matrix(data = c(1.333,0.000,-0.667,0.000,1.000,0.000,-0.667,0.000,1.333), byrow= T, ncol = 3) X = matrix(data = c (1,0,0,1,0,1,1,0,1,0), byrow=T,nc...
8 sym R (997 sym/2 pcs)
Single_Trait_Animal_Model_RA_MRODE
# Single Trait Animal Model - Date : 2020-11-11 # A model for Animal Evaluation # Linear Models for the Prediction of Animal Breeding Values, Raphael Mrode, 3rd Edition # Julius Mugambe(PhD) # Clear workspace rm(list = ls()) # Set working directory # Setting working directory setwd("G:/R-MME") getwd() ## [1] "G:/R-MME" # Functions ...
10 sym R (3504 sym/4 pcs)
Partitioning Breeding Values (PA,PC and YD)
# Progeny yield Deviations - Date : 2020-11-11 # An example of the animal model # Linear Models for the Prediction of Animal Breeding Values, Raphael Mrode, 3rd Edition # Julius Mugambe(PhD) # Clear works pace rm(list = ls()) # Set working directory # Setting working directory setwd("G:/R-MME") getwd() ## [1] "G:/R-MME" # Functions ...
55 sym R (13642 sym/50 pcs)
Common Environment Effect Model
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::
이번에도 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
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
이전 시리즈에서 저장한 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_단체 성격별로 색 넣기
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