View source: R/strand_caterpillar_plot.R
strand_caterpillar_plot | R Documentation |
This function organizes network data and covariates into a form that can be used by STRAND for model fitting. All STRAND model fitting functions require their data to be supplied in the format exported here.
strand_caterpillar_plot(
results,
submodels = NULL,
normalized = FALSE,
only_slopes = FALSE,
only_technicals = FALSE,
site = "BOB",
export_as_table = FALSE
)
results |
The results object from summarize_strand_results. |
submodels |
Which submodels to plot? Supported: "False positive rate", "Recall of true ties", "Theta: question-order effects", "Focal effects: Out-degree", "Target effects: In-degree", "Dyadic effects", "Other estimates" |
normalized |
Should effects be normalized? Do not use for correlations and variance terms. |
only_slopes |
If TRUE then technical parameters are omited, and only slopes and intercepts are plotted. |
only_technicals |
If TRUE then technical parameters are plotted, and slopes and intercepts are omited |
site |
A string to indicate group or feildsite. |
export_as_table |
If TRUE, the data are not plotted, and a data.frame is returned. This is useful for making complex ggplot objects with multiple groups/sites. |
A plot or dataframe
## Not run:
vis = strand_caterpillar_plot(res, submodel=c("Focal efffects: Out-degree",
"Target effects: In-degree",
"Dyadic effects","Other estimates"),
normalized=TRUE,
site="XY",
only_technicals=TRUE,
export_as_table=FALSE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.