Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
.DS_Store
PmetricsGit.Rproj


# Build/check artifacts
/*.tar.gz
/*.Rcheck/
Expand Down
11 changes: 11 additions & 0 deletions Learn/Rscript/Learn.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This is an R script you can use to accompany the "Introduction to Pmetrics" online book.
# You can find the book at https://lapkb.github.io/PM_tutorial/


##### EXECUTE THIS CODE

library(Pmetrics) # load the Pmetrics library
wd <- "/Users/mneely/Library/CloudStorage/OneDrive-CHILDRENSHOSPITALLOSANGELES/Documents/LAPK/Development/Pmetrics_rust/Learn"
setwd(wd) # all needed files will be here

##### PASTE THE CODE FROM THE BOOK BELOW THIS LINE
260 changes: 260 additions & 0 deletions Learn/src/ex.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,260 @@
id,time,dose,out,wt,africa,age,gender,height
1,0,600,.,46.7,1,21,1,160
1,24,600,.,46.7,1,21,1,160
1,48,600,.,46.7,1,21,1,160
1,72,600,.,46.7,1,21,1,160
1,96,600,.,46.7,1,21,1,160
1,120,.,10.44,46.7,1,21,1,160
1,120,600,.,46.7,1,21,1,160
1,121,.,12.89,46.7,1,21,1,160
1,122,.,14.98,46.7,1,21,1,160
1,125.99,.,16.69,46.7,1,21,1,160
1,129,.,20.15,46.7,1,21,1,160
1,132,.,14.97,46.7,1,21,1,160
1,143.98,.,12.57,46.7,1,21,1,160
2,0,600,.,66.5,1,30,1,174
2,24,600,.,66.5,1,30,1,174
2,48,600,.,66.5,1,30,1,174
2,72,600,.,66.5,1,30,1,174
2,96,600,.,66.5,1,30,1,174
2,120,.,3.56,66.5,1,30,1,174
2,120,600,.,66.5,1,30,1,174
2,120.98,.,5.84,66.5,1,30,1,174
2,121.98,.,6.54,66.5,1,30,1,174
2,126,.,6.14,66.5,1,30,1,174
2,129.02,.,6.56,66.5,1,30,1,174
2,132.02,.,4.44,66.5,1,30,1,174
2,144,.,3.76,66.5,1,30,1,174
3,0,600,.,46.7,1,24,0,164
3,24,600,.,46.7,1,24,0,164
3,48,600,.,46.7,1,24,0,164
3,72,600,.,46.7,1,24,0,164
3,96,600,.,46.7,1,24,0,164
3,120,600,.,46.7,1,24,0,164
3,120.08,.,4.06,46.7,1,24,0,164
3,121.07,.,3.24,46.7,1,24,0,164
3,122.08,.,3.09,46.7,1,24,0,164
3,126.08,.,7.98,46.7,1,24,0,164
3,129.05,.,7.23,46.7,1,24,0,164
3,132.1,.,4.71,46.7,1,24,0,164
3,144.08,.,3.82,46.7,1,24,0,164
4,0,600,.,50.8,1,25,1,165
4,24,600,.,50.8,1,25,1,165
4,48,600,.,50.8,1,25,1,165
4,72,600,.,50.8,1,25,1,165
4,96,600,.,50.8,1,25,1,165
4,120,.,2.1,50.8,1,25,1,165
4,120,600,.,50.8,1,25,1,165
4,121,.,3.05,50.8,1,25,1,165
4,122.02,.,5.21,50.8,1,25,1,165
4,126,.,5.09,50.8,1,25,1,165
4,129.03,.,4.24,50.8,1,25,1,165
4,132,.,3.69,50.8,1,25,1,165
4,144.02,.,1.96,50.8,1,25,1,165
5,0,600,.,65.8,1,22,1,181
5,24,600,.,65.8,1,22,1,181
5,48,600,.,65.8,1,22,1,181
5,72,600,.,65.8,1,22,1,181
5,96,600,.,65.8,1,22,1,181
5,120,.,2.93,65.8,1,22,1,181
5,120,600,.,65.8,1,22,1,181
5,121,.,2.64,65.8,1,22,1,181
5,122,.,4.8,65.8,1,22,1,181
5,126,.,3.7,65.8,1,22,1,181
5,129.02,.,4.13,65.8,1,22,1,181
5,132,.,2.81,65.8,1,22,1,181
5,144,.,2.21,65.8,1,22,1,181
6,0,600,.,65,1,23,1,177
6,24,600,.,65,1,23,1,177
6,48,600,.,65,1,23,1,177
6,72,600,.,65,1,23,1,177
6,96,600,.,65,1,23,1,177
6,120,.,6.92,65,1,23,1,177
6,120,600,.,65,1,23,1,177
6,121,.,6.89,65,1,23,1,177
6,121.98,.,6.64,65,1,23,1,177
6,126,.,13.72,65,1,23,1,177
6,129,.,12.69,65,1,23,1,177
6,131.98,.,10.58,65,1,23,1,177
6,144.98,.,6.62,65,1,23,1,177
7,0,600,.,51.7,1,27,0,161
7,24,600,.,51.7,1,27,0,161
7,48,600,.,51.7,1,27,0,161
7,72,600,.,51.7,1,27,0,161
7,96,600,.,51.7,1,27,0,161
7,120,.,5.41,51.7,1,27,0,161
7,120,600,.,51.7,1,27,0,161
7,121.03,.,4.46,51.7,1,27,0,161
7,122.03,.,4.54,51.7,1,27,0,161
7,126.02,.,12.19,51.7,1,27,0,161
7,129.08,.,12.1,51.7,1,27,0,161
7,132.03,.,8.61,51.7,1,27,0,161
7,144.03,.,6.37,51.7,1,27,0,161
8,0,600,.,51.2,1,22,1,163
8,24,600,.,51.2,1,22,1,163
8,48,600,.,51.2,1,22,1,163
8,72,600,.,51.2,1,22,1,163
8,96,600,.,51.2,1,22,1,163
8,120,.,6.19,51.2,1,22,1,163
8,120,600,.,51.2,1,22,1,163
8,121.03,.,6.33,51.2,1,22,1,163
8,122,.,6.24,51.2,1,22,1,163
8,125.98,.,13.03,51.2,1,22,1,163
8,128.98,.,11.86,51.2,1,22,1,163
8,132,.,11.45,51.2,1,22,1,163
8,143.98,.,7.83,51.2,1,22,1,163
9,0,600,.,55,1,23,1,174
9,24,600,.,55,1,23,1,174
9,48,600,.,55,1,23,1,174
9,72,600,.,55,1,23,1,174
9,96,600,.,55,1,23,1,174
9,120,.,2.85,55,1,23,1,174
9,120,600,.,55,1,23,1,174
9,120.97,.,3.7,55,1,23,1,174
9,122,.,6.65,55,1,23,1,174
9,125.98,.,6.81,55,1,23,1,174
9,128.98,.,6.51,55,1,23,1,174
9,132,.,7.48,55,1,23,1,174
9,143.98,.,4.51,55,1,23,1,174
10,0,600,.,52.1,1,32,1,163
10,24,600,.,52.1,1,32,1,163
10,48,600,.,52.1,1,32,1,163
10,72,600,.,52.1,1,32,1,163
10,96,600,.,52.1,1,32,1,163
10,120,.,2.93,52.1,1,32,1,163
10,120,600,.,52.1,1,32,1,163
10,121,.,4.36,52.1,1,32,1,163
10,122.02,.,7.79,52.1,1,32,1,163
10,126,.,11.02,52.1,1,32,1,163
10,129,.,8.86,52.1,1,32,1,163
10,131.97,.,6.09,52.1,1,32,1,163
10,144,.,4.15,52.1,1,32,1,163
11,0,600,.,56.5,1,34,1,165
11,24,600,.,56.5,1,34,1,165
11,48,600,.,56.5,1,34,1,165
11,72,600,.,56.5,1,34,1,165
11,96,600,.,56.5,1,34,1,165
11,120,.,2.09,56.5,1,34,1,165
11,120,600,.,56.5,1,34,1,165
11,121.03,.,2.68,56.5,1,34,1,165
11,122,.,4.71,56.5,1,34,1,165
11,125.98,.,7.71,56.5,1,34,1,165
11,129,.,6.31,56.5,1,34,1,165
11,132,.,5.82,56.5,1,34,1,165
11,144.13,.,2.63,56.5,1,34,1,165
12,0,600,.,47.9,1,54,0,160
12,24,600,.,47.9,1,54,0,160
12,48,600,.,47.9,1,54,0,160
12,72,600,.,47.9,1,54,0,160
12,96,600,.,47.9,1,54,0,160
12,120,.,7.09,47.9,1,54,0,160
12,120,600,.,47.9,1,54,0,160
12,121.03,.,6.18,47.9,1,54,0,160
12,122.13,.,8.66,47.9,1,54,0,160
12,126,.,11.16,47.9,1,54,0,160
12,129,.,9.51,47.9,1,54,0,160
12,132,.,8.14,47.9,1,54,0,160
12,144,.,7.89,47.9,1,54,0,160
13,0,600,.,60.5,1,24,1,180
13,24,600,.,60.5,1,24,1,180
13,48,600,.,60.5,1,24,1,180
13,72,600,.,60.5,1,24,1,180
13,96,600,.,60.5,1,24,1,180
13,120,.,6.62,60.5,1,24,1,180
13,120,600,.,60.5,1,24,1,180
13,121,.,3.18,60.5,1,24,1,180
13,122,.,5.41,60.5,1,24,1,180
13,126,.,10.18,60.5,1,24,1,180
13,129.02,.,12.84,60.5,1,24,1,180
13,132,.,12.35,60.5,1,24,1,180
13,144,.,8.06,60.5,1,24,1,180
14,0,600,.,59.2,1,26,1,174
14,24,600,.,59.2,1,26,1,174
14,48,600,.,59.2,1,26,1,174
14,72,600,.,59.2,1,26,1,174
14,96,600,.,59.2,1,26,1,174
14,120,.,3.63,59.2,1,26,1,174
14,120,600,.,59.2,1,26,1,174
14,121,.,4.49,59.2,1,26,1,174
14,122,.,5.5,59.2,1,26,1,174
14,126,.,7.28,59.2,1,26,1,174
14,129,.,5.27,59.2,1,26,1,174
14,132,.,4.89,59.2,1,26,1,174
14,144,.,2.68,59.2,1,26,1,174
15,0,450,.,43,1,19,0,150
15,24,450,.,43,1,19,0,150
15,48,450,.,43,1,19,0,150
15,72,450,.,43,1,19,0,150
15,96,450,.,43,1,19,0,150
15,120,.,5.53,43,1,19,0,150
15,120,450,.,43,1,19,0,150
15,121,.,4.81,43,1,19,0,150
15,122,.,8.14,43,1,19,0,150
15,126,.,9.96,43,1,19,0,150
15,129,.,8.55,43,1,19,0,150
15,132.05,.,7.54,43,1,19,0,150
15,144.05,.,5.74,43,1,19,0,150
16,0,600,.,64.4,1,25,1,173
16,24,600,.,64.4,1,25,1,173
16,48,600,.,64.4,1,25,1,173
16,72,600,.,64.4,1,25,1,173
16,96,600,.,64.4,1,25,1,173
16,120,.,5.48,64.4,1,25,1,173
16,120,600,.,64.4,1,25,1,173
16,121,.,6.59,64.4,1,25,1,173
16,122,.,8.91,64.4,1,25,1,173
16,126,.,10.57,64.4,1,25,1,173
16,129,.,9.52,64.4,1,25,1,173
16,132,.,7.83,64.4,1,25,1,173
16,143.97,.,4.96,64.4,1,25,1,173
17,0,600,.,54.8,1,23,1,170
17,24,600,.,54.8,1,23,1,170
17,48,600,.,54.8,1,23,1,170
17,72,600,.,54.8,1,23,1,170
17,96,600,.,54.8,1,23,1,170
17,120,.,2.11,54.8,1,23,1,170
17,120,600,.,54.8,1,23,1,170
17,121.02,.,1.86,54.8,1,23,1,170
17,122.02,.,6.92,54.8,1,23,1,170
17,126,.,9.11,54.8,1,23,1,170
17,129,.,6.96,54.8,1,23,1,170
17,132,.,5.64,54.8,1,23,1,170
17,144.08,.,3.59,54.8,1,23,1,170
18,0,450,.,44.3,1,20,0,164
18,24,450,.,44.3,1,20,0,164
18,48,450,.,44.3,1,20,0,164
18,72,450,.,44.3,1,20,0,164
18,96,450,.,44.3,1,20,0,164
18,120,.,7.95,44.3,1,20,0,164
18,120,450,.,44.3,1,20,0,164
18,120.98,.,7.47,44.3,1,20,0,164
18,121.98,.,8.67,44.3,1,20,0,164
18,126,.,13.83,44.3,1,20,0,164
18,129.17,.,14.01,44.3,1,20,0,164
18,132.17,.,8.97,44.3,1,20,0,164
18,143.97,.,8.4,44.3,1,20,0,164
19,0,600,.,50,1,36,1,168
19,24,600,.,50,1,36,1,168
19,48,600,.,50,1,36,1,168
19,72,600,.,50,1,36,1,168
19,96,600,.,50,1,36,1,168
19,120,.,5.42,50,1,36,1,168
19,120,600,.,50,1,36,1,168
19,121,.,7.08,50,1,36,1,168
19,122,.,7.27,50,1,36,1,168
19,125.98,.,20.07,50,1,36,1,168
19,128.98,.,18.24,50,1,36,1,168
19,132,.,15.36,50,1,36,1,168
19,144,.,10.92,50,1,36,1,168
20,0,600,.,59,1,31,1,170
20,24,600,.,59,1,31,1,170
20,48,600,.,59,1,31,1,170
20,72,600,.,59,1,31,1,170
20,96,600,.,59,1,31,1,170
20,120,.,4.71,59,1,31,1,170
20,120,600,.,59,1,31,1,170
20,120.77,.,4.5,59,1,31,1,170
20,121.75,.,3.35,59,1,31,1,170
20,125.67,.,12.35,59,1,31,1,170
20,128.67,.,11.56,59,1,31,1,170
20,143.67,.,6.45,59,1,31,1,170
12 changes: 0 additions & 12 deletions R/DataDescriptions.R
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,3 @@


"locales"


#' @name model
#' @docType data
#' @title Pmetrics model
#' @usage model
#' @format Sample model text
#' @author Michael Neely
#' @keywords datasets


"model"
Loading
Loading