Usage
plspm.formula(Formula,Data,modes=NULL,scaling=NULL,scheme="centroid", scaled=TRUE,tol=1e-06,maxiter=100,plscomp=NULL,boot.val=FALSE, br=NULL,dataset=TRUE,plot.outer=FALSE,plot.inner=TRUE)
Arguments
Formula
A string describe the the inner and outer model using formulas. The inner models are describe using "=~" and "~~" for the inner model. (see details and exemple)
Data
matrix or data frame containing the manifest variables.
modes
character vector indicating the type of measurement for each block. Possible values are: "A", "B", "newA", "PLScore", "PLScow". The length of modes must be equal to the length of blocks.
scaling
optional argument for runing the non-metric approach; it is a list of string vectors indicating the type of measurement scale for each manifest variable specified in blocks. scaling must be specified when working with non-metric variables. Possible values: "num" (linear transformation, suitable for numerical variables), "raw" (no transformation), "nom" (non-monotonic transformation, suitable for nominal variables), and "ord" (monotonic transformation, suitable for ordinal variables).
scheme
string indicating the type of inner weighting scheme. Possible values are "centroid", "factorial", or "path".
scaled
whether manifest variables should be standardized. Only used when scaling = NULL. When (TRUE, data is scaled to standardized values (mean=0 and variance=1). The variance is calculated dividing by N instead of N-1).
tol
decimal value indicating the tolerance criterion for the iterations (tol=0.000001). Can be specified between 0 and 0.001.
maxiter
integer indicating the maximum number of iterations (maxiter=100 by default). The minimum value of maxiter is 100.
plscomp
optional vector indicating the number of PLS components (for each block) to be used when handling non-metric data (only used if scaling is provided)
boot.val
whether bootstrap validation should be performed. (FALSE by default).
br
number bootstrap resamples. Used only when boot.val=TRUE. When boot.val=TRUE, the default number of re-samples is 100.
dataset
whether the data matrix used in the computations should be retrieved (TRUE by default).
plot.outer
Boolean specify if yes (plot.outer=TRUE) or not (plot.outer=FALSE) the outer plot may be printed. (FALSE by default).
plot.inner
Boolean specify if yes (plot.inner=TRUE) or not (plot.inner=FALSE) the outer plot may be printed. (TRUE by default).