node_x_accuracy() counts, for each node's report of a cognitive social
structure, the possible ties on which it agrees or disagrees with an
ideal network.
The four columns are the confusion matrix of the report:
true_positives: ties in both the report and the ideal.
false_positives: ties in the report but not in the ideal.
false_negatives: ties in the ideal but not in the report.
true_negatives: ties in neither.
From these, e.g. a node's sensitivity is
true_positives / (true_positives + false_negatives),
and its specificity is
true_negatives / (true_negatives + false_positives).
For the ideal, see node_by_accuracy().
node_x_accuracy(.data, ideal = NULL)A network object of class stocnet, igraph, tbl_graph, network, or similar.
Internally any of these will be coerced to an efficient implementation.
For more information on possible coercions, see e.g. manynet::as_stocnet().
The ideal network to compare each report against, with the same nodes as the network. By default, the locally aggregated structure of the network itself.
A node_motif matrix with one row for each node in the network and
a column for each motif type,
giving the count of each motif in which each node participates.
It is printed as a tibble, however, to avoid greedy printing.
If the network is labelled,
then the node names will be in a column named names.
Other features:
measure_accuracy_net,
measure_accuracy_node,
measure_features,
measure_fit
Other motifs:
motif_brokerage_net,
motif_brokerage_node,
motif_clique,
motif_composition,
motif_exposure,
motif_hazard,
motif_hierarchy,
motif_homophily,
motif_net,
motif_node,
motif_path,
motif_periods
Other nodal:
mark_core,
mark_degree,
mark_diff,
mark_nodes,
mark_select_node,
measure_accuracy_node,
measure_assort_node,
measure_broker_node,
measure_brokerage,
measure_central_between,
measure_central_close,
measure_central_degree,
measure_central_eigen,
measure_closure_node,
measure_core,
measure_diffusion_node,
measure_diverse_node,
member_brokerage,
member_cliques,
member_community,
member_community_hier,
member_community_modular,
member_community_partition,
member_community_spread,
member_components,
member_core,
member_diffusion,
member_equivalence,
motif_brokerage_node,
motif_clique,
motif_composition,
motif_exposure,
motif_node,
motif_path
node_x_accuracy(ison_hightech)
#> # A tibble: 21 × 4
#> true_positives false_positives false_negatives true_negatives
#> <dbl> <dbl> <dbl> <dbl>
#> 1 134 203 46 457
#> 2 93 38 87 622
#> 3 85 113 95 547
#> 4 119 116 61 544
#> 5 125 134 55 526
#> 6 61 20 119 640
#> # ℹ 15 more rows