Description Usage Arguments Details Value Warning See Also
View source: R/constrainedNBDAdata.R
Takes an object of class nbdaData
or dTADAData
and adds constraints to the parameters such that a
simpler model can be fitted. Offsets can also be added.
1 | constrainedNBDAdata(nbdadata, constraintsVect, offsetVect = NULL)
|
nbdadata |
an object of class |
constraintsVect |
a numerical vector specifying the constraints to be applied to the data object, of length matching the
number of parameters to be fitted in the correspondng OADA model (i.e. excluding baseline parameters for a TADA). Constraints
are specified for s parameters, then asoc_ilv, then int_ilv, then multi_ilv. If a paramter is assigned a value of zero, it is
constrained to have a value of zero (other values are then possible using |
offsetVect |
an optional numerical vector specifying the offsets to be applied to the data object, of length matching
the number of parameters to be fitted in the correspondng OADA model (i.e. excluding baseline parameters for a TADA). An offset
is a coefficient for a predictor variable that is fixed to have a specific value, i.e. not fitted to the data. When combined
with an appropriate |
Since the contents of the nbdaData
or dTADAData
object determine the form of an OADA or TADA fitted
using oadaFit
or tadaFit
, parameter constraints are made by applying them to the data object. This
is done by specifying a numerical vector constraintsVect
and optionally, a numerical vector
offsetVect
that specifies the offset added to each parameter (see arguments above).
An object of class nbdaData
or dTADAData
depending on the input data.
constrainedNBDAdata
cannot be used directly to fit a model with NO social effects, i.e. ALL s
parameters constrained. To do this, use constrainedNBDAdata
to create an object with the required constraints among the
ILVs, then fit a model with type="asocial"
. To constrain all s paramter to have a specific values, add an
offsetVect
using constrainedNBDAdata
then fit the model with type="asocial"
.
filteredNBDAdata
, nbdaData
, dTADAData
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.