Publications by fangya
PK_AUC_thalf_t12
Outline calculate the Cmax Calculate AUC Calculate t1/2 Load data Data Clean pkb <- pka %>% dplyr::select(subjid, Visit, time, conc) Color # colored data table color<- function(data,var,color,l){ datatable(data, options = list( pageLength = l), escape=FALSE) %>% formatStyle(names(data), fontSize="80%", ...
1601 sym 2 img 3 tbl
MMRM SAS R equivalence
Outline SAS MMRM equivalence model in R SAT, and AR(1) Note: unstructured covariance is not available in SAS when Hessian maxtrix=0 data <- df %>% mutate(trt = case_when( trt == "NKTR" ~ "Drug", TRUE ~ trt )) data$subjid <- factor(data$subjid) data$visit <- factor(data$visit) data$trt <- factor(data$trt) MMRM SAS code 1 MMRM ...
231 sym Python (4467 sym/10 pcs) 3 img
Calendar Plot
Maintaining clear documentation of work is not only an effective method for showing your workload, but also serves as a protective measure against potential ambiguities. — D.Yu calendR(year = 2024, start = "M", mbg.col ="15", title = "2024 Medium Blog Update Info", special.days = c(30,31,54,59,65,68,94), ...
184 sym 1 img
Swimmer Lane with Multiple Legend
Outline Generate Swimm Plot with Multiple Labels/Legend Use get_legend to store different labels/Legend Generate a main graph without any Labels/Legend Apply plot_grid to arrange Labels/Legend and Main graph Use Cario to save the graph in high resolution PDF Load data Month= Days/30.4375 Build Data Structure 1 GGPlot Generate multiple label coh...
538 sym Python (3990 sym/11 pcs) 5 img
Logistic Regression GGplot with modification
Outline We’d like to include multiple variables in Logistic Regression and reflect it on GGplot. builde the Logistic Regression Model Construct New data Ggplot with two layers (probability from Newdata, Geom_points from original data) 1 Model mod1 <- glm(aval ~ dlevel+d2, data=df2, family=binomial(link="logit")) summary(mod1) ## ## Call: ...
915 sym 2 img
Praise myself everyday
1 Praise myself Everyday Run this program before and after work to celebrate tiny achievements! gdwk <- function() { time<- Sys.time() now<- as.numeric(format(time, "%H")) morning<- praise("${EXCLAMATION}!${EXCLAMATION}!-${EXCLAMATION}! You will have a ${adjective} Day! ") evening <- praise("${EXCLAMATION}!${EXCLAMATION}!-${EXCLAMATION}! Yo...
125 sym
Bowen thesis
My Dissertation Title My Subtitle ByMy Name A thesis submitted toHarrisburg University of Science and Technologyfor the degree ofDoctor of Philosophy Department of AnalyticsHarrisburg University of Science and TechnologyJuly 2023 © Copyright by My Name, 2023All Rights Reserved Abstract This R Markdown template is for writing an Harrisburg Uni...
14771 sym 3 img 4 tbl
Swimmer Lane Plot
Outline There are many different ways to present Swimmer plot of patient’s response info, we will provide two example of Swimmer plot Data info Swimmer plot GGplot2 Swim_plot Note: we used Dummy data for the swimmer plot example Load data #Excel :relapse cart<-read.csv("C:/Users/ftan/OneDrive - Nektar Therapeutics/desktop/All/Nektar/Nktr2...
342 sym Python (4969 sym/7 pcs) 3 img
What is the Story of your Favorite Game
Upload Dataset and Library 1 Introduction I divide this App Game Analysis into two parts: the Data Visualization for basic Statistical Summary, and some simple modeling to find what is the Best Education Games. In addition, we will explore the relationship between Developer VS User.Ratings. This project is inspired by a disconnected-friend who...
4844 sym R (5069 sym/15 pcs) 12 img
Spotify 2018 Top 100 Song anlaysis
1 Introduction The Top Spotify Tracks of 2018 dataset contains 100 of the most popular songs. In this notebook, we will analyze the data structure and try to identify what are the secret ingredients(Tempo, Keys, Name) for popular songs. I normally listen to Chinese pop music or Classical music, thanks to this dataset, I listened to 20+ Western Hi...
8608 sym R (15705 sym/25 pcs) 30 img