make_xname | R Documentation |
Creates the model specifications for xname
make_xname(yname, xnames, user_model, current_age, hat = NULL)
yname |
String indicating the dependent variable |
xnames |
Character vector of available names to choose from.
It is assumed all variables named in |
user_model |
Model number (1-4), indicating type of model the user wants. See details. |
current_age |
Current age (in decimal years) |
hat |
A list with brokenstick prediction for the target that
contains the names of the brokenstick proedictions. The entry is
|
A character vector with the xname
specification
xnames <- c(
"sex", "ga", "bw", "hgt_0", "hgt_1", "hgt_3",
"wgt_0", "wgt_1", "wgt_2", "junk"
)
# note that it does not return hgt2
chartplotter:::make_xname(
yname = "hgt", xnames = xnames, user_model = 2,
current_age = 2
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.