A tidy two-column lookup tagging every simplified code in
human_ai with its actor type. Ready to pass as
node_groups to build_htna() (Form 3b in the
vignette("input-formats", package = "htna")).
Format
A data frame with 12 rows and 2 columns:
- code
Character. Simplified action code (one of the 12 Human + AI codes in
human_ai).- actor_type
Character.
"Human"or"AI".
Source
Derived from human_simplified and
ai_simplified; see data-raw/human_ai.R for
the build script.
Examples
data(human_ai, human_ai_codebook)
human_ai_codebook
#> code actor_type
#> 1 Specify Human
#> 2 Request Human
#> 3 Frustrate Human
#> 4 Check Human
#> 5 Inquire Human
#> 6 Refine Human
#> 7 Delegate AI
#> 8 Plan AI
#> 9 Execute AI
#> 10 Ask AI
#> 11 Repair AI
#> 12 Report AI
net <- build_htna(human_ai, node_groups = human_ai_codebook)
#> Metadata aggregated per session: ties resolved by first occurrence in 'session_date' (1 sessions), 'cluster' (42 sessions), 'actor_type' (24 sessions)
summary(net)
#> <htna network>
#> Method: relative
#> Sessions: 429 (max 287 timesteps)
#> Nodes: 12
#> Edges: 135 / 144 (non-zero)
#>
#> Actor types (2):
#> Human (6 nodes): Check, Frustrate, Inquire, Refine, Request, Specify
#> AI (6 nodes): Ask, Delegate, Execute, Plan, Repair, Report
#>
#> Edge counts by actor (rows = source, cols = target):
#> Human AI
#> Human 35 36
#> AI 36 28
#>
#> Network metrics:
#> metric value
#> Node Count 12.00000000
#> Edge Count 135.00000000
#> Network Density 1.00000000
#> Mean Distance 0.02743124
#> Mean Out-Strength 1.00000000
#> SD Out-Strength 0.00000000
#> Mean In-Strength 1.00000000
#> SD In-Strength 0.63085045
#> Mean Out-Degree 11.25000000
#> SD Out-Degree 0.96530730
#> Centralization (Out-Degree) 0.05785124
#> Centralization (In-Degree) 0.05785124
#> Reciprocity 0.96000000
