SURfit {modnets} | R Documentation |
Fit SUR models with or without constraints
Description
A wrapper for the systemfit::systemfit
function that will construct formulas for all equations based on specified
moderators. This function was NOT designed for user-level functionality, but
rather exists to be embedded within fitNetwork
. The purpose for
making it available to the user is for allowing the exact fitted model to be
highly customizable.
Usage
SURfit(
data,
varMods = NULL,
mod = "min",
maxiter = 100,
m = NULL,
type = "g",
center = TRUE,
scale = FALSE,
exogenous = TRUE,
covs = NULL,
sur = TRUE,
consec = NULL,
...
)
Arguments
data |
Dataframe or matrix containing idiographic temporal data. |
varMods |
Output of |
mod |
Character string. Only applies if output from
|
maxiter |
Numeric. The maximum number of iterations to attempt before stopping the function. |
m |
Character string or numeric value to specify the moderator (if any). |
type |
Indicates the type of model to use, either |
center |
Logical. Determines whether to mean-center the variables. |
scale |
Logical. Determines whether to standardize the variables. |
exogenous |
Logical. See |
covs |
something |
sur |
Logical. Provides input to the |
consec |
A logical vector that identifies which values to include in
accordance with the |
... |
Additional arguments. |
Details
See the systemfit
package for details on customizing
systemfit::systemfit
objects. Constraints
can be applied via the varMods
argument, which is intended to
facilitate the output of the varSelect
and
resample
functions. These objects can be further edited to
apply constraints not specified by these automated functions. Moreover, there
are a variety of additional arguments that can be supplied to the
systemfit::systemfit
function if desired.
If the variable selection results from resample
are intended to
be used as input for the varMods
argument, then these results must be
fed into the modSelect
function.
Value
A SUR model, as fit with the
systemfit::systemfit
function.
See Also
SURnet, fitNetwork,
systemfit::systemfit