Description Usage Arguments Value
View source: R/pre.sparsereg3D.r
Prepearing data for model selection (sparsereg3D.sel
function) and model evaluation (sparsereg3D.ncv
function)
1 2 3 4 |
response |
Only for compositional data modeling. Default is NA. "response" specifies the names of variables in compositions. For example "response = c("sand","silt","clay")" |
base.model |
model description (class "formula" of form "target.variable ~ covariates + depth" or in case of compositional data modeling just "~ covariates + depth", without target variable specified in the formula.) |
profiles |
observations of target variable (class "SoilProfileCollection") |
cov.grids |
covariates (class SpatialPixelsDataFrame) |
use.hier |
logical. If TRUE hierarchy constraints will be enforced. |
poly.deg |
degree of polynomial depth function |
num.folds |
number of folds in crossvalidation |
num.means |
number of clusters in k-means clustering |
use.interactions |
logical. If TRUE interactions will be included in the model. |
standardize |
logical. If TRUE standardization will be performed. |
s |
Integer. Only for compositional data modeling. "s" specifies which variable in composition will be used as target variable for stratification. For example, s = 1 in composition "sand, silt, clay" specifies "sand". |
List of objects including:
base.model
: model description extended by polynomial terms if poly.deg is TRUE
poly.deg
: degree of polynomial depth function
use.interactions
: logical. If interactions are included in the model.
use.hier
: logical. If hierarchy constraints are enforced.
main.effect.names
: names of main effect covariates
depth.int.names
: names of interactions with depth (e.g. slope.depth)
all.int.names
: names of all interactions (not only including depth)
@keywords preprocessing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.