View source: R/computingutil.R
normalizedData | R Documentation |
Function to return data of normalized covariates
normalizedData(data, covarsVec, replace = TRUE)
data |
a dataframe with covariates to normalize |
covarsVec |
a list of covariate names (parameters) that need to be estimates |
replace |
replace the original covariate data with normalized data for easier updated model. |
data frame with all normalized covariates
Vishal Sarsani
d <- nlmixr2data::theo_sd
d$SEX <-0
d$SEX[d$ID<=6] <-1
covarsVec <- c("WT")
# Normalized covariate (replaced)
df1 <- normalizedData(d,covarsVec,replace=TRUE)
# Normalized covariate (without replacement)
df2 <- normalizedData(d,covarsVec,replace=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.