Description Usage Arguments Value See Also Examples
See the prediction error based on different statistics for either GGMs or SURs. Also can compare and find the change values (such as R-squared change) between two networks of the same size (i.e., with the same nodes).
1 |
object |
Output from |
data |
The dataset used to fit the network model, or another network of
the same type and size to be compared with the network specified in the
first argument. If the prediction error for only one network is desired,
and the dataset is included as an element of the relevant object, then this
can be left as |
all |
if |
scale |
Logical; determines whether or not to standardize the data before computing prediction error. This argument will be removed. |
A table showing different measures of prediction error associated
with each node of the network. Or, if two networks are provided, a table
that shows the difference in prediction error for each node across the two
networks. Specifically, this is computed by taking the statistics for
data
and subtracting them from those for object
.
If all = TRUE
, then the following output is returned:
The observed values of the outcome variables based on the data provided.
The predicted values of the outcomes based on the models provided.
Table containing prediction error statistics for each node.
1 2 3 4 5 6 7 | fit1 <- fitNetwork(ggmDat, covariates = 'M')
fit2 <- fitNetwork(ggmDat, moderators = 'M')
predictNet(fit1)
predictNet(fit1, all = TRUE)
predictNet(fit2, fit1) # Find the differences in prediction error across the two models
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.