where
$ k = \text {number of steps} $ $ b = \text {number of baseline measurements} $
where
$ k = \text {number of steps} $ $ b = \text {number of baseline measurements} $
// Declare variables | |
numeric aNumber; | |
// Create logic variables for each of the HAZ flags | |
numeric hazLowerBoys; | |
hazLowerBoys = 0.000000379386 * cage ^ 5 - 0.000069515524 * cage ^ 4 | |
+ 0.004909805 * cage ^ 3 - 0.168908042 * cage ^ 2 | |
+ 3.266127182 * cage + 39.95107423 | |
numeric hazUpperBoys; |
dist: trusty # Use Ubuntu 14.04 image (instead of 12.04) | |
language: r | |
sudo: false | |
r: 3.4.1 | |
# Install packrat if needed and have it restore packages. | |
install: | |
- R -e 'if (system.file(package="packrat") == "") install.packages("packrat")' | |
- R -e "packrat::packify(); packrat::restore()" |
################################################################################ | |
# | |
# Function to calculate z-scores for WHZ, HAZ, WAZ using the WHO Growth | |
# Reference (2006) using data and methods from ISBN ISBN 92 4 154693 X. | |
# | |
################################################################################ | |
# | |
# Parameters are : | |
# | |
# sexObserved : Sex |
# | |
# Close graphic devices and clear the workspace | |
# | |
graphics.off() | |
rm(list = ls()) | |
gc() | |
# | |
# Simulation parameters | |
# |
library(shiny) | |
# WARNING: This sketch does not make proper use of the "state" parameter. | |
# Doing so usually involves using cookies, which can be done with the | |
# Rook package but I have not done that here. If you choose to use this | |
# approach in production, please check the state parameter properly! | |
APP_URL <- if (interactive()) { | |
# This might be useful for local development. If not, just hardcode APP_URL | |
# to the deployed URL that you'll provide a few lines below. |