R script supplementary

Supplementary R Script

This document provides the complete R code for all analyses, data preparation, and visualizations reported in the manuscript.

Setup and Data Preparation

Load Required Libraries

Load Data

This analysis uses ABCD Release 6

demo6 <- tibble::as_tibble(rio::import("ab_p_demo.tsv")) # Demographic Data
sex6 <- tibble::as_tibble(rio::import("ab_g_stc.tsv")) # Sex
svs6 <- tibble::as_tibble(rio::import("nc_y_svs.tsv")) # Snellen's vision problem screening
cbcl6 <- tibble::as_tibble(rio::import("mh_p_cbcl.tsv")) # Child Behavior Checklist
tool6 <- tibble::as_tibble(rio::import("nc_y_nihtb.tsv")) # NIH Toolbox
asr6 <- tibble::as_tibble(rio::import("mh_p_asr.tsv")) # Adult Self Report
y_pds6 <- tibble::as_tibble(rio::import("ph_y_pds.tsv")) # Puberty Youth Report
p_pds6 <- tibble::as_tibble(rio::import("ph_p_pds.tsv")) # Puberty Parent Report

replace “n/a” with NA

demo6 <- demo6 %>%
  dplyr::mutate(dplyr::across(dplyr::everything(), ~ dplyr::na_if(as.character(.x), "n/a")))

sex6 <- sex6 %>%
  dplyr::mutate(dplyr::across(dplyr::everything(), ~ dplyr::na_if(as.character(.x), "n/a")))

svs6 <- svs6 %>%
  dplyr::mutate(dplyr::across(dplyr::everything(), ~ dplyr::na_if(as.character(.x), "n/a")))

cbcl6 <- cbcl6 %>%
  dplyr::mutate(dplyr::across(dplyr::everything(), ~ dplyr::na_if(as.character(.x), "n/a")))

tool6 <- tool6 %>%
  dplyr::mutate(dplyr::across(dplyr::everything(), ~ dplyr::na_if(as.character(.x), "n/a")))

asr6 <- asr6 %>%
  dplyr::mutate(dplyr::across(dplyr::everything(), ~ dplyr::na_if(as.character(.x), "n/a")))

y_pds6 <- y_pds6 %>%
  dplyr::mutate(dplyr::across(dplyr::everything(), ~ dplyr::na_if(as.character(.x), "n/a")))

p_pds6 <- p_pds6 %>%
  dplyr::mutate(dplyr::across(dplyr::everything(), ~ dplyr::na_if(as.character(.x), "n/a")))

Vision problem screening

need to exclude participants with vision problems

# Check for vision problem
vision <- svs6 %>% mutate(visionProb = ifelse(nc_y_svs_002 == 0 | nc_y_svs_002 == 1 | nc_y_svs_002__01 == 2, 1, 0))

# Join data excluding participants with vision problem
abcd6_all <- plyr::join_all(list(vision, demo6, cbcl6, tool6, asr6, y_pds6, p_pds6), by = c("participant_id", "session_id"), type = "full") %>%
  filter(visionProb != 1 | is.na(visionProb))

# check duplicate
abcd6_all %>%
  select(participant_id, session_id) %>%
  group_by(session_id) %>%
  dplyr::summarise(count = dplyr::n(), duplicate = any(duplicated(participant_id))) %>%
  knitr::kable()
session_id count duplicate
ses-00A 11837 FALSE
ses-01A 11217 FALSE
ses-02A 10942 FALSE
ses-03A 10435 FALSE
ses-04A 9661 FALSE
ses-05A 8877 FALSE
ses-06A 5047 FALSE

Prapare Data

# Convert data into appropriate type
abcd6_all <- abcd6_all %>%
  dplyr::mutate(dplyr::across(dplyr::everything(), ~ utils::type.convert(.x, as.is = TRUE)))

# label session_id into 0 (baseline) to 6 years follow-up
abcd6_all <- abcd6_all %>%
  mutate(
    session_id = factor(session_id,
      levels = c(
        "ses-00A",
        "ses-01A",
        "ses-02A",
        "ses-03A",
        "ses-04A",
        "ses-05A",
        "ses-06A"
      ),
      labels = c("0", "1", "2", "3", "4", "5", "6")
    )
  )

# Add sex
abcd6_all.sex <- plyr::join_all(
  list(
    abcd6_all,
    sex6 %>%
      select(participant_id, ab_g_stc__cohort_sex) %>%
      drop_na(ab_g_stc__cohort_sex)
  ),
  by = c("participant_id"), type = "left"
)

# check duplicate
abcd6_all.sex %>%
  select(participant_id, session_id, ab_g_stc__cohort_sex) %>%
  group_by(ab_g_stc__cohort_sex, session_id) %>%
  dplyr::summarise(count = dplyr::n(), duplicate = any(duplicated(participant_id))) %>%
  knitr::kable()
ab_g_stc__cohort_sex session_id count duplicate
1 0 6179 FALSE
1 1 5867 FALSE
1 2 5742 FALSE
1 3 5473 FALSE
1 4 5072 FALSE
1 5 4636 FALSE
1 6 2645 FALSE
2 0 5658 FALSE
2 1 5350 FALSE
2 2 5200 FALSE
2 3 4962 FALSE
2 4 4589 FALSE
2 5 4241 FALSE
2 6 2402 FALSE

Age & Sex in each timepoint

abcd6_all.sex %>%
  select(participant_id, session_id, ab_p_demo_age, ab_g_stc__cohort_sex) %>%
  group_by(session_id) %>%
  dplyr::summarise(
    count = dplyr::n(),
    AgeMean = round(mean(ab_p_demo_age, na.rm = T), 2),
    AgeSD = round(sd(ab_p_demo_age, na.rm = T), 2),
    male_N = sum(ab_g_stc__cohort_sex == 1, na.rm = TRUE),
    female_N = sum(ab_g_stc__cohort_sex == 2, na.rm = TRUE),
    male_pct = mean(ab_g_stc__cohort_sex == 1) * 100,
    female_pct = mean(ab_g_stc__cohort_sex == 2) * 100
  ) %>%
  knitr::kable()
# A tibble: 7 × 8
  session_id count AgeMean AgeSD male_N female_N male_pct female_pct
  <fct>      <int>   <dbl> <dbl>  <int>    <int>    <dbl>      <dbl>
1 0          11837    9.96  0.62   6179     5658     52.2       47.8
2 1          11211   11.0   0.64   5865     5346     52.3       47.7
3 2          10938   12.1   0.67   5739     5199     52.5       47.5
4 3          10226   13.0   0.65   5380     4846     52.6       47.4
5 4           9647   14.2   0.71   5064     4583     52.5       47.5
6 5           8688   15.1   0.67   4545     4143     52.3       47.7
7 6           5042   16.1   0.66   2643     2399     52.4       47.6

density plot

ggplot(
  abcd6_all.sex,
  aes(
    x = ab_p_demo_age, y = session_id,
    fill = factor(ab_g_stc__cohort_sex), height = ..count..
  )
) +
  ggridges::geom_density_ridges(stat = "density", scale = .8, alpha = .7) +
  xlab("Age (Years old)") +
  ylab("Time point") +
  theme_bw(base_size = 20) +
  theme(legend.position = "bottom") +
  scale_fill_manual(
    name = "Sex",
    labels = c(
      "1" = "Male",
      "2" = "Female"
    ),
    values = c(
      "1" = "navy",
      "2" = "darkred"
    )
  ) +
  scale_x_continuous(breaks = 8:18) +
  scale_y_discrete(labels = c("Baseline", paste0("Year", 1:6))) +
  annotate(
    geom = "text",
    x = (14) - .1,
    y = 1:7, size = 5,
    label = paste0(
      "N = ",
      readRDS("abcd6_demo_table.rds") %>%
        pull(count) %>%
        formattable::comma(digits = 0, big.mark = ",")
    ),
    vjust = 1.2
  ) +
  annotate(
    geom = "text",
    x = (16.05),
    y = 1:7, size = 5,
    label = paste0(
      "(",
      readRDS("abcd6_demo_table.rds") %>%
        pull(male_N) %>%
        formattable::comma(digits = 0, big.mark = ","),
      "/"
    ),
    vjust = 1.2, color = "navy"
  ) +
  annotate(
    geom = "text",
    x = (17.6),
    y = 1:7, size = 5,
    label = paste0(readRDS("abcd6_demo_table.rds") %>%
      pull(female_N) %>%
      formattable::comma(digits = 0, big.mark = ","), ")"),
    vjust = 1.2, color = "darkred"
  )

Load Cognition Data (g factor)

g_factor <- abcd6_all %>%
  select(contains(c("_id", "uncor_score")))

colnames(g_factor) <- c(
  "participant_id",
  "session_id",
  "cryst", # Crystallized Composite Score
  "fluid", # Fluid Composite Score
  "total_int", # Total Composite Scores
  "cardsort", # Dimensional Change Card Sort
  "flanker", # Flanker Inhibitory Control & Attention
  "list", # List Sorting Working Memory
  "picture", # Picture Sequence Memory
  "picvocab", # Picture Vocabulary
  "pattern", # Pattern Comparison Processing Speed
  "reading" # Oral Reading Recognition: Language
)

Valid data N & % in session_id

g_factor %>%
  pivot_longer(where(is.numeric), names_to = "variable", values_to = "value") %>%
  group_by(session_id, variable) %>%
  dplyr::summarise(N = sum(!is.na(value)), Pct = round(mean(!is.na(value)) * 100, 2), .groups = "drop") %>%
  pivot_wider(
    names_from = session_id,
    values_from = c(N, Pct),
    names_glue = "{.value}_{session_id}"
  ) %>%
  relocate(variable, {
    sessions <- str_remove(names(.)[-1], "^(N|Pct)_") %>% unique()
    as.vector(rbind(
      paste0("N_", sessions),
      paste0("Pct_", sessions)
    ))
  }) %>%
  knitr::kable()
variable N_0 Pct_0 N_1 Pct_1 N_2 Pct_2 N_3 Pct_3 N_4 Pct_4 N_5 Pct_5 N_6 Pct_6
cardsort 11685 98.72 0 0 6 0.05 0 0 37 0.38 0 0 4644 92.02
cryst 11658 98.49 0 0 7420 67.81 0 0 3371 34.89 0 0 4023 79.71
flanker 11684 98.71 0 0 8139 74.38 0 0 7200 74.53 0 0 4649 92.11
fluid 11602 98.01 0 0 10 0.09 0 0 5 0.05 0 0 3828 75.85
list 11641 98.34 0 0 15 0.14 0 0 9235 95.59 0 0 4881 96.71
pattern 11666 98.56 0 0 8102 74.04 0 0 7180 74.32 0 0 4623 91.60
picture 11678 98.66 0 0 10368 94.75 0 0 9226 95.50 0 0 4869 96.47
picvocab 11690 98.76 0 0 10340 94.50 0 0 9280 96.06 0 0 4885 96.79
reading 11676 98.64 0 0 10297 94.11 0 0 9227 95.51 0 0 4869 96.47
total_int 11598 97.98 0 0 10 0.09 0 0 5 0.05 0 0 3801 75.31

5 cognitive tasks that contain complete available data:

Flanker Inhibitory Control & Attention Picture Sequence Memory Picture Vocabulary Pattern Comparison Processing Speed Oral Reading Recognition: Language

with 4 time points available:

Baseline (00), 2 year follow-up (02), 4 year follow-up (04), 6 year follow-up (06)

Check data

# Select 5 available cognitive tasks in 4 time points

g_factor_5task <- g_factor %>%
  select(
    "participant_id",
    "session_id",
    "flanker", # Flanker Inhibitory Control & Attention
    "picture", # Picture Sequence Memory
    "picvocab", # Picture Vocabulary
    "pattern", # Pattern Comparison Processing Speed
    "reading" # Oral Reading Recognition: Language
  ) %>%
  filter(session_id %in% c("0", "2", "4", "6")) # only baseline, 2, 4, and 6 years data


# Year 0 (Baseline)

g_factor_5task %>%
  filter(session_id == "0") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
flanker 11684 98.70744 94.00019 9.146845 51 116
pattern 11666 98.55538 88.06617 14.580192 30 140
picture 11678 98.65675 102.81035 12.073664 76 136
picvocab 11690 98.75813 84.45743 8.114096 29 119
reading 11676 98.63986 90.86447 6.905601 59 119
# Year 2

g_factor_5task %>%
  filter(session_id == "2") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
flanker 8139 74.38311 100.18565 7.666033 50 117
pattern 8102 74.04496 103.61479 15.041106 30 163
picture 10368 94.75416 108.53733 12.685599 76 136
picvocab 10340 94.49826 88.96190 8.515769 59 123
reading 10297 94.10528 94.97232 6.737842 67 180
# Year 4

g_factor_5task %>%
  filter(session_id == "4") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
flanker 7200 74.52645 103.99861 7.720496 45 117
pattern 7180 74.31943 114.67841 16.680275 35 170
picture 9226 95.49736 111.62031 15.181307 74 138
picvocab 9280 96.05631 93.91325 8.974363 22 126
reading 9227 95.50771 99.38767 7.258820 62 129
# Year 6

g_factor_5task %>%
  filter(session_id == "6") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
flanker 4649 92.11413 106.52076 7.604157 41 117
pattern 4623 91.59897 123.41164 17.465312 30 174
picture 4869 96.47315 111.88478 14.909122 74 138
picvocab 4885 96.79017 97.30072 8.747847 33 126
reading 4869 96.47315 101.98624 7.390978 70 129
# Reading in Year 2 contained an outliar
# (180 raw score which should be ranged from 59 to 140)

g_factor_5task$reading <- ifelse(g_factor_5task$reading > 140,
  NA, # replace >140 with NA
  g_factor_5task$reading
)

# Recheck

g_factor_5task %>%
  filter(session_id == "2") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
flanker 8139 74.38311 100.18565 7.666033 50 117
pattern 8102 74.04496 103.61479 15.041106 30 163
picture 10368 94.75416 108.53733 12.685599 76 136
picvocab 10340 94.49826 88.96190 8.515769 59 123
reading 10296 94.09614 94.96406 6.685851 67 121
# reading max score came down from 180 to 121

Missing Visualization

# Baseline
g_factor_5task %>%
  filter(session_id == "0") %>%
  visdat::vis_miss()

# 2-year follow-up
g_factor_5task %>%
  filter(session_id == "2") %>%
  visdat::vis_miss()

# 4-year follow-up
g_factor_5task %>%
  filter(session_id == "4") %>%
  visdat::vis_miss()

# 6-year follow-up
g_factor_5task %>%
  filter(session_id == "6") %>%
  visdat::vis_miss()

Scaled score: Z score

# Scale into Z-score across all time points

g_factor_5task.scaled <- g_factor_5task %>%
  mutate_at(scale,
    .vars = c(
      "flanker", # Flanker Inhibitory Control & Attention
      "picture", # Picture Sequence Memory
      "picvocab", # Picture Vocabulary
      "pattern", # Pattern Comparison Processing Speed
      "reading" # Oral Reading Recognition: Language
    ),
    center = TRUE,
    scale = TRUE
  )

Reconstruct Data

Long form (Scaled)

g_factor_5task_long.scaled <- g_factor_5task.scaled %>%
  pivot_longer(
    cols = c(
      "flanker", # Flanker Inhibitory Control & Attention
      "picture", # Picture Sequence Memory
      "picvocab", # Picture Vocabulary
      "pattern", # Pattern Comparison Processing Speed
      "reading" # Oral Reading Recognition: Language
    ),
    names_to = "variable",
    values_to = "value"
  )

# check duplicate
g_factor_5task_long.scaled %>%
  group_by(session_id, variable) %>%
  dplyr::summarise(
    count = sum(!is.na(value)),
    duplicate = any(duplicated(participant_id))
  ) %>%
  knitr::kable()
session_id variable count duplicate
0 flanker 11684 FALSE
0 pattern 11666 FALSE
0 picture 11678 FALSE
0 picvocab 11690 FALSE
0 reading 11676 FALSE
2 flanker 8139 FALSE
2 pattern 8102 FALSE
2 picture 10368 FALSE
2 picvocab 10340 FALSE
2 reading 10296 FALSE
4 flanker 7200 FALSE
4 pattern 7180 FALSE
4 picture 9226 FALSE
4 picvocab 9280 FALSE
4 reading 9227 FALSE
6 flanker 4649 FALSE
6 pattern 4623 FALSE
6 picture 4869 FALSE
6 picvocab 4885 FALSE
6 reading 4869 FALSE

Wide form (Scaled)

g_factor_5task_wide.scaled <- g_factor_5task.scaled %>%
  pivot_wider(
    names_from = session_id,
    values_from = c(
      "flanker", # Flanker Inhibitory Control & Attention
      "picture", # Picture Sequence Memory
      "picvocab", # Picture Vocabulary
      "pattern", # Pattern Comparison Processing Speed
      "reading" # Oral Reading Recognition: Language
    )
  )


# check duplicate
g_factor_5task_wide.scaled %>%
  select(participant_id) %>%
  dplyr::summarise(
    count = sum(!is.na(participant_id)),
    duplicate = any(duplicated(participant_id))
  ) %>%
  knitr::kable()
count duplicate
11865 FALSE

Descriptive Stat Summary

g_factor_5task_wide.scaled %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev
flanker_0 11684 98.47450 -0.5973115 0.9584594
flanker_2 8139 68.59671 0.0508369 0.8032913
flanker_4 7200 60.68268 0.4503811 0.8089982
flanker_6 4649 39.18247 0.7146661 0.7968076
pattern_0 11666 98.32280 -0.7434683 0.7123004
pattern_2 8102 68.28487 0.0161436 0.7348179
pattern_4 7180 60.51412 0.5566457 0.8148978
pattern_6 4623 38.96334 0.9832985 0.8532500
picture_0 11678 98.42394 -0.3651390 0.8619823
picture_2 10368 87.38306 0.0437303 0.9056706
picture_4 9226 77.75811 0.2638357 1.0838482
picture_6 4869 41.03666 0.2827171 1.0644159
picvocab_0 11690 98.52507 -0.5606913 0.8356064
picvocab_2 10340 87.14707 -0.0968125 0.8769716
picvocab_4 9280 78.21323 0.4130887 0.9241985
picvocab_6 4885 41.17151 0.7619366 0.9008714
reading_0 11676 98.40708 -0.5991374 0.8527065
reading_2 10296 86.77623 -0.0929172 0.8255717
reading_4 9227 77.76654 0.4533111 0.8963222
reading_6 4869 41.03666 0.7741840 0.9126411

Plot

# All tasks plot
g_5task_plot <- Rmisc::summarySE(
  g_factor_5task_long.scaled %>%
    mutate(variable = factor(
      variable,
      levels = c(
        "flanker", # Flanker Inhibitory Control & Attention
        "picture", # Picture Sequence Memory
        "picvocab", # Picture Vocabulary
        "pattern", # Pattern Comparison Processing Speed
        "reading" # Oral Reading Recognition: Language
      )
    )),
  measurevar = "value",
  na.rm = T,
  groupvars = c("variable", "session_id")
) %>%
  ggplot(aes(session_id, value, color = variable, group = variable)) +
  geom_errorbar(
    aes(x = session_id, y = value, ymin = value - ci, ymax = value + ci),
    alpha = 1, position = position_dodge(width = .5), colour = "black"
  ) +
  stat_summary(fun.y = mean, geom = "line", position = position_dodge(width = .5), linewidth = 1.5) +
  theme_bw(base_size = 20) +
  ylab("Children's\nCognitive Functoning") +
  labs(color = "Task") +
  scale_x_discrete(labels = c("10", "12", "14", "16")) +
  theme(axis.title.x = element_blank())

g_5task_plot %>% saveRDS("g_5task_plot.rds")
readRDS("g_5task_plot.rds") +
  theme(
    axis.title.x = element_text(),
    legend.position = "bottom"
  ) +
  guides(color = guide_legend(nrow = 2)) +
  labs(x = expression("Time points (" * italic(M)["age"] * ", y/o)"))

Load CBCL (Child p factor)

CBCL definitions from Michelini et al. Translational Psychiatry (2019)

pc_factor <- abcd6_all %>%
  select(contains(c("_id", "cbcl"))) %>% # select id & cbcl items
  select(contains(c("_id", "_0"))) %>% # select only items, not sum scores
  select(-contains("othpr")) # excluded other problem items

Valid data N & % in session_id

pc_factor %>%
  pivot_longer(where(is.numeric), names_to = "variable", values_to = "value") %>%
  group_by(session_id, variable) %>%
  dplyr::summarise(N = sum(!is.na(value)), Pct = round(mean(!is.na(value)) * 100, 2), .groups = "drop") %>%
  pivot_wider(
    names_from = session_id,
    values_from = c(N, Pct),
    names_glue = "{.value}_{session_id}"
  ) %>%
  relocate(variable, {
    sessions <- str_remove(names(.)[-1], "^(N|Pct)_") %>% unique()
    as.vector(rbind(
      paste0("N_", sessions),
      paste0("Pct_", sessions)
    ))
  }) %>%
  DT::datatable(options = list(pageLength = 10, scrollY = "450px", scrollX = TRUE))

98% availability across all cbcl items in all 7 time points (0-6)

Check Low Freq CBCL items

Because some CBCL items may exhibit a high proportion of zero responses when no problems are observed, we examined item frequency distributions to identify low-frequency items.

pc_lowcheck <- pc_factor

# check total items

pc_lowcheck %>%
  select(contains("cbcl")) %>%
  ncol() # n of total items = 103
[1] 103
# Check only 0 responses
pc_lowcheck[, 3:ncol(pc_lowcheck)] <- ifelse(pc_lowcheck[, 3:ncol(pc_lowcheck)] == 0, 1, NA)

# Check items with zero response >= 99.5% across all timelines

# Baseline
lowfreq_cbcl6_b <- pc_lowcheck %>%
  filter(session_id == "0") %>%
  descr(
    stats     = c("n.valid", "pct.valid"),
    transpose = TRUE,
    headings  = FALSE
  ) %>%
  filter(Pct.Valid >= 99.5) %>%
  rownames()

# 1 Year Follow-up
lowfreq_cbcl6_1 <- pc_lowcheck %>%
  filter(session_id == "1") %>%
  descr(
    stats     = c("n.valid", "pct.valid"),
    transpose = TRUE,
    headings  = FALSE
  ) %>%
  filter(Pct.Valid >= 99.5) %>%
  rownames()

# 2 Year Follow-up
lowfreq_cbcl6_2 <- pc_lowcheck %>%
  filter(session_id == "2") %>%
  descr(
    stats     = c("n.valid", "pct.valid"),
    transpose = TRUE,
    headings  = FALSE
  ) %>%
  filter(Pct.Valid >= 99.5) %>%
  rownames()

# 3 Year Follow-up
lowfreq_cbcl6_3 <- pc_lowcheck %>%
  filter(session_id == "3") %>%
  descr(
    stats     = c("n.valid", "pct.valid"),
    transpose = TRUE,
    headings  = FALSE
  ) %>%
  filter(Pct.Valid >= 99.5) %>%
  rownames()

# 4 Year Follow-up
lowfreq_cbcl6_4 <- pc_lowcheck %>%
  filter(session_id == "4") %>%
  descr(
    stats     = c("n.valid", "pct.valid"),
    transpose = TRUE,
    headings  = FALSE
  ) %>%
  filter(Pct.Valid >= 99.5) %>%
  rownames()

# 5 Year Follow-up
lowfreq_cbcl6_5 <- pc_lowcheck %>%
  filter(session_id == "5") %>%
  descr(
    stats     = c("n.valid", "pct.valid"),
    transpose = TRUE,
    headings  = FALSE
  ) %>%
  filter(Pct.Valid >= 99.5) %>%
  rownames()

# 6 Year Follow-up
lowfreq_cbcl6_6 <- pc_lowcheck %>%
  filter(session_id == "6") %>%
  descr(
    stats     = c("n.valid", "pct.valid"),
    transpose = TRUE,
    headings  = FALSE
  ) %>%
  filter(Pct.Valid >= 99.5) %>%
  rownames()

# low frequecy item Summary

# Baseline:
lowfreq_cbcl6_b # rule__cond_010, rule__001, rule__003, rule__005, rule__006
[1] "mh_p_cbcl__rule__cond_010" "mh_p_cbcl__rule_001"      
[3] "mh_p_cbcl__rule_003"       "mh_p_cbcl__rule_005"      
[5] "mh_p_cbcl__rule_006"      
# 1Year:
lowfreq_cbcl6_1 # rule__001, rule__003, rule__005, rule__006
[1] "mh_p_cbcl__rule_001" "mh_p_cbcl__rule_003" "mh_p_cbcl__rule_005"
[4] "mh_p_cbcl__rule_006"
# 2Year:
lowfreq_cbcl6_2
character(0)
# 3Year:
lowfreq_cbcl6_3
character(0)
# 4Year:
lowfreq_cbcl6_4
character(0)
# 5Year:
lowfreq_cbcl6_5
character(0)
# 6Year:
lowfreq_cbcl6_6
character(0)

low freq Item Description (7 unique items)

mh_p_cbcl__rule_001 = Drinks alcohol without parents’ approval mh_p_cbcl__rule_003 = Sexual problems mh_p_cbcl__rule_005 = Smokes, chews, or sniffs tobacco mh_p_cbcl__rule__cond_010 = Truancy, skips school 101 mh_p_cbcl__rule_006 = Uses drugs for non medical purposes (don’t include alcohol or tobacco)

Cut Low Freq CBCL items

# Cut low frequecy items across all timelines
pc_factor_nolow <- pc_factor %>%
  select(-all_of(c(
    lowfreq_cbcl6_b,
    lowfreq_cbcl6_1,
    lowfreq_cbcl6_2,
    lowfreq_cbcl6_3,
    lowfreq_cbcl6_4,
    lowfreq_cbcl6_5,
    lowfreq_cbcl6_6
  )))

# n of remaining items = 96 out of 103
pc_factor_nolow %>%
  select(contains("cbcl")) %>%
  ncol()
[1] 98

Calculate Composite scores for CBCL

The calculation was based on CBCL manual (Achenbach, 2015)

pc_factor_nolow <- pc_factor_nolow %>%
  mutate(
    # Anxious/Depressed composite score
    anxdep_comp = rowMeans(
      pc_factor_nolow %>%
        select(contains("anxdep"))
    ),
    # Withdrawn/Depressed composite score
    withdep_comp = rowMeans(
      pc_factor_nolow %>%
        select(contains("wthdep"))
    ),
    # Somatic complaints composite score
    soma_comp = rowMeans(
      pc_factor_nolow %>%
        select(contains("som"))
    ),
    # Social Problems composite score
    socprob_comp = rowMeans(
      pc_factor_nolow %>%
        select(contains("soc"))
    ),
    # Thought Problems composite score
    thouprob_comp = rowMeans(
      pc_factor_nolow %>%
        select(contains("tho"))
    ),
    # Attention Problems composite score
    attprob_comp = rowMeans(
      pc_factor_nolow %>%
        select(contains("attn"))
    ),
    # Rule-breaking behavior composite score
    rulebreak_comp = rowMeans(
      pc_factor_nolow %>%
        select(contains("rule"))
    ),
    # Aggressive behavior composite score
    aggress_comp = rowMeans(
      pc_factor_nolow %>%
        select(contains("aggr"))
    )
  ) %>%
  mutate(
    Int_comp = rowMeans(
      pc_factor_nolow %>%
        select(contains(c("anxdep", "wthdep", "som"))
               )
      ),
    Ext_comp = rowMeans(
      pc_factor_nolow %>%
        select(contains(c("rule", "aggr"))
               )
      ),
    total_comp = rowMeans(
      pc_factor_nolow %>%
        select(contains(c("anxdep", "wthdep",
                          "soc","tho","attn",
                          "som", "rule", "aggr"))
               )
      )
    )

Check data

pc_factor_nolow_comp <- pc_factor_nolow %>%
  select(
    "participant_id",
    "session_id",
    "anxdep_comp",
    "withdep_comp",
    "soma_comp",
    "socprob_comp",
    "thouprob_comp",
    "attprob_comp",
    "rulebreak_comp",
    "aggress_comp",
    "Int_comp",
    "Ext_comp",
    "total_comp"
  )

# Year 0 (Baseline)

pc_factor_nolow_comp %>%
  filter(session_id == "0") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
aggress_comp 11829 99.93242 0.1813622 0.2420270 0 2.000000
anxdep_comp 11830 99.94086 0.1938553 0.2358948 0 2.000000
attprob_comp 11830 99.94086 0.2979713 0.3494753 0 2.000000
Ext_comp 11829 99.93242 0.1483191 0.1950601 0 1.633333
Int_comp 11830 99.94086 0.1578957 0.1729082 0 1.593750
rulebreak_comp 11830 99.94086 0.0987602 0.1536017 0 1.500000
socprob_comp 11830 99.94086 0.1478368 0.2073523 0 1.636364
soma_comp 11830 99.94086 0.1360332 0.1777167 0 1.454546
thouprob_comp 11830 99.94086 0.1081037 0.1464748 0 1.200000
total_comp 11829 99.93242 0.1605006 0.1654055 0 1.244898
withdep_comp 11830 99.94086 0.1295224 0.2137603 0 1.875000
# Year 1

pc_factor_nolow_comp %>%
  filter(session_id == "1") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
aggress_comp 11201 99.85736 0.1699303 0.2327879 0 1.833333
anxdep_comp 11201 99.85736 0.1956419 0.2364940 0 1.692308
attprob_comp 11201 99.85736 0.2859388 0.3430659 0 1.900000
Ext_comp 11201 99.85736 0.1390114 0.1879545 0 1.566667
Int_comp 11201 99.85736 0.1598881 0.1738142 0 1.500000
rulebreak_comp 11201 99.85736 0.0926331 0.1496700 0 1.416667
socprob_comp 11201 99.85736 0.1364002 0.1985824 0 1.727273
soma_comp 11201 99.85736 0.1323258 0.1772980 0 1.636364
thouprob_comp 11201 99.85736 0.1075737 0.1483021 0 1.333333
total_comp 11201 99.85736 0.1557159 0.1618239 0 1.163265
withdep_comp 11201 99.85736 0.1396862 0.2226357 0 1.750000
# Year 2

pc_factor_nolow_comp %>%
  filter(session_id == "2") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
aggress_comp 10866 99.30543 0.1582408 0.2247163 0 1.833333
anxdep_comp 10867 99.31457 0.1775170 0.2294878 0 1.846154
attprob_comp 10867 99.31457 0.2732585 0.3326694 0 1.900000
Ext_comp 10866 99.30543 0.1299804 0.1840467 0 1.633333
Int_comp 10867 99.31457 0.1539725 0.1765219 0 1.562500
rulebreak_comp 10867 99.31457 0.0875893 0.1505588 0 1.416667
socprob_comp 10867 99.31457 0.1197955 0.1891053 0 1.545454
soma_comp 10867 99.31457 0.1240202 0.1715656 0 1.454546
thouprob_comp 10867 99.31457 0.0958928 0.1402050 0 1.466667
total_comp 10866 99.30543 0.1460697 0.1585952 0 1.520408
withdep_comp 10867 99.31457 0.1568970 0.2467095 0 2.000000
# Year 3

pc_factor_nolow_comp %>%
  filter(session_id == "3") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
aggress_comp 10194 97.69046 0.1580232 0.2216938 0 1.888889
anxdep_comp 10196 97.70963 0.1791879 0.2351558 0 1.846154
attprob_comp 10197 97.71921 0.2784250 0.3340042 0 2.000000
Ext_comp 10194 97.69046 0.1293964 0.1824732 0 1.633333
Int_comp 10196 97.70963 0.1606206 0.1854531 0 1.531250
rulebreak_comp 10196 97.70963 0.0864636 0.1503602 0 1.416667
socprob_comp 10195 97.70005 0.1090017 0.1792432 0 1.636364
soma_comp 10197 97.71921 0.1223711 0.1748821 0 1.818182
thouprob_comp 10196 97.70963 0.0932261 0.1381155 0 1.666667
total_comp 10194 97.69046 0.1469742 0.1601253 0 1.285714
withdep_comp 10197 97.71921 0.1830073 0.2701748 0 1.875000
# Year 4

pc_factor_nolow_comp %>%
  filter(session_id == "4") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
aggress_comp 9460 97.91947 0.1378788 0.2057318 0 1.777778
anxdep_comp 9459 97.90912 0.1717209 0.2341512 0 1.769231
attprob_comp 9460 97.91947 0.2561099 0.3282191 0 2.000000
Ext_comp 9460 97.91947 0.1175159 0.1755486 0 1.600000
Int_comp 9457 97.88842 0.1624689 0.1939170 0 1.593750
rulebreak_comp 9460 97.91947 0.0869715 0.1577154 0 1.416667
socprob_comp 9460 97.91947 0.0977321 0.1746882 0 1.636364
soma_comp 9459 97.90912 0.1259214 0.1846649 0 1.545454
thouprob_comp 9460 97.91947 0.0876815 0.1357535 0 1.133333
total_comp 9457 97.88842 0.1395122 0.1599108 0 1.336735
withdep_comp 9460 97.91947 0.1978858 0.2907554 0 2.000000
# Year 5

pc_factor_nolow_comp %>%
  filter(session_id == "5") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
aggress_comp 8657 97.52169 0.1372428 0.2065644 0 1.722222
anxdep_comp 8657 97.52169 0.1806630 0.2413136 0 1.846154
attprob_comp 8657 97.52169 0.2583343 0.3267391 0 1.800000
Ext_comp 8657 97.52169 0.1205922 0.1805864 0 1.633333
Int_comp 8656 97.51042 0.1770376 0.2057834 0 1.593750
rulebreak_comp 8657 97.52169 0.0956163 0.1687617 0 1.583333
socprob_comp 8657 97.52169 0.0945005 0.1733682 0 1.363636
soma_comp 8656 97.51042 0.1401550 0.2030014 0 1.727273
thouprob_comp 8657 97.52169 0.0949059 0.1451865 0 1.266667
total_comp 8656 97.51042 0.1462110 0.1656991 0 1.285714
withdep_comp 8657 97.52169 0.2219302 0.3013235 0 1.875000
# Year 6

pc_factor_nolow_comp %>%
  filter(session_id == "6") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
aggress_comp 4976 98.59322 0.1118257 0.1816735 0 1.555556
anxdep_comp 4976 98.59322 0.1554848 0.2224789 0 1.538461
attprob_comp 4976 98.59322 0.2282556 0.3129652 0 1.900000
Ext_comp 4976 98.59322 0.0996852 0.1611035 0 1.533333
Int_comp 4976 98.59322 0.1578766 0.1945712 0 1.375000
rulebreak_comp 4976 98.59322 0.0814744 0.1554811 0 1.500000
socprob_comp 4976 98.59322 0.0777733 0.1546924 0 1.272727
soma_comp 4976 98.59322 0.1354319 0.2026342 0 1.454546
thouprob_comp 4976 98.59322 0.0781752 0.1257144 0 1.266667
total_comp 4976 98.59322 0.1260540 0.1502787 0 1.163265
withdep_comp 4976 98.59322 0.1926246 0.2873901 0 1.750000

Scaled score: Z score

pc_factor_nolow_comp.scaled <- pc_factor_nolow_comp %>%
  mutate_at(scale,
    .vars = c(
      "anxdep_comp",
      "withdep_comp",
      "soma_comp",
      "socprob_comp",
      "thouprob_comp",
      "attprob_comp",
      "rulebreak_comp",
      "aggress_comp",
      "Int_comp",
      "Ext_comp",
      "total_comp"
    ),
    center = TRUE,
    scale = TRUE
  )

Reconstruct Data

Long form (Scaled)

pc_factor_nolow_long.scaled <- pc_factor_nolow_comp.scaled %>%
  pivot_longer(
    cols = c(
      "anxdep_comp",
      "withdep_comp",
      "soma_comp",
      "socprob_comp",
      "thouprob_comp",
      "attprob_comp",
      "rulebreak_comp",
      "aggress_comp",
      "Int_comp",
      "Ext_comp",
      "total_comp"
    ),
    names_to = "variable",
    values_to = "value"
  )

# check duplicate
pc_factor_nolow_long.scaled %>%
  group_by(session_id, variable) %>%
  dplyr::summarise(
    count = sum(!is.na(value)),
    duplicate = any(duplicated(participant_id))
  ) %>%
  knitr::kable()
`summarise()` has grouped output by 'session_id'. You can override using the
`.groups` argument.
session_id variable count duplicate
0 Ext_comp 11829 FALSE
0 Int_comp 11830 FALSE
0 aggress_comp 11829 FALSE
0 anxdep_comp 11830 FALSE
0 attprob_comp 11830 FALSE
0 rulebreak_comp 11830 FALSE
0 socprob_comp 11830 FALSE
0 soma_comp 11830 FALSE
0 thouprob_comp 11830 FALSE
0 total_comp 11829 FALSE
0 withdep_comp 11830 FALSE
1 Ext_comp 11201 FALSE
1 Int_comp 11201 FALSE
1 aggress_comp 11201 FALSE
1 anxdep_comp 11201 FALSE
1 attprob_comp 11201 FALSE
1 rulebreak_comp 11201 FALSE
1 socprob_comp 11201 FALSE
1 soma_comp 11201 FALSE
1 thouprob_comp 11201 FALSE
1 total_comp 11201 FALSE
1 withdep_comp 11201 FALSE
2 Ext_comp 10866 FALSE
2 Int_comp 10867 FALSE
2 aggress_comp 10866 FALSE
2 anxdep_comp 10867 FALSE
2 attprob_comp 10867 FALSE
2 rulebreak_comp 10867 FALSE
2 socprob_comp 10867 FALSE
2 soma_comp 10867 FALSE
2 thouprob_comp 10867 FALSE
2 total_comp 10866 FALSE
2 withdep_comp 10867 FALSE
3 Ext_comp 10194 FALSE
3 Int_comp 10196 FALSE
3 aggress_comp 10194 FALSE
3 anxdep_comp 10196 FALSE
3 attprob_comp 10197 FALSE
3 rulebreak_comp 10196 FALSE
3 socprob_comp 10195 FALSE
3 soma_comp 10197 FALSE
3 thouprob_comp 10196 FALSE
3 total_comp 10194 FALSE
3 withdep_comp 10197 FALSE
4 Ext_comp 9460 FALSE
4 Int_comp 9457 FALSE
4 aggress_comp 9460 FALSE
4 anxdep_comp 9459 FALSE
4 attprob_comp 9460 FALSE
4 rulebreak_comp 9460 FALSE
4 socprob_comp 9460 FALSE
4 soma_comp 9459 FALSE
4 thouprob_comp 9460 FALSE
4 total_comp 9457 FALSE
4 withdep_comp 9460 FALSE
5 Ext_comp 8657 FALSE
5 Int_comp 8656 FALSE
5 aggress_comp 8657 FALSE
5 anxdep_comp 8657 FALSE
5 attprob_comp 8657 FALSE
5 rulebreak_comp 8657 FALSE
5 socprob_comp 8657 FALSE
5 soma_comp 8656 FALSE
5 thouprob_comp 8657 FALSE
5 total_comp 8656 FALSE
5 withdep_comp 8657 FALSE
6 Ext_comp 4976 FALSE
6 Int_comp 4976 FALSE
6 aggress_comp 4976 FALSE
6 anxdep_comp 4976 FALSE
6 attprob_comp 4976 FALSE
6 rulebreak_comp 4976 FALSE
6 socprob_comp 4976 FALSE
6 soma_comp 4976 FALSE
6 thouprob_comp 4976 FALSE
6 total_comp 4976 FALSE
6 withdep_comp 4976 FALSE

Wide form (Scaled)

pc_factor_nolow_wide.scaled <- pc_factor_nolow_comp.scaled %>%
  pivot_wider(
    names_from = session_id,
    values_from = c(
      "anxdep_comp",
      "withdep_comp",
      "soma_comp",
      "socprob_comp",
      "thouprob_comp",
      "attprob_comp",
      "rulebreak_comp",
      "aggress_comp",
      "Int_comp",
      "Ext_comp",
      "total_comp"
    )
  )

# check duplicate
pc_factor_nolow_wide.scaled %>%
  select(participant_id) %>%
  dplyr::summarise(
    count = sum(!is.na(participant_id)),
    duplicate = any(duplicated(participant_id))
  ) %>%
  knitr::kable()
count duplicate
11867 FALSE

Descriptive Stat Summary

pc_factor_nolow_wide.scaled %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev
aggress_comp_0 11829 99.67978 0.1178066 1.0905407
aggress_comp_1 11201 94.38780 0.0662959 1.0489102
aggress_comp_2 10866 91.56484 0.0136247 1.0125410
aggress_comp_3 10194 85.90208 0.0126445 0.9989217
aggress_comp_4 9460 79.71686 -0.0781237 0.9269994
aggress_comp_5 8657 72.95020 -0.0809892 0.9307508
aggress_comp_6 4976 41.93141 -0.1955155 0.8185959
anxdep_comp_0 11830 99.68821 0.0521224 1.0054641
anxdep_comp_1 11201 94.38780 0.0597376 1.0080180
anxdep_comp_2 10867 91.57327 -0.0175169 0.9781554
anxdep_comp_3 10196 85.91893 -0.0103948 1.0023141
anxdep_comp_4 9459 79.70844 -0.0422219 0.9980322
anxdep_comp_5 8657 72.95020 -0.0041073 1.0285607
anxdep_comp_6 4976 41.93141 -0.1114256 0.9482810
attprob_comp_0 11830 99.68821 0.0749407 1.0420175
attprob_comp_1 11201 94.38780 0.0390638 1.0229068
attprob_comp_2 10867 91.57327 0.0012555 0.9919080
attprob_comp_3 10197 85.92736 0.0166604 0.9958878
attprob_comp_4 9460 79.71686 -0.0498757 0.9786385
attprob_comp_5 8657 72.95020 -0.0432434 0.9742258
attprob_comp_6 4976 41.93141 -0.1329278 0.9331565
Ext_comp_0 11829 99.67978 0.1028794 1.0616998
Ext_comp_1 11201 94.38780 0.0522181 1.0230245
Ext_comp_2 10866 91.56484 0.0030628 1.0017548
Ext_comp_3 10194 85.90208 -0.0001158 0.9931902
Ext_comp_4 9460 79.71686 -0.0647808 0.9555001
Ext_comp_5 8657 72.95020 -0.0480364 0.9829204
Ext_comp_6 4976 41.93141 -0.1618322 0.8768763
Int_comp_0 11830 99.68821 -0.0174216 0.9355886
Int_comp_1 11201 94.38780 -0.0066412 0.9404909
Int_comp_2 10867 91.57327 -0.0386499 0.9551419
Int_comp_3 10196 85.91893 -0.0026776 1.0034681
Int_comp_4 9457 79.69158 0.0073236 1.0492651
Int_comp_5 8656 72.94177 0.0861532 1.1134728
Int_comp_6 4976 41.93141 -0.0175253 1.0528049
rulebreak_comp_0 11830 99.68821 0.0519231 0.9920307
rulebreak_comp_1 11201 94.38780 0.0123513 0.9666378
rulebreak_comp_2 10867 91.57327 -0.0202236 0.9723784
rulebreak_comp_3 10196 85.91893 -0.0274939 0.9710953
rulebreak_comp_4 9460 79.71686 -0.0242142 1.0185987
rulebreak_comp_5 8657 72.95020 0.0316180 1.0899408
rulebreak_comp_6 4976 41.93141 -0.0597166 1.0041688
socprob_comp_0 11830 99.68821 0.1676009 1.1049493
socprob_comp_1 11201 94.38780 0.1066569 1.0582158
socprob_comp_2 10867 91.57327 0.0181733 1.0077138
socprob_comp_3 10195 85.91051 -0.0393452 0.9551601
socprob_comp_4 9460 79.71686 -0.0993996 0.9308873
socprob_comp_5 8657 72.95020 -0.1166201 0.9238533
socprob_comp_6 4976 41.93141 -0.2057569 0.8243329
soma_comp_0 11830 99.68821 0.0304908 0.9725337
soma_comp_1 11201 94.38780 0.0102028 0.9702427
soma_comp_2 10867 91.57327 -0.0352490 0.9388727
soma_comp_3 10197 85.92736 -0.0442734 0.9570220
soma_comp_4 9459 79.70844 -0.0248446 1.0105572
soma_comp_5 8656 72.94177 0.0530470 1.1109016
soma_comp_6 4976 41.93141 0.0272003 1.1088922
thouprob_comp_0 11830 99.68821 0.0784291 1.0336693
thouprob_comp_1 11201 94.38780 0.0746892 1.0465645
thouprob_comp_2 10867 91.57327 -0.0077431 0.9894232
thouprob_comp_3 10196 85.91893 -0.0265617 0.9746778
thouprob_comp_4 9460 79.71686 -0.0656900 0.9580090
thouprob_comp_5 8657 72.95020 -0.0147077 1.0245775
thouprob_comp_6 4976 41.93141 -0.1327752 0.8871630
total_comp_0 11829 99.67978 0.0776660 1.0251085
total_comp_1 11201 94.38780 0.0480127 1.0029115
total_comp_2 10866 91.56484 -0.0117696 0.9829010
total_comp_3 10194 85.90208 -0.0061642 0.9923844
total_comp_4 9457 79.69158 -0.0524100 0.9910548
total_comp_5 8656 72.94177 -0.0108945 1.0269278
total_comp_6 4976 41.93141 -0.1358179 0.9313596
withdep_comp_0 11830 99.68821 -0.1551739 0.8201327
withdep_comp_1 11201 94.38780 -0.1161786 0.8541849
withdep_comp_2 10867 91.57327 -0.0501459 0.9465488
withdep_comp_3 10197 85.92736 0.0500311 1.0365778
withdep_comp_4 9460 79.71686 0.1071156 1.1155391
withdep_comp_5 8657 72.95020 0.1993665 1.1560859
withdep_comp_6 4976 41.93141 0.0869298 1.1026277

Plot

All symptoms plot

# All symptom plots
pc_8symp_plot <- Rmisc::summarySE(
  pc_factor_nolow_long.scaled %>%
    filter(variable %in% c(
      "anxdep_comp", "withdep_comp", "soma_comp",
      "attprob_comp", "thouprob_comp", "socprob_comp",
      "rulebreak_comp", "aggress_comp"
    )),
  measurevar = "value",
  na.rm = T,
  groupvars = c("variable", "session_id")
) %>%
  ggplot(aes(session_id, value,
    color = factor(variable,
      levels = c(
        "anxdep_comp", "withdep_comp", "soma_comp",
        "attprob_comp", "thouprob_comp", "socprob_comp",
        "rulebreak_comp", "aggress_comp", "intru_comp"
      ),
      labels = c(
        "Anxious/Depressed", "Withdrawn/Depressed", "Somatic Complaints",
        "Attention Problems", "Thought Problems", "Social Problems",
        "Rule-Breaking Beh.", "Aggressive Beh.", "Intrusive Beh."
      )
    ),
    group = variable
  )) +
  geom_errorbar(
    aes(x = session_id, y = value, ymin = value - ci, ymax = value + ci),
    alpha = 1, position = position_dodge(width = .5), colour = "black"
  ) +
  stat_summary(fun.y = mean, geom = "line", position = position_dodge(width = .5), linewidth = 1.5, show.legend = TRUE) +
  theme_bw(base_size = 20) +
  labs(color = "Symptom") +
  scale_color_manual(values = c("purple", "navy", "blue", "green", "lightgreen", "yellow2", "orange", "red", "darkred"), drop = FALSE) +
  scale_x_discrete(labels = c("10", "11", "12", "13", "14", "15", "16"))

pc_8symp_plot %>% saveRDS("pc_8symp_plot.rds")
readRDS("pc_8symp_plot.rds") +
  labs(
    x = expression("Time points (" * italic(M)["age"] * ", y/o)"),
    y = "Child Psychopathology"
  )

p, Int, & Ext plot

# p, Internalizing, Externalizing plot

pc_sum_plot <- Rmisc::summarySE(
  pc_factor_nolow_long.scaled %>%
    filter(variable %in% c(
      "Int_comp",
      "Ext_comp",
      "total_comp"
    )),
  measurevar = "value",
  na.rm = T,
  groupvars = c("variable", "session_id")
) %>%
  ggplot(aes(session_id, value, color = variable, group = variable)) +
  geom_errorbar(
    aes(x = session_id, y = value, ymin = value - ci, ymax = value + ci),
    position = position_dodge(width = .5), colour = "black"
  ) +
  stat_summary(fun.y = mean, geom = "line", position = position_dodge(width = .5), linewidth = 1.5) +
  theme_bw(base_size = 20) +
  scale_x_discrete(labels = c("10", "11", "12", "13", "14", "15", "16")) +
  scale_color_discrete(
    name = "Symptom",
    labels = c(
      "Int_comp"     = "Internalizing",
      "Ext_comp"     = "Externalizing",
      "total_comp"   = "General *p* factor"
    )
  ) +
  theme(
    legend.text = ggtext::element_markdown()
  )

pc_sum_plot %>% saveRDS("pc_sum_plot.rds")
readRDS("pc_sum_plot.rds") +
  labs(
    x = expression("Time points (" * italic(M)["age"] * ", y/o)"),
    y = "Child Psychopathology"
  )

Load ASR (Parent p factor)

pp_factor <- abcd6_all %>%
  select(contains(c("_id", "asr"))) %>% # select id & cbcl items
  select(contains(c("_id", "_0"))) %>% # select only items, not sum scores
  select(contains(
    c(
      "_id",
      "aggr", # Aggressive item
      "anxdep", # Anxious/depressed item
      "attn", # Attention item
      "intru", # Intrusive beh item
      "rule", # Rule breaking item
      "som", # Somatic item
      "tho", # Thought item
      "wthdr" # Withdrawn/depressed item
    )
  ))

Valid data N & % in session_id

pp_factor %>%
  pivot_longer(where(is.numeric), names_to = "variable", values_to = "value") %>%
  group_by(session_id, variable) %>%
  dplyr::summarise(N = sum(!is.na(value)), Pct = round(mean(!is.na(value)) * 100, 2), .groups = "drop") %>%
  pivot_wider(
    names_from = session_id,
    values_from = c(N, Pct),
    names_glue = "{.value}_{session_id}"
  ) %>%
  relocate(variable, {
    sessions <- str_remove(names(.)[-1], "^(N|Pct)_") %>% unique()
    as.vector(rbind(
      paste0("N_", sessions),
      paste0("Pct_", sessions)
    ))
  }) %>%
  DT::datatable(options = list(pageLength = 10, scrollY = "450px", scrollX = TRUE))
# > 98% availability across all asr items in all 3 time points (0,2,4)

Check Low Freq ASR items

pp_lowcheck <- pp_factor

# check total items

pp_lowcheck %>%
  filter(session_id == "0") %>%
  select(contains("asr")) %>%
  ncol() # n of total items = 99
[1] 99
# Check only 0 responses
pp_lowcheck[, 3:ncol(pp_lowcheck)] <- ifelse(pp_lowcheck[, 3:ncol(pp_lowcheck)] == 0, 1, NA)

# Check items with zero response >= 99.5% across all timelines

# Baseline
lowfreq_asr6_b <- pp_lowcheck %>%
  filter(session_id == "0") %>%
  descr(
    stats     = c("n.valid", "pct.valid"),
    transpose = TRUE,
    headings  = FALSE
  ) %>%
  filter(Pct.Valid >= 99.5) %>%
  rownames()

# 2 Year Follow-up
lowfreq_asr6_2 <- pp_lowcheck %>%
  filter(session_id == "2") %>%
  descr(
    stats     = c("n.valid", "pct.valid"),
    transpose = TRUE,
    headings  = FALSE
  ) %>%
  filter(Pct.Valid >= 99.5) %>%
  rownames()

# 4 Year Follow-up
lowfreq_asr6_4 <- pp_lowcheck %>%
  filter(session_id == "4") %>%
  descr(
    stats     = c("n.valid", "pct.valid"),
    transpose = TRUE,
    headings  = FALSE
  ) %>%
  filter(Pct.Valid >= 99.5) %>%
  rownames()

# low frequecy item Summary

# Baseline:
lowfreq_asr6_b # None
character(0)
# 2Year:
lowfreq_asr6_2 # None
character(0)
# 4Year:
lowfreq_asr6_4 # None
character(0)

Unlike CBCL, there is no low freq item in ASR

Calculate Composite scores for ASR

The calculation was based on ASR manual (Achenbach & Rescorla, 2003) https://aseba.org/wp-content/uploads/2019/02/dsm-adultratings.pdf

pp_factor <- pp_factor %>%
  mutate(
    # Anxious/Depressed composite score
    asr_anxdep_comp = rowMeans(
      pp_factor %>%
        select(contains("anxdep"))
    ),
    # Withdrawn/Depressed composite score
    asr_withdep_comp = rowMeans(
      pp_factor %>%
        select(contains("wthdr"))
    ),
    # Somatic complaints composite score
    asr_soma_comp = rowMeans(
      pp_factor %>%
        select(contains("som"))
    ),
    # Thought Problems composite score
    asr_thouprob_comp = rowMeans(
      pp_factor %>%
        select(contains("tho"))
    ),
    # Attention Problems composite score
    asr_attprob_comp = rowMeans(
      pp_factor %>%
        select(contains("attn"))
    ),
    # Rule-breaking behavior composite score
    asr_rulebreak_comp = rowMeans(
      pp_factor %>%
        select(contains("rule"))
    ),
    # Aggressive behavior composite score
    asr_aggress_comp = rowMeans(
      pp_factor %>%
        select(contains("aggr"))
    ),
    # Intrusive composite score
    asr_intru_comp = rowMeans(
      pp_factor %>%
        select(contains("intru"))
    )
  ) %>%
  mutate(
    asr_Int_comp = rowMeans(
      pp_factor %>%
        select(contains(c("anxdep", "wthdr", "som"))
               )
    ),
    asr_Ext_comp = rowMeans(
      pp_factor %>%
        select(contains(c("rule", "aggr", "intru"))
               )
    ),
    asr_total_comp = rowMeans(
      pp_factor %>%
        select(contains(c("anxdep", "wthdr", "som",
                          "tho","attn",
                          "rule", "aggr", "intru"))
               )
    )
  )

Check data

pp_factor_comp <- pp_factor %>%
  select(
    "participant_id",
    "session_id",
    "asr_anxdep_comp",
    "asr_withdep_comp",
    "asr_soma_comp",
    "asr_thouprob_comp",
    "asr_attprob_comp",
    "asr_rulebreak_comp",
    "asr_aggress_comp",
    "asr_intru_comp",
    "asr_Int_comp",
    "asr_Ext_comp",
    "asr_total_comp"
  ) %>%
  filter(session_id %in% c("0", "2", "4")) # only baseline, 2, and 4 years data


# Year 0 (Baseline)

pp_factor_comp %>%
  filter(session_id == "0") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
asr_aggress_comp 11832 99.95776 0.2237548 0.2377985 0 1.666667
asr_anxdep_comp 11832 99.95776 0.2799142 0.2736841 0 1.944444
asr_attprob_comp 11832 99.95776 0.3089926 0.2839844 0 1.800000
asr_Ext_comp 11832 99.95776 0.1585676 0.1605765 0 1.114286
asr_Int_comp 11832 99.95776 0.2445411 0.2240180 0 1.794872
asr_intru_comp 11832 99.95776 0.1673710 0.2384347 0 1.666667
asr_rulebreak_comp 11832 99.95776 0.0849512 0.1322543 0 1.285714
asr_soma_comp 11832 99.95776 0.2448867 0.2650638 0 1.916667
asr_thouprob_comp 11832 99.95776 0.1434162 0.1852491 0 1.800000
asr_total_comp 11832 99.95776 0.2136971 0.1814377 0 1.555556
asr_withdep_comp 11832 99.95776 0.1733341 0.2343300 0 1.888889
# Year 2

pp_factor_comp %>%
  filter(session_id == "2") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
asr_aggress_comp 10868 99.32371 0.2086799 0.2255418 0 1.733333
asr_anxdep_comp 10869 99.33285 0.2796741 0.2760941 0 1.888889
asr_attprob_comp 10869 99.33285 0.3055786 0.2813315 0 1.933333
asr_Ext_comp 10868 99.32371 0.1468058 0.1514277 0 1.628571
asr_Int_comp 10869 99.33285 0.2448082 0.2241968 0 1.666667
asr_intru_comp 10869 99.33285 0.1574049 0.2309616 0 1.833333
asr_rulebreak_comp 10869 99.33285 0.0759631 0.1232583 0 1.500000
asr_soma_comp 10869 99.33285 0.2450317 0.2633041 0 1.833333
asr_thouprob_comp 10869 99.33285 0.1278314 0.1718694 0 1.700000
asr_total_comp 10868 99.32371 0.2075670 0.1766453 0 1.343434
asr_withdep_comp 10869 99.33285 0.1747784 0.2311308 0 2.000000
# Year 4

pp_factor_comp %>%
  filter(session_id == "4") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
asr_aggress_comp 9465 97.97122 0.1919000 0.2137016 0 1.466667
asr_anxdep_comp 9464 97.96087 0.2771321 0.2727824 0 1.944444
asr_attprob_comp 9465 97.97122 0.3048283 0.2891827 0 1.666667
asr_Ext_comp 9465 97.97122 0.1366387 0.1457377 0 1.228571
asr_Int_comp 9464 97.96087 0.2424410 0.2206516 0 1.666667
asr_intru_comp 9465 97.97122 0.1543582 0.2303834 0 1.666667
asr_rulebreak_comp 9465 97.97122 0.0698362 0.1179316 0 1.285714
asr_soma_comp 9465 97.97122 0.2433175 0.2612750 0 1.833333
asr_thouprob_comp 9466 97.98158 0.1219628 0.1631711 0 1.800000
asr_total_comp 9464 97.96087 0.2023190 0.1731008 0 1.474748
asr_withdep_comp 9465 97.97122 0.1718612 0.2233744 0 1.777778

Scaled score: Z score

pp_factor_comp.scaled <- pp_factor_comp %>%
  mutate_at(scale,
    .vars = c(
      "asr_anxdep_comp",
      "asr_withdep_comp",
      "asr_soma_comp",
      "asr_thouprob_comp",
      "asr_attprob_comp",
      "asr_rulebreak_comp",
      "asr_aggress_comp",
      "asr_intru_comp",
      "asr_Int_comp",
      "asr_Ext_comp",
      "asr_total_comp"
    ),
    center = TRUE,
    scale = TRUE
  )

Reconstruct Data

Long form (Scaled)

pp_factor_long.scaled <- pp_factor_comp.scaled %>%
  pivot_longer(
    cols = c(
      "asr_anxdep_comp",
      "asr_withdep_comp",
      "asr_soma_comp",
      "asr_thouprob_comp",
      "asr_attprob_comp",
      "asr_rulebreak_comp",
      "asr_aggress_comp",
      "asr_intru_comp",
      "asr_Int_comp",
      "asr_Ext_comp",
      "asr_total_comp"
    ),
    names_to = "variable",
    values_to = "value"
  )

# check duplicate
pp_factor_long.scaled %>%
  group_by(session_id, variable) %>%
  dplyr::summarise(
    count = sum(!is.na(value)),
    duplicate = any(duplicated(participant_id))
  ) %>%
  knitr::kable()
`summarise()` has grouped output by 'session_id'. You can override using the
`.groups` argument.
session_id variable count duplicate
0 asr_Ext_comp 11832 FALSE
0 asr_Int_comp 11832 FALSE
0 asr_aggress_comp 11832 FALSE
0 asr_anxdep_comp 11832 FALSE
0 asr_attprob_comp 11832 FALSE
0 asr_intru_comp 11832 FALSE
0 asr_rulebreak_comp 11832 FALSE
0 asr_soma_comp 11832 FALSE
0 asr_thouprob_comp 11832 FALSE
0 asr_total_comp 11832 FALSE
0 asr_withdep_comp 11832 FALSE
2 asr_Ext_comp 10868 FALSE
2 asr_Int_comp 10869 FALSE
2 asr_aggress_comp 10868 FALSE
2 asr_anxdep_comp 10869 FALSE
2 asr_attprob_comp 10869 FALSE
2 asr_intru_comp 10869 FALSE
2 asr_rulebreak_comp 10869 FALSE
2 asr_soma_comp 10869 FALSE
2 asr_thouprob_comp 10869 FALSE
2 asr_total_comp 10868 FALSE
2 asr_withdep_comp 10869 FALSE
4 asr_Ext_comp 9465 FALSE
4 asr_Int_comp 9464 FALSE
4 asr_aggress_comp 9465 FALSE
4 asr_anxdep_comp 9464 FALSE
4 asr_attprob_comp 9465 FALSE
4 asr_intru_comp 9465 FALSE
4 asr_rulebreak_comp 9465 FALSE
4 asr_soma_comp 9465 FALSE
4 asr_thouprob_comp 9466 FALSE
4 asr_total_comp 9464 FALSE
4 asr_withdep_comp 9465 FALSE

Wide form (Scaled)

pp_factor_wide.scaled <- pp_factor_comp.scaled %>%
  pivot_wider(
    names_from = session_id,
    values_from = c(
      "asr_anxdep_comp",
      "asr_withdep_comp",
      "asr_soma_comp",
      "asr_thouprob_comp",
      "asr_attprob_comp",
      "asr_rulebreak_comp",
      "asr_aggress_comp",
      "asr_intru_comp",
      "asr_Int_comp",
      "asr_Ext_comp",
      "asr_total_comp"
    )
  )

# check duplicate
pp_factor_wide.scaled %>%
  select(participant_id) %>%
  dplyr::summarise(
    count = sum(!is.na(participant_id)),
    duplicate = any(duplicated(participant_id))
  ) %>%
  knitr::kable()
count duplicate
11865 FALSE

Descriptive Stat Summary

pp_factor_wide.scaled %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "max", "min"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Max Min
asr_aggress_comp_0 11832 99.72187 0.0636943 1.0469440 6.416332 -0.9214200
asr_aggress_comp_2 10868 91.59713 -0.0026751 0.9929819 6.709842 -0.9214200
asr_aggress_comp_4 9465 79.77244 -0.0765513 0.9408538 5.535802 -0.9214200
asr_anxdep_comp_0 11832 99.72187 0.0032809 0.9980064 6.073095 -1.0174437
asr_anxdep_comp_2 10869 91.60556 0.0024054 1.0067945 5.870508 -1.0174437
asr_anxdep_comp_4 9464 79.76401 -0.0068643 0.9947182 6.073095 -1.0174437
asr_attprob_comp_0 11832 99.72187 0.0083580 0.9977244 5.246725 -1.0772277
asr_attprob_comp_2 10869 91.60556 -0.0036365 0.9884038 5.715166 -1.0772277
asr_attprob_comp_4 9465 79.77244 -0.0062723 1.0159877 4.778284 -1.0772277
asr_Ext_comp_0 11832 99.72187 0.0679300 1.0461312 6.294287 -0.9651134
asr_Ext_comp_2 10868 91.59713 -0.0086959 0.9865281 9.644780 -0.9651134
asr_Ext_comp_4 9465 79.77244 -0.0749329 0.9494586 7.038841 -0.9651134
asr_Int_comp_0 11832 99.72187 0.0023652 1.0041647 6.951751 -1.0937947
asr_Int_comp_2 10869 91.60556 0.0035626 1.0049662 6.377069 -1.0937947
asr_Int_comp_4 9464 79.76401 -0.0070485 0.9890750 6.377069 -1.0937947
asr_intru_comp_0 11832 99.72187 0.0308036 1.0205622 6.448178 -0.6855876
asr_intru_comp_2 10869 91.60556 -0.0118540 0.9885754 7.161555 -0.6855876
asr_intru_comp_4 9465 79.77244 -0.0248946 0.9861007 6.448178 -0.6855876
asr_rulebreak_comp_0 11832 99.72187 0.0597395 1.0555842 9.643597 -0.6182963
asr_rulebreak_comp_2 10869 91.60556 -0.0119990 0.9837827 11.353913 -0.6182963
asr_rulebreak_comp_4 9465 79.77244 -0.0609003 0.9412677 9.643597 -0.6182963
asr_soma_comp_0 11832 99.72187 0.0015674 1.0065015 6.349657 -0.9283176
asr_soma_comp_2 10869 91.60556 0.0021179 0.9998192 6.033223 -0.9283176
asr_soma_comp_4 9465 79.77244 -0.0043914 0.9921145 6.033223 -0.9283176
asr_thouprob_comp_0 11832 99.72187 0.0662798 1.0603751 9.548649 -0.7546415
asr_thouprob_comp_2 10869 91.60556 -0.0229278 0.9837893 8.976244 -0.7546415
asr_thouprob_comp_4 9466 79.78087 -0.0565202 0.9339998 9.548649 -0.7546415
asr_total_comp_0 11832 99.72187 0.0305390 1.0224551 7.592307 -1.1737075
asr_total_comp_2 10868 91.59713 -0.0040060 0.9954485 6.396942 -1.1737075
asr_total_comp_4 9464 79.76401 -0.0335799 0.9754743 7.136930 -1.1737075
asr_withdep_comp_0 11832 99.72187 -0.0002376 1.0185382 7.456588 -0.7536510
asr_withdep_comp_2 10869 91.60556 0.0060404 1.0046323 7.939543 -0.7536510
asr_withdep_comp_4 9465 79.77244 -0.0066394 0.9709184 6.973632 -0.7536510

Plot

All symptoms plot

# All symptom plots
pp_8symp_plot <- Rmisc::summarySE(
  pp_factor_long.scaled %>%
    filter(variable %in% c(
      "asr_anxdep_comp", "asr_withdep_comp", "asr_soma_comp",
      "asr_attprob_comp", "asr_thouprob_comp",
      "asr_rulebreak_comp", "asr_aggress_comp", "asr_intru_comp"
    )),
  measurevar = "value",
  na.rm = T,
  groupvars = c("variable", "session_id")
) %>%
  ggplot(aes(session_id, value,
    color = factor(variable,
      levels = c(
        "asr_anxdep_comp", "asr_withdep_comp", "asr_soma_comp",
        "asr_attprob_comp", "asr_thouprob_comp", "asr_socprob_comp",
        "asr_rulebreak_comp", "asr_aggress_comp", "asr_intru_comp"
      ),
      labels = c(
        "Anxious/Depressed", "Withdrawn/Depressed", "Somatic Complaints",
        "Attention Problems", "Thought Problems", "Social Problems",
        "Rule-Breaking Beh.", "Aggressive Beh.", "Intrusive Beh."
      )
    ),
    group = variable
  )) +
  geom_errorbar(
    aes(x = session_id, y = value, ymin = value - ci, ymax = value + ci),
    alpha = 1, position = position_dodge(width = .5), colour = "black"
  ) +
  stat_summary(fun.y = mean, geom = "line", position = position_dodge(width = .5), linewidth = 1.5, show.legend = TRUE) +
  theme_bw(base_size = 20) +
  labs(color = "Symptom") +
  scale_color_manual(values = c("purple", "navy", "blue", "green", "lightgreen", "yellow2", "orange", "red", "darkred"), drop = FALSE) +
  scale_x_discrete(labels = c("10", "12", "14"))


pp_8symp_plot %>% saveRDS("pp_8symp_plot.rds")
readRDS("pp_8symp_plot.rds") +
  labs(
    x = expression("Time points (" * italic(M)["age"] * ", y/o)"),
    y = "Parental Psychopathology"
  )

p, Int & Ext plot

pp_sum_plot <- Rmisc::summarySE(
  pp_factor_long.scaled %>%
    filter(variable %in% c(
      "asr_Int_comp",
      "asr_Ext_comp",
      "asr_total_comp"
    )),
  measurevar = "value",
  na.rm = T,
  groupvars = c("variable", "session_id")
) %>%
  ggplot(aes(session_id, value, color = variable, group = variable)) +
  geom_errorbar(
    aes(x = session_id, y = value, ymin = value - ci, ymax = value + ci),
    alpha = 1, position = position_dodge(width = .5), colour = "black"
  ) +
  stat_summary(fun.y = mean, geom = "line", position = position_dodge(width = .5), linewidth = 1.5) +
  theme_bw(base_size = 20) +
  scale_x_discrete(labels = c("10", "12", "14")) +
  scale_color_discrete(
    name = "Symptom",
    labels = c(
      "asr_Int_comp"     = "Internalizing",
      "asr_Ext_comp"     = "Externalizing",
      "asr_total_comp"   = "General *p* factor"
    )
  ) +
  theme(
    legend.text = ggtext::element_markdown()
  )

pp_sum_plot %>% saveRDS("pp_sum_plot.rds")
readRDS("pp_sum_plot.rds") +
  labs(
    x = expression("Time points (" * italic(M)["age"] * ", y/o)"),
    y = "Parental Psychopathology"
  )

pc & pp Visualization

Symptoms plot

ggpubr::ggarrange(
  readRDS("pc_8symp_plot.rds") +
    guides(color = guide_legend(nrow = 3)) +
    labs(
      x = expression("Time points (" * italic(M)["age"] * ", y/o)"),
      y = "Children Psychopathology"
    ),
  readRDS("pp_8symp_plot.rds") +
    labs(
      x = expression("Time points (" * italic(M)["age"] * ", y/o)"),
      y = "Parental Psychopathology"
    ),
  common.legend = TRUE,
  legend = "bottom",
  ncol = 2,
  nrow = 1
)

Int, Ext, & p plot

ggpubr::ggarrange(
  readRDS("pc_sum_plot.rds") +
    labs(
      x = expression("Time points (" * italic(M)["age"] * ", y/o)"),
      y = "Children Psychopathology"
    ),
  readRDS("pp_sum_plot.rds") +
    labs(
      x = expression("Time points (" * italic(M)["age"] * ", y/o)"),
      y = "Parental Psychopathology"
    ),
  common.legend = TRUE,
  legend = "bottom",
  ncol = 2,
  nrow = 1
)

Load Puberty

puberty6 <- abcd6_all %>%
  select(
    contains(c("_id", "pds_00", "_mean")), # select id & pds mean score items
    "ph_p_pds__m_001", "ph_p_pds__m_002", # select pds male items (parent report)
    "ph_p_pds__f_001", "ph_p_pds__f_002", # select pds female items (parent report)
    "ph_y_pds__m_001", "ph_y_pds__m_002", # select pds male items (youth report)
    "ph_y_pds__f_001", "ph_y_pds__f_002" # select pds female items (youth report)
  ) %>%
  mutate(
    ph_p_pds_mean = coalesce(
      ph_p_pds__f_mean,
      ph_p_pds__m_mean
    ), # combine mean male and female scores into one in parent report
    ph_y_pds_mean = coalesce(
      ph_y_pds__f_mean,
      ph_y_pds__m_mean
    )
  ) # combine mean male and female scores into one in youth report

Valid data N & % in session_id

puberty6 %>%
  pivot_longer(where(is.numeric), names_to = "variable", values_to = "value") %>%
  group_by(session_id, variable) %>%
  dplyr::summarise(N = sum(!is.na(value)), Pct = round(mean(!is.na(value)) * 100, 2), .groups = "drop") %>%
  pivot_wider(
    names_from = session_id,
    values_from = c(N, Pct),
    names_glue = "{.value}_{session_id}"
  ) %>%
  relocate(variable, {
    sessions <- str_remove(names(.)[-1], "^(N|Pct)_") %>% unique()
    as.vector(rbind(
      paste0("N_", sessions),
      paste0("Pct_", sessions)
    ))
  }) %>%
  knitr::kable()
variable N_0 Pct_0 N_1 Pct_1 N_2 Pct_2 N_3 Pct_3 N_4 Pct_4 N_5 Pct_5 N_6 Pct_6
ph_p_pds_001 11830 99.94 11194 99.79 10848 99.14 10173 97.49 9437 97.68 8664 97.60 4976 98.59
ph_p_pds_002 11830 99.94 11194 99.79 10848 99.14 10173 97.49 9437 97.68 8664 97.60 4976 98.59
ph_p_pds_003 11830 99.94 11194 99.79 10848 99.14 10173 97.49 9437 97.68 8664 97.60 4976 98.59
ph_p_pds__f_001 5637 47.62 5333 47.54 5149 47.06 4823 46.22 4463 46.20 4129 46.51 2361 46.78
ph_p_pds__f_002 5637 47.62 5333 47.54 5149 47.06 4823 46.22 4463 46.20 4129 46.51 2361 46.78
ph_p_pds__f_mean 5541 46.81 5250 46.80 5080 46.43 4727 45.30 4389 45.43 4060 45.74 2317 45.91
ph_p_pds__m_001 6133 51.81 5839 52.05 5694 52.04 5349 51.26 4973 51.48 4533 51.06 2615 51.81
ph_p_pds__m_002 6133 51.81 5839 52.05 5694 52.04 5349 51.26 4973 51.48 4533 51.06 2615 51.81
ph_p_pds__m_mean 6042 51.04 5761 51.36 5633 51.48 5293 50.72 4929 51.02 4500 50.69 2598 51.48
ph_p_pds_mean 11583 97.85 11011 98.16 10713 97.91 10020 96.02 9318 96.45 8560 96.43 4915 97.38
ph_y_pds_001 11815 99.81 11186 99.72 10901 99.63 10412 99.78 9621 99.59 8843 99.62 5021 99.48
ph_y_pds_002 11814 99.81 11186 99.72 10901 99.63 10412 99.78 9621 99.59 8843 99.62 5021 99.48
ph_y_pds_003 11816 99.82 11185 99.71 10901 99.63 10412 99.78 9621 99.59 8843 99.62 5021 99.48
ph_y_pds__f_001 5604 47.34 5309 47.33 5181 47.35 4950 47.44 4573 47.33 4230 47.65 2390 47.35
ph_y_pds__f_002 5609 47.39 5309 47.33 5182 47.36 4950 47.44 4573 47.33 4229 47.64 2390 47.35
ph_y_pds__f_mean 4296 36.29 4873 43.44 5011 45.80 4797 45.97 4455 46.11 4162 46.89 2368 46.92
ph_y_pds__m_001 6155 52.00 5835 52.02 5716 52.24 5461 52.33 5048 52.25 4613 51.97 2631 52.13
ph_y_pds__m_002 6155 52.00 5835 52.02 5716 52.24 5461 52.33 5047 52.24 4613 51.97 2631 52.13
ph_y_pds__m_mean 5274 44.56 5488 48.93 5647 51.61 5403 51.78 5019 51.95 4590 51.71 2615 51.81
ph_y_pds_mean 9570 80.85 10361 92.37 10658 97.40 10200 97.75 9474 98.06 8752 98.59 4983 98.73
# > 97% availability across all neutral items in all 7 time points (0-6)
# Male and female items' percentage add up to > 97% availability as well

replace 777 & 999 with NA

for (a in 3:22) {
  puberty6[, a] <-
    ifelse(puberty6[, a] > 100, NA, puberty6[, a])
}

# Checking
puberty6 %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
ph_p_pds__f_001 31567 46.41114 2.7018722 0.8443325 1 4
ph_p_pds__f_002 31385 46.14355 0.5260475 0.4993290 0 1
ph_p_pds__f_mean 31364 46.11268 2.6948938 0.8414807 1 4
ph_p_pds__m_001 34917 51.33645 1.9601340 1.0503766 1 4
ph_p_pds__m_002 34875 51.27470 1.6662939 0.8524904 1 4
ph_p_pds__m_mean 34756 51.09974 2.1005711 0.7529098 1 4
ph_p_pds_001 65753 96.67284 2.8007239 0.7598952 1 4
ph_p_pds_002 64492 94.81887 2.4312163 1.0330618 1 4
ph_p_pds_003 66209 97.34327 2.2754006 0.9367564 1 4
ph_p_pds_mean 66120 97.21242 2.3824879 0.8496607 1 4
ph_y_pds__f_001 30189 44.38514 2.6575574 0.8775544 1 4
ph_y_pds__f_002 30520 44.87179 0.5357798 0.4987263 0 1
ph_y_pds__f_mean 29962 44.05140 2.6786329 0.8570512 1 4
ph_y_pds__m_001 34768 51.11738 2.1565520 0.9613716 1 4
ph_y_pds__m_002 34826 51.20266 1.7456498 0.8329704 1 4
ph_y_pds__m_mean 34036 50.04117 2.1812786 0.7053460 1 4
ph_y_pds_001 61645 90.63309 2.7065618 0.9095863 1 4
ph_y_pds_002 65959 96.97571 2.4902894 1.0083006 1 4
ph_y_pds_003 65301 96.00829 2.3254008 0.9162357 1 4
ph_y_pds_mean 63998 94.09257 2.4141254 0.8185729 1 4

recode Values in f_002 items (menstruattion):

“0” (No) –> “1”

“1” (Yes) –> “4”

puberty6 <- puberty6 %>%
  mutate(
    ph_p_pds__f_002 = recode(ph_p_pds__f_002,
      "0" = 1,
      "1" = 4,
      .default = NA_real_
    ),
    ph_y_pds__f_002 = recode(ph_y_pds__f_002,
      "0" = 1,
      "1" = 4,
      .default = NA_real_
    )
  )

# Checking
puberty6 %>%
  select(ph_p_pds__f_002, ph_y_pds__f_002) %>%
  freq() %>%
  knitr::kable()
Freq % Valid % Valid Cum. % Total % Total Cum.
1 14875 47.39525 47.39525 21.86985 21.86985
4 16510 52.60475 100.00000 24.27370 46.14355
36631 53.85645 100.00000
Total 68016 100.00000 100.00000 100.00000 100.00000
Freq % Valid % Valid Cum. % Total % Total Cum.
1 14168 46.42202 46.42202 20.83039 20.83039
4 16352 53.57798 100.00000 24.04140 44.87179
37496 55.12821 100.00000
Total 68016 100.00000 100.00000 100.00000 100.00000

Calculate average scores for gender-specific items

Gender-specific items in Parent report

Male ph_p_pds__m_001: Have you noticed a deepening of your child’s voice? ph_p_pds__m_002: Have you noticed that your child has begun to grow hair on their face?

Female ph_p_pds__f_001: Have you noticed that your child’s breasts have begun to grow? ph_p_pds__f_002: Has your child begun to menstruate?

Gender-specific items in Youth report

Male ph_y_pds__m_001: Have you noticed a deepening of your voice? ph_y_pds__m_002: Have you begun to grow hair on your face?

Female ph_y_pds__f_001: Have you noticed that your breasts have begun to grow? ph_y_pds__f_002: Have you begun to menstruate (started to have your period)?

puberty6 <- puberty6 %>%
  mutate(
    # Gender-specific items in Parent report
    ph_p_pds_mf = rowMeans(
      puberty6 %>%
        select(
          "ph_p_pds__m_001",
          "ph_p_pds__m_002",
          "ph_p_pds__f_001",
          "ph_p_pds__f_002",
        ),
      na.rm = T
    ),
    # Gender-specific items in Youth report
    ph_y_pds_mf = rowMeans(
      puberty6 %>%
        select(
          "ph_y_pds__m_001",
          "ph_y_pds__m_002",
          "ph_y_pds__f_001",
          "ph_y_pds__f_002",
        ),
      na.rm = T
    )
  )

# Checking
puberty6 %>%
  select(ph_p_pds_mf, ph_y_pds_mf) %>%
  freq() %>%
  knitr::kable()
Freq % Valid % Valid Cum. % Total % Total Cum.
1 19490 29.184074 29.18407 28.655022 28.65502
1.5 9330 13.970621 43.15470 13.717361 42.37238
2 9115 13.648683 56.80338 13.401259 55.77364
2.5 4127 6.179716 62.98309 6.067690 61.84133
3 6916 10.355929 73.33902 10.168196 72.00953
3.5 13208 19.777488 93.11651 19.418960 91.42849
4 4597 6.883488 100.00000 6.758704 98.18719
1233 1.812809 100.00000
Total 68016 100.000000 100.00000 100.000000 100.00000
Freq % Valid % Valid Cum. % Total % Total Cum.
1 13762 20.590700 20.59070 20.233474 20.23347
1.5 13419 20.077503 40.66820 19.729181 39.96266
2 9769 14.616374 55.28458 14.362797 54.32545
2.5 5857 8.763241 64.04782 8.611209 62.93666
3 7707 11.531211 75.57903 11.331157 74.26782
3.5 11150 16.682626 92.26166 16.393202 90.66102
4 5172 7.738345 100.00000 7.604093 98.26511
1180 1.734886 100.00000
Total 68016 100.000000 100.00000 100.000000 100.00000

Check data

pub_yp_mean <- puberty6 %>%
  select(
    "participant_id",
    "session_id",
    "ph_p_pds_001",
    "ph_p_pds_002",
    "ph_p_pds_003",
    "ph_p_pds__f_001",
    "ph_p_pds__f_002",
    "ph_p_pds__m_001",
    "ph_p_pds__m_002",
    "ph_p_pds_mf",
    "ph_p_pds_mean",
    "ph_y_pds_001",
    "ph_y_pds_002",
    "ph_y_pds_003",
    "ph_y_pds__f_001",
    "ph_y_pds__f_002",
    "ph_y_pds__m_001",
    "ph_y_pds__m_002",
    "ph_y_pds_mf",
    "ph_y_pds_mean"
  )


# Year 0 (Baseline)

pub_yp_mean %>%
  filter(session_id == "0") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
ph_p_pds__f_001 5580 47.14032 1.867742 0.8100013 1 4
ph_p_pds__f_002 5588 47.20791 1.083214 0.4927078 1 4
ph_p_pds__m_001 6083 51.38971 1.101759 0.3711946 1 4
ph_p_pds__m_002 6073 51.30523 1.076733 0.3185737 1 4
ph_p_pds_001 11384 96.17302 2.463809 0.8348199 1 4
ph_p_pds_002 11526 97.37265 1.565504 0.8383459 1 4
ph_p_pds_003 11623 98.19211 1.463650 0.7215249 1 4
ph_p_pds_mean 11583 97.85419 1.601999 0.4852941 1 4
ph_p_pds_mf 11722 99.02847 1.275124 0.4602376 1 4
ph_y_pds__f_001 4583 38.71758 1.841370 0.7919383 1 4
ph_y_pds__f_002 5019 42.40095 1.098625 0.5349820 1 4
ph_y_pds__m_001 5823 49.19321 1.587154 0.7779510 1 4
ph_y_pds__m_002 5863 49.53113 1.250213 0.5292433 1 4
ph_y_pds_001 7328 61.90758 2.398744 0.9160823 1 4
ph_y_pds_002 11143 94.13703 1.731401 0.8819722 1 4
ph_y_pds_003 10175 85.95928 1.603538 0.7753749 1 4
ph_y_pds_mean 9570 80.84819 1.675925 0.4894997 1 4
ph_y_pds_mf 11455 96.77283 1.428372 0.5518734 1 4
# Year 1

pub_yp_mean %>%
  filter(session_id == "1") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  )
Non-numerical variable(s) ignored: participant_id, session_id

                         N.Valid   Pct.Valid   Mean   Std.Dev    Min    Max
--------------------- ---------- ----------- ------ --------- ------ ------
      ph_p_pds__f_001    5281.00       47.08   2.27      0.79   1.00   4.00
      ph_p_pds__f_002    5252.00       46.82   1.41      1.03   1.00   4.00
      ph_p_pds__m_001    5796.00       51.67   1.20      0.52   1.00   4.00
      ph_p_pds__m_002    5783.00       51.56   1.13      0.41   1.00   4.00
         ph_p_pds_001   10918.00       97.33   2.52      0.78   1.00   4.00
         ph_p_pds_002   10801.00       96.29   1.82      0.91   1.00   4.00
         ph_p_pds_003   11032.00       98.35   1.73      0.82   1.00   4.00
        ph_p_pds_mean   11011.00       98.16   1.81      0.60   1.00   4.00
          ph_p_pds_mf   11130.00       99.22   1.49      0.68   1.00   4.00
      ph_y_pds__f_001    4948.00       44.11   2.15      0.78   1.00   4.00
      ph_y_pds__f_002    5004.00       44.61   1.40      1.02   1.00   4.00
      ph_y_pds__m_001    5613.00       50.04   1.62      0.76   1.00   4.00
      ph_y_pds__m_002    5636.00       50.25   1.30      0.57   1.00   4.00
         ph_y_pds_001    9883.00       88.11   2.29      0.87   1.00   4.00
         ph_y_pds_002   10728.00       95.64   1.86      0.87   1.00   4.00
         ph_y_pds_003   10660.00       95.03   1.82      0.81   1.00   4.00
        ph_y_pds_mean   10361.00       92.37   1.83      0.56   1.00   4.00
          ph_y_pds_mf   10973.00       97.82   1.61      0.68   1.00   4.00
# Year 2

pub_yp_mean %>%
  filter(session_id == "2") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
ph_p_pds__f_001 5110 46.70079 2.652251 0.6458457 1 4
ph_p_pds__f_002 5051 46.16158 2.266284 1.4818271 1 4
ph_p_pds__m_001 5652 51.65418 1.533970 0.7999821 1 4
ph_p_pds__m_002 5647 51.60848 1.341951 0.6291271 1 4
ph_p_pds_001 10680 97.60556 2.638764 0.7174175 1 4
ph_p_pds_002 10384 94.90038 2.256741 0.9258104 1 4
ph_p_pds_003 10721 97.98026 2.131704 0.8467472 1 4
ph_p_pds_mean 10713 97.90715 2.172463 0.7166523 1 4
ph_p_pds_mf 10803 98.72967 1.924789 0.9388172 1 4
ph_y_pds__f_001 4963 45.35734 2.498489 0.7110487 1 4
ph_y_pds__f_002 4937 45.11972 2.208021 1.4714574 1 4
ph_y_pds__m_001 5678 51.89179 1.793942 0.8130640 1 4
ph_y_pds__m_002 5667 51.79126 1.417152 0.6434460 1 4
ph_y_pds_001 10761 98.34582 2.380634 0.8559286 1 4
ph_y_pds_002 10648 97.31311 2.223798 0.8938016 1 4
ph_y_pds_003 10787 98.58344 2.128210 0.8268222 1 4
ph_y_pds_mean 10658 97.40450 2.128514 0.6644338 1 4
ph_y_pds_mf 10791 98.62000 1.958669 0.8737531 1 4
# Year 3

pub_yp_mean %>%
  filter(session_id == "3") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
ph_p_pds__f_001 4764 45.65405 2.892947 0.5516381 1 4
ph_p_pds__f_002 4718 45.21322 3.075456 1.3853727 1 4
ph_p_pds__m_001 5317 50.95352 2.023509 0.9420833 1 4
ph_p_pds__m_002 5310 50.88644 1.651789 0.7832728 1 4
ph_p_pds_001 10038 96.19550 2.799263 0.6532019 1 4
ph_p_pds_002 9692 92.87973 2.620202 0.8622469 1 4
ph_p_pds_003 10061 96.41591 2.449160 0.7896727 1 4
ph_p_pds_mean 10020 96.02300 2.522715 0.7201574 1 4
ph_p_pds_mf 10125 97.02923 2.380197 0.9899575 1 4
ph_y_pds__f_001 4768 45.69238 2.767408 0.6584965 1 4
ph_y_pds__f_002 4709 45.12698 3.043746 1.3981257 1 4
ph_y_pds__m_001 5423 51.96933 2.158399 0.8898102 1 4
ph_y_pds__m_002 5419 51.93100 1.702528 0.7647257 1 4
ph_y_pds_001 10311 98.81169 2.646688 0.8251552 1 4
ph_y_pds_002 10211 97.85338 2.629419 0.8536218 1 4
ph_y_pds_003 10330 98.99377 2.427977 0.8005054 1 4
ph_y_pds_mean 10200 97.74796 2.495196 0.6890114 1 4
ph_y_pds_mf 10297 98.67753 2.389968 0.9372987 1 4
# Year 4

pub_yp_mean %>%
  filter(session_id == "4") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
ph_p_pds__f_001 4406 45.60604 3.154108 0.5163305 1 4
ph_p_pds__f_002 4398 45.52324 3.742838 0.8399494 1 4
ph_p_pds__m_001 4950 51.23693 2.686061 0.8524314 1 4
ph_p_pds__m_002 4944 51.17483 2.149272 0.8259200 1 4
ph_p_pds_001 9292 96.18052 3.049182 0.5876536 1 4
ph_p_pds_002 9038 93.55139 3.020690 0.7197195 1 4
ph_p_pds_003 9303 96.29438 2.802107 0.6631466 1 4
ph_p_pds_mean 9318 96.44964 2.935077 0.6066178 1 4
ph_p_pds_mf 9400 97.29842 2.904149 0.8314835 1 4
ph_y_pds__f_001 4430 45.85447 3.074041 0.6158358 1 4
ph_y_pds__f_002 4397 45.51289 3.744826 0.8369991 1 4
ph_y_pds__m_001 5025 52.01325 2.631841 0.8162006 1 4
ph_y_pds__m_002 5029 52.05465 2.127063 0.7874572 1 4
ph_y_pds_001 9567 99.02702 2.958921 0.7918976 1 4
ph_y_pds_002 9488 98.20930 3.043107 0.7295484 1 4
ph_y_pds_003 9555 98.90281 2.754997 0.7035786 1 4
ph_y_pds_mean 9474 98.06438 2.896031 0.6120285 1 4
ph_y_pds_mf 9537 98.71649 2.863427 0.8214602 1 4
# Year 5

pub_yp_mean %>%
  filter(session_id == "5") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
ph_p_pds__f_001 4092 46.09665 3.308651 0.5512533 1 4
ph_p_pds__f_002 4048 45.60099 3.904397 0.5270076 1 4
ph_p_pds__m_001 4516 50.87304 3.007529 0.7235547 1 4
ph_p_pds__m_002 4515 50.86178 2.431008 0.7689792 1 4
ph_p_pds_001 8536 96.15861 3.210755 0.5690569 1 4
ph_p_pds_002 8288 93.36488 3.223697 0.6378196 1 4
ph_p_pds_003 8563 96.46277 2.981198 0.6009388 1 4
ph_p_pds_mean 8560 96.42897 3.138627 0.5296915 1 4
ph_p_pds_mf 8640 97.33018 3.139294 0.7009915 1 4
ph_y_pds__f_001 4138 46.61485 3.297003 0.6211140 1 4
ph_y_pds__f_002 4110 46.29943 3.907299 0.5192055 1 4
ph_y_pds__m_001 4591 51.71792 2.903942 0.7153223 1 4
ph_y_pds__m_002 4591 51.71792 2.432150 0.7354418 1 4
ph_y_pds_001 8795 99.07626 3.209210 0.7530587 1 4
ph_y_pds_002 8759 98.67072 3.258249 0.6377270 1 4
ph_y_pds_003 8797 99.09879 2.959759 0.6520471 1 4
ph_y_pds_mean 8752 98.59187 3.128942 0.5394911 1 4
ph_y_pds_mf 8787 98.98614 3.111130 0.7109779 1 4
# Year 6

pub_yp_mean %>%
  filter(session_id == "6") %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd", "min", "max"),
    transpose = T,
    headings = F
  ) %>%
  knitr::kable()
N.Valid Pct.Valid Mean Std.Dev Min Max
ph_p_pds__f_001 2334 46.24529 3.478149 0.5479125 1.0 4
ph_p_pds__f_002 2330 46.16604 3.965236 0.3211348 1.0 4
ph_p_pds__m_001 2603 51.57519 3.256627 0.6262798 1.0 4
ph_p_pds__m_002 2603 51.57519 2.715329 0.6825086 1.0 4
ph_p_pds_001 4905 97.18645 3.378593 0.5596463 1.0 4
ph_p_pds_002 4763 94.37289 3.401218 0.5767934 1.0 4
ph_p_pds_003 4906 97.20626 3.141052 0.5779489 1.0 4
ph_p_pds_mean 4915 97.38458 3.316897 0.4724285 1.2 4
ph_p_pds_mf 4963 98.33564 3.335080 0.5853689 1.0 4
ph_y_pds__f_001 2359 46.74064 3.509538 0.5966884 1.0 4
ph_y_pds__f_002 2344 46.44343 3.965444 0.3201852 1.0 4
ph_y_pds__m_001 2615 51.81296 3.136903 0.6647160 1.0 4
ph_y_pds__m_002 2621 51.93184 2.684472 0.6745250 1.0 4
ph_y_pds_001 5000 99.06875 3.439000 0.6933795 1.0 4
ph_y_pds_002 4982 98.71211 3.418908 0.5935372 1.0 4
ph_y_pds_003 4997 99.00931 3.147889 0.6234204 1.0 4
ph_y_pds_mean 4983 98.73192 3.322838 0.4899576 1.0 4
ph_y_pds_mf 4996 98.98950 3.302342 0.6236999 1.0 4

Missing Visualization

# Baseline
pub_yp_mean %>%
  filter(session_id == "0") %>%
  visdat::vis_miss()

# 1-year follow-up
pub_yp_mean %>%
  filter(session_id == "1") %>%
  visdat::vis_miss()

# 2-year follow-up
pub_yp_mean %>%
  filter(session_id == "2") %>%
  visdat::vis_miss()

# 3-year follow-up
pub_yp_mean %>%
  filter(session_id == "3") %>%
  visdat::vis_miss()

# 4-year follow-up
pub_yp_mean %>%
  filter(session_id == "4") %>%
  visdat::vis_miss()

# 5-year follow-up
pub_yp_mean %>%
  filter(session_id == "5") %>%
  visdat::vis_miss()

# 6-year follow-up
pub_yp_mean %>%
  filter(session_id == "6") %>%
  visdat::vis_miss()

Scaled score: Z score

# Scale into Z-score across all time points

pub_yp_mean.scaled <- pub_yp_mean %>%
  mutate_at(scale,
    .vars = c(
      "ph_p_pds_001",
      "ph_p_pds_002",
      "ph_p_pds_003",
      "ph_p_pds__f_001",
      "ph_p_pds__f_002",
      "ph_p_pds__m_001",
      "ph_p_pds__m_002",
      "ph_p_pds_mf",
      "ph_p_pds_mean",
      "ph_y_pds_001",
      "ph_y_pds_002",
      "ph_y_pds_003",
      "ph_y_pds__f_001",
      "ph_y_pds__f_002",
      "ph_y_pds__m_001",
      "ph_y_pds__m_002",
      "ph_y_pds_mf",
      "ph_y_pds_mean"
    ),
    center = TRUE,
    scale = TRUE
  )

Reconstruct Data

Long form (Scaled)

pub_yp_mean_long.scaled <- pub_yp_mean.scaled %>%
  pivot_longer(
    cols = starts_with("ph_"), # all pds columns
    names_to = c("rater", "item"), # create two new columns
    names_pattern = "ph_(.)_pds_(.*)", # (.) captures y or p, (.*) captures the rest
    values_to = "value"
  )

# check duplicate
pub_yp_mean_long.scaled %>%
  group_by(rater, item, session_id) %>%
  dplyr::summarise(
    count = sum(!is.na(value)),
    duplicate = any(duplicated(participant_id))
  ) %>%
  knitr::kable()
`summarise()` has grouped output by 'rater', 'item'. You can override using the
`.groups` argument.
rater item session_id count duplicate
p 001 0 11384 FALSE
p 001 1 10918 FALSE
p 001 2 10680 FALSE
p 001 3 10038 FALSE
p 001 4 9292 FALSE
p 001 5 8536 FALSE
p 001 6 4905 FALSE
p 002 0 11526 FALSE
p 002 1 10801 FALSE
p 002 2 10384 FALSE
p 002 3 9692 FALSE
p 002 4 9038 FALSE
p 002 5 8288 FALSE
p 002 6 4763 FALSE
p 003 0 11623 FALSE
p 003 1 11032 FALSE
p 003 2 10721 FALSE
p 003 3 10061 FALSE
p 003 4 9303 FALSE
p 003 5 8563 FALSE
p 003 6 4906 FALSE
p _f_001 0 5580 FALSE
p _f_001 1 5281 FALSE
p _f_001 2 5110 FALSE
p _f_001 3 4764 FALSE
p _f_001 4 4406 FALSE
p _f_001 5 4092 FALSE
p _f_001 6 2334 FALSE
p _f_002 0 5588 FALSE
p _f_002 1 5252 FALSE
p _f_002 2 5051 FALSE
p _f_002 3 4718 FALSE
p _f_002 4 4398 FALSE
p _f_002 5 4048 FALSE
p _f_002 6 2330 FALSE
p _m_001 0 6083 FALSE
p _m_001 1 5796 FALSE
p _m_001 2 5652 FALSE
p _m_001 3 5317 FALSE
p _m_001 4 4950 FALSE
p _m_001 5 4516 FALSE
p _m_001 6 2603 FALSE
p _m_002 0 6073 FALSE
p _m_002 1 5783 FALSE
p _m_002 2 5647 FALSE
p _m_002 3 5310 FALSE
p _m_002 4 4944 FALSE
p _m_002 5 4515 FALSE
p _m_002 6 2603 FALSE
p mean 0 11583 FALSE
p mean 1 11011 FALSE
p mean 2 10713 FALSE
p mean 3 10020 FALSE
p mean 4 9318 FALSE
p mean 5 8560 FALSE
p mean 6 4915 FALSE
p mf 0 11722 FALSE
p mf 1 11130 FALSE
p mf 2 10803 FALSE
p mf 3 10125 FALSE
p mf 4 9400 FALSE
p mf 5 8640 FALSE
p mf 6 4963 FALSE
y 001 0 7328 FALSE
y 001 1 9883 FALSE
y 001 2 10761 FALSE
y 001 3 10311 FALSE
y 001 4 9567 FALSE
y 001 5 8795 FALSE
y 001 6 5000 FALSE
y 002 0 11143 FALSE
y 002 1 10728 FALSE
y 002 2 10648 FALSE
y 002 3 10211 FALSE
y 002 4 9488 FALSE
y 002 5 8759 FALSE
y 002 6 4982 FALSE
y 003 0 10175 FALSE
y 003 1 10660 FALSE
y 003 2 10787 FALSE
y 003 3 10330 FALSE
y 003 4 9555 FALSE
y 003 5 8797 FALSE
y 003 6 4997 FALSE
y _f_001 0 4583 FALSE
y _f_001 1 4948 FALSE
y _f_001 2 4963 FALSE
y _f_001 3 4768 FALSE
y _f_001 4 4430 FALSE
y _f_001 5 4138 FALSE
y _f_001 6 2359 FALSE
y _f_002 0 5019 FALSE
y _f_002 1 5004 FALSE
y _f_002 2 4937 FALSE
y _f_002 3 4709 FALSE
y _f_002 4 4397 FALSE
y _f_002 5 4110 FALSE
y _f_002 6 2344 FALSE
y _m_001 0 5823 FALSE
y _m_001 1 5613 FALSE
y _m_001 2 5678 FALSE
y _m_001 3 5423 FALSE
y _m_001 4 5025 FALSE
y _m_001 5 4591 FALSE
y _m_001 6 2615 FALSE
y _m_002 0 5863 FALSE
y _m_002 1 5636 FALSE
y _m_002 2 5667 FALSE
y _m_002 3 5419 FALSE
y _m_002 4 5029 FALSE
y _m_002 5 4591 FALSE
y _m_002 6 2621 FALSE
y mean 0 9570 FALSE
y mean 1 10361 FALSE
y mean 2 10658 FALSE
y mean 3 10200 FALSE
y mean 4 9474 FALSE
y mean 5 8752 FALSE
y mean 6 4983 FALSE
y mf 0 11455 FALSE
y mf 1 10973 FALSE
y mf 2 10791 FALSE
y mf 3 10297 FALSE
y mf 4 9537 FALSE
y mf 5 8787 FALSE
y mf 6 4996 FALSE

Wide form (Scaled)

pub_yp_mean_wide.scaled <- pub_yp_mean.scaled %>%
  pivot_wider(
    names_from = session_id,
    values_from = starts_with("ph_")
  )


# check duplicate
pub_yp_mean_wide.scaled %>%
  select(participant_id) %>%
  dplyr::summarise(
    count = sum(!is.na(participant_id)),
    duplicate = any(duplicated(participant_id))
  ) %>%
  knitr::kable()
count duplicate
11867 FALSE

Descriptive Stat Summary

pub_yp_mean_wide.scaled %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd"),
    transpose = T,
    headings = F
  ) %>%
  DT::datatable(options = list(pageLength = 10, scrollY = "450px", scrollX = TRUE))
pub_yp_mean %>%
  pivot_wider(
    names_from = session_id,
    values_from = starts_with("ph_")
  ) %>%
  descr(
    stats = c("N.Valid", "Pct.Valid", "mean", "sd"),
    transpose = T,
    headings = F
  ) %>%
  DT::datatable(options = list(pageLength = 10, scrollY = "450px", scrollX = TRUE))

Plot

puberty_plot <- Rmisc::summarySE(
  pub_yp_mean_long.scaled %>%
    mutate(
      item = factor(
        item,
        levels = c("001", "002", "003", "_f_001", "_f_002", "_m_001", "_m_002", "mean"),
        labels = c("item1", "item2", "item3", "female1", "female2", "male1", "male2", "Avarage")
      ),
      rater = factor(
        rater,
        levels = c("p", "y"),
        labels = c("Parent", "Youth")
      )
    ),
  measurevar = "value",
  na.rm = T,
  groupvars = c("rater", "item", "session_id")
) %>%
  filter(!is.na(item)) %>%
  ggplot(aes(session_id, value, color = item, group = item)) +
  geom_errorbar(
    aes(x = session_id, y = value, ymin = value - ci, ymax = value + ci),
    alpha = 1, position = position_dodge(width = .5), colour = "black"
  ) +
  stat_summary(fun.y = mean, geom = "line", position = position_dodge(width = .5), linewidth = 1.5) +
  theme_bw(base_size = 20) +
  ylab("Puberty Score") +
  scale_x_discrete(labels = c("10", "11", "12", "13", "14", "15", "16")) +
  theme(axis.title.x = element_blank()) +
  facet_wrap(~rater, scales = "free_y") +
  theme(axis.title.x = element_text()) +
  labs(x = expression("Time points (" * italic(M)["age"] * ", y/o)"))

puberty_plot %>% saveRDS("puberty_plot.rds")
readRDS("puberty_plot.rds")

Join all data

No sex

pga6_wide.allscaled <- plyr::join_all(
  list(
    g_factor_5task_wide.scaled,
    pc_factor_nolow_wide.scaled,
    pp_factor_wide.scaled,
    pub_yp_mean_wide.scaled
  ),
  by = c("participant_id"), type = "full"
)

# check duplicate
pga6_wide.allscaled %>%
  select(participant_id) %>%
  dplyr::summarise(count = dplyr::n(), duplicate = any(duplicated(participant_id))) %>%
  knitr::kable()
count duplicate
11867 FALSE
# n = 11867
# Save data for the main analysis
pga6_wide.allscaled %>%
  saveRDS("pga6_all_data.rds")

Add sex

pga6_wide.allscaled.sex <- plyr::join_all(
  list(
    readRDS("pga6_all_data.rds"),
    sex6 %>%
      select(participant_id, ab_g_stc__cohort_sex) %>%
      drop_na(ab_g_stc__cohort_sex)
  ),
  by = c("participant_id"), type = "left"
) %>%
  mutate(dummy_sex = 2 - as.numeric(ab_g_stc__cohort_sex))

# check duplicate
pga6_wide.allscaled.sex %>%
  select(participant_id, dummy_sex) %>%
  group_by(dummy_sex) %>%
  dplyr::summarise(count = dplyr::n(), duplicate = any(duplicated(participant_id))) %>%
  knitr::kable()
dummy_sex count duplicate
0 5678 FALSE
1 6189 FALSE
# total n = 5678 + 6189 = 11867
# Save data for the main analysis
pga6_wide.allscaled.sex %>%
  saveRDS("pga6_all_data_sex.rds")

Main Analysis

Measurement invariance test

g factor

Configural invariance model

model fit
g.4t.config.invar <- "#factor loadings # S & S2
               g_etaB =~ lambda_S*flanker_0+
                       lambda_R*pattern_0+
                       lambda_M*picture_0+
                       lambda_P*picvocab_0+
                       lambda_V*reading_0
               g_eta2 =~ lambda_S2*flanker_2+
                       lambda_R2*pattern_2+
                       lambda_M2*picture_2+
                       lambda_P2*picvocab_2+
                       lambda_V2*reading_2
               g_eta4 =~ lambda_S4*flanker_4+
                       lambda_R4*pattern_4+
                       lambda_M4*picture_4+
                       lambda_P4*picvocab_4+
                       lambda_V4*reading_4
               g_eta6 =~ lambda_S6*flanker_6+
                       lambda_R6*pattern_6+
                       lambda_M6*picture_6+
                       lambda_P6*picvocab_6+
                       lambda_V6*reading_6

              #latent variable variances # 1*
                      g_etaB~~1*g_etaB
                      g_eta2~~1*g_eta2
                      g_eta4~~1*g_eta4
                      g_eta6~~1*g_eta6

              #latent variable covariances
                      g_etaB~~g_eta2 + g_eta4 + g_eta6
                      g_eta2~~g_eta4 + g_eta6
                      g_eta4~~g_eta6

              #unique variances
                      flanker_0~~flanker_0
                      flanker_2~~flanker_2
                      flanker_4~~flanker_4
                      flanker_6~~flanker_6
                      pattern_0~~pattern_0
                      pattern_2~~pattern_2
                      pattern_4~~pattern_4
                      pattern_6~~pattern_6
                      picture_0~~picture_0
                      picture_2~~picture_2
                      picture_4~~picture_4
                      picture_6~~picture_6
                      picvocab_0~~picvocab_0
                      picvocab_2~~picvocab_2
                      picvocab_4~~picvocab_4
                      picvocab_6~~picvocab_6
                      reading_0~~reading_0
                      reading_2~~reading_2
                      reading_4~~reading_4
                      reading_6~~reading_6

              #unique covariances
                      # Task across times
                      flanker_0~~flanker_2 + flanker_4 + flanker_6
                      flanker_2~~flanker_4 + flanker_6
                      flanker_4~~flanker_6
                      
                      pattern_0~~pattern_2 + pattern_4 + pattern_6
                      pattern_2~~pattern_4 + pattern_6
                      pattern_4~~pattern_6
                      
                      picture_0~~picture_2 + picture_4 + picture_6
                      picture_2~~picture_4 + picture_6
                      picture_4~~picture_6
                      
                      picvocab_0~~picvocab_2 + picvocab_4 + picvocab_6
                      picvocab_2~~picvocab_4 + picvocab_6
                      picvocab_4~~picvocab_6
                      
                      reading_0~~reading_2 + reading_4 + reading_6
                      reading_2~~reading_4 + reading_6
                      reading_4~~reading_6

                      #Language
                      picvocab_0~~reading_0 + reading_2 + reading_4 + reading_6
                      picvocab_2~~reading_2 + reading_0 + reading_4 + reading_6
                      picvocab_4~~reading_4 + reading_0 + reading_2 + reading_6
                      picvocab_6~~reading_6 + reading_0 + reading_2 + reading_4

              #latent variable intercepts # 0*1
                      g_etaB~0*1
                      g_eta2~0*1
                      g_eta4~0*1
                      g_eta6~0*1

              #observed variable intercepts # S & S2
                      flanker_0~tau_S*1
                      flanker_2~tau_S2*1
                      flanker_4~tau_S4*1
                      flanker_6~tau_S6*1
                      pattern_0~tau_R*1
                      pattern_2~tau_R2*1
                      pattern_4~tau_R4*1
                      pattern_6~tau_R6*1
                      picture_0~tau_M*1
                      picture_2~tau_M2*1
                      picture_4~tau_M4*1
                      picture_6~tau_M6*1
                      picvocab_0~tau_P*1
                      picvocab_2~tau_P2*1
                      picvocab_4~tau_P4*1
                      picvocab_6~tau_P6*1
                      reading_0~tau_V*1
                      reading_2~tau_V2*1
                      reading_4~tau_V4*1
                      reading_6~tau_V6*1"

lavaan(g.4t.config.invar,
  data = g_factor_5task_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("g_4t_config.rds")
result
readRDS("g_4t_config.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("g_4t_config_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("g_4t_config.rds"), "cor.lv"))$value
[1] 3.70934752 0.17944394 0.05761131 0.05359723
readRDS("g_4t_config_result.rds")
lavaan 0.6-19 ended normally after 84 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       112

                                                  Used       Total
  Number of observations                         11849       11865
  Number of missing patterns                       221            

Model Test User Model:
                                                      
  Test statistic                              1918.015
  Degrees of freedom                               118
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                             79857.953
  Degrees of freedom                               190
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.977
  Tucker-Lewis Index (TLI)                       0.964
                                                      
  Robust Comparative Fit Index (CFI)             0.976
  Robust Tucker-Lewis Index (TLI)                0.962

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -179356.081
  Loglikelihood unrestricted model (H1)    -178397.074
                                                      
  Akaike (AIC)                              358936.162
  Bayesian (BIC)                            359762.722
  Sample-size adjusted Bayesian (SABIC)     359406.799

Root Mean Square Error of Approximation:

  RMSEA                                          0.036
  90 Percent confidence interval - lower         0.034
  90 Percent confidence interval - upper         0.037
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.047
  90 Percent confidence interval - lower         0.045
  90 Percent confidence interval - upper         0.049
  P-value H_0: Robust RMSEA <= 0.050             0.996
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.042

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  g_etaB =~                                                             
    flnkr_0 (lm_S)    0.573    0.011   52.897    0.000    0.573    0.597
    pttrn_0 (lm_R)    0.351    0.008   44.215    0.000    0.351    0.493
    pictr_0 (lm_M)    0.341    0.009   36.101    0.000    0.341    0.396
    pcvcb_0 (lm_P)    0.366    0.010   37.991    0.000    0.366    0.443
    redng_0 (lm_V)    0.384    0.010   39.443    0.000    0.384    0.455
  g_eta2 =~                                                             
    flnkr_2 (l_S2)    0.499    0.011   47.422    0.000    0.499    0.614
    pttrn_2 (l_R2)    0.415    0.009   44.310    0.000    0.415    0.559
    pictr_2 (l_M2)    0.359    0.011   33.926    0.000    0.359    0.395
    pcvcb_2 (l_P2)    0.411    0.010   39.409    0.000    0.411    0.472
    redng_2 (l_V2)    0.357    0.010   36.378    0.000    0.357    0.434
  g_eta4 =~                                                             
    flnkr_4 (l_S4)    0.532    0.011   49.220    0.000    0.532    0.651
    pttrn_4 (l_R4)    0.501    0.011   47.230    0.000    0.501    0.610
    pictr_4 (l_M4)    0.421    0.013   31.475    0.000    0.421    0.387
    pcvcb_4 (l_P4)    0.429    0.011   37.948    0.000    0.429    0.468
    redng_4 (l_V4)    0.370    0.011   33.494    0.000    0.370    0.414
  g_eta6 =~                                                             
    flnkr_6 (l_S6)    0.548    0.013   43.046    0.000    0.548    0.675
    pttrn_6 (l_R6)    0.612    0.013   46.492    0.000    0.612    0.704
    pictr_6 (l_M6)    0.470    0.017   28.333    0.000    0.470    0.436
    pcvcb_6 (l_P6)    0.407    0.013   31.119    0.000    0.407    0.447
    redng_6 (l_V6)    0.384    0.014   28.294    0.000    0.384    0.413

Covariances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  g_etaB ~~                                                             
    g_eta2            0.936    0.007  138.846    0.000    0.936    0.936
    g_eta4            0.898    0.008  109.489    0.000    0.898    0.898
    g_eta6            0.833    0.011   73.570    0.000    0.833    0.833
  g_eta2 ~~                                                             
    g_eta4            0.930    0.007  131.330    0.000    0.930    0.930
    g_eta6            0.891    0.009   97.335    0.000    0.891    0.891
  g_eta4 ~~                                                             
    g_eta6            0.929    0.008  111.120    0.000    0.929    0.929
 .flanker_0 ~~                                                          
   .flanker_2         0.085    0.008   10.746    0.000    0.085    0.173
   .flanker_4         0.044    0.008    5.522    0.000    0.044    0.092
   .flanker_6         0.042    0.009    4.614    0.000    0.042    0.091
 .flanker_2 ~~                                                          
   .flanker_4         0.099    0.008   12.928    0.000    0.099    0.248
   .flanker_6         0.081    0.008   10.006    0.000    0.081    0.210
 .flanker_4 ~~                                                          
   .flanker_6         0.109    0.009   11.969    0.000    0.109    0.294
 .pattern_0 ~~                                                          
   .pattern_2         0.125    0.005   23.397    0.000    0.125    0.327
   .pattern_4         0.089    0.006   15.073    0.000    0.089    0.220
   .pattern_6         0.073    0.007   10.514    0.000    0.073    0.191
 .pattern_2 ~~                                                          
   .pattern_4         0.140    0.007   20.571    0.000    0.140    0.351
   .pattern_6         0.111    0.008   14.753    0.000    0.111    0.293
 .pattern_4 ~~                                                          
   .pattern_6         0.147    0.009   16.026    0.000    0.147    0.366
 .picture_0 ~~                                                          
   .picture_2         0.230    0.008   30.500    0.000    0.230    0.348
   .picture_4         0.230    0.009   24.963    0.000    0.230    0.290
   .picture_6         0.262    0.011   23.079    0.000    0.262    0.342
 .picture_2 ~~                                                          
   .picture_4         0.253    0.010   24.980    0.000    0.253    0.302
   .picture_6         0.285    0.013   21.905    0.000    0.285    0.352
 .picture_4 ~~                                                          
   .picture_6         0.352    0.015   23.037    0.000    0.352    0.362
 .picvocab_0 ~~                                                         
   .picvocab_2        0.380    0.008   49.298    0.000    0.380    0.667
   .picvocab_4        0.382    0.008   47.416    0.000    0.382    0.637
   .picvocab_6        0.377    0.009   42.658    0.000    0.377    0.623
 .picvocab_2 ~~                                                         
   .picvocab_4        0.448    0.009   50.057    0.000    0.448    0.719
   .picvocab_6        0.449    0.010   45.828    0.000    0.449    0.716
 .picvocab_4 ~~                                                         
   .picvocab_6        0.497    0.011   46.737    0.000    0.497    0.753
 .reading_0 ~~                                                          
   .reading_2         0.398    0.008   52.880    0.000    0.398    0.717
   .reading_4         0.402    0.008   49.561    0.000    0.402    0.659
   .reading_6         0.415    0.010   43.456    0.000    0.415    0.652
 .reading_2 ~~                                                          
   .reading_4         0.415    0.008   50.802    0.000    0.415    0.691
   .reading_6         0.432    0.010   45.159    0.000    0.432    0.690
 .reading_4 ~~                                                          
   .reading_6         0.460    0.011   43.280    0.000    0.460    0.668
 .picvocab_0 ~~                                                         
   .reading_0         0.224    0.007   32.905    0.000    0.224    0.401
   .reading_2         0.239    0.007   35.621    0.000    0.239    0.436
   .reading_4         0.257    0.007   34.804    0.000    0.257    0.426
   .reading_6         0.285    0.009   32.357    0.000    0.285    0.454
 .picvocab_2 ~~                                                         
   .reading_2         0.278    0.007   37.753    0.000    0.278    0.490
 .reading_0 ~~                                                          
   .picvocab_2        0.251    0.007   34.679    0.000    0.251    0.434
 .picvocab_2 ~~                                                         
   .reading_4         0.303    0.008   37.649    0.000    0.303    0.485
   .reading_6         0.336    0.010   34.978    0.000    0.336    0.516
 .picvocab_4 ~~                                                         
   .reading_4         0.324    0.009   37.294    0.000    0.324    0.493
 .reading_0 ~~                                                          
   .picvocab_4        0.259    0.008   33.746    0.000    0.259    0.425
 .reading_2 ~~                                                          
   .picvocab_4        0.289    0.008   37.206    0.000    0.289    0.483
 .picvocab_4 ~~                                                         
   .reading_6         0.364    0.010   35.161    0.000    0.364    0.531
 .picvocab_6 ~~                                                         
   .reading_6         0.372    0.011   32.905    0.000    0.372    0.538
 .reading_0 ~~                                                          
   .picvocab_6        0.249    0.009   28.919    0.000    0.249    0.406
 .reading_2 ~~                                                          
   .picvocab_6        0.278    0.009   32.082    0.000    0.278    0.461
 .reading_4 ~~                                                          
   .picvocab_6        0.321    0.010   33.024    0.000    0.321    0.484

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    g_etaB            0.000                               0.000    0.000
    g_eta2            0.000                               0.000    0.000
    g_eta4            0.000                               0.000    0.000
    g_eta6            0.000                               0.000    0.000
   .flnkr_0 (ta_S)   -0.598    0.009  -67.471    0.000   -0.598   -0.623
   .flnkr_2 (t_S2)    0.024    0.009    2.843    0.004    0.024    0.030
   .flnkr_4 (t_S4)    0.427    0.009   47.661    0.000    0.427    0.522
   .flnkr_6 (t_S6)    0.669    0.011   63.406    0.000    0.669    0.825
   .pttrn_0 (ta_R)   -0.744    0.007 -112.876    0.000   -0.744   -1.043
   .pttrn_2 (t_R2)   -0.007    0.008   -0.956    0.339   -0.007   -0.010
   .pttrn_4 (t_R4)    0.534    0.009   59.521    0.000    0.534    0.650
   .pttrn_6 (t_R6)    0.930    0.011   83.968    0.000    0.930    1.071
   .pictr_0 (ta_M)   -0.366    0.008  -45.951    0.000   -0.366   -0.424
   .pictr_2 (t_M2)    0.030    0.009    3.381    0.001    0.030    0.033
   .pictr_4 (t_M4)    0.237    0.011   21.441    0.000    0.237    0.218
   .pictr_6 (t_M6)    0.218    0.014   15.589    0.000    0.218    0.203
   .pcvcb_0 (ta_P)   -0.562    0.008  -73.704    0.000   -0.562   -0.679
   .pcvcb_2 (t_P2)   -0.123    0.008  -14.938    0.000   -0.123   -0.141
   .pcvcb_4 (t_P4)    0.374    0.009   42.281    0.000    0.374    0.409
   .pcvcb_6 (t_P6)    0.667    0.010   65.010    0.000    0.667    0.732
   .redng_0 (ta_V)   -0.600    0.008  -77.156    0.000   -0.600   -0.711
   .redng_2 (t_V2)   -0.116    0.008  -15.025    0.000   -0.116   -0.142
   .redng_4 (t_V4)    0.420    0.009   48.431    0.000    0.420    0.470
   .redng_6 (t_V6)    0.710    0.011   66.465    0.000    0.710    0.763

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    g_etaB            1.000                               1.000    1.000
    g_eta2            1.000                               1.000    1.000
    g_eta4            1.000                               1.000    1.000
    g_eta6            1.000                               1.000    1.000
   .flanker_0         0.593    0.011   51.865    0.000    0.593    0.644
   .flanker_2         0.412    0.009   44.151    0.000    0.412    0.623
   .flanker_4         0.384    0.010   39.553    0.000    0.384    0.576
   .flanker_6         0.359    0.011   32.120    0.000    0.359    0.544
   .pattern_0         0.385    0.006   62.591    0.000    0.385    0.757
   .pattern_2         0.378    0.008   50.018    0.000    0.378    0.687
   .pattern_4         0.424    0.009   44.728    0.000    0.424    0.628
   .pattern_6         0.380    0.012   30.985    0.000    0.380    0.504
   .picture_0         0.627    0.009   69.167    0.000    0.627    0.843
   .picture_2         0.696    0.011   65.601    0.000    0.696    0.844
   .picture_4         1.007    0.016   62.576    0.000    1.007    0.850
   .picture_6         0.938    0.021   45.520    0.000    0.938    0.810
   .picvocab_0        0.550    0.008   65.202    0.000    0.550    0.804
   .picvocab_2        0.591    0.010   61.419    0.000    0.591    0.777
   .picvocab_4        0.656    0.011   59.683    0.000    0.656    0.781
   .picvocab_6        0.666    0.014   48.937    0.000    0.666    0.801
   .reading_0         0.565    0.009   64.788    0.000    0.565    0.793
   .reading_2         0.547    0.009   63.658    0.000    0.547    0.811
   .reading_4         0.660    0.011   62.213    0.000    0.660    0.828
   .reading_6         0.717    0.015   48.842    0.000    0.717    0.830

R-Square:
                   Estimate
    flanker_0         0.356
    flanker_2         0.377
    flanker_4         0.424
    flanker_6         0.456
    pattern_0         0.243
    pattern_2         0.313
    pattern_4         0.372
    pattern_6         0.496
    picture_0         0.157
    picture_2         0.156
    picture_4         0.150
    picture_6         0.190
    picvocab_0        0.196
    picvocab_2        0.223
    picvocab_4        0.219
    picvocab_6        0.199
    reading_0         0.207
    reading_2         0.189
    reading_4         0.172
    reading_6         0.170

Weak invariance model

model fit
g.4t.weak.invar <- "#factor loadings # S & S2
               g_etaB =~ lambda_S*flanker_0+
                       lambda_R*pattern_0+
                       lambda_M*picture_0+
                       lambda_P*picvocab_0+
                       lambda_V*reading_0
               g_eta2 =~ lambda_S*flanker_2+
                       lambda_R*pattern_2+
                       lambda_M*picture_2+
                       lambda_P*picvocab_2+
                       lambda_V*reading_2
               g_eta4 =~ lambda_S*flanker_4+
                       lambda_R*pattern_4+
                       lambda_M*picture_4+
                       lambda_P*picvocab_4+
                       lambda_V*reading_4
               g_eta6 =~ lambda_S*flanker_6+
                       lambda_R*pattern_6+
                       lambda_M*picture_6+
                       lambda_P*picvocab_6+
                       lambda_V*reading_6

              #latent variable variances # 1*
                       g_etaB~~1*g_etaB
                       g_eta2~~NA*g_eta2
                       g_eta4~~NA*g_eta4
                       g_eta6~~NA*g_eta6

              #latent variable covariances
                      g_etaB~~g_eta2 + g_eta4 + g_eta6
                      g_eta2~~g_eta4 + g_eta6
                      g_eta4~~g_eta6

              #unique variances
                      flanker_0~~flanker_0
                      flanker_2~~flanker_2
                      flanker_4~~flanker_4
                      flanker_6~~flanker_6
                      pattern_0~~pattern_0
                      pattern_2~~pattern_2
                      pattern_4~~pattern_4
                      pattern_6~~pattern_6
                      picture_0~~picture_0
                      picture_2~~picture_2
                      picture_4~~picture_4
                      picture_6~~picture_6
                      picvocab_0~~picvocab_0
                      picvocab_2~~picvocab_2
                      picvocab_4~~picvocab_4
                      picvocab_6~~picvocab_6
                      reading_0~~reading_0
                      reading_2~~reading_2
                      reading_4~~reading_4
                      reading_6~~reading_6

              #unique covariances
                      # Task across times
                      flanker_0~~flanker_2 + flanker_4 + flanker_6
                      flanker_2~~flanker_4 + flanker_6
                      flanker_4~~flanker_6
                      pattern_0~~pattern_2 + pattern_4 + pattern_6
                      pattern_2~~pattern_4 + pattern_6
                      pattern_4~~pattern_6
                      picture_0~~picture_2 + picture_4 + picture_6
                      picture_2~~picture_4 + picture_6
                      picture_4~~picture_6
                      picvocab_0~~picvocab_2 + picvocab_4 + picvocab_6
                      picvocab_2~~picvocab_4 + picvocab_6
                      picvocab_4~~picvocab_6
                      reading_0~~reading_2 + reading_4 + reading_6
                      reading_2~~reading_4 + reading_6
                      reading_4~~reading_6
                      
                      #Language
                      picvocab_0~~reading_0 + reading_2 + reading_4 + reading_6
                      picvocab_2~~reading_2 + reading_0 + reading_4 + reading_6
                      picvocab_4~~reading_4 + reading_0 + reading_2 + reading_6
                      picvocab_6~~reading_6 + reading_0 + reading_2 + reading_4

              #latent variable intercepts # 0*1
                      g_etaB~0*1
                      g_eta2~0*1
                      g_eta4~0*1
                      g_eta6~0*1

              #observed variable intercepts # S & S2
                      flanker_0~tau_S*1
                      flanker_2~tau_S2*1
                      flanker_4~tau_S4*1
                      flanker_6~tau_S6*1
                      pattern_0~tau_R*1
                      pattern_2~tau_R2*1
                      pattern_4~tau_R4*1
                      pattern_6~tau_R6*1
                      picture_0~tau_M*1
                      picture_2~tau_M2*1
                      picture_4~tau_M4*1
                      picture_6~tau_M6*1
                      picvocab_0~tau_P*1
                      picvocab_2~tau_P2*1
                      picvocab_4~tau_P4*1
                      picvocab_6~tau_P6*1
                      reading_0~tau_V*1
                      reading_2~tau_V2*1
                      reading_4~tau_V4*1
                      reading_6~tau_V6*1"

lavaan(g.4t.weak.invar,
  data = g_factor_5task_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("g_4t_weak.rds")
result
readRDS("g_4t_weak.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("g_4t_weak_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("g_4t_weak.rds"), "cor.lv"))$value
[1] 3.70646468 0.18069567 0.05759720 0.05524245
readRDS("g_4t_weak_result.rds")
lavaan 0.6-19 ended normally after 92 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       115
  Number of equality constraints                    15

                                                  Used       Total
  Number of observations                         11849       11865
  Number of missing patterns                       221            

Model Test User Model:
                                                      
  Test statistic                              2358.146
  Degrees of freedom                               130
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                             79857.953
  Degrees of freedom                               190
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.972
  Tucker-Lewis Index (TLI)                       0.959
                                                      
  Robust Comparative Fit Index (CFI)             0.970
  Robust Tucker-Lewis Index (TLI)                0.957

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -179576.147
  Loglikelihood unrestricted model (H1)    -178397.074
                                                      
  Akaike (AIC)                              359352.293
  Bayesian (BIC)                            360090.293
  Sample-size adjusted Bayesian (SABIC)     359772.505

Root Mean Square Error of Approximation:

  RMSEA                                          0.038
  90 Percent confidence interval - lower         0.037
  90 Percent confidence interval - upper         0.039
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.050
  90 Percent confidence interval - lower         0.048
  90 Percent confidence interval - upper         0.052
  P-value H_0: Robust RMSEA <= 0.050             0.629
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.050

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  g_etaB =~                                                             
    flnkr_0 (lm_S)    0.497    0.008   62.322    0.000    0.497    0.532
    pttrn_0 (lm_R)    0.410    0.007   61.927    0.000    0.410    0.558
    pictr_0 (lm_M)    0.359    0.008   45.823    0.000    0.359    0.414
    pcvcb_0 (lm_P)    0.379    0.009   41.185    0.000    0.379    0.456
    redng_0 (lm_V)    0.346    0.009   38.029    0.000    0.346    0.414
  g_eta2 =~                                                             
    flnkr_2 (lm_S)    0.497    0.008   62.322    0.000    0.511    0.626
    pttrn_2 (lm_R)    0.410    0.007   61.927    0.000    0.421    0.567
    pictr_2 (lm_M)    0.359    0.008   45.823    0.000    0.369    0.405
    pcvcb_2 (lm_P)    0.379    0.009   41.185    0.000    0.390    0.450
    redng_2 (lm_V)    0.346    0.009   38.029    0.000    0.356    0.433
  g_eta4 =~                                                             
    flnkr_4 (lm_S)    0.497    0.008   62.322    0.000    0.555    0.670
    pttrn_4 (lm_R)    0.410    0.007   61.927    0.000    0.457    0.568
    pictr_4 (lm_M)    0.359    0.008   45.823    0.000    0.400    0.370
    pcvcb_4 (lm_P)    0.379    0.009   41.185    0.000    0.423    0.463
    redng_4 (lm_V)    0.346    0.009   38.029    0.000    0.386    0.431
  g_eta6 =~                                                             
    flnkr_6 (lm_S)    0.497    0.008   62.322    0.000    0.584    0.701
    pttrn_6 (lm_R)    0.410    0.007   61.927    0.000    0.481    0.586
    pictr_6 (lm_M)    0.359    0.008   45.823    0.000    0.421    0.397
    pcvcb_6 (lm_P)    0.379    0.009   41.185    0.000    0.445    0.483
    redng_6 (lm_V)    0.346    0.009   38.029    0.000    0.407    0.435

Covariances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  g_etaB ~~                                                             
    g_eta2            0.957    0.013   73.845    0.000    0.931    0.931
    g_eta4            0.997    0.016   63.406    0.000    0.893    0.893
    g_eta6            0.978    0.020   48.061    0.000    0.833    0.833
  g_eta2 ~~                                                             
    g_eta4            1.066    0.023   46.279    0.000    0.929    0.929
    g_eta6            1.080    0.027   40.579    0.000    0.894    0.894
  g_eta4 ~~                                                             
    g_eta6            1.222    0.031   39.195    0.000    0.932    0.932
 .flanker_0 ~~                                                          
   .flanker_2         0.093    0.008   11.972    0.000    0.093    0.185
   .flanker_4         0.051    0.008    6.419    0.000    0.051    0.105
   .flanker_6         0.044    0.009    4.747    0.000    0.044    0.094
 .flanker_2 ~~                                                          
   .flanker_4         0.093    0.008   12.092    0.000    0.093    0.237
   .flanker_6         0.073    0.008    8.807    0.000    0.073    0.194
 .flanker_4 ~~                                                          
   .flanker_6         0.103    0.009   10.918    0.000    0.103    0.282
 .pattern_0 ~~                                                          
   .pattern_2         0.117    0.005   21.937    0.000    0.117    0.314
   .pattern_4         0.084    0.006   14.260    0.000    0.084    0.208
   .pattern_6         0.072    0.007   10.326    0.000    0.072    0.178
 .pattern_2 ~~                                                          
   .pattern_4         0.144    0.007   21.384    0.000    0.144    0.354
   .pattern_6         0.122    0.007   16.509    0.000    0.122    0.301
 .pattern_4 ~~                                                          
   .pattern_6         0.174    0.009   19.374    0.000    0.174    0.396
 .picture_0 ~~                                                          
   .picture_2         0.227    0.008   30.093    0.000    0.227    0.345
   .picture_4         0.230    0.009   24.848    0.000    0.230    0.289
   .picture_6         0.262    0.011   22.962    0.000    0.262    0.340
 .picture_2 ~~                                                          
   .picture_4         0.253    0.010   24.975    0.000    0.253    0.302
   .picture_6         0.286    0.013   21.915    0.000    0.286    0.352
 .picture_4 ~~                                                          
   .picture_6         0.357    0.015   23.311    0.000    0.357    0.364
 .picvocab_0 ~~                                                         
   .picvocab_2        0.382    0.008   49.271    0.000    0.382    0.668
   .picvocab_4        0.381    0.008   47.105    0.000    0.381    0.637
   .picvocab_6        0.371    0.009   42.022    0.000    0.371    0.623
 .picvocab_2 ~~                                                         
   .picvocab_4        0.452    0.009   50.218    0.000    0.452    0.720
   .picvocab_6        0.446    0.010   45.431    0.000    0.446    0.715
 .picvocab_4 ~~                                                         
   .picvocab_6        0.491    0.011   46.173    0.000    0.491    0.751
 .reading_0 ~~                                                          
   .reading_2         0.405    0.008   53.258    0.000    0.405    0.719
   .reading_4         0.406    0.008   49.661    0.000    0.406    0.660
   .reading_6         0.417    0.010   43.424    0.000    0.417    0.652
 .reading_2 ~~                                                          
   .reading_4         0.414    0.008   50.508    0.000    0.414    0.691
   .reading_6         0.429    0.010   44.841    0.000    0.429    0.689
 .reading_4 ~~                                                          
   .reading_6         0.453    0.011   42.834    0.000    0.453    0.666
 .picvocab_0 ~~                                                         
   .reading_0         0.228    0.007   33.357    0.000    0.228    0.405
 .picvocab_2 ~~                                                         
   .reading_2         0.282    0.007   38.106    0.000    0.282    0.493
 .picvocab_4 ~~                                                         
   .reading_4         0.322    0.009   37.083    0.000    0.322    0.491
 .picvocab_6 ~~                                                         
   .reading_6         0.359    0.011   32.229    0.000    0.359    0.530
 .picvocab_0 ~~                                                         
   .reading_2         0.239    0.007   35.454    0.000    0.239    0.436
   .reading_4         0.254    0.007   34.426    0.000    0.254    0.425
   .reading_6         0.281    0.009   31.980    0.000    0.281    0.452
 .reading_0 ~~                                                          
   .picvocab_2        0.261    0.007   35.758    0.000    0.261    0.443
 .picvocab_2 ~~                                                         
   .reading_4         0.304    0.008   37.687    0.000    0.304    0.485
   .reading_6         0.335    0.010   34.888    0.000    0.335    0.515
 .reading_0 ~~                                                          
   .picvocab_4        0.266    0.008   34.400    0.000    0.266    0.431
 .reading_2 ~~                                                          
   .picvocab_4        0.290    0.008   37.224    0.000    0.290    0.483
 .picvocab_4 ~~                                                         
   .reading_6         0.359    0.010   34.865    0.000    0.359    0.528
 .reading_0 ~~                                                          
   .picvocab_6        0.249    0.009   28.804    0.000    0.249    0.406
 .reading_2 ~~                                                          
   .picvocab_6        0.273    0.009   31.570    0.000    0.273    0.458
 .reading_4 ~~                                                          
   .picvocab_6        0.312    0.010   32.344    0.000    0.312    0.479

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    g_etaB            0.000                               0.000    0.000
    g_eta2            0.000                               0.000    0.000
    g_eta4            0.000                               0.000    0.000
    g_eta6            0.000                               0.000    0.000
   .flnkr_0 (ta_S)   -0.598    0.009  -69.275    0.000   -0.598   -0.640
   .flnkr_2 (t_S2)    0.024    0.009    2.758    0.006    0.024    0.029
   .flnkr_4 (t_S4)    0.426    0.009   47.100    0.000    0.426    0.515
   .flnkr_6 (t_S6)    0.666    0.011   62.118    0.000    0.666    0.800
   .pttrn_0 (ta_R)   -0.744    0.007 -109.645    0.000   -0.744   -1.013
   .pttrn_2 (t_R2)   -0.007    0.008   -0.934    0.350   -0.007   -0.010
   .pttrn_4 (t_R4)    0.536    0.009   60.663    0.000    0.536    0.666
   .pttrn_6 (t_R6)    0.941    0.011   87.812    0.000    0.941    1.146
   .pictr_0 (ta_M)   -0.366    0.008  -45.732    0.000   -0.366   -0.422
   .pictr_2 (t_M2)    0.030    0.009    3.364    0.001    0.030    0.033
   .pictr_4 (t_M4)    0.238    0.011   21.638    0.000    0.238    0.220
   .pictr_6 (t_M6)    0.223    0.014   16.085    0.000    0.223    0.210
   .pcvcb_0 (ta_P)   -0.562    0.008  -73.399    0.000   -0.562   -0.676
   .pcvcb_2 (t_P2)   -0.122    0.008  -14.964    0.000   -0.122   -0.141
   .pcvcb_4 (t_P4)    0.375    0.009   42.429    0.000    0.375    0.410
   .pcvcb_6 (t_P6)    0.664    0.010   64.303    0.000    0.664    0.721
   .redng_0 (ta_V)   -0.600    0.008  -77.918    0.000   -0.600   -0.718
   .redng_2 (t_V2)   -0.117    0.008  -15.062    0.000   -0.117   -0.142
   .redng_4 (t_V4)    0.419    0.009   48.110    0.000    0.419    0.467
   .redng_6 (t_V6)    0.707    0.011   66.165    0.000    0.707    0.757

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    g_etaB            1.000                               1.000    1.000
    g_eta2            1.058    0.024   44.420    0.000    1.000    1.000
    g_eta4            1.246    0.031   40.298    0.000    1.000    1.000
    g_eta6            1.380    0.042   33.116    0.000    1.000    1.000
   .flanker_0         0.626    0.011   59.132    0.000    0.626    0.717
   .flanker_2         0.405    0.009   45.258    0.000    0.405    0.608
   .flanker_4         0.378    0.010   39.608    0.000    0.378    0.551
   .flanker_6         0.352    0.011   30.841    0.000    0.352    0.508
   .pattern_0         0.371    0.006   60.189    0.000    0.371    0.689
   .pattern_2         0.375    0.007   51.267    0.000    0.375    0.679
   .pattern_4         0.439    0.009   48.465    0.000    0.439    0.678
   .pattern_6         0.442    0.012   38.389    0.000    0.442    0.656
   .picture_0         0.622    0.009   69.189    0.000    0.622    0.828
   .picture_2         0.693    0.011   65.882    0.000    0.693    0.836
   .picture_4         1.011    0.016   63.488    0.000    1.011    0.863
   .picture_6         0.950    0.020   46.444    0.000    0.950    0.843
   .picvocab_0        0.546    0.008   65.194    0.000    0.546    0.792
   .picvocab_2        0.599    0.010   62.282    0.000    0.599    0.798
   .picvocab_4        0.656    0.011   60.072    0.000    0.656    0.786
   .picvocab_6        0.651    0.013   48.386    0.000    0.651    0.767
   .reading_0         0.578    0.009   66.165    0.000    0.578    0.828
   .reading_2         0.548    0.009   63.861    0.000    0.548    0.812
   .reading_4         0.655    0.011   62.181    0.000    0.655    0.814
   .reading_6         0.707    0.015   48.716    0.000    0.707    0.810

R-Square:
                   Estimate
    flanker_0         0.283
    flanker_2         0.392
    flanker_4         0.449
    flanker_6         0.492
    pattern_0         0.311
    pattern_2         0.321
    pattern_4         0.322
    pattern_6         0.344
    picture_0         0.172
    picture_2         0.164
    picture_4         0.137
    picture_6         0.157
    picvocab_0        0.208
    picvocab_2        0.202
    picvocab_4        0.214
    picvocab_6        0.233
    reading_0         0.172
    reading_2         0.188
    reading_4         0.186
    reading_6         0.190

Strong invariance model

model fit
g.4t.strong.invar <- "#factor loadings # S & S2
               g_etaB =~ lambda_S*flanker_0+
                       lambda_R*pattern_0+
                       lambda_M*picture_0+
                       lambda_P*picvocab_0+
                       lambda_V*reading_0
               g_eta2 =~ lambda_S*flanker_2+
                       lambda_R*pattern_2+
                       lambda_M*picture_2+
                       lambda_P*picvocab_2+
                       lambda_V*reading_2
               g_eta4 =~ lambda_S*flanker_4+
                       lambda_R*pattern_4+
                       lambda_M*picture_4+
                       lambda_P*picvocab_4+
                       lambda_V*reading_4
               g_eta6 =~ lambda_S*flanker_6+
                       lambda_R*pattern_6+
                       lambda_M*picture_6+
                       lambda_P*picvocab_6+
                       lambda_V*reading_6

              #latent variable variances # 1*
                       g_etaB~~1*g_etaB
                       g_eta2~~NA*g_eta2
                       g_eta4~~NA*g_eta4
                       g_eta6~~NA*g_eta6

               #latent variable covariances
                      g_etaB~~g_eta2 + g_eta4 + g_eta6
                      g_eta2~~g_eta4 + g_eta6
                      g_eta4~~g_eta6

              #unique variances
                      flanker_0~~flanker_0
                      flanker_2~~flanker_2
                      flanker_4~~flanker_4
                      flanker_6~~flanker_6

                      pattern_0~~pattern_0
                      pattern_2~~pattern_2
                      pattern_4~~pattern_4
                      pattern_6~~pattern_6

                      picture_0~~picture_0
                      picture_2~~picture_2
                      picture_4~~picture_4
                      picture_6~~picture_6

                      picvocab_0~~picvocab_0
                      picvocab_2~~picvocab_2
                      picvocab_4~~picvocab_4
                      picvocab_6~~picvocab_6

                      reading_0~~reading_0
                      reading_2~~reading_2
                      reading_4~~reading_4
                      reading_6~~reading_6

              #unique covariances
                      # Task across times
                      flanker_0~~flanker_2 + flanker_4 + flanker_6
                      flanker_2~~flanker_4 + flanker_6
                      flanker_4~~flanker_6

                      pattern_0~~pattern_2 + pattern_4 + pattern_6
                      pattern_2~~pattern_4 + pattern_6
                      pattern_4~~pattern_6

                      picture_0~~picture_2 + picture_4 + picture_6
                      picture_2~~picture_4 + picture_6
                      picture_4~~picture_6

                      picvocab_0~~picvocab_2 + picvocab_4 + picvocab_6
                      picvocab_2~~picvocab_4 + picvocab_6
                      picvocab_4~~picvocab_6

                      reading_0~~reading_2 + reading_4 + reading_6
                      reading_2~~reading_4 + reading_6
                      reading_4~~reading_6

                      #Language
                      picvocab_0~~reading_0 + reading_2 + reading_4 + reading_6
                      picvocab_2~~reading_2 + reading_0 + reading_4 + reading_6
                      picvocab_4~~reading_4 + reading_0 + reading_2 + reading_6
                      picvocab_6~~reading_6 + reading_0 + reading_2 + reading_4

              #latent variable intercepts # m*1
                      g_etaB~0*1
                      g_eta2~m2*1
                      g_eta4~m4*1
                      g_eta6~m6*1

              #observed variable intercepts # S & S2
                      flanker_0~tau_S*1
                      flanker_2~tau_S*1
                      flanker_4~tau_S*1
                      flanker_6~tau_S*1
                      pattern_0~tau_R*1
                      pattern_2~tau_R*1
                      pattern_4~tau_R*1
                      pattern_6~tau_R*1
                      picture_0~tau_M*1
                      picture_2~tau_M*1
                      picture_4~tau_M*1
                      picture_6~tau_M*1
                      picvocab_0~tau_P*1
                      picvocab_2~tau_P*1
                      picvocab_4~tau_P*1
                      picvocab_6~tau_P*1
                      reading_0~tau_V*1
                      reading_2~tau_V*1
                      reading_4~tau_V*1
                      reading_6~tau_V*1"

lavaan(g.4t.strong.invar,
  data = g_factor_5task_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("g_4t_strong.rds")
result
readRDS("g_4t_strong.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("g_4t_strong_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("g_4t_strong.rds"), "cor.lv"))$value
[1] 3.73491679 0.16816756 0.05214977 0.04476588
readRDS("g_4t_strong_result.rds")
lavaan 0.6-19 ended normally after 110 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       118
  Number of equality constraints                    30

                                                  Used       Total
  Number of observations                         11849       11865
  Number of missing patterns                       221            

Model Test User Model:
                                                      
  Test statistic                              4058.184
  Degrees of freedom                               142
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                             79857.953
  Degrees of freedom                               190
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.951
  Tucker-Lewis Index (TLI)                       0.934
                                                      
  Robust Comparative Fit Index (CFI)             0.950
  Robust Tucker-Lewis Index (TLI)                0.933

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -180426.166
  Loglikelihood unrestricted model (H1)    -178397.074
                                                      
  Akaike (AIC)                              361028.332
  Bayesian (BIC)                            361677.771
  Sample-size adjusted Bayesian (SABIC)     361398.118

Root Mean Square Error of Approximation:

  RMSEA                                          0.048
  90 Percent confidence interval - lower         0.047
  90 Percent confidence interval - upper         0.050
  P-value H_0: RMSEA <= 0.050                    0.988
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.062
  90 Percent confidence interval - lower         0.060
  90 Percent confidence interval - upper         0.064
  P-value H_0: Robust RMSEA <= 0.050             0.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.079

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  g_etaB =~                                                             
    flnkr_0 (lm_S)    0.404    0.005   77.613    0.000    0.404    0.439
    pttrn_0 (lm_R)    0.486    0.005   88.816    0.000    0.486    0.642
    pictr_0 (lm_M)    0.238    0.004   57.832    0.000    0.238    0.282
    pcvcb_0 (lm_P)    0.368    0.005   78.730    0.000    0.368    0.440
    redng_0 (lm_V)    0.385    0.005   79.855    0.000    0.385    0.452
  g_eta2 =~                                                             
    flnkr_2 (lm_S)    0.404    0.005   77.613    0.000    0.417    0.524
    pttrn_2 (lm_R)    0.486    0.005   88.816    0.000    0.502    0.655
    pictr_2 (lm_M)    0.238    0.004   57.832    0.000    0.246    0.276
    pcvcb_2 (lm_P)    0.368    0.005   78.730    0.000    0.380    0.435
    redng_2 (lm_V)    0.385    0.005   79.855    0.000    0.398    0.472
  g_eta4 =~                                                             
    flnkr_4 (lm_S)    0.404    0.005   77.613    0.000    0.453    0.568
    pttrn_4 (lm_R)    0.486    0.005   88.816    0.000    0.545    0.660
    pictr_4 (lm_M)    0.238    0.004   57.832    0.000    0.267    0.251
    pcvcb_4 (lm_P)    0.368    0.005   78.730    0.000    0.413    0.447
    redng_4 (lm_V)    0.385    0.005   79.855    0.000    0.432    0.469
  g_eta6 =~                                                             
    flnkr_6 (lm_S)    0.404    0.005   77.613    0.000    0.479    0.597
    pttrn_6 (lm_R)    0.486    0.005   88.816    0.000    0.576    0.684
    pictr_6 (lm_M)    0.238    0.004   57.832    0.000    0.282    0.268
    pcvcb_6 (lm_P)    0.368    0.005   78.730    0.000    0.436    0.468
    redng_6 (lm_V)    0.385    0.005   79.855    0.000    0.457    0.474

Covariances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  g_etaB ~~                                                             
    g_eta2            0.972    0.013   75.568    0.000    0.942    0.942
    g_eta4            1.011    0.015   65.327    0.000    0.901    0.901
    g_eta6            1.000    0.020   49.617    0.000    0.843    0.843
  g_eta2 ~~                                                             
    g_eta4            1.088    0.023   47.296    0.000    0.940    0.940
    g_eta6            1.108    0.027   41.559    0.000    0.906    0.906
  g_eta4 ~~                                                             
    g_eta6            1.244    0.031   39.728    0.000    0.936    0.936
 .flanker_0 ~~                                                          
   .flanker_2         0.139    0.007   18.944    0.000    0.139    0.248
   .flanker_4         0.095    0.008   12.593    0.000    0.095    0.176
   .flanker_6         0.082    0.009    9.029    0.000    0.082    0.155
 .flanker_2 ~~                                                          
   .flanker_4         0.134    0.007   18.560    0.000    0.134    0.302
   .flanker_6         0.110    0.008   13.748    0.000    0.110    0.253
 .flanker_4 ~~                                                          
   .flanker_6         0.151    0.009   16.871    0.000    0.151    0.357
 .pattern_0 ~~                                                          
   .pattern_2         0.078    0.005   14.295    0.000    0.078    0.232
   .pattern_4         0.045    0.006    7.471    0.000    0.045    0.125
   .pattern_6         0.028    0.007    3.961    0.000    0.028    0.079
 .pattern_2 ~~                                                          
   .pattern_4         0.098    0.007   14.379    0.000    0.098    0.272
   .pattern_6         0.074    0.008    9.869    0.000    0.074    0.209
 .pattern_4 ~~                                                          
   .pattern_6         0.117    0.009   13.074    0.000    0.117    0.307
 .picture_0 ~~                                                          
   .picture_2         0.255    0.007   34.224    0.000    0.255    0.368
   .picture_4         0.259    0.009   28.174    0.000    0.259    0.312
   .picture_6         0.283    0.012   23.939    0.000    0.283    0.345
 .picture_2 ~~                                                          
   .picture_4         0.284    0.010   28.037    0.000    0.284    0.323
   .picture_6         0.284    0.013   21.384    0.000    0.284    0.328
 .picture_4 ~~                                                          
   .picture_6         0.398    0.016   25.426    0.000    0.398    0.383
 .picvocab_0 ~~                                                         
   .picvocab_2        0.397    0.007   53.097    0.000    0.397    0.672
   .picvocab_4        0.401    0.008   50.727    0.000    0.401    0.647
   .picvocab_6        0.394    0.009   44.562    0.000    0.394    0.636
 .picvocab_2 ~~                                                         
   .picvocab_4        0.472    0.009   54.179    0.000    0.472    0.726
   .picvocab_6        0.466    0.010   48.026    0.000    0.466    0.719
 .picvocab_4 ~~                                                         
   .picvocab_6        0.517    0.011   48.959    0.000    0.517    0.759
 .reading_0 ~~                                                          
   .reading_2         0.406    0.007   55.074    0.000    0.406    0.718
   .reading_4         0.410    0.008   51.183    0.000    0.410    0.664
   .reading_6         0.425    0.010   44.471    0.000    0.425    0.659
 .reading_2 ~~                                                          
   .reading_4         0.417    0.008   51.619    0.000    0.417    0.691
   .reading_6         0.434    0.010   45.496    0.000    0.434    0.690
 .reading_4 ~~                                                          
   .reading_6         0.463    0.011   43.538    0.000    0.463    0.673
 .picvocab_0 ~~                                                         
   .reading_0         0.237    0.006   36.515    0.000    0.237    0.415
   .reading_2         0.246    0.007   37.560    0.000    0.246    0.441
   .reading_4         0.265    0.007   36.424    0.000    0.265    0.435
   .reading_6         0.298    0.009   33.749    0.000    0.298    0.468
 .picvocab_2 ~~                                                         
   .reading_2         0.293    0.007   40.873    0.000    0.293    0.501
 .reading_0 ~~                                                          
   .picvocab_2        0.269    0.007   38.396    0.000    0.269    0.449
 .picvocab_2 ~~                                                         
   .reading_4         0.313    0.008   39.661    0.000    0.313    0.489
   .reading_6         0.348    0.010   36.313    0.000    0.348    0.521
 .picvocab_4 ~~                                                         
   .reading_4         0.335    0.009   39.328    0.000    0.335    0.499
 .reading_0 ~~                                                          
   .picvocab_4        0.277    0.007   37.031    0.000    0.277    0.442
 .reading_2 ~~                                                          
   .picvocab_4        0.301    0.008   39.551    0.000    0.301    0.490
 .picvocab_4 ~~                                                         
   .reading_6         0.377    0.010   36.614    0.000    0.377    0.539
 .picvocab_6 ~~                                                         
   .reading_6         0.379    0.011   33.643    0.000    0.379    0.542
 .reading_0 ~~                                                          
   .picvocab_6        0.263    0.009   30.683    0.000    0.263    0.420
 .reading_2 ~~                                                          
   .picvocab_6        0.284    0.009   33.039    0.000    0.284    0.464
 .reading_4 ~~                                                          
   .picvocab_6        0.328    0.010   33.946    0.000    0.328    0.490

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    g_etaB            0.000                               0.000    0.000
    g_eta2    (m2)    1.362    0.018   75.992    0.000    1.319    1.319
    g_eta4    (m4)    2.598    0.031   83.331    0.000    2.317    2.317
    g_eta6    (m6)    3.312    0.040   83.008    0.000    2.794    2.794
   .flnkr_0 (ta_S)   -0.595    0.008  -75.846    0.000   -0.595   -0.648
   .flnkr_2 (ta_S)   -0.595    0.008  -75.846    0.000   -0.595   -0.749
   .flnkr_4 (ta_S)   -0.595    0.008  -75.846    0.000   -0.595   -0.747
   .flnkr_6 (ta_S)   -0.595    0.008  -75.846    0.000   -0.595   -0.743
   .pttrn_0 (ta_R)   -0.714    0.007 -103.667    0.000   -0.714   -0.944
   .pttrn_2 (ta_R)   -0.714    0.007 -103.667    0.000   -0.714   -0.933
   .pttrn_4 (ta_R)   -0.714    0.007 -103.667    0.000   -0.714   -0.865
   .pttrn_6 (ta_R)   -0.714    0.007 -103.667    0.000   -0.714   -0.848
   .pictr_0 (ta_M)   -0.358    0.007  -48.083    0.000   -0.358   -0.424
   .pictr_2 (ta_M)   -0.358    0.007  -48.083    0.000   -0.358   -0.402
   .pictr_4 (ta_M)   -0.358    0.007  -48.083    0.000   -0.358   -0.337
   .pictr_6 (ta_M)   -0.358    0.007  -48.083    0.000   -0.358   -0.340
   .pcvcb_0 (ta_P)   -0.585    0.008  -76.695    0.000   -0.585   -0.700
   .pcvcb_2 (ta_P)   -0.585    0.008  -76.695    0.000   -0.585   -0.669
   .pcvcb_4 (ta_P)   -0.585    0.008  -76.695    0.000   -0.585   -0.633
   .pcvcb_6 (ta_P)   -0.585    0.008  -76.695    0.000   -0.585   -0.627
   .redng_0 (ta_V)   -0.606    0.008  -78.537    0.000   -0.606   -0.711
   .redng_2 (ta_V)   -0.606    0.008  -78.537    0.000   -0.606   -0.719
   .redng_4 (ta_V)   -0.606    0.008  -78.537    0.000   -0.606   -0.659
   .redng_6 (ta_V)   -0.606    0.008  -78.537    0.000   -0.606   -0.630

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    g_etaB            1.000                               1.000    1.000
    g_eta2            1.065    0.024   44.673    0.000    1.000    1.000
    g_eta4            1.257    0.031   40.683    0.000    1.000    1.000
    g_eta6            1.405    0.042   33.386    0.000    1.000    1.000
   .flanker_0         0.682    0.010   68.309    0.000    0.682    0.807
   .flanker_2         0.459    0.008   54.130    0.000    0.459    0.725
   .flanker_4         0.431    0.009   49.358    0.000    0.431    0.678
   .flanker_6         0.413    0.011   38.948    0.000    0.413    0.643
   .pattern_0         0.336    0.006   53.034    0.000    0.336    0.587
   .pattern_2         0.335    0.007   45.144    0.000    0.335    0.571
   .pattern_4         0.385    0.009   43.060    0.000    0.385    0.564
   .pattern_6         0.377    0.011   33.109    0.000    0.377    0.532
   .picture_0         0.654    0.009   73.624    0.000    0.654    0.920
   .picture_2         0.731    0.011   69.378    0.000    0.731    0.924
   .picture_4         1.056    0.016   66.345    0.000    1.056    0.937
   .picture_6         1.026    0.021   48.197    0.000    1.026    0.928
   .picvocab_0        0.563    0.008   69.317    0.000    0.563    0.806
   .picvocab_2        0.619    0.009   66.396    0.000    0.619    0.811
   .picvocab_4        0.682    0.011   63.670    0.000    0.682    0.800
   .picvocab_6        0.680    0.014   50.069    0.000    0.680    0.781
   .reading_0         0.578    0.008   68.886    0.000    0.578    0.796
   .reading_2         0.552    0.008   65.298    0.000    0.552    0.777
   .reading_4         0.660    0.011   62.786    0.000    0.660    0.780
   .reading_6         0.718    0.015   48.804    0.000    0.718    0.775

R-Square:
                   Estimate
    flanker_0         0.193
    flanker_2         0.275
    flanker_4         0.322
    flanker_6         0.357
    pattern_0         0.413
    pattern_2         0.429
    pattern_4         0.436
    pattern_6         0.468
    picture_0         0.080
    picture_2         0.076
    picture_4         0.063
    picture_6         0.072
    picvocab_0        0.194
    picvocab_2        0.189
    picvocab_4        0.200
    picvocab_6        0.219
    reading_0         0.204
    reading_2         0.223
    reading_4         0.220
    reading_6         0.225

Latent growth curve model

model fit
lg.g.4t.strong.invar <- "#factor loadings # S & S2
               g_etaB =~ 1*flanker_0+
                       lambda_R*pattern_0+
                       lambda_M*picture_0+
                       lambda_P*picvocab_0+
                       lambda_V*reading_0
               g_eta2 =~ 1*flanker_2+
                       lambda_R*pattern_2+
                       lambda_M*picture_2+
                       lambda_P*picvocab_2+
                       lambda_V*reading_2
               g_eta4 =~ 1*flanker_4+
                       lambda_R*pattern_4+
                       lambda_M*picture_4+
                       lambda_P*picvocab_4+
                       lambda_V*reading_4
               g_eta6 =~ 1*flanker_6+
                       lambda_R*pattern_6+
                       lambda_M*picture_6+
                       lambda_P*picvocab_6+
                       lambda_V*reading_6

              #latent variable variances
                       g_etaB~~NA*g_etaB
                       g_eta2~~NA*g_eta2
                       g_eta4~~NA*g_eta4
                       g_eta6~~NA*g_eta6

              #unique variances
                      flanker_0~~flanker_0
                      flanker_2~~flanker_2
                      flanker_4~~flanker_4
                      flanker_6~~flanker_6

                      pattern_0~~pattern_0
                      pattern_2~~pattern_2
                      pattern_4~~pattern_4
                      pattern_6~~pattern_6

                      picture_0~~picture_0
                      picture_2~~picture_2
                      picture_4~~picture_4
                      picture_6~~picture_6

                      picvocab_0~~picvocab_0
                      picvocab_2~~picvocab_2
                      picvocab_4~~picvocab_4
                      picvocab_6~~picvocab_6

                      reading_0~~reading_0
                      reading_2~~reading_2
                      reading_4~~reading_4
                      reading_6~~reading_6

              #unique covariances
                      # Task across times
                      flanker_0~~flanker_2 + flanker_4 + flanker_6
                      flanker_2~~flanker_4 + flanker_6
                      flanker_4~~flanker_6

                      pattern_0~~pattern_2 + pattern_4 + pattern_6
                      pattern_2~~pattern_4 + pattern_6
                      pattern_4~~pattern_6

                      picture_0~~picture_2 + picture_4 + picture_6
                      picture_2~~picture_4 + picture_6
                      picture_4~~picture_6

                      picvocab_0~~picvocab_2 + picvocab_4 + picvocab_6
                      picvocab_2~~picvocab_4 + picvocab_6
                      picvocab_4~~picvocab_6

                      reading_0~~reading_2 + reading_4 + reading_6
                      reading_2~~reading_4 + reading_6
                      reading_4~~reading_6

                      #Language
                      picvocab_0~~reading_0 + reading_2 + reading_4 + reading_6
                      picvocab_2~~reading_2 + reading_0 + reading_4 + reading_6
                      picvocab_4~~reading_4 + reading_0 + reading_2 + reading_6
                      picvocab_6~~reading_6 + reading_0 + reading_2 + reading_4

              #observed variable intercepts # S & S2
                      flanker_0~tau_S*1
                      flanker_2~tau_S*1
                      flanker_4~tau_S*1
                      flanker_6~tau_S*1
                      pattern_0~tau_R*1
                      pattern_2~tau_R*1
                      pattern_4~tau_R*1
                      pattern_6~tau_R*1
                      picture_0~tau_M*1
                      picture_2~tau_M*1
                      picture_4~tau_M*1
                      picture_6~tau_M*1
                      picvocab_0~tau_P*1
                      picvocab_2~tau_P*1
                      picvocab_4~tau_P*1
                      picvocab_6~tau_P*1
                      reading_0~tau_V*1
                      reading_2~tau_V*1
                      reading_4~tau_V*1
                      reading_6~tau_V*1

                      #latent basis model
                      g_i =~    1*g_etaB + 1*g_eta2 + 1*g_eta4 + 1*g_eta6
                      g_s =~    0*g_etaB + 1*g_eta2 + 2*g_eta4 + 3*g_eta6

                      g_i~~NA*g_i
                      g_s~~NA*g_s

                      g_i~~g_s

                      g_i~1
                      g_s~1

                      g_etaB~0*1
                      g_eta2~0*1
                      g_eta4~0*1
                      g_eta6~0*1"

lavaan(lg.g.4t.strong.invar,
  data = g_factor_5task_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("lg_g_4t_strong.rds")
result
readRDS("lg_g_4t_strong.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("lgcm_g_4t_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("lg_g_4t_strong.rds"), "cor.lv"))$value
[1] 4.74209664 0.94347328 0.15816137 0.07995776 0.05973178 0.01657917
readRDS("lgcm_g_4t_result.rds")
lavaan 0.6-19 ended normally after 79 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       111
  Number of equality constraints                    27

                                                  Used       Total
  Number of observations                         11849       11865
  Number of missing patterns                       221            

Model Test User Model:
                                                      
  Test statistic                              5593.511
  Degrees of freedom                               146
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                             79857.953
  Degrees of freedom                               190
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.932
  Tucker-Lewis Index (TLI)                       0.911
                                                      
  Robust Comparative Fit Index (CFI)             0.924
  Robust Tucker-Lewis Index (TLI)                0.901

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -181193.829
  Loglikelihood unrestricted model (H1)    -178397.074
                                                      
  Akaike (AIC)                              362555.658
  Bayesian (BIC)                            363175.578
  Sample-size adjusted Bayesian (SABIC)     362908.635

Root Mean Square Error of Approximation:

  RMSEA                                          0.056
  90 Percent confidence interval - lower         0.055
  90 Percent confidence interval - upper         0.057
  P-value H_0: RMSEA <= 0.050                    0.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.075
  90 Percent confidence interval - lower         0.073
  90 Percent confidence interval - upper         0.077
  P-value H_0: Robust RMSEA <= 0.050             0.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.084

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  g_etaB =~                                                             
    flnkr_0           1.000                               0.403    0.438
    pttrn_0 (lm_R)    1.218    0.011  112.657    0.000    0.491    0.646
    pictr_0 (lm_M)    0.597    0.009   64.674    0.000    0.241    0.286
    pcvcb_0 (lm_P)    0.929    0.009  107.722    0.000    0.375    0.447
    redng_0 (lm_V)    0.980    0.009  111.420    0.000    0.395    0.462
  g_eta2 =~                                                             
    flnkr_2           1.000                               0.412    0.517
    pttrn_2 (lm_R)    1.218    0.011  112.657    0.000    0.502    0.653
    pictr_2 (lm_M)    0.597    0.009   64.674    0.000    0.246    0.276
    pcvcb_2 (lm_P)    0.929    0.009  107.722    0.000    0.383    0.438
    redng_2 (lm_V)    0.980    0.009  111.420    0.000    0.404    0.479
  g_eta4 =~                                                             
    flnkr_4           1.000                               0.442    0.557
    pttrn_4 (lm_R)    1.218    0.011  112.657    0.000    0.539    0.655
    pictr_4 (lm_M)    0.597    0.009   64.674    0.000    0.264    0.249
    pcvcb_4 (lm_P)    0.929    0.009  107.722    0.000    0.411    0.444
    redng_4 (lm_V)    0.980    0.009  111.420    0.000    0.433    0.469
  g_eta6 =~                                                             
    flnkr_6           1.000                               0.495    0.609
    pttrn_6 (lm_R)    1.218    0.011  112.657    0.000    0.603    0.706
    pictr_6 (lm_M)    0.597    0.009   64.674    0.000    0.296    0.279
    pcvcb_6 (lm_P)    0.929    0.009  107.722    0.000    0.460    0.492
    redng_6 (lm_V)    0.980    0.009  111.420    0.000    0.485    0.500
  g_i =~                                                                
    g_etaB            1.000                               0.962    0.962
    g_eta2            1.000                               0.941    0.941
    g_eta4            1.000                               0.878    0.878
    g_eta6            1.000                               0.784    0.784
  g_s =~                                                                
    g_etaB            0.000                               0.000    0.000
    g_eta2            1.000                               0.125    0.125
    g_eta4            2.000                               0.233    0.233
    g_eta6            3.000                               0.313    0.313

Covariances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .flanker_0 ~~                                                          
   .flanker_2         0.138    0.007   18.757    0.000    0.138    0.244
   .flanker_4         0.098    0.008   13.077    0.000    0.098    0.180
   .flanker_6         0.087    0.009    9.342    0.000    0.087    0.162
 .flanker_2 ~~                                                          
   .flanker_4         0.144    0.007   19.867    0.000    0.144    0.321
   .flanker_6         0.102    0.008   12.568    0.000    0.102    0.231
 .flanker_4 ~~                                                          
   .flanker_6         0.152    0.009   16.848    0.000    0.152    0.358
 .pattern_0 ~~                                                          
   .pattern_2         0.073    0.005   13.347    0.000    0.073    0.216
   .pattern_4         0.040    0.006    6.702    0.000    0.040    0.110
   .pattern_6         0.032    0.007    4.543    0.000    0.032    0.092
 .pattern_2 ~~                                                          
   .pattern_4         0.105    0.007   15.262    0.000    0.105    0.289
   .pattern_6         0.073    0.008    9.747    0.000    0.073    0.208
 .pattern_4 ~~                                                          
   .pattern_6         0.126    0.009   14.122    0.000    0.126    0.335
 .picture_0 ~~                                                          
   .picture_2         0.253    0.007   34.003    0.000    0.253    0.366
   .picture_4         0.259    0.009   28.239    0.000    0.259    0.312
   .picture_6         0.284    0.012   23.735    0.000    0.284    0.345
 .picture_2 ~~                                                          
   .picture_4         0.288    0.010   28.241    0.000    0.288    0.327
   .picture_6         0.269    0.013   20.069    0.000    0.269    0.309
 .picture_4 ~~                                                          
   .picture_6         0.393    0.016   24.846    0.000    0.393    0.375
 .picvocab_0 ~~                                                         
   .picvocab_2        0.399    0.007   53.289    0.000    0.399    0.677
   .picvocab_4        0.403    0.008   50.757    0.000    0.403    0.648
   .picvocab_6        0.382    0.009   43.340    0.000    0.382    0.627
 .picvocab_2 ~~                                                         
   .picvocab_4        0.475    0.009   54.148    0.000    0.475    0.728
   .picvocab_6        0.462    0.010   47.545    0.000    0.462    0.721
 .picvocab_4 ~~                                                         
   .picvocab_6        0.511    0.011   48.475    0.000    0.511    0.757
 .reading_0 ~~                                                          
   .reading_2         0.406    0.007   55.045    0.000    0.406    0.723
   .reading_4         0.410    0.008   50.887    0.000    0.410    0.662
   .reading_6         0.419    0.010   43.661    0.000    0.419    0.658
 .reading_2 ~~                                                          
   .reading_4         0.419    0.008   51.401    0.000    0.419    0.694
   .reading_6         0.436    0.010   45.385    0.000    0.436    0.700
 .reading_4 ~~                                                          
   .reading_6         0.459    0.011   43.012    0.000    0.459    0.670
 .picvocab_0 ~~                                                         
   .reading_0         0.235    0.007   36.084    0.000    0.235    0.413
   .reading_2         0.248    0.007   37.774    0.000    0.248    0.446
   .reading_4         0.266    0.007   36.339    0.000    0.266    0.436
   .reading_6         0.285    0.009   32.253    0.000    0.285    0.453
 .picvocab_2 ~~                                                         
   .reading_2         0.291    0.007   40.587    0.000    0.291    0.499
 .reading_0 ~~                                                          
   .picvocab_2        0.269    0.007   38.444    0.000    0.269    0.452
 .picvocab_2 ~~                                                         
   .reading_4         0.316    0.008   39.672    0.000    0.316    0.493
   .reading_6         0.341    0.010   35.593    0.000    0.341    0.517
 .picvocab_4 ~~                                                         
   .reading_4         0.340    0.009   39.051    0.000    0.340    0.503
 .reading_0 ~~                                                          
   .picvocab_4        0.278    0.008   36.895    0.000    0.278    0.442
 .reading_2 ~~                                                          
   .picvocab_4        0.303    0.008   39.537    0.000    0.303    0.493
 .picvocab_4 ~~                                                         
   .reading_6         0.370    0.010   35.757    0.000    0.370    0.531
 .picvocab_6 ~~                                                         
   .reading_6         0.363    0.011   32.378    0.000    0.363    0.532
 .reading_0 ~~                                                          
   .picvocab_6        0.258    0.009   30.018    0.000    0.258    0.419
 .reading_2 ~~                                                          
   .picvocab_6        0.287    0.009   33.195    0.000    0.287    0.476
 .reading_4 ~~                                                          
   .picvocab_6        0.325    0.010   33.502    0.000    0.325    0.490
  g_i ~~                                                                
    g_s               0.004    0.001    3.523    0.000    0.213    0.213

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .flnkr_0 (ta_S)    0.087    0.005   18.000    0.000    0.087    0.094
   .flnkr_2 (ta_S)    0.087    0.005   18.000    0.000    0.087    0.109
   .flnkr_4 (ta_S)    0.087    0.005   18.000    0.000    0.087    0.109
   .flnkr_6 (ta_S)    0.087    0.005   18.000    0.000    0.087    0.106
   .pttrn_0 (ta_R)    0.100    0.004   22.857    0.000    0.100    0.132
   .pttrn_2 (ta_R)    0.100    0.004   22.857    0.000    0.100    0.130
   .pttrn_4 (ta_R)    0.100    0.004   22.857    0.000    0.100    0.122
   .pttrn_6 (ta_R)    0.100    0.004   22.857    0.000    0.100    0.117
   .pictr_0 (ta_M)    0.044    0.006    6.952    0.000    0.044    0.052
   .pictr_2 (ta_M)    0.044    0.006    6.952    0.000    0.044    0.049
   .pictr_4 (ta_M)    0.044    0.006    6.952    0.000    0.044    0.042
   .pictr_6 (ta_M)    0.044    0.006    6.952    0.000    0.044    0.042
   .pcvcb_0 (ta_P)    0.035    0.005    6.882    0.000    0.035    0.042
   .pcvcb_2 (ta_P)    0.035    0.005    6.882    0.000    0.035    0.041
   .pcvcb_4 (ta_P)    0.035    0.005    6.882    0.000    0.035    0.038
   .pcvcb_6 (ta_P)    0.035    0.005    6.882    0.000    0.035    0.038
   .redng_0 (ta_V)    0.045    0.005    9.119    0.000    0.045    0.053
   .redng_2 (ta_V)    0.045    0.005    9.119    0.000    0.045    0.054
   .redng_4 (ta_V)    0.045    0.005    9.119    0.000    0.045    0.049
   .redng_6 (ta_V)    0.045    0.005    9.119    0.000    0.045    0.047
    g_i              -0.640    0.006 -101.666    0.000   -1.650   -1.650
    g_s               0.473    0.004  128.142    0.000    9.159    9.159
   .g_etaB            0.000                               0.000    0.000
   .g_eta2            0.000                               0.000    0.000
   .g_eta4            0.000                               0.000    0.000
   .g_eta6            0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .g_etaB            0.012    0.002    5.338    0.000    0.075    0.075
   .g_eta2            0.008    0.002    5.219    0.000    0.048    0.048
   .g_eta4            0.017    0.002    8.203    0.000    0.088    0.088
   .g_eta6            0.045    0.004   11.359    0.000    0.184    0.184
   .flanker_0         0.684    0.010   68.036    0.000    0.684    0.808
   .flanker_2         0.466    0.009   54.404    0.000    0.466    0.733
   .flanker_4         0.435    0.009   49.459    0.000    0.435    0.690
   .flanker_6         0.417    0.011   38.680    0.000    0.417    0.630
   .pattern_0         0.337    0.006   52.377    0.000    0.337    0.583
   .pattern_2         0.339    0.008   45.068    0.000    0.339    0.573
   .pattern_4         0.386    0.009   42.798    0.000    0.386    0.571
   .pattern_6         0.367    0.011   32.908    0.000    0.367    0.502
   .picture_0         0.654    0.009   73.399    0.000    0.654    0.918
   .picture_2         0.734    0.011   69.178    0.000    0.734    0.924
   .picture_4         1.056    0.016   66.199    0.000    1.056    0.938
   .picture_6         1.036    0.022   47.865    0.000    1.036    0.922
   .picvocab_0        0.561    0.008   69.000    0.000    0.561    0.800
   .picvocab_2        0.618    0.009   66.243    0.000    0.618    0.808
   .picvocab_4        0.687    0.011   63.103    0.000    0.687    0.803
   .picvocab_6        0.662    0.013   49.310    0.000    0.662    0.758
   .reading_0         0.575    0.008   68.358    0.000    0.575    0.786
   .reading_2         0.549    0.008   64.933    0.000    0.549    0.771
   .reading_4         0.665    0.011   62.047    0.000    0.665    0.780
   .reading_6         0.705    0.015   47.930    0.000    0.705    0.750
    g_i               0.151    0.004   35.982    0.000    1.000    1.000
    g_s               0.003    0.001    4.117    0.000    1.000    1.000

R-Square:
                   Estimate
    g_etaB            0.925
    g_eta2            0.952
    g_eta4            0.912
    g_eta6            0.816
    flanker_0         0.192
    flanker_2         0.267
    flanker_4         0.310
    flanker_6         0.370
    pattern_0         0.417
    pattern_2         0.427
    pattern_4         0.429
    pattern_6         0.498
    picture_0         0.082
    picture_2         0.076
    picture_4         0.062
    picture_6         0.078
    picvocab_0        0.200
    picvocab_2        0.192
    picvocab_4        0.197
    picvocab_6        0.242
    reading_0         0.214
    reading_2         0.229
    reading_4         0.220
    reading_6         0.250
ICC
lavPredict(readRDS("lg_g_4t_strong.rds"),
  newdata = g_factor_5task_wide.scaled,
  append.data = T
) %>%
  data.frame() %>%
  select(contains(c("g_eta"))) %>%
  ICC(lmer = T) %>%
  saveRDS("g_4t_icc.rds")
readRDS("g_4t_icc.rds") %>%
  {
    \(x) x$results
  }() %>%
  knitr::kable()
type ICC F df1 df2 p lower bound upper bound
Single_raters_absolute ICC1 0.0700689 1.301394 11864 35595 0 0.0618800 0.0784153
Single_random_raters ICC2 0.2438017 110.512305 11864 35592 0 0.0220432 0.4986010
Single_fixed_raters ICC3 0.9647615 110.512305 11864 35592 0 0.9637431 0.9657594
Average_raters_absolute ICC1k 0.2315931 1.301394 11864 35595 0 0.2087649 0.2539261
Average_random_raters ICC2k 0.5632459 110.512305 11864 35592 0 0.0827036 0.7991031
Average_fixed_raters ICC3k 0.9909512 110.512305 11864 35592 0 0.9906824 0.9912142
LGCM plot
# create function to plot latent grwoth curve plot
lgcm_plot <- function(fit) {
  pe <- parameterEstimates(fit) # Store parameter estimates in a variable

  # Define the i, s, q equation parameters
  intercept <- pe %>%
    filter(str_length(lhs) <= 4 & str_detect(lhs, "_i") & str_detect(op, "~1")) %>%
    select(est) %>%
    pull()

  slope <- pe %>%
    filter(str_length(lhs) <= 4 & str_detect(lhs, "_s") & str_detect(op, "~1")) %>%
    select(est) %>%
    pull()

  # Check if there is a quadratic component
  if (any(str_detect(pe$lhs, "_q"))) {
    quadratic <- pe %>%
      filter(str_length(lhs) <= 4 & str_detect(lhs, "_q") & str_detect(op, "~1")) %>%
      select(est) %>%
      pull()
  } else {
    quadratic <- 0 # Set to zero if the quadratic component is missing
  }

  # Generate equation
  x <- pe %>%
    filter(str_length(lhs) <= 4 & str_detect(lhs, "_s") & str_detect(op, "=~")) %>%
    select(est) %>%
    pull()
  y <- intercept + slope * x + quadratic * x^2

  # Create a data frame
  df <- data.frame(x = x, y = y)

  # Create the line graph using ggplot2
  plot <- ggplot(df, aes(x = x, y = y)) +
    geom_line(size = 1, colour = "red") +
    theme_bw(base_size = 30) +
    xlab("Age (years old)")

  # Display the plot
  return(plot)
}

lgcm_plot(readRDS("lg_g_4t_strong.rds")) +
  labs(y = "Children's\nCognitive Functioning") +
  scale_x_continuous(labels = c("10", "12", "14", "16")) +
  # add significant results for intercept and slope
  annotate(geom = "text", x = 2.4, y = -0.3, label = 'paste(" ",italic("i")," = -.640***")', parse = TRUE, size = 10) +
  annotate(geom = "text", x = 2.4, y = -0.5, label = 'paste(italic("s")," =  .473***")', parse = TRUE, size = 10)
Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
ℹ Please use `linewidth` instead.

Model comparison

lapply(
  c(
    "g_4t_config_result.rds",
    "g_4t_weak_result.rds",
    "g_4t_strong_result.rds",
    "lgcm_g_4t_result.rds"
  ),
  function(f) {
    readRDS(f)$fit[c(
      "chisq", "df", "pvalue",
      "cfi.robust", "tli.robust",
      "rmsea.robust", "rmsea.ci.lower.robust",
      "rmsea.ci.upper.robust", "srmr"
    )]
  }
) %>%
  do.call(rbind, .) %>%
  round(3) %>%
  data.frame(model = c("config", "weak", "strong", "LGCM"), ., row.names = NULL) %>%
  knitr::kable()
model chisq df pvalue cfi.robust tli.robust rmsea.robust rmsea.ci.lower.robust rmsea.ci.upper.robust srmr
config 1918.015 118 0 0.976 0.962 0.047 0.045 0.049 0.042
weak 2358.146 130 0 0.970 0.957 0.050 0.048 0.052 0.050
strong 4058.184 142 0 0.950 0.933 0.062 0.060 0.064 0.079
LGCM 5593.511 146 0 0.924 0.901 0.075 0.073 0.077 0.084

pc factor

Configural invariance model

model fit
pc.7t.config.invar <- "#factor loadings (with constraints)
               p_etaB =~ lambda_X0*anxdep_comp_0+
                         lambda_W0*withdep_comp_0+
                         lambda_S0*soma_comp_0+
                         lambda_C0*socprob_comp_0+
                         lambda_H0*thouprob_comp_0+
                         lambda_A0*attprob_comp_0+
                         lambda_R0*rulebreak_comp_0+
                         lambda_G0*aggress_comp_0

               p_eta1 =~ lambda_X1*anxdep_comp_1+
                         lambda_W1*withdep_comp_1+
                         lambda_S1*soma_comp_1+
                         lambda_C1*socprob_comp_1+
                         lambda_H1*thouprob_comp_1+
                         lambda_A1*attprob_comp_1+
                         lambda_R1*rulebreak_comp_1+
                         lambda_G1*aggress_comp_1

               p_eta2 =~ lambda_X2*anxdep_comp_2+
                         lambda_W2*withdep_comp_2+
                         lambda_S2*soma_comp_2+
                         lambda_C2*socprob_comp_2+
                         lambda_H2*thouprob_comp_2+
                         lambda_A2*attprob_comp_2+
                         lambda_R2*rulebreak_comp_2+
                         lambda_G2*aggress_comp_2

               p_eta3 =~ lambda_X3*anxdep_comp_3+
                         lambda_W3*withdep_comp_3+
                         lambda_S3*soma_comp_3+
                         lambda_C3*socprob_comp_3+
                         lambda_H3*thouprob_comp_3+
                         lambda_A3*attprob_comp_3+
                         lambda_R3*rulebreak_comp_3+
                         lambda_G3*aggress_comp_3

               p_eta4 =~ lambda_X4*anxdep_comp_4+
                         lambda_W4*withdep_comp_4+
                         lambda_S4*soma_comp_4+
                         lambda_C4*socprob_comp_4+
                         lambda_H4*thouprob_comp_4+
                         lambda_A4*attprob_comp_4+
                         lambda_R4*rulebreak_comp_4+
                         lambda_G4*aggress_comp_4

               p_eta5 =~ lambda_X5*anxdep_comp_5+
                         lambda_W5*withdep_comp_5+
                         lambda_S5*soma_comp_5+
                         lambda_C5*socprob_comp_5+
                         lambda_H5*thouprob_comp_5+
                         lambda_A5*attprob_comp_5+
                         lambda_R5*rulebreak_comp_5+
                         lambda_G5*aggress_comp_5

               p_eta6 =~ lambda_X6*anxdep_comp_6+
                         lambda_W6*withdep_comp_6+
                         lambda_S6*soma_comp_6+
                         lambda_C6*socprob_comp_6+
                         lambda_H6*thouprob_comp_6+
                         lambda_A6*attprob_comp_6+
                         lambda_R6*rulebreak_comp_6+
                         lambda_G6*aggress_comp_6

              #latent variable variances
                      p_etaB~~1*p_etaB
                      p_eta1~~1*p_eta1
                      p_eta2~~1*p_eta2
                      p_eta3~~1*p_eta3
                      p_eta4~~1*p_eta4
                      p_eta5~~1*p_eta5
                      p_eta6~~1*p_eta6

              #latent variable covariances
                      p_etaB~~p_eta1 + p_eta2 + p_eta3 + p_eta4 + p_eta5 + p_eta6
                      p_eta1~~p_eta2 + p_eta3 + p_eta4 + p_eta5 + p_eta6
                      p_eta2~~p_eta3 + p_eta4 + p_eta5 + p_eta6
                      p_eta3~~p_eta4 + p_eta5 + p_eta6
                      p_eta4~~p_eta5 + p_eta6
                      p_eta5~~p_eta6

              #unique variances # No need to constrict these
                      anxdep_comp_0~~anxdep_comp_0
                      withdep_comp_0~~withdep_comp_0
                      soma_comp_0~~soma_comp_0
                      socprob_comp_0~~socprob_comp_0
                      thouprob_comp_0~~thouprob_comp_0
                      attprob_comp_0~~attprob_comp_0
                      rulebreak_comp_0~~rulebreak_comp_0
                      aggress_comp_0~~aggress_comp_0
                      anxdep_comp_1~~anxdep_comp_1
                      withdep_comp_1~~withdep_comp_1
                      soma_comp_1~~soma_comp_1
                      socprob_comp_1~~socprob_comp_1
                      thouprob_comp_1~~thouprob_comp_1
                      attprob_comp_1~~attprob_comp_1
                      rulebreak_comp_1~~rulebreak_comp_1
                      aggress_comp_1~~aggress_comp_1

                      anxdep_comp_2~~anxdep_comp_2
                      withdep_comp_2~~withdep_comp_2
                      soma_comp_2~~soma_comp_2
                      socprob_comp_2~~socprob_comp_2
                      thouprob_comp_2~~thouprob_comp_2
                      attprob_comp_2~~attprob_comp_2
                      rulebreak_comp_2~~rulebreak_comp_2
                      aggress_comp_2~~aggress_comp_2

                      anxdep_comp_3~~anxdep_comp_3
                      withdep_comp_3~~withdep_comp_3
                      soma_comp_3~~soma_comp_3
                      socprob_comp_3~~socprob_comp_3
                      thouprob_comp_3~~thouprob_comp_3
                      attprob_comp_3~~attprob_comp_3
                      rulebreak_comp_3~~rulebreak_comp_3
                      aggress_comp_3~~aggress_comp_3

                      anxdep_comp_4~~anxdep_comp_4
                      withdep_comp_4~~withdep_comp_4
                      soma_comp_4~~soma_comp_4
                      socprob_comp_4~~socprob_comp_4
                      thouprob_comp_4~~thouprob_comp_4
                      attprob_comp_4~~attprob_comp_4
                      rulebreak_comp_4~~rulebreak_comp_4
                      aggress_comp_4~~aggress_comp_4

                      anxdep_comp_5~~anxdep_comp_5
                      withdep_comp_5~~withdep_comp_5
                      soma_comp_5~~soma_comp_5
                      socprob_comp_5~~socprob_comp_5
                      thouprob_comp_5~~thouprob_comp_5
                      attprob_comp_5~~attprob_comp_5
                      rulebreak_comp_5~~rulebreak_comp_5
                      aggress_comp_5~~aggress_comp_5

                      anxdep_comp_6~~anxdep_comp_6
                      withdep_comp_6~~withdep_comp_6
                      soma_comp_6~~soma_comp_6
                      socprob_comp_6~~socprob_comp_6
                      thouprob_comp_6~~thouprob_comp_6
                      attprob_comp_6~~attprob_comp_6
                      rulebreak_comp_6~~rulebreak_comp_6
                      aggress_comp_6~~aggress_comp_6

              #unique covariances
                      # Scores arcoss times
                      anxdep_comp_0~~anxdep_comp_1 + anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_1~~anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_2~~anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_3~~anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_4~~anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_5~~anxdep_comp_6

                      withdep_comp_0~~withdep_comp_1 + withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_1~~withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_2~~withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_3~~withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_4~~withdep_comp_5 + withdep_comp_6
                      withdep_comp_5~~withdep_comp_6

                      soma_comp_0~~soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_1~~soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_2~~soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_3~~soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_4~~soma_comp_5 + soma_comp_6
                      soma_comp_5~~soma_comp_6

                      socprob_comp_0~~socprob_comp_1 + socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_1~~socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_2~~socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_3~~socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_4~~socprob_comp_5 + socprob_comp_6
                      socprob_comp_5~~socprob_comp_6

                      thouprob_comp_0~~thouprob_comp_1 + thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_1~~thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_2~~thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_3~~thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_4~~thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_5~~thouprob_comp_6

                      attprob_comp_0~~attprob_comp_1 + attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_1~~attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_2~~attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_3~~attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_4~~attprob_comp_5 + attprob_comp_6
                      attprob_comp_5~~attprob_comp_6

                      rulebreak_comp_0~~rulebreak_comp_1 + rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_1~~rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_2~~rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_3~~rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_4~~rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_5~~rulebreak_comp_6

                      aggress_comp_0~~aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_1~~aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_2~~aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_3~~aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_4~~aggress_comp_5 + aggress_comp_6
                      aggress_comp_5~~aggress_comp_6

                      # Internalizeing subscale covariances
                      anxdep_comp_0~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_1~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_2~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_3~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_4~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_5~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_6~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6

                      withdep_comp_0~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_1~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_2~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_3~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_4~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_5~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_6~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6

                      # Externalizeing subscale covariances
                      rulebreak_comp_0~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_1~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_2~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_3~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_4~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_5~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_6~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6

                      #latent variable intercepts
                      p_etaB~0*1
                      p_eta1~0*1
                      p_eta2~0*1
                      p_eta3~0*1
                      p_eta4~0*1

              #observed variable intercepts
                      anxdep_comp_0~tau_X0*1
                      anxdep_comp_1~tau_X1*1
                      anxdep_comp_2~tau_X2*1
                      anxdep_comp_3~tau_X3*1
                      anxdep_comp_4~tau_X4*1
                      anxdep_comp_5~tau_X5*1
                      anxdep_comp_6~tau_X6*1
                      withdep_comp_0~tau_W0*1
                      withdep_comp_1~tau_W1*1
                      withdep_comp_2~tau_W2*1
                      withdep_comp_3~tau_W3*1
                      withdep_comp_4~tau_W4*1
                      withdep_comp_5~tau_W5*1
                      withdep_comp_6~tau_W6*1
                      soma_comp_0~tau_S0*1
                      soma_comp_1~tau_S1*1
                      soma_comp_2~tau_S2*1
                      soma_comp_3~tau_S3*1
                      soma_comp_4~tau_S4*1
                      soma_comp_5~tau_S5*1
                      soma_comp_6~tau_S6*1
                      socprob_comp_0~tau_P0*1
                      socprob_comp_1~tau_P1*1
                      socprob_comp_2~tau_P2*1
                      socprob_comp_3~tau_P3*1
                      socprob_comp_4~tau_P4*1
                      socprob_comp_5~tau_P5*1
                      socprob_comp_6~tau_P6*1
                      thouprob_comp_0~tau_H0*1
                      thouprob_comp_1~tau_H1*1
                      thouprob_comp_2~tau_H2*1
                      thouprob_comp_3~tau_H3*1
                      thouprob_comp_4~tau_H4*1
                      thouprob_comp_5~tau_H5*1
                      thouprob_comp_6~tau_H6*1
                      attprob_comp_0~tau_A0*1
                      attprob_comp_1~tau_A1*1
                      attprob_comp_2~tau_A2*1
                      attprob_comp_3~tau_A3*1
                      attprob_comp_4~tau_A4*1
                      attprob_comp_5~tau_A5*1
                      attprob_comp_6~tau_A6*1
                      rulebreak_comp_0~tau_R0*1
                      rulebreak_comp_1~tau_R1*1
                      rulebreak_comp_2~tau_R2*1
                      rulebreak_comp_3~tau_R3*1
                      rulebreak_comp_4~tau_R4*1
                      rulebreak_comp_5~tau_R5*1
                      rulebreak_comp_6~tau_R6*1
                      aggress_comp_0~tau_G0*1
                      aggress_comp_1~tau_G1*1
                      aggress_comp_2~tau_G2*1
                      aggress_comp_3~tau_G3*1
                      aggress_comp_4~tau_G4*1
                      aggress_comp_5~tau_G5*1
                      aggress_comp_6~tau_G6*1"

lavaan(pc.7t.config.invar,
  data = pc_factor_nolow_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("pc_7t_config.rds")
result
readRDS("pc_7t_config.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pc_7t_config_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pc_7t_config.rds"), "cor.lv"))$value
[1] 5.2483568 0.6407817 0.3197110 0.2363761 0.2017612 0.1883355 0.1646777
readRDS("pc_7t_config_result.rds")
lavaan 0.6-19 ended normally after 200 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       553

                                                  Used       Total
  Number of observations                         11865       11867
  Number of missing patterns                        82            

Model Test User Model:
                                                      
  Test statistic                              7935.205
  Degrees of freedom                              1099
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                            512564.005
  Degrees of freedom                              1540
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.987
  Tucker-Lewis Index (TLI)                       0.981
                                                      
  Robust Comparative Fit Index (CFI)             0.987
  Robust Tucker-Lewis Index (TLI)                0.982

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -506267.028
  Loglikelihood unrestricted model (H1)    -502299.426
                                                      
  Akaike (AIC)                             1013640.056
  Bayesian (BIC)                           1017721.941
  Sample-size adjusted Bayesian (SABIC)    1015964.571

Root Mean Square Error of Approximation:

  RMSEA                                          0.023
  90 Percent confidence interval - lower         0.022
  90 Percent confidence interval - upper         0.023
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.026
  90 Percent confidence interval - lower         0.025
  90 Percent confidence interval - upper         0.026
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.046

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_etaB =~                                                             
    anxd__0 (l_X0)    0.748    0.008   96.202    0.000    0.748    0.724
    wthd__0 (l_W0)    0.560    0.007   84.503    0.000    0.560    0.667
    sm_cm_0 (l_S0)    0.514    0.008   63.562    0.000    0.514    0.523
    scpr__0 (l_C0)    0.911    0.008  110.031    0.000    0.911    0.826
    thpr__0 (l_H0)    0.808    0.008  101.992    0.000    0.808    0.782
    attp__0 (l_A0)    0.737    0.007   99.836    0.000    0.737    0.737
    rlbr__0 (l_R0)    0.647    0.008   85.034    0.000    0.647    0.653
    aggr__0 (l_G0)    0.865    0.008  109.307    0.000    0.865    0.791
  p_eta1 =~                                                             
    anxd__1 (l_X1)    0.743    0.008   94.058    0.000    0.743    0.716
    wthd__1 (l_W1)    0.583    0.007   84.296    0.000    0.583    0.663
    sm_cm_1 (l_S1)    0.512    0.008   62.573    0.000    0.512    0.520
    scpr__1 (l_C1)    0.868    0.008  106.856    0.000    0.868    0.819
    thpr__1 (l_H1)    0.831    0.008  102.437    0.000    0.831    0.791
    attp__1 (l_A1)    0.719    0.007   98.533    0.000    0.719    0.731
    rlbr__1 (l_R1)    0.626    0.008   83.051    0.000    0.626    0.642
    aggr__1 (l_G1)    0.825    0.008  106.565    0.000    0.825    0.783
  p_eta2 =~                                                             
    anxd__2 (l_X2)    0.715    0.008   93.230    0.000    0.715    0.711
    wthd__2 (l_W2)    0.657    0.008   84.906    0.000    0.657    0.670
    sm_cm_2 (l_S2)    0.505    0.008   63.822    0.000    0.505    0.532
    scpr__2 (l_C2)    0.824    0.008  105.303    0.000    0.824    0.815
    thpr__2 (l_H2)    0.786    0.008  100.478    0.000    0.786    0.790
    attp__2 (l_A2)    0.707    0.007   98.797    0.000    0.707    0.737
    rlbr__2 (l_R2)    0.647    0.008   84.754    0.000    0.647    0.659
    aggr__2 (l_G2)    0.794    0.008  105.019    0.000    0.794    0.777
  p_eta3 =~                                                             
    anxd__3 (l_X3)    0.740    0.008   90.849    0.000    0.740    0.714
    wthd__3 (l_W3)    0.724    0.009   82.782    0.000    0.724    0.669
    sm_cm_3 (l_S3)    0.547    0.008   65.729    0.000    0.547    0.562
    scpr__3 (l_C3)    0.779    0.008  100.939    0.000    0.779    0.806
    thpr__3 (l_H3)    0.788    0.008   99.229    0.000    0.788    0.803
    attp__3 (l_A3)    0.727    0.007   98.228    0.000    0.727    0.751
    rlbr__3 (l_R3)    0.664    0.008   83.489    0.000    0.664    0.665
    aggr__3 (l_G3)    0.790    0.008  102.355    0.000    0.790    0.780
  p_eta4 =~                                                             
    anxd__4 (l_X4)    0.744    0.008   90.274    0.000    0.744    0.727
    wthd__4 (l_W4)    0.808    0.010   83.734    0.000    0.808    0.693
    sm_cm_4 (l_S4)    0.579    0.009   63.964    0.000    0.579    0.563
    scpr__4 (l_C4)    0.747    0.008   96.558    0.000    0.747    0.798
    thpr__4 (l_H4)    0.789    0.008   98.500    0.000    0.789    0.814
    attp__4 (l_A4)    0.738    0.008   98.231    0.000    0.738    0.774
    rlbr__4 (l_R4)    0.688    0.009   79.963    0.000    0.688    0.656
    aggr__4 (l_G4)    0.733    0.007   98.617    0.000    0.733    0.774
  p_eta5 =~                                                             
    anxd__5 (l_X5)    0.774    0.009   87.616    0.000    0.774    0.736
    wthd__5 (l_W5)    0.859    0.010   83.463    0.000    0.859    0.714
    sm_cm_5 (l_S5)    0.665    0.010   64.777    0.000    0.665    0.592
    scpr__5 (l_C5)    0.746    0.008   93.285    0.000    0.746    0.800
    thpr__5 (l_H5)    0.852    0.009   96.383    0.000    0.852    0.824
    attp__5 (l_A5)    0.731    0.008   93.455    0.000    0.731    0.762
    rlbr__5 (l_R5)    0.716    0.010   74.977    0.000    0.716    0.640
    aggr__5 (l_G5)    0.736    0.008   94.793    0.000    0.736    0.773
  p_eta6 =~                                                             
    anxd__6 (l_X6)    0.683    0.011   64.448    0.000    0.683    0.705
    wthd__6 (l_W6)    0.823    0.013   64.535    0.000    0.823    0.711
    sm_cm_6 (l_S6)    0.660    0.013   50.431    0.000    0.660    0.590
    scpr__6 (l_C6)    0.670    0.009   72.886    0.000    0.670    0.792
    thpr__6 (l_H6)    0.722    0.010   72.054    0.000    0.722    0.803
    attp__6 (l_A6)    0.698    0.010   73.298    0.000    0.698    0.764
    rlbr__6 (l_R6)    0.652    0.011   58.221    0.000    0.652    0.630
    aggr__6 (l_G6)    0.641    0.009   73.508    0.000    0.641    0.759

Covariances:
                      Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_etaB ~~                                                                
    p_eta1               0.786    0.004  185.885    0.000    0.786    0.786
    p_eta2               0.716    0.005  132.863    0.000    0.716    0.716
    p_eta3               0.670    0.006  107.664    0.000    0.670    0.670
    p_eta4               0.628    0.007   90.266    0.000    0.628    0.628
    p_eta5               0.602    0.008   80.315    0.000    0.602    0.602
    p_eta6               0.570    0.009   60.054    0.000    0.570    0.570
  p_eta1 ~~                                                                
    p_eta2               0.772    0.005  168.924    0.000    0.772    0.772
    p_eta3               0.729    0.005  135.075    0.000    0.729    0.729
    p_eta4               0.680    0.006  108.078    0.000    0.680    0.680
    p_eta5               0.655    0.007   95.907    0.000    0.655    0.655
    p_eta6               0.615    0.009   68.261    0.000    0.615    0.615
  p_eta2 ~~                                                                
    p_eta3               0.788    0.004  176.664    0.000    0.788    0.788
    p_eta4               0.716    0.006  124.612    0.000    0.716    0.716
    p_eta5               0.685    0.006  106.410    0.000    0.685    0.685
    p_eta6               0.648    0.008   76.861    0.000    0.648    0.648
  p_eta3 ~~                                                                
    p_eta4               0.782    0.005  165.743    0.000    0.782    0.782
    p_eta5               0.745    0.006  133.574    0.000    0.745    0.745
    p_eta6               0.698    0.008   90.920    0.000    0.698    0.698
  p_eta4 ~~                                                                
    p_eta5               0.806    0.004  181.169    0.000    0.806    0.806
    p_eta6               0.746    0.007  109.064    0.000    0.746    0.746
  p_eta5 ~~                                                                
    p_eta6               0.818    0.005  151.986    0.000    0.818    0.818
 .anxdep_comp_0 ~~                                                         
   .anxdep_comp_1        0.311    0.006   48.489    0.000    0.311    0.603
   .anxdep_comp_2        0.275    0.006   44.590    0.000    0.275    0.544
   .anxdep_comp_3        0.249    0.006   39.681    0.000    0.249    0.481
   .anxdep_comp_4        0.221    0.006   36.136    0.000    0.221    0.442
   .anxdep_comp_5        0.202    0.006   31.874    0.000    0.202    0.399
   .anxdep_comp_6        0.183    0.007   25.319    0.000    0.183    0.374
 .anxdep_comp_1 ~~                                                         
   .anxdep_comp_2        0.304    0.006   47.222    0.000    0.304    0.593
   .anxdep_comp_3        0.271    0.006   41.843    0.000    0.271    0.517
   .anxdep_comp_4        0.231    0.006   36.792    0.000    0.231    0.455
   .anxdep_comp_5        0.222    0.007   34.032    0.000    0.222    0.431
   .anxdep_comp_6        0.196    0.007   26.343    0.000    0.196    0.394
 .anxdep_comp_2 ~~                                                         
   .anxdep_comp_3        0.318    0.007   47.885    0.000    0.318    0.618
   .anxdep_comp_4        0.272    0.006   42.767    0.000    0.272    0.546
   .anxdep_comp_5        0.252    0.006   38.723    0.000    0.252    0.499
   .anxdep_comp_6        0.223    0.007   30.573    0.000    0.223    0.458
 .anxdep_comp_3 ~~                                                         
   .anxdep_comp_4        0.305    0.007   45.261    0.000    0.305    0.599
   .anxdep_comp_5        0.283    0.007   41.115    0.000    0.283    0.549
   .anxdep_comp_6        0.246    0.007   32.905    0.000    0.246    0.495
 .anxdep_comp_4 ~~                                                         
   .anxdep_comp_5        0.327    0.007   46.276    0.000    0.327    0.654
   .anxdep_comp_6        0.272    0.008   35.941    0.000    0.272    0.565
 .anxdep_comp_5 ~~                                                         
   .anxdep_comp_6        0.306    0.008   38.565    0.000    0.306    0.626
 .withdep_comp_0 ~~                                                        
   .withdep_comp_1       0.227    0.005   46.634    0.000    0.227    0.549
   .withdep_comp_2       0.208    0.005   39.638    0.000    0.208    0.457
   .withdep_comp_3       0.193    0.006   33.379    0.000    0.193    0.384
   .withdep_comp_4       0.178    0.006   28.817    0.000    0.178    0.339
   .withdep_comp_5       0.174    0.006   27.165    0.000    0.174    0.331
   .withdep_comp_6       0.149    0.008   19.865    0.000    0.149    0.293
 .withdep_comp_1 ~~                                                        
   .withdep_comp_2       0.264    0.006   45.765    0.000    0.264    0.551
   .withdep_comp_3       0.254    0.006   40.421    0.000    0.254    0.480
   .withdep_comp_4       0.234    0.007   35.181    0.000    0.234    0.421
   .withdep_comp_5       0.221    0.007   32.322    0.000    0.221    0.398
   .withdep_comp_6       0.185    0.008   23.630    0.000    0.185    0.346
 .withdep_comp_2 ~~                                                        
   .withdep_comp_3       0.332    0.007   45.858    0.000    0.332    0.568
   .withdep_comp_4       0.305    0.008   40.279    0.000    0.305    0.498
   .withdep_comp_5       0.277    0.008   35.812    0.000    0.277    0.452
   .withdep_comp_6       0.239    0.009   26.289    0.000    0.239    0.404
 .withdep_comp_3 ~~                                                        
   .withdep_comp_4       0.393    0.009   45.121    0.000    0.393    0.581
   .withdep_comp_5       0.360    0.009   40.810    0.000    0.360    0.532
   .withdep_comp_6       0.304    0.010   30.644    0.000    0.304    0.466
 .withdep_comp_4 ~~                                                        
   .withdep_comp_5       0.437    0.010   44.978    0.000    0.437    0.617
   .withdep_comp_6       0.373    0.011   34.712    0.000    0.373    0.545
 .withdep_comp_5 ~~                                                        
   .withdep_comp_6       0.421    0.011   37.788    0.000    0.421    0.616
 .soma_comp_0 ~~                                                           
   .soma_comp_1          0.359    0.008   46.326    0.000    0.359    0.511
   .soma_comp_2          0.305    0.007   41.193    0.000    0.305    0.452
   .soma_comp_3          0.270    0.007   36.388    0.000    0.270    0.400
   .soma_comp_4          0.256    0.008   32.232    0.000    0.256    0.360
   .soma_comp_5          0.253    0.009   28.801    0.000    0.253    0.333
   .soma_comp_6          0.247    0.010   23.550    0.000    0.247    0.326
 .soma_comp_1 ~~                                                           
   .soma_comp_2          0.340    0.008   44.653    0.000    0.340    0.503
   .soma_comp_3          0.295    0.008   38.912    0.000    0.295    0.437
   .soma_comp_4          0.280    0.008   34.766    0.000    0.280    0.393
   .soma_comp_5          0.283    0.009   31.696    0.000    0.283    0.371
   .soma_comp_6          0.259    0.011   24.331    0.000    0.259    0.340
 .soma_comp_2 ~~                                                           
   .soma_comp_3          0.329    0.007   43.889    0.000    0.329    0.508
   .soma_comp_4          0.309    0.008   38.795    0.000    0.309    0.451
   .soma_comp_5          0.301    0.009   34.864    0.000    0.301    0.413
   .soma_comp_6          0.276    0.010   27.340    0.000    0.276    0.379
 .soma_comp_3 ~~                                                           
   .soma_comp_4          0.341    0.008   41.343    0.000    0.341    0.498
   .soma_comp_5          0.326    0.009   36.527    0.000    0.326    0.447
   .soma_comp_6          0.309    0.010   30.005    0.000    0.309    0.425
 .soma_comp_4 ~~                                                           
   .soma_comp_5          0.423    0.010   42.804    0.000    0.423    0.549
   .soma_comp_6          0.392    0.012   33.981    0.000    0.392    0.509
 .soma_comp_5 ~~                                                           
   .soma_comp_6          0.475    0.013   37.645    0.000    0.475    0.579
 .socprob_comp_0 ~~                                                        
   .socprob_comp_1       0.175    0.005   33.460    0.000    0.175    0.464
   .socprob_comp_2       0.151    0.005   30.393    0.000    0.151    0.414
   .socprob_comp_3       0.127    0.005   26.614    0.000    0.127    0.358
   .socprob_comp_4       0.109    0.005   23.111    0.000    0.109    0.311
   .socprob_comp_5       0.102    0.005   21.263    0.000    0.102    0.292
   .socprob_comp_6       0.084    0.005   15.787    0.000    0.084    0.261
 .socprob_comp_1 ~~                                                        
   .socprob_comp_2       0.167    0.005   33.529    0.000    0.167    0.469
   .socprob_comp_3       0.141    0.005   29.569    0.000    0.141    0.406
   .socprob_comp_4       0.118    0.005   25.179    0.000    0.118    0.343
   .socprob_comp_5       0.106    0.005   22.458    0.000    0.106    0.310
   .socprob_comp_6       0.095    0.005   18.310    0.000    0.095    0.304
 .socprob_comp_2 ~~                                                        
   .socprob_comp_3       0.161    0.005   33.938    0.000    0.161    0.482
   .socprob_comp_4       0.143    0.005   30.864    0.000    0.143    0.432
   .socprob_comp_5       0.123    0.005   26.493    0.000    0.123    0.374
   .socprob_comp_6       0.110    0.005   21.883    0.000    0.110    0.362
 .socprob_comp_3 ~~                                                        
   .socprob_comp_4       0.152    0.005   33.104    0.000    0.152    0.470
   .socprob_comp_5       0.137    0.005   29.613    0.000    0.137    0.427
   .socprob_comp_6       0.117    0.005   23.760    0.000    0.117    0.396
 .socprob_comp_4 ~~                                                        
   .socprob_comp_5       0.166    0.005   35.062    0.000    0.166    0.524
   .socprob_comp_6       0.140    0.005   27.683    0.000    0.140    0.481
 .socprob_comp_5 ~~                                                        
   .socprob_comp_6       0.160    0.005   30.636    0.000    0.160    0.552
 .thouprob_comp_0 ~~                                                       
   .thouprob_cmp_1       0.199    0.005   37.088    0.000    0.199    0.482
   .thouprob_cmp_2       0.160    0.005   31.962    0.000    0.160    0.408
   .thouprob_cmp_3       0.133    0.005   27.504    0.000    0.133    0.354
   .thouprob_cmp_4       0.113    0.005   23.697    0.000    0.113    0.313
   .thouprob_cmp_5       0.106    0.005   20.649    0.000    0.106    0.280
   .thouprob_cmp_6       0.078    0.006   13.658    0.000    0.078    0.227
 .thouprob_comp_1 ~~                                                       
   .thouprob_cmp_2       0.187    0.005   35.732    0.000    0.187    0.477
   .thouprob_cmp_3       0.151    0.005   30.110    0.000    0.151    0.402
   .thouprob_cmp_4       0.129    0.005   26.212    0.000    0.129    0.356
   .thouprob_cmp_5       0.128    0.005   24.508    0.000    0.128    0.340
   .thouprob_cmp_6       0.095    0.006   16.429    0.000    0.095    0.275
 .thouprob_comp_2 ~~                                                       
   .thouprob_cmp_3       0.158    0.005   32.349    0.000    0.158    0.443
   .thouprob_cmp_4       0.130    0.005   27.517    0.000    0.130    0.378
   .thouprob_cmp_5       0.125    0.005   24.788    0.000    0.125    0.349
   .thouprob_cmp_6       0.086    0.005   15.731    0.000    0.086    0.265
 .thouprob_comp_3 ~~                                                       
   .thouprob_cmp_4       0.135    0.005   28.791    0.000    0.135    0.409
   .thouprob_cmp_5       0.123    0.005   24.605    0.000    0.123    0.358
   .thouprob_cmp_6       0.086    0.005   16.167    0.000    0.086    0.276
 .thouprob_comp_4 ~~                                                       
   .thouprob_cmp_5       0.157    0.005   30.953    0.000    0.157    0.475
   .thouprob_cmp_6       0.117    0.005   21.751    0.000    0.117    0.388
 .thouprob_comp_5 ~~                                                       
   .thouprob_cmp_6       0.150    0.006   25.594    0.000    0.150    0.479
 .attprob_comp_0 ~~                                                        
   .attprob_comp_1       0.306    0.006   51.499    0.000    0.306    0.674
   .attprob_comp_2       0.271    0.006   48.009    0.000    0.271    0.616
   .attprob_comp_3       0.248    0.006   44.789    0.000    0.248    0.573
   .attprob_comp_4       0.213    0.005   40.299    0.000    0.213    0.521
   .attprob_comp_5       0.213    0.005   38.858    0.000    0.213    0.508
   .attprob_comp_6       0.185    0.006   30.583    0.000    0.185    0.465
 .attprob_comp_1 ~~                                                        
   .attprob_comp_2       0.292    0.006   50.575    0.000    0.292    0.670
   .attprob_comp_3       0.265    0.006   47.028    0.000    0.265    0.618
   .attprob_comp_4       0.223    0.005   41.829    0.000    0.223    0.550
   .attprob_comp_5       0.225    0.006   40.909    0.000    0.225    0.540
   .attprob_comp_6       0.197    0.006   32.516    0.000    0.197    0.498
 .attprob_comp_2 ~~                                                        
   .attprob_comp_3       0.275    0.006   49.005    0.000    0.275    0.663
   .attprob_comp_4       0.233    0.005   44.124    0.000    0.233    0.594
   .attprob_comp_5       0.236    0.005   43.141    0.000    0.236    0.585
   .attprob_comp_6       0.204    0.006   34.497    0.000    0.204    0.533
 .attprob_comp_3 ~~                                                        
   .attprob_comp_4       0.248    0.005   45.970    0.000    0.248    0.642
   .attprob_comp_5       0.242    0.006   43.914    0.000    0.242    0.611
   .attprob_comp_6       0.208    0.006   35.408    0.000    0.208    0.553
 .attprob_comp_4 ~~                                                        
   .attprob_comp_5       0.252    0.005   45.854    0.000    0.252    0.673
   .attprob_comp_6       0.218    0.006   37.305    0.000    0.218    0.612
 .attprob_comp_5 ~~                                                        
   .attprob_comp_6       0.249    0.006   40.243    0.000    0.249    0.681
 .rulebreak_comp_0 ~~                                                      
   .rulebrek_cmp_1       0.341    0.007   50.513    0.000    0.341    0.609
   .rulebrek_cmp_2       0.298    0.007   45.068    0.000    0.298    0.537
   .rulebrek_cmp_3       0.275    0.007   40.888    0.000    0.275    0.493
   .rulebrek_cmp_4       0.265    0.007   36.912    0.000    0.265    0.446
   .rulebrek_cmp_5       0.284    0.008   36.027    0.000    0.284    0.441
   .rulebrek_cmp_6       0.234    0.009   27.242    0.000    0.234    0.388
 .rulebreak_comp_1 ~~                                                      
   .rulebrek_cmp_2       0.323    0.007   47.825    0.000    0.323    0.585
   .rulebrek_cmp_3       0.301    0.007   44.002    0.000    0.301    0.542
   .rulebrek_cmp_4       0.300    0.007   41.117    0.000    0.300    0.508
   .rulebrek_cmp_5       0.293    0.008   36.923    0.000    0.293    0.456
   .rulebrek_cmp_6       0.256    0.009   29.398    0.000    0.256    0.426
 .rulebreak_comp_2 ~~                                                      
   .rulebrek_cmp_3       0.331    0.007   46.888    0.000    0.331    0.601
   .rulebrek_cmp_4       0.309    0.007   41.899    0.000    0.309    0.529
   .rulebrek_cmp_5       0.329    0.008   40.681    0.000    0.329    0.517
   .rulebrek_cmp_6       0.281    0.009   32.276    0.000    0.281    0.473
 .rulebreak_comp_3 ~~                                                      
   .rulebrek_cmp_4       0.344    0.008   44.664    0.000    0.344    0.583
   .rulebrek_cmp_5       0.348    0.008   41.639    0.000    0.348    0.544
   .rulebrek_cmp_6       0.310    0.009   35.488    0.000    0.310    0.518
 .rulebreak_comp_4 ~~                                                      
   .rulebrek_cmp_5       0.430    0.009   46.458    0.000    0.430    0.633
   .rulebrek_cmp_6       0.383    0.010   39.313    0.000    0.383    0.602
 .rulebreak_comp_5 ~~                                                      
   .rulebrek_cmp_6       0.477    0.011   43.542    0.000    0.477    0.690
 .aggress_comp_0 ~~                                                        
   .aggress_comp_1       0.288    0.006   48.632    0.000    0.288    0.658
   .aggress_comp_2       0.260    0.006   45.573    0.000    0.260    0.606
   .aggress_comp_3       0.223    0.006   40.276    0.000    0.223    0.529
   .aggress_comp_4       0.201    0.005   38.296    0.000    0.201    0.503
   .aggress_comp_5       0.195    0.005   36.224    0.000    0.195    0.484
   .aggress_comp_6       0.162    0.006   28.736    0.000    0.162    0.440
 .aggress_comp_1 ~~                                                        
   .aggress_comp_2       0.270    0.006   47.159    0.000    0.270    0.641
   .aggress_comp_3       0.241    0.006   43.173    0.000    0.241    0.579
   .aggress_comp_4       0.209    0.005   39.990    0.000    0.209    0.532
   .aggress_comp_5       0.196    0.005   36.847    0.000    0.196    0.495
   .aggress_comp_6       0.162    0.006   28.971    0.000    0.162    0.449
 .aggress_comp_2 ~~                                                        
   .aggress_comp_3       0.262    0.006   46.359    0.000    0.262    0.646
   .aggress_comp_4       0.221    0.005   42.096    0.000    0.221    0.573
   .aggress_comp_5       0.215    0.005   40.210    0.000    0.215    0.554
   .aggress_comp_6       0.185    0.006   33.321    0.000    0.185    0.523
 .aggress_comp_3 ~~                                                        
   .aggress_comp_4       0.241    0.005   44.759    0.000    0.241    0.635
   .aggress_comp_5       0.224    0.005   41.364    0.000    0.224    0.587
   .aggress_comp_6       0.195    0.006   35.319    0.000    0.195    0.560
 .aggress_comp_4 ~~                                                        
   .aggress_comp_5       0.241    0.005   45.151    0.000    0.241    0.666
   .aggress_comp_6       0.202    0.005   37.588    0.000    0.202    0.614
 .aggress_comp_5 ~~                                                        
   .aggress_comp_6       0.226    0.006   40.032    0.000    0.226    0.680
 .anxdep_comp_0 ~~                                                         
   .withdep_comp_0       0.102    0.005   20.938    0.000    0.102    0.228
   .soma_comp_0          0.119    0.006   19.011    0.000    0.119    0.199
   .withdep_comp_1       0.082    0.005   16.202    0.000    0.082    0.174
   .soma_comp_1          0.079    0.006   12.728    0.000    0.079    0.132
   .withdep_comp_2       0.083    0.006   14.692    0.000    0.083    0.160
   .soma_comp_2          0.074    0.006   12.277    0.000    0.074    0.129
   .withdep_comp_3       0.094    0.006   14.872    0.000    0.094    0.165
   .soma_comp_3          0.074    0.006   11.922    0.000    0.074    0.129
   .withdep_comp_4       0.076    0.007   11.232    0.000    0.076    0.127
   .soma_comp_4          0.081    0.007   12.045    0.000    0.081    0.133
   .withdep_comp_5       0.071    0.007    9.951    0.000    0.071    0.118
   .soma_comp_5          0.059    0.007    7.931    0.000    0.059    0.091
   .withdep_comp_6       0.059    0.008    7.033    0.000    0.059    0.102
   .soma_comp_6          0.063    0.009    6.907    0.000    0.063    0.098
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_1        0.070    0.005   14.497    0.000    0.070    0.156
 .soma_comp_0 ~~                                                           
   .anxdep_comp_1        0.094    0.006   14.958    0.000    0.094    0.156
 .anxdep_comp_1 ~~                                                         
   .withdep_comp_1       0.106    0.005   20.113    0.000    0.106    0.223
   .soma_comp_1          0.109    0.006   16.878    0.000    0.109    0.179
   .withdep_comp_2       0.086    0.006   14.810    0.000    0.086    0.163
   .soma_comp_2          0.080    0.006   12.984    0.000    0.080    0.138
   .withdep_comp_3       0.101    0.006   15.581    0.000    0.101    0.174
   .soma_comp_3          0.075    0.006   11.892    0.000    0.075    0.129
   .withdep_comp_4       0.081    0.007   11.682    0.000    0.081    0.133
   .soma_comp_4          0.084    0.007   12.304    0.000    0.084    0.137
   .withdep_comp_5       0.089    0.007   12.219    0.000    0.089    0.145
   .soma_comp_5          0.075    0.008    9.808    0.000    0.075    0.114
   .withdep_comp_6       0.069    0.009    8.028    0.000    0.069    0.117
   .soma_comp_6          0.061    0.009    6.493    0.000    0.061    0.093
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_2        0.074    0.005   15.337    0.000    0.074    0.166
 .soma_comp_0 ~~                                                           
   .anxdep_comp_2        0.092    0.006   14.760    0.000    0.092    0.156
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_2        0.091    0.005   17.696    0.000    0.091    0.194
 .soma_comp_1 ~~                                                           
   .anxdep_comp_2        0.083    0.006   13.097    0.000    0.083    0.139
 .anxdep_comp_2 ~~                                                         
   .withdep_comp_2       0.141    0.006   23.958    0.000    0.141    0.273
   .soma_comp_2          0.115    0.006   18.574    0.000    0.115    0.201
   .withdep_comp_3       0.128    0.006   19.960    0.000    0.128    0.226
   .soma_comp_3          0.094    0.006   14.982    0.000    0.094    0.164
   .withdep_comp_4       0.111    0.007   16.152    0.000    0.111    0.186
   .soma_comp_4          0.104    0.007   15.446    0.000    0.104    0.173
   .withdep_comp_5       0.097    0.007   13.684    0.000    0.097    0.162
   .soma_comp_5          0.085    0.007   11.406    0.000    0.085    0.132
   .withdep_comp_6       0.074    0.008    8.916    0.000    0.074    0.128
   .soma_comp_6          0.075    0.009    8.354    0.000    0.075    0.118
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_3        0.064    0.005   12.764    0.000    0.064    0.141
 .soma_comp_0 ~~                                                           
   .anxdep_comp_3        0.098    0.007   14.991    0.000    0.098    0.161
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_3        0.080    0.005   15.096    0.000    0.080    0.168
 .soma_comp_1 ~~                                                           
   .anxdep_comp_3        0.088    0.007   13.426    0.000    0.088    0.145
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_3        0.113    0.006   18.849    0.000    0.113    0.213
 .soma_comp_2 ~~                                                           
   .anxdep_comp_3        0.099    0.006   15.605    0.000    0.099    0.170
 .anxdep_comp_3 ~~                                                         
   .withdep_comp_3       0.175    0.007   25.472    0.000    0.175    0.300
   .soma_comp_3          0.127    0.007   19.262    0.000    0.127    0.217
   .withdep_comp_4       0.130    0.007   18.207    0.000    0.130    0.213
   .soma_comp_4          0.130    0.007   18.460    0.000    0.130    0.211
   .withdep_comp_5       0.122    0.007   16.424    0.000    0.122    0.200
   .soma_comp_5          0.115    0.008   14.725    0.000    0.115    0.174
   .withdep_comp_6       0.087    0.008   10.296    0.000    0.087    0.147
   .soma_comp_6          0.118    0.009   12.770    0.000    0.118    0.179
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_4        0.050    0.005    9.987    0.000    0.050    0.114
 .soma_comp_0 ~~                                                           
   .anxdep_comp_4        0.079    0.006   12.196    0.000    0.079    0.134
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_4        0.067    0.005   12.703    0.000    0.067    0.145
 .soma_comp_1 ~~                                                           
   .anxdep_comp_4        0.076    0.007   11.767    0.000    0.076    0.130
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_4        0.090    0.006   15.220    0.000    0.090    0.176
 .soma_comp_2 ~~                                                           
   .anxdep_comp_4        0.084    0.006   13.297    0.000    0.084    0.149
 .withdep_comp_3 ~~                                                        
   .anxdep_comp_4        0.123    0.007   18.573    0.000    0.123    0.218
 .soma_comp_3 ~~                                                           
   .anxdep_comp_4        0.099    0.006   15.369    0.000    0.099    0.176
 .anxdep_comp_4 ~~                                                         
   .withdep_comp_4       0.173    0.007   23.821    0.000    0.173    0.293
   .soma_comp_4          0.143    0.007   20.414    0.000    0.143    0.240
   .withdep_comp_5       0.131    0.007   17.853    0.000    0.131    0.222
   .soma_comp_5          0.121    0.008   15.860    0.000    0.121    0.191
   .withdep_comp_6       0.101    0.008   12.025    0.000    0.101    0.177
   .soma_comp_6          0.121    0.009   13.162    0.000    0.121    0.190
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_5        0.053    0.005   10.017    0.000    0.053    0.118
 .soma_comp_0 ~~                                                           
   .anxdep_comp_5        0.071    0.007   10.379    0.000    0.071    0.119
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_5        0.070    0.006   12.618    0.000    0.070    0.149
 .soma_comp_1 ~~                                                           
   .anxdep_comp_5        0.079    0.007   11.542    0.000    0.079    0.132
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_5        0.093    0.006   15.019    0.000    0.093    0.179
 .soma_comp_2 ~~                                                           
   .anxdep_comp_5        0.089    0.007   13.439    0.000    0.089    0.155
 .withdep_comp_3 ~~                                                        
   .anxdep_comp_5        0.124    0.007   17.901    0.000    0.124    0.217
 .soma_comp_3 ~~                                                           
   .anxdep_comp_5        0.095    0.007   14.012    0.000    0.095    0.165
 .withdep_comp_4 ~~                                                        
   .anxdep_comp_5        0.141    0.007   19.035    0.000    0.141    0.235
 .soma_comp_4 ~~                                                           
   .anxdep_comp_5        0.134    0.007   18.376    0.000    0.134    0.222
 .anxdep_comp_5 ~~                                                         
   .withdep_comp_5       0.181    0.008   23.290    0.000    0.181    0.303
   .soma_comp_5          0.146    0.008   18.329    0.000    0.146    0.226
   .withdep_comp_6       0.107    0.009   12.406    0.000    0.107    0.185
   .soma_comp_6          0.122    0.009   12.944    0.000    0.122    0.189
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_6        0.052    0.006    8.495    0.000    0.052    0.122
 .soma_comp_0 ~~                                                           
   .anxdep_comp_6        0.065    0.008    8.285    0.000    0.065    0.113
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_6        0.068    0.006   10.674    0.000    0.068    0.151
 .soma_comp_1 ~~                                                           
   .anxdep_comp_6        0.069    0.008    8.696    0.000    0.069    0.120
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_6        0.092    0.007   12.533    0.000    0.092    0.185
 .soma_comp_2 ~~                                                           
   .anxdep_comp_6        0.088    0.008   11.709    0.000    0.088    0.159
 .withdep_comp_3 ~~                                                        
   .anxdep_comp_6        0.126    0.008   15.729    0.000    0.126    0.228
 .soma_comp_3 ~~                                                           
   .anxdep_comp_6        0.079    0.008   10.399    0.000    0.079    0.143
 .withdep_comp_4 ~~                                                        
   .anxdep_comp_6        0.143    0.008   16.824    0.000    0.143    0.248
 .soma_comp_4 ~~                                                           
   .anxdep_comp_6        0.111    0.008   13.213    0.000    0.111    0.190
 .withdep_comp_5 ~~                                                        
   .anxdep_comp_6        0.158    0.009   18.236    0.000    0.158    0.274
 .soma_comp_5 ~~                                                           
   .anxdep_comp_6        0.109    0.009   12.198    0.000    0.109    0.176
 .anxdep_comp_6 ~~                                                         
   .withdep_comp_6       0.181    0.009   19.451    0.000    0.181    0.324
   .soma_comp_6          0.140    0.010   14.520    0.000    0.140    0.226
 .withdep_comp_0 ~~                                                        
   .soma_comp_0          0.053    0.005   10.113    0.000    0.053    0.102
   .soma_comp_1          0.049    0.005    9.170    0.000    0.049    0.094
   .soma_comp_2          0.035    0.005    6.709    0.000    0.035    0.069
   .soma_comp_3          0.026    0.005    4.854    0.000    0.026    0.052
   .soma_comp_4          0.028    0.006    4.760    0.000    0.028    0.052
   .soma_comp_5          0.015    0.007    2.294    0.022    0.015    0.026
   .soma_comp_6          0.024    0.008    3.021    0.003    0.024    0.043
 .soma_comp_0 ~~                                                           
   .withdep_comp_1       0.033    0.006    5.944    0.000    0.033    0.060
 .withdep_comp_1 ~~                                                        
   .soma_comp_1          0.065    0.006   11.363    0.000    0.065    0.117
   .soma_comp_2          0.046    0.006    8.292    0.000    0.046    0.086
   .soma_comp_3          0.049    0.006    8.648    0.000    0.049    0.092
   .soma_comp_4          0.043    0.006    6.943    0.000    0.043    0.076
   .soma_comp_5          0.046    0.007    6.736    0.000    0.046    0.077
   .soma_comp_6          0.036    0.008    4.302    0.000    0.036    0.060
 .soma_comp_0 ~~                                                           
   .withdep_comp_2       0.047    0.006    7.517    0.000    0.047    0.078
 .soma_comp_1 ~~                                                           
   .withdep_comp_2       0.062    0.006    9.713    0.000    0.062    0.102
 .withdep_comp_2 ~~                                                        
   .soma_comp_2          0.079    0.006   12.751    0.000    0.079    0.135
   .soma_comp_3          0.058    0.006    9.180    0.000    0.058    0.099
   .soma_comp_4          0.073    0.007   10.618    0.000    0.073    0.118
   .soma_comp_5          0.062    0.008    8.110    0.000    0.062    0.093
   .soma_comp_6          0.049    0.010    5.083    0.000    0.049    0.074
 .soma_comp_0 ~~                                                           
   .withdep_comp_3       0.062    0.007    8.697    0.000    0.062    0.092
 .soma_comp_1 ~~                                                           
   .withdep_comp_3       0.056    0.007    7.772    0.000    0.056    0.082
 .soma_comp_2 ~~                                                           
   .withdep_comp_3       0.064    0.007    9.298    0.000    0.064    0.099
 .withdep_comp_3 ~~                                                        
   .soma_comp_3          0.079    0.007   11.222    0.000    0.079    0.122
   .soma_comp_4          0.096    0.008   12.532    0.000    0.096    0.141
   .soma_comp_5          0.091    0.008   10.697    0.000    0.091    0.124
   .soma_comp_6          0.092    0.010    8.969    0.000    0.092    0.127
 .soma_comp_0 ~~                                                           
   .withdep_comp_4       0.054    0.008    6.992    0.000    0.054    0.076
 .soma_comp_1 ~~                                                           
   .withdep_comp_4       0.065    0.008    8.479    0.000    0.065    0.092
 .soma_comp_2 ~~                                                           
   .withdep_comp_4       0.066    0.007    8.869    0.000    0.066    0.098
 .soma_comp_3 ~~                                                           
   .withdep_comp_4       0.079    0.008   10.365    0.000    0.079    0.116
 .withdep_comp_4 ~~                                                        
   .soma_comp_4          0.115    0.008   14.124    0.000    0.115    0.161
   .soma_comp_5          0.085    0.009    9.436    0.000    0.085    0.111
   .soma_comp_6          0.099    0.011    9.064    0.000    0.099    0.130
 .soma_comp_0 ~~                                                           
   .withdep_comp_5       0.047    0.008    5.851    0.000    0.047    0.066
 .soma_comp_1 ~~                                                           
   .withdep_comp_5       0.057    0.008    7.144    0.000    0.057    0.081
 .soma_comp_2 ~~                                                           
   .withdep_comp_5       0.057    0.008    7.365    0.000    0.057    0.084
 .soma_comp_3 ~~                                                           
   .withdep_comp_5       0.070    0.008    8.896    0.000    0.070    0.104
 .soma_comp_4 ~~                                                           
   .withdep_comp_5       0.098    0.008   11.561    0.000    0.098    0.137
 .withdep_comp_5 ~~                                                        
   .soma_comp_5          0.111    0.009   12.121    0.000    0.111    0.146
   .soma_comp_6          0.101    0.011    9.113    0.000    0.101    0.133
 .soma_comp_0 ~~                                                           
   .withdep_comp_6       0.051    0.009    5.485    0.000    0.051    0.075
 .soma_comp_1 ~~                                                           
   .withdep_comp_6       0.039    0.009    4.137    0.000    0.039    0.057
 .soma_comp_2 ~~                                                           
   .withdep_comp_6       0.042    0.009    4.749    0.000    0.042    0.065
 .soma_comp_3 ~~                                                           
   .withdep_comp_6       0.045    0.009    5.031    0.000    0.045    0.069
 .soma_comp_4 ~~                                                           
   .withdep_comp_6       0.063    0.010    6.344    0.000    0.063    0.091
 .soma_comp_5 ~~                                                           
   .withdep_comp_6       0.062    0.011    5.820    0.000    0.062    0.084
 .withdep_comp_6 ~~                                                        
   .soma_comp_6          0.094    0.011    8.280    0.000    0.094    0.127
 .rulebreak_comp_0 ~~                                                      
   .aggress_comp_0       0.240    0.006   38.897    0.000    0.240    0.479
   .aggress_comp_1       0.189    0.006   32.787    0.000    0.189    0.385
   .aggress_comp_2       0.177    0.006   31.210    0.000    0.177    0.368
   .aggress_comp_3       0.154    0.006   27.145    0.000    0.154    0.325
   .aggress_comp_4       0.142    0.005   26.120    0.000    0.142    0.317
   .aggress_comp_5       0.146    0.006   26.074    0.000    0.146    0.323
   .aggress_comp_6       0.120    0.006   19.959    0.000    0.120    0.291
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_1       0.199    0.006   33.866    0.000    0.199    0.398
 .rulebreak_comp_1 ~~                                                      
   .aggress_comp_1       0.237    0.006   38.731    0.000    0.237    0.484
   .aggress_comp_2       0.186    0.006   32.611    0.000    0.186    0.389
   .aggress_comp_3       0.169    0.006   29.542    0.000    0.169    0.357
   .aggress_comp_4       0.157    0.005   28.702    0.000    0.157    0.351
   .aggress_comp_5       0.149    0.006   26.559    0.000    0.149    0.330
   .aggress_comp_6       0.134    0.006   21.955    0.000    0.134    0.325
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_2       0.170    0.006   29.242    0.000    0.170    0.343
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_2       0.174    0.006   30.224    0.000    0.174    0.359
 .rulebreak_comp_2 ~~                                                      
   .aggress_comp_2       0.235    0.006   38.575    0.000    0.235    0.496
   .aggress_comp_3       0.179    0.006   30.896    0.000    0.179    0.383
   .aggress_comp_4       0.154    0.006   28.051    0.000    0.154    0.348
   .aggress_comp_5       0.156    0.006   27.787    0.000    0.156    0.350
   .aggress_comp_6       0.149    0.006   24.536    0.000    0.149    0.366
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_3       0.164    0.006   27.571    0.000    0.164    0.329
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_3       0.170    0.006   28.865    0.000    0.170    0.347
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_3       0.185    0.006   31.451    0.000    0.185    0.387
 .rulebreak_comp_3 ~~                                                      
   .aggress_comp_3       0.238    0.006   37.887    0.000    0.238    0.505
   .aggress_comp_4       0.174    0.006   30.867    0.000    0.174    0.391
   .aggress_comp_5       0.166    0.006   28.852    0.000    0.166    0.370
   .aggress_comp_6       0.160    0.006   26.649    0.000    0.160    0.391
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_4       0.170    0.006   26.632    0.000    0.170    0.322
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_4       0.178    0.006   28.182    0.000    0.178    0.343
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_4       0.179    0.006   28.717    0.000    0.179    0.353
 .aggress_comp_3 ~~                                                        
   .rulebrek_cmp_4       0.194    0.006   30.464    0.000    0.194    0.388
 .rulebreak_comp_4 ~~                                                      
   .aggress_comp_4       0.245    0.006   38.060    0.000    0.245    0.518
   .aggress_comp_5       0.206    0.006   32.622    0.000    0.206    0.432
   .aggress_comp_6       0.176    0.007   26.729    0.000    0.176    0.405
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_5       0.182    0.007   25.707    0.000    0.182    0.317
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_5       0.176    0.007   25.337    0.000    0.176    0.313
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_5       0.200    0.007   28.823    0.000    0.200    0.362
 .aggress_comp_3 ~~                                                        
   .rulebrek_cmp_5       0.198    0.007   28.276    0.000    0.198    0.364
 .aggress_comp_4 ~~                                                        
   .rulebrek_cmp_5       0.216    0.007   32.042    0.000    0.216    0.419
 .rulebreak_comp_5 ~~                                                      
   .aggress_comp_5       0.290    0.007   39.536    0.000    0.290    0.559
   .aggress_comp_6       0.227    0.007   30.879    0.000    0.227    0.479
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_6       0.157    0.008   20.358    0.000    0.157    0.292
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_6       0.149    0.008   19.497    0.000    0.149    0.282
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_6       0.173    0.007   23.107    0.000    0.173    0.336
 .aggress_comp_3 ~~                                                        
   .rulebrek_cmp_6       0.181    0.007   24.280    0.000    0.181    0.355
 .aggress_comp_4 ~~                                                        
   .rulebrek_cmp_6       0.200    0.007   27.661    0.000    0.200    0.415
 .aggress_comp_5 ~~                                                        
   .rulebrek_cmp_6       0.225    0.007   29.999    0.000    0.225    0.463
 .rulebreak_comp_6 ~~                                                      
   .aggress_comp_6       0.249    0.008   32.074    0.000    0.249    0.563

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    p_etaB            0.000                               0.000    0.000
    p_eta1            0.000                               0.000    0.000
    p_eta2            0.000                               0.000    0.000
    p_eta3            0.000                               0.000    0.000
    p_eta4            0.000                               0.000    0.000
   .anxd__0 (t_X0)    0.052    0.009    5.470    0.000    0.052    0.050
   .anxd__1 (t_X1)    0.060    0.010    6.205    0.000    0.060    0.058
   .anxd__2 (t_X2)   -0.015    0.009   -1.590    0.112   -0.015   -0.015
   .anxd__3 (t_X3)   -0.004    0.010   -0.379    0.705   -0.004   -0.004
   .anxd__4 (t_X4)   -0.034    0.010   -3.410    0.001   -0.034   -0.033
   .anxd__5 (t_X5)    0.004    0.010    0.384    0.701    0.004    0.004
   .anxd__6 (t_X6)   -0.107    0.011   -9.345    0.000   -0.107   -0.110
   .wthd__0 (t_W0)   -0.155    0.008  -20.096    0.000   -0.155   -0.185
   .wthd__1 (t_W1)   -0.112    0.008  -13.706    0.000   -0.112   -0.128
   .wthd__2 (t_W2)   -0.045    0.009   -4.906    0.000   -0.045   -0.046
   .wthd__3 (t_W3)    0.063    0.010    6.062    0.000    0.063    0.058
   .wthd__4 (t_W4)    0.123    0.011   10.765    0.000    0.123    0.105
   .wthd__5 (t_W5)    0.212    0.012   17.650    0.000    0.212    0.177
   .wthd__6 (t_W6)    0.105    0.014    7.626    0.000    0.105    0.090
   .sm_cm_0 (t_S0)    0.031    0.009    3.396    0.001    0.031    0.031
   .sm_cm_1 (t_S1)    0.012    0.009    1.271    0.204    0.012    0.012
   .sm_cm_2 (t_S2)   -0.033    0.009   -3.641    0.000   -0.033   -0.034
   .sm_cm_3 (t_S3)   -0.036    0.009   -3.795    0.000   -0.036   -0.037
   .sm_cm_4 (t_S4)   -0.012    0.010   -1.233    0.218   -0.012   -0.012
   .sm_cm_5 (t_S5)    0.067    0.011    5.855    0.000    0.067    0.059
   .sm_cm_6 (t_S6)    0.033    0.014    2.408    0.016    0.033    0.029
   .scpr__0 (t_P0)    0.167    0.010   16.528    0.000    0.167    0.152
   .scpr__1 (t_P1)    0.113    0.010   11.471    0.000    0.113    0.107
   .scpr__2 (t_P2)    0.026    0.009    2.719    0.007    0.026    0.026
   .scpr__3 (t_P3)   -0.025    0.009   -2.725    0.006   -0.025   -0.026
   .scpr__4 (t_P4)   -0.087    0.009   -9.565    0.000   -0.087   -0.093
   .scpr__5 (t_P5)   -0.104    0.009  -11.167    0.000   -0.104   -0.112
   .scpr__6 (t_P6)   -0.188    0.010  -18.894    0.000   -0.188   -0.223
   .thpr__0 (t_H0)    0.078    0.009    8.248    0.000    0.078    0.076
   .thpr__1 (t_H1)    0.079    0.010    8.027    0.000    0.079    0.075
   .thpr__2 (t_H2)   -0.003    0.009   -0.357    0.721   -0.003   -0.003
   .thpr__3 (t_H3)   -0.018    0.009   -1.870    0.062   -0.018   -0.018
   .thpr__4 (t_H4)   -0.056    0.009   -5.906    0.000   -0.056   -0.058
   .thpr__5 (t_H5)   -0.007    0.010   -0.661    0.509   -0.007   -0.007
   .thpr__6 (t_H6)   -0.129    0.011  -11.992    0.000   -0.129   -0.143
   .attp__0 (t_A0)    0.075    0.009    8.134    0.000    0.075    0.075
   .attp__1 (t_A1)    0.045    0.009    4.911    0.000    0.045    0.046
   .attp__2 (t_A2)    0.007    0.009    0.801    0.423    0.007    0.008
   .attp__3 (t_A3)    0.031    0.009    3.351    0.001    0.031    0.032
   .attp__4 (t_A4)   -0.037    0.009   -4.027    0.000   -0.037   -0.039
   .attp__5 (t_A5)   -0.028    0.009   -2.944    0.003   -0.028   -0.029
   .attp__6 (t_A6)   -0.115    0.011  -10.956    0.000   -0.115   -0.126
   .rlbr__0 (t_R0)    0.052    0.009    5.685    0.000    0.052    0.052
   .rlbr__1 (t_R1)    0.020    0.009    2.175    0.030    0.020    0.020
   .rlbr__2 (t_R2)   -0.010    0.009   -1.031    0.302   -0.010   -0.010
   .rlbr__3 (t_R3)   -0.001    0.010   -0.098    0.922   -0.001   -0.001
   .rlbr__4 (t_R4)    0.001    0.010    0.106    0.915    0.001    0.001
   .rlbr__5 (t_R5)    0.059    0.011    5.273    0.000    0.059    0.053
   .rlbr__6 (t_R6)   -0.023    0.012   -1.874    0.061   -0.023   -0.022
   .aggr__0 (t_G0)    0.118    0.010   11.725    0.000    0.118    0.108
   .aggr__1 (t_G1)    0.071    0.010    7.206    0.000    0.071    0.067
   .aggr__2 (t_G2)    0.022    0.010    2.300    0.021    0.022    0.022
   .aggr__3 (t_G3)    0.029    0.010    3.057    0.002    0.029    0.029
   .aggr__4 (t_G4)   -0.062    0.009   -6.706    0.000   -0.062   -0.065
   .aggr__5 (t_G5)   -0.064    0.009   -6.748    0.000   -0.064   -0.067
   .aggr__6 (t_G6)   -0.176    0.010  -18.104    0.000   -0.176   -0.208

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    p_etaB            1.000                               1.000    1.000
    p_eta1            1.000                               1.000    1.000
    p_eta2            1.000                               1.000    1.000
    p_eta3            1.000                               1.000    1.000
    p_eta4            1.000                               1.000    1.000
    p_eta5            1.000                               1.000    1.000
    p_eta6            1.000                               1.000    1.000
   .anxdep_comp_0     0.509    0.008   66.859    0.000    0.509    0.476
   .withdep_comp_0    0.392    0.006   69.569    0.000    0.392    0.555
   .soma_comp_0       0.701    0.010   73.238    0.000    0.701    0.726
   .socprob_comp_0    0.385    0.007   57.033    0.000    0.385    0.317
   .thouprob_cmp_0    0.414    0.007   62.136    0.000    0.414    0.388
   .attprob_comp_0    0.457    0.007   64.765    0.000    0.457    0.457
   .rulebrek_cmp_0    0.562    0.008   69.315    0.000    0.562    0.573
   .aggress_comp_0    0.446    0.007   62.032    0.000    0.446    0.374
   .anxdep_comp_1     0.524    0.008   65.641    0.000    0.524    0.487
   .withdep_comp_1    0.434    0.006   67.919    0.000    0.434    0.561
   .soma_comp_1       0.706    0.010   71.439    0.000    0.706    0.729
   .socprob_comp_1    0.369    0.007   56.222    0.000    0.369    0.329
   .thouprob_cmp_1    0.413    0.007   59.658    0.000    0.413    0.374
   .attprob_comp_1    0.450    0.007   63.662    0.000    0.450    0.465
   .rulebrek_cmp_1    0.558    0.008   67.781    0.000    0.558    0.588
   .aggress_comp_1    0.430    0.007   61.279    0.000    0.430    0.387
   .anxdep_comp_2     0.502    0.008   64.976    0.000    0.502    0.495
   .withdep_comp_2    0.530    0.008   66.696    0.000    0.530    0.551
   .soma_comp_2       0.648    0.009   69.962    0.000    0.648    0.717
   .socprob_comp_2    0.344    0.006   55.849    0.000    0.344    0.336
   .thouprob_cmp_2    0.372    0.006   58.488    0.000    0.372    0.376
   .attprob_comp_2    0.421    0.007   62.587    0.000    0.421    0.457
   .rulebrek_cmp_2    0.546    0.008   65.871    0.000    0.546    0.566
   .aggress_comp_2    0.412    0.007   60.494    0.000    0.412    0.396
   .anxdep_comp_3     0.526    0.008   63.131    0.000    0.526    0.490
   .withdep_comp_3    0.645    0.010   65.040    0.000    0.645    0.552
   .soma_comp_3       0.647    0.010   67.382    0.000    0.647    0.684
   .socprob_comp_3    0.327    0.006   55.829    0.000    0.327    0.350
   .thouprob_cmp_3    0.342    0.006   55.878    0.000    0.342    0.355
   .attprob_comp_3    0.408    0.007   60.520    0.000    0.408    0.436
   .rulebrek_cmp_3    0.555    0.009   63.231    0.000    0.555    0.557
   .aggress_comp_3    0.400    0.007   58.854    0.000    0.400    0.391
   .anxdep_comp_4     0.493    0.008   60.573    0.000    0.493    0.471
   .withdep_comp_4    0.708    0.011   62.086    0.000    0.708    0.520
   .soma_comp_4       0.723    0.011   65.254    0.000    0.723    0.683
   .socprob_comp_4    0.318    0.006   55.051    0.000    0.318    0.363
   .thouprob_cmp_4    0.316    0.006   53.317    0.000    0.316    0.337
   .attprob_comp_4    0.364    0.006   57.368    0.000    0.364    0.401
   .rulebrek_cmp_4    0.626    0.010   62.038    0.000    0.626    0.570
   .aggress_comp_4    0.359    0.006   57.797    0.000    0.359    0.400
   .anxdep_comp_5     0.506    0.009   57.767    0.000    0.506    0.458
   .withdep_comp_5    0.708    0.012   58.900    0.000    0.708    0.490
   .soma_comp_5       0.821    0.013   61.864    0.000    0.821    0.650
   .socprob_comp_5    0.313    0.006   52.879    0.000    0.313    0.360
   .thouprob_cmp_5    0.344    0.007   50.440    0.000    0.344    0.321
   .attprob_comp_5    0.385    0.007   56.542    0.000    0.385    0.419
   .rulebrek_cmp_5    0.739    0.012   60.691    0.000    0.739    0.590
   .aggress_comp_5    0.365    0.007   56.035    0.000    0.365    0.402
   .anxdep_comp_6     0.471    0.010   46.053    0.000    0.471    0.502
   .withdep_comp_6    0.661    0.015   45.587    0.000    0.661    0.494
   .soma_comp_6       0.818    0.017   48.437    0.000    0.818    0.652
   .socprob_comp_6    0.267    0.006   41.029    0.000    0.267    0.373
   .thouprob_cmp_6    0.287    0.007   39.397    0.000    0.287    0.355
   .attprob_comp_6    0.347    0.008   44.026    0.000    0.347    0.416
   .rulebrek_cmp_6    0.647    0.013   48.380    0.000    0.647    0.603
   .aggress_comp_6    0.303    0.007   44.865    0.000    0.303    0.424

R-Square:
                   Estimate
    anxdep_comp_0     0.524
    withdep_comp_0    0.445
    soma_comp_0       0.274
    socprob_comp_0    0.683
    thouprob_cmp_0    0.612
    attprob_comp_0    0.543
    rulebrek_cmp_0    0.427
    aggress_comp_0    0.626
    anxdep_comp_1     0.513
    withdep_comp_1    0.439
    soma_comp_1       0.271
    socprob_comp_1    0.671
    thouprob_cmp_1    0.626
    attprob_comp_1    0.535
    rulebrek_cmp_1    0.412
    aggress_comp_1    0.613
    anxdep_comp_2     0.505
    withdep_comp_2    0.449
    soma_comp_2       0.283
    socprob_comp_2    0.664
    thouprob_cmp_2    0.624
    attprob_comp_2    0.543
    rulebrek_cmp_2    0.434
    aggress_comp_2    0.604
    anxdep_comp_3     0.510
    withdep_comp_3    0.448
    soma_comp_3       0.316
    socprob_comp_3    0.650
    thouprob_cmp_3    0.645
    attprob_comp_3    0.564
    rulebrek_cmp_3    0.443
    aggress_comp_3    0.609
    anxdep_comp_4     0.529
    withdep_comp_4    0.480
    soma_comp_4       0.317
    socprob_comp_4    0.637
    thouprob_cmp_4    0.663
    attprob_comp_4    0.599
    rulebrek_cmp_4    0.430
    aggress_comp_4    0.600
    anxdep_comp_5     0.542
    withdep_comp_5    0.510
    soma_comp_5       0.350
    socprob_comp_5    0.640
    thouprob_cmp_5    0.679
    attprob_comp_5    0.581
    rulebrek_cmp_5    0.410
    aggress_comp_5    0.598
    anxdep_comp_6     0.498
    withdep_comp_6    0.506
    soma_comp_6       0.348
    socprob_comp_6    0.627
    thouprob_cmp_6    0.645
    attprob_comp_6    0.584
    rulebrek_cmp_6    0.397
    aggress_comp_6    0.576

Weak invariance model

model fit
pc.7t.weak.invar <- "#factor loadings (with constraints)
               p_etaB =~ 1*anxdep_comp_0+
                         lambda_W*withdep_comp_0+
                         lambda_S*soma_comp_0+
                         lambda_C*socprob_comp_0+
                         lambda_H*thouprob_comp_0+
                         lambda_A*attprob_comp_0+
                         lambda_R*rulebreak_comp_0+
                         lambda_G*aggress_comp_0

               p_eta1 =~ 1*anxdep_comp_1+
                         lambda_W*withdep_comp_1+
                         lambda_S*soma_comp_1+
                         lambda_C*socprob_comp_1+
                         lambda_H*thouprob_comp_1+
                         lambda_A*attprob_comp_1+
                         lambda_R*rulebreak_comp_1+
                         lambda_G*aggress_comp_1

               p_eta2 =~ 1*anxdep_comp_2+
                         lambda_W*withdep_comp_2+
                         lambda_S*soma_comp_2+
                         lambda_C*socprob_comp_2+
                         lambda_H*thouprob_comp_2+
                         lambda_A*attprob_comp_2+
                         lambda_R*rulebreak_comp_2+
                         lambda_G*aggress_comp_2

               p_eta3 =~ 1*anxdep_comp_3+
                         lambda_W*withdep_comp_3+
                         lambda_S*soma_comp_3+
                         lambda_C*socprob_comp_3+
                         lambda_H*thouprob_comp_3+
                         lambda_A*attprob_comp_3+
                         lambda_R*rulebreak_comp_3+
                         lambda_G*aggress_comp_3

               p_eta4 =~ 1*anxdep_comp_4+
                         lambda_W*withdep_comp_4+
                         lambda_S*soma_comp_4+
                         lambda_C*socprob_comp_4+
                         lambda_H*thouprob_comp_4+
                         lambda_A*attprob_comp_4+
                         lambda_R*rulebreak_comp_4+
                         lambda_G*aggress_comp_4

               p_eta5 =~ 1*anxdep_comp_5+
                         lambda_W*withdep_comp_5+
                         lambda_S*soma_comp_5+
                         lambda_C*socprob_comp_5+
                         lambda_H*thouprob_comp_5+
                         lambda_A*attprob_comp_5+
                         lambda_R*rulebreak_comp_5+
                         lambda_G*aggress_comp_5

               p_eta6 =~ 1*anxdep_comp_6+
                         lambda_W*withdep_comp_6+
                         lambda_S*soma_comp_6+
                         lambda_C*socprob_comp_6+
                         lambda_H*thouprob_comp_6+
                         lambda_A*attprob_comp_6+
                         lambda_R*rulebreak_comp_6+
                         lambda_G*aggress_comp_6

              #latent variable variances
                      p_etaB~~NA*p_etaB
                      p_eta1~~NA*p_eta1
                      p_eta2~~NA*p_eta2
                      p_eta3~~NA*p_eta3
                      p_eta4~~NA*p_eta4
                      p_eta5~~NA*p_eta5
                      p_eta6~~NA*p_eta6

              #latent variable covariances
                      p_etaB~~p_eta1 + p_eta2 + p_eta3 + p_eta4 + p_eta5 + p_eta6
                      p_eta1~~p_eta2 + p_eta3 + p_eta4 + p_eta5 + p_eta6
                      p_eta2~~p_eta3 + p_eta4 + p_eta5 + p_eta6
                      p_eta3~~p_eta4 + p_eta5 + p_eta6
                      p_eta4~~p_eta5 + p_eta6
                      p_eta5~~p_eta6

              #unique variances # No need to constrict these
                      anxdep_comp_0~~anxdep_comp_0
                      withdep_comp_0~~withdep_comp_0
                      soma_comp_0~~soma_comp_0
                      socprob_comp_0~~socprob_comp_0
                      thouprob_comp_0~~thouprob_comp_0
                      attprob_comp_0~~attprob_comp_0
                      rulebreak_comp_0~~rulebreak_comp_0
                      aggress_comp_0~~aggress_comp_0
                      anxdep_comp_1~~anxdep_comp_1
                      withdep_comp_1~~withdep_comp_1
                      soma_comp_1~~soma_comp_1
                      socprob_comp_1~~socprob_comp_1
                      thouprob_comp_1~~thouprob_comp_1
                      attprob_comp_1~~attprob_comp_1
                      rulebreak_comp_1~~rulebreak_comp_1
                      aggress_comp_1~~aggress_comp_1

                      anxdep_comp_2~~anxdep_comp_2
                      withdep_comp_2~~withdep_comp_2
                      soma_comp_2~~soma_comp_2
                      socprob_comp_2~~socprob_comp_2
                      thouprob_comp_2~~thouprob_comp_2
                      attprob_comp_2~~attprob_comp_2
                      rulebreak_comp_2~~rulebreak_comp_2
                      aggress_comp_2~~aggress_comp_2

                      anxdep_comp_3~~anxdep_comp_3
                      withdep_comp_3~~withdep_comp_3
                      soma_comp_3~~soma_comp_3
                      socprob_comp_3~~socprob_comp_3
                      thouprob_comp_3~~thouprob_comp_3
                      attprob_comp_3~~attprob_comp_3
                      rulebreak_comp_3~~rulebreak_comp_3
                      aggress_comp_3~~aggress_comp_3

                      anxdep_comp_4~~anxdep_comp_4
                      withdep_comp_4~~withdep_comp_4
                      soma_comp_4~~soma_comp_4
                      socprob_comp_4~~socprob_comp_4
                      thouprob_comp_4~~thouprob_comp_4
                      attprob_comp_4~~attprob_comp_4
                      rulebreak_comp_4~~rulebreak_comp_4
                      aggress_comp_4~~aggress_comp_4

                      anxdep_comp_5~~anxdep_comp_5
                      withdep_comp_5~~withdep_comp_5
                      soma_comp_5~~soma_comp_5
                      socprob_comp_5~~socprob_comp_5
                      thouprob_comp_5~~thouprob_comp_5
                      attprob_comp_5~~attprob_comp_5
                      rulebreak_comp_5~~rulebreak_comp_5
                      aggress_comp_5~~aggress_comp_5

                      anxdep_comp_6~~anxdep_comp_6
                      withdep_comp_6~~withdep_comp_6
                      soma_comp_6~~soma_comp_6
                      socprob_comp_6~~socprob_comp_6
                      thouprob_comp_6~~thouprob_comp_6
                      attprob_comp_6~~attprob_comp_6
                      rulebreak_comp_6~~rulebreak_comp_6
                      aggress_comp_6~~aggress_comp_6

              #unique covariances
                      # Scores arcoss times
                      anxdep_comp_0~~anxdep_comp_1 + anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_1~~anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_2~~anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_3~~anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_4~~anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_5~~anxdep_comp_6

                      withdep_comp_0~~withdep_comp_1 + withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_1~~withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_2~~withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_3~~withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_4~~withdep_comp_5 + withdep_comp_6
                      withdep_comp_5~~withdep_comp_6

                      soma_comp_0~~soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_1~~soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_2~~soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_3~~soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_4~~soma_comp_5 + soma_comp_6
                      soma_comp_5~~soma_comp_6

                      socprob_comp_0~~socprob_comp_1 + socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_1~~socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_2~~socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_3~~socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_4~~socprob_comp_5 + socprob_comp_6
                      socprob_comp_5~~socprob_comp_6

                      thouprob_comp_0~~thouprob_comp_1 + thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_1~~thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_2~~thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_3~~thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_4~~thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_5~~thouprob_comp_6

                      attprob_comp_0~~attprob_comp_1 + attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_1~~attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_2~~attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_3~~attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_4~~attprob_comp_5 + attprob_comp_6
                      attprob_comp_5~~attprob_comp_6

                      rulebreak_comp_0~~rulebreak_comp_1 + rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_1~~rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_2~~rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_3~~rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_4~~rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_5~~rulebreak_comp_6

                      aggress_comp_0~~aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_1~~aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_2~~aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_3~~aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_4~~aggress_comp_5 + aggress_comp_6
                      aggress_comp_5~~aggress_comp_6

                      # Internalizeing subscale covariances
                      anxdep_comp_0~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_1~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_2~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_3~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_4~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_5~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_6~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6

                      withdep_comp_0~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_1~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_2~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_3~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_4~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_5~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_6~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6

                      # Externalizeing subscale covariances
                      rulebreak_comp_0~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_1~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_2~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_3~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_4~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_5~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_6~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6

                      #latent variable intercepts
                      p_etaB~0*1
                      p_eta1~0*1
                      p_eta2~0*1
                      p_eta3~0*1
                      p_eta4~0*1

              #observed variable intercepts
                      anxdep_comp_0~tau_X0*1
                      anxdep_comp_1~tau_X1*1
                      anxdep_comp_2~tau_X2*1
                      anxdep_comp_3~tau_X3*1
                      anxdep_comp_4~tau_X4*1
                      anxdep_comp_5~tau_X5*1
                      anxdep_comp_6~tau_X6*1
                      withdep_comp_0~tau_W0*1
                      withdep_comp_1~tau_W1*1
                      withdep_comp_2~tau_W2*1
                      withdep_comp_3~tau_W3*1
                      withdep_comp_4~tau_W4*1
                      withdep_comp_5~tau_W5*1
                      withdep_comp_6~tau_W6*1
                      soma_comp_0~tau_S0*1
                      soma_comp_1~tau_S1*1
                      soma_comp_2~tau_S2*1
                      soma_comp_3~tau_S3*1
                      soma_comp_4~tau_S4*1
                      soma_comp_5~tau_S5*1
                      soma_comp_6~tau_S6*1
                      socprob_comp_0~tau_P0*1
                      socprob_comp_1~tau_P1*1
                      socprob_comp_2~tau_P2*1
                      socprob_comp_3~tau_P3*1
                      socprob_comp_4~tau_P4*1
                      socprob_comp_5~tau_P5*1
                      socprob_comp_6~tau_P6*1
                      thouprob_comp_0~tau_H0*1
                      thouprob_comp_1~tau_H1*1
                      thouprob_comp_2~tau_H2*1
                      thouprob_comp_3~tau_H3*1
                      thouprob_comp_4~tau_H4*1
                      thouprob_comp_5~tau_H5*1
                      thouprob_comp_6~tau_H6*1
                      attprob_comp_0~tau_A0*1
                      attprob_comp_1~tau_A1*1
                      attprob_comp_2~tau_A2*1
                      attprob_comp_3~tau_A3*1
                      attprob_comp_4~tau_A4*1
                      attprob_comp_5~tau_A5*1
                      attprob_comp_6~tau_A6*1
                      rulebreak_comp_0~tau_R0*1
                      rulebreak_comp_1~tau_R1*1
                      rulebreak_comp_2~tau_R2*1
                      rulebreak_comp_3~tau_R3*1
                      rulebreak_comp_4~tau_R4*1
                      rulebreak_comp_5~tau_R5*1
                      rulebreak_comp_6~tau_R6*1
                      aggress_comp_0~tau_G0*1
                      aggress_comp_1~tau_G1*1
                      aggress_comp_2~tau_G2*1
                      aggress_comp_3~tau_G3*1
                      aggress_comp_4~tau_G4*1
                      aggress_comp_5~tau_G5*1
                      aggress_comp_6~tau_G6*1"

lavaan(pc.7t.weak.invar,
  data = pc_factor_nolow_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("pc_7t_weak.rds")
result
readRDS("pc_7t_weak.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pc_7t_weak_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pc_7t_weak.rds"), "cor.lv"))$value
[1] 5.2163038 0.6505324 0.3242678 0.2432078 0.2044298 0.1928034 0.1684550
readRDS("pc_7t_weak_result.rds")
lavaan 0.6-19 ended normally after 218 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       553
  Number of equality constraints                    42

                                                  Used       Total
  Number of observations                         11865       11867
  Number of missing patterns                        82            

Model Test User Model:
                                                       
  Test statistic                              11464.355
  Degrees of freedom                               1141
  P-value (Chi-square)                            0.000

Model Test Baseline Model:

  Test statistic                            512564.005
  Degrees of freedom                              1540
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.980
  Tucker-Lewis Index (TLI)                       0.973
                                                      
  Robust Comparative Fit Index (CFI)             0.980
  Robust Tucker-Lewis Index (TLI)                0.972

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -508031.603
  Loglikelihood unrestricted model (H1)    -502299.426
                                                      
  Akaike (AIC)                             1017085.206
  Bayesian (BIC)                           1020857.075
  Sample-size adjusted Bayesian (SABIC)    1019233.175

Root Mean Square Error of Approximation:

  RMSEA                                          0.028
  90 Percent confidence interval - lower         0.027
  90 Percent confidence interval - upper         0.028
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.032
  90 Percent confidence interval - lower         0.031
  90 Percent confidence interval - upper         0.032
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.057

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_etaB =~                                                             
    anxd__0           1.000                               0.746    0.721
    wthd__0 (lm_W)    0.888    0.006  143.459    0.000    0.662    0.725
    sm_cm_0 (lm_S)    0.739    0.007  109.855    0.000    0.551    0.550
    scpr__0 (lm_C)    1.111    0.007  151.852    0.000    0.828    0.790
    thpr__0 (lm_H)    1.108    0.007  150.973    0.000    0.826    0.793
    attp__0 (lm_A)    0.999    0.007  141.268    0.000    0.745    0.742
    rlbr__0 (lm_R)    0.901    0.007  120.985    0.000    0.672    0.669
    aggr__0 (lm_G)    1.066    0.007  145.494    0.000    0.795    0.759
  p_eta1 =~                                                             
    anxd__1           1.000                               0.733    0.710
    wthd__1 (lm_W)    0.888    0.006  143.459    0.000    0.651    0.702
    sm_cm_1 (lm_S)    0.739    0.007  109.855    0.000    0.541    0.541
    scpr__1 (lm_C)    1.111    0.007  151.852    0.000    0.814    0.795
    thpr__1 (lm_H)    1.108    0.007  150.973    0.000    0.812    0.784
    attp__1 (lm_A)    0.999    0.007  141.268    0.000    0.732    0.739
    rlbr__1 (lm_R)    0.901    0.007  120.985    0.000    0.660    0.664
    aggr__1 (lm_G)    1.066    0.007  145.494    0.000    0.781    0.762
  p_eta2 =~                                                             
    anxd__2           1.000                               0.717    0.711
    wthd__2 (lm_W)    0.888    0.006  143.459    0.000    0.637    0.657
    sm_cm_2 (lm_S)    0.739    0.007  109.855    0.000    0.530    0.550
    scpr__2 (lm_C)    1.111    0.007  151.852    0.000    0.796    0.803
    thpr__2 (lm_H)    1.108    0.007  150.973    0.000    0.794    0.795
    attp__2 (lm_A)    0.999    0.007  141.268    0.000    0.716    0.742
    rlbr__2 (lm_R)    0.901    0.007  120.985    0.000    0.646    0.658
    aggr__2 (lm_G)    1.066    0.007  145.494    0.000    0.765    0.763
  p_eta3 =~                                                             
    anxd__3           1.000                               0.719    0.704
    wthd__3 (lm_W)    0.888    0.006  143.459    0.000    0.639    0.619
    sm_cm_3 (lm_S)    0.739    0.007  109.855    0.000    0.532    0.551
    scpr__3 (lm_C)    1.111    0.007  151.852    0.000    0.799    0.817
    thpr__3 (lm_H)    1.108    0.007  150.973    0.000    0.797    0.807
    attp__3 (lm_A)    0.999    0.007  141.268    0.000    0.719    0.745
    rlbr__3 (lm_R)    0.901    0.007  120.985    0.000    0.648    0.656
    aggr__3 (lm_G)    1.066    0.007  145.494    0.000    0.767    0.770
  p_eta4 =~                                                             
    anxd__4           1.000                               0.709    0.710
    wthd__4 (lm_W)    0.888    0.006  143.459    0.000    0.630    0.589
    sm_cm_4 (lm_S)    0.739    0.007  109.855    0.000    0.524    0.522
    scpr__4 (lm_C)    1.111    0.007  151.852    0.000    0.788    0.820
    thpr__4 (lm_H)    1.108    0.007  150.973    0.000    0.786    0.812
    attp__4 (lm_A)    0.999    0.007  141.268    0.000    0.709    0.755
    rlbr__4 (lm_R)    0.901    0.007  120.985    0.000    0.639    0.626
    aggr__4 (lm_G)    1.066    0.007  145.494    0.000    0.757    0.786
  p_eta5 =~                                                             
    anxd__5           1.000                               0.725    0.710
    wthd__5 (lm_W)    0.888    0.006  143.459    0.000    0.644    0.592
    sm_cm_5 (lm_S)    0.739    0.007  109.855    0.000    0.536    0.501
    scpr__5 (lm_C)    1.111    0.007  151.852    0.000    0.805    0.829
    thpr__5 (lm_H)    1.108    0.007  150.973    0.000    0.803    0.799
    attp__5 (lm_A)    0.999    0.007  141.268    0.000    0.724    0.757
    rlbr__5 (lm_R)    0.901    0.007  120.985    0.000    0.653    0.603
    aggr__5 (lm_G)    1.066    0.007  145.494    0.000    0.773    0.792
  p_eta6 =~                                                             
    anxd__6           1.000                               0.647    0.685
    wthd__6 (lm_W)    0.888    0.006  143.459    0.000    0.575    0.557
    sm_cm_6 (lm_S)    0.739    0.007  109.855    0.000    0.479    0.456
    scpr__6 (lm_C)    1.111    0.007  151.852    0.000    0.719    0.820
    thpr__6 (lm_H)    1.108    0.007  150.973    0.000    0.717    0.797
    attp__6 (lm_A)    0.999    0.007  141.268    0.000    0.647    0.729
    rlbr__6 (lm_R)    0.901    0.007  120.985    0.000    0.583    0.584
    aggr__6 (lm_G)    1.066    0.007  145.494    0.000    0.690    0.786

Covariances:
                      Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_etaB ~~                                                                
    p_eta1               0.428    0.008   51.514    0.000    0.784    0.784
    p_eta2               0.381    0.008   48.769    0.000    0.713    0.713
    p_eta3               0.357    0.008   46.545    0.000    0.665    0.665
    p_eta4               0.329    0.007   44.214    0.000    0.621    0.621
    p_eta5               0.322    0.008   42.483    0.000    0.597    0.597
    p_eta6               0.272    0.007   36.603    0.000    0.564    0.564
  p_eta1 ~~                                                                
    p_eta2               0.403    0.008   50.311    0.000    0.767    0.767
    p_eta3               0.381    0.008   48.456    0.000    0.724    0.724
    p_eta4               0.349    0.008   46.036    0.000    0.672    0.672
    p_eta5               0.344    0.008   44.406    0.000    0.648    0.648
    p_eta6               0.289    0.008   38.398    0.000    0.610    0.610
  p_eta2 ~~                                                                
    p_eta3               0.404    0.008   50.027    0.000    0.783    0.783
    p_eta4               0.361    0.008   47.126    0.000    0.710    0.710
    p_eta5               0.353    0.008   45.390    0.000    0.679    0.679
    p_eta6               0.299    0.007   39.903    0.000    0.644    0.644
  p_eta3 ~~                                                                
    p_eta4               0.396    0.008   48.807    0.000    0.775    0.775
    p_eta5               0.385    0.008   46.977    0.000    0.739    0.739
    p_eta6               0.323    0.008   41.451    0.000    0.693    0.693
  p_eta4 ~~                                                                
    p_eta5               0.412    0.009   48.420    0.000    0.800    0.800
    p_eta6               0.340    0.008   42.689    0.000    0.740    0.740
  p_eta5 ~~                                                                
    p_eta6               0.382    0.009   44.604    0.000    0.815    0.815
 .anxdep_comp_0 ~~                                                         
   .anxdep_comp_1        0.315    0.007   48.433    0.000    0.315    0.606
   .anxdep_comp_2        0.278    0.006   44.598    0.000    0.278    0.548
   .anxdep_comp_3        0.251    0.006   39.815    0.000    0.251    0.483
   .anxdep_comp_4        0.223    0.006   36.360    0.000    0.223    0.443
   .anxdep_comp_5        0.205    0.006   32.113    0.000    0.205    0.399
   .anxdep_comp_6        0.185    0.007   25.420    0.000    0.185    0.375
 .anxdep_comp_1 ~~                                                         
   .anxdep_comp_2        0.307    0.006   47.242    0.000    0.307    0.595
   .anxdep_comp_3        0.274    0.007   42.045    0.000    0.274    0.518
   .anxdep_comp_4        0.233    0.006   37.105    0.000    0.233    0.456
   .anxdep_comp_5        0.226    0.007   34.417    0.000    0.226    0.432
   .anxdep_comp_6        0.197    0.007   26.464    0.000    0.197    0.394
 .anxdep_comp_2 ~~                                                         
   .anxdep_comp_3        0.319    0.007   48.037    0.000    0.319    0.619
   .anxdep_comp_4        0.273    0.006   43.018    0.000    0.273    0.546
   .anxdep_comp_5        0.254    0.007   38.998    0.000    0.254    0.498
   .anxdep_comp_6        0.223    0.007   30.640    0.000    0.223    0.457
 .anxdep_comp_3 ~~                                                         
   .anxdep_comp_4        0.306    0.007   45.702    0.000    0.306    0.598
   .anxdep_comp_5        0.286    0.007   41.573    0.000    0.286    0.548
   .anxdep_comp_6        0.246    0.007   33.137    0.000    0.246    0.493
 .anxdep_comp_4 ~~                                                         
   .anxdep_comp_5        0.330    0.007   46.976    0.000    0.330    0.653
   .anxdep_comp_6        0.272    0.008   36.262    0.000    0.272    0.561
 .anxdep_comp_5 ~~                                                         
   .anxdep_comp_6        0.308    0.008   39.111    0.000    0.308    0.623
 .withdep_comp_0 ~~                                                        
   .withdep_comp_1       0.235    0.005   45.599    0.000    0.235    0.565
   .withdep_comp_2       0.211    0.005   38.938    0.000    0.211    0.460
   .withdep_comp_3       0.191    0.006   32.294    0.000    0.191    0.375
   .withdep_comp_4       0.168    0.006   26.508    0.000    0.168    0.309
   .withdep_comp_5       0.161    0.007   24.299    0.000    0.161    0.292
   .withdep_comp_6       0.133    0.008   16.962    0.000    0.133    0.247
 .withdep_comp_1 ~~                                                        
   .withdep_comp_2       0.266    0.006   45.281    0.000    0.266    0.552
   .withdep_comp_3       0.253    0.006   39.742    0.000    0.253    0.472
   .withdep_comp_4       0.224    0.007   33.351    0.000    0.224    0.393
   .withdep_comp_5       0.211    0.007   30.225    0.000    0.211    0.364
   .withdep_comp_6       0.172    0.008   21.216    0.000    0.172    0.304
 .withdep_comp_2 ~~                                                        
   .withdep_comp_3       0.335    0.007   46.262    0.000    0.335    0.565
   .withdep_comp_4       0.305    0.008   40.206    0.000    0.305    0.484
   .withdep_comp_5       0.278    0.008   35.490    0.000    0.278    0.433
   .withdep_comp_6       0.232    0.009   25.018    0.000    0.232    0.371
 .withdep_comp_3 ~~                                                        
   .withdep_comp_4       0.402    0.009   46.025    0.000    0.402    0.574
   .withdep_comp_5       0.371    0.009   41.619    0.000    0.371    0.522
   .withdep_comp_6       0.309    0.010   30.583    0.000    0.309    0.445
 .withdep_comp_4 ~~                                                        
   .withdep_comp_5       0.465    0.010   46.792    0.000    0.465    0.613
   .withdep_comp_6       0.394    0.011   35.723    0.000    0.394    0.532
 .withdep_comp_5 ~~                                                        
   .withdep_comp_6       0.457    0.012   39.391    0.000    0.457    0.608
 .soma_comp_0 ~~                                                           
   .soma_comp_1          0.362    0.008   46.117    0.000    0.362    0.515
   .soma_comp_2          0.306    0.007   41.062    0.000    0.306    0.455
   .soma_comp_3          0.271    0.007   36.379    0.000    0.271    0.402
   .soma_comp_4          0.258    0.008   32.293    0.000    0.258    0.360
   .soma_comp_5          0.256    0.009   28.750    0.000    0.256    0.330
   .soma_comp_6          0.250    0.011   23.405    0.000    0.250    0.320
 .soma_comp_1 ~~                                                           
   .soma_comp_2          0.342    0.008   44.534    0.000    0.342    0.505
   .soma_comp_3          0.297    0.008   38.932    0.000    0.297    0.439
   .soma_comp_4          0.283    0.008   34.850    0.000    0.283    0.393
   .soma_comp_5          0.286    0.009   31.693    0.000    0.286    0.368
   .soma_comp_6          0.262    0.011   24.168    0.000    0.262    0.333
 .soma_comp_2 ~~                                                           
   .soma_comp_3          0.330    0.008   43.862    0.000    0.330    0.508
   .soma_comp_4          0.310    0.008   38.839    0.000    0.310    0.450
   .soma_comp_5          0.305    0.009   34.898    0.000    0.305    0.409
   .soma_comp_6          0.278    0.010   27.118    0.000    0.278    0.370
 .soma_comp_3 ~~                                                           
   .soma_comp_4          0.344    0.008   41.680    0.000    0.344    0.499
   .soma_comp_5          0.333    0.009   36.873    0.000    0.333    0.445
   .soma_comp_6          0.317    0.010   30.235    0.000    0.317    0.420
 .soma_comp_4 ~~                                                           
   .soma_comp_5          0.438    0.010   43.655    0.000    0.438    0.552
   .soma_comp_6          0.408    0.012   34.746    0.000    0.408    0.510
 .soma_comp_5 ~~                                                           
   .soma_comp_6          0.506    0.013   38.994    0.000    0.506    0.584
 .socprob_comp_0 ~~                                                        
   .socprob_comp_1       0.191    0.005   36.020    0.000    0.191    0.477
   .socprob_comp_2       0.160    0.005   31.999    0.000    0.160    0.420
   .socprob_comp_3       0.129    0.005   26.896    0.000    0.129    0.355
   .socprob_comp_4       0.106    0.005   22.420    0.000    0.106    0.299
   .socprob_comp_5       0.095    0.005   19.916    0.000    0.095    0.274
   .socprob_comp_6       0.080    0.005   15.069    0.000    0.080    0.249
 .socprob_comp_1 ~~                                                        
   .socprob_comp_2       0.175    0.005   35.005    0.000    0.175    0.476
   .socprob_comp_3       0.141    0.005   29.659    0.000    0.141    0.403
   .socprob_comp_4       0.114    0.005   24.440    0.000    0.114    0.333
   .socprob_comp_5       0.099    0.005   21.113    0.000    0.099    0.294
   .socprob_comp_6       0.093    0.005   17.657    0.000    0.093    0.297
 .socprob_comp_2 ~~                                                        
   .socprob_comp_3       0.160    0.005   33.755    0.000    0.160    0.479
   .socprob_comp_4       0.138    0.005   29.895    0.000    0.138    0.422
   .socprob_comp_5       0.115    0.005   24.847    0.000    0.115    0.358
   .socprob_comp_6       0.104    0.005   20.670    0.000    0.104    0.349
 .socprob_comp_3 ~~                                                        
   .socprob_comp_4       0.143    0.005   31.526    0.000    0.143    0.460
   .socprob_comp_5       0.127    0.005   27.648    0.000    0.127    0.415
   .socprob_comp_6       0.110    0.005   22.315    0.000    0.110    0.388
 .socprob_comp_4 ~~                                                        
   .socprob_comp_5       0.153    0.005   32.588    0.000    0.153    0.511
   .socprob_comp_6       0.131    0.005   25.856    0.000    0.131    0.473
 .socprob_comp_5 ~~                                                        
   .socprob_comp_6       0.147    0.005   28.340    0.000    0.147    0.542
 .thouprob_comp_0 ~~                                                       
   .thouprob_cmp_1       0.195    0.005   36.711    0.000    0.195    0.477
   .thouprob_cmp_2       0.156    0.005   31.347    0.000    0.156    0.404
   .thouprob_cmp_3       0.130    0.005   27.000    0.000    0.130    0.351
   .thouprob_cmp_4       0.114    0.005   23.725    0.000    0.114    0.316
   .thouprob_cmp_5       0.109    0.005   21.076    0.000    0.109    0.284
   .thouprob_cmp_6       0.081    0.006   13.970    0.000    0.081    0.234
 .thouprob_comp_1 ~~                                                       
   .thouprob_cmp_2       0.185    0.005   35.697    0.000    0.185    0.475
   .thouprob_cmp_3       0.151    0.005   30.182    0.000    0.151    0.403
   .thouprob_cmp_4       0.132    0.005   26.657    0.000    0.132    0.361
   .thouprob_cmp_5       0.136    0.005   25.603    0.000    0.136    0.349
   .thouprob_cmp_6       0.098    0.006   16.831    0.000    0.098    0.280
 .thouprob_comp_2 ~~                                                       
   .thouprob_cmp_3       0.156    0.005   32.080    0.000    0.156    0.442
   .thouprob_cmp_4       0.131    0.005   27.663    0.000    0.131    0.383
   .thouprob_cmp_5       0.130    0.005   25.497    0.000    0.130    0.356
   .thouprob_cmp_6       0.090    0.006   16.094    0.000    0.090    0.272
 .thouprob_comp_3 ~~                                                       
   .thouprob_cmp_4       0.136    0.005   28.909    0.000    0.136    0.414
   .thouprob_cmp_5       0.129    0.005   25.402    0.000    0.129    0.366
   .thouprob_cmp_6       0.089    0.005   16.407    0.000    0.089    0.281
 .thouprob_comp_4 ~~                                                       
   .thouprob_cmp_5       0.167    0.005   32.160    0.000    0.167    0.486
   .thouprob_cmp_6       0.123    0.005   22.453    0.000    0.123    0.400
 .thouprob_comp_5 ~~                                                       
   .thouprob_cmp_6       0.162    0.006   26.919    0.000    0.162    0.494
 .attprob_comp_0 ~~                                                        
   .attprob_comp_1       0.302    0.006   51.286    0.000    0.302    0.672
   .attprob_comp_2       0.268    0.006   47.833    0.000    0.268    0.615
   .attprob_comp_3       0.249    0.006   44.952    0.000    0.249    0.574
   .attprob_comp_4       0.216    0.005   40.722    0.000    0.216    0.522
   .attprob_comp_5       0.215    0.006   39.016    0.000    0.215    0.510
   .attprob_comp_6       0.190    0.006   31.146    0.000    0.190    0.466
 .attprob_comp_1 ~~                                                        
   .attprob_comp_2       0.289    0.006   50.436    0.000    0.289    0.669
   .attprob_comp_3       0.265    0.006   47.181    0.000    0.265    0.619
   .attprob_comp_4       0.226    0.005   42.233    0.000    0.226    0.552
   .attprob_comp_5       0.226    0.006   41.030    0.000    0.226    0.542
   .attprob_comp_6       0.202    0.006   33.140    0.000    0.202    0.500
 .attprob_comp_2 ~~                                                        
   .attprob_comp_3       0.276    0.006   49.336    0.000    0.276    0.665
   .attprob_comp_4       0.237    0.005   44.744    0.000    0.237    0.597
   .attprob_comp_5       0.238    0.005   43.431    0.000    0.238    0.588
   .attprob_comp_6       0.210    0.006   35.229    0.000    0.210    0.535
 .attprob_comp_3 ~~                                                        
   .attprob_comp_4       0.256    0.005   47.021    0.000    0.256    0.648
   .attprob_comp_5       0.248    0.006   44.578    0.000    0.248    0.616
   .attprob_comp_6       0.218    0.006   36.533    0.000    0.218    0.558
 .attprob_comp_4 ~~                                                        
   .attprob_comp_5       0.261    0.006   46.858    0.000    0.261    0.680
   .attprob_comp_6       0.232    0.006   38.976    0.000    0.232    0.621
 .attprob_comp_5 ~~                                                        
   .attprob_comp_6       0.260    0.006   41.565    0.000    0.260    0.686
 .rulebreak_comp_0 ~~                                                      
   .rulebrek_cmp_1       0.338    0.007   49.966    0.000    0.338    0.608
   .rulebrek_cmp_2       0.295    0.007   44.769    0.000    0.295    0.535
   .rulebrek_cmp_3       0.274    0.007   40.706    0.000    0.274    0.491
   .rulebrek_cmp_4       0.264    0.007   36.733    0.000    0.264    0.443
   .rulebrek_cmp_5       0.284    0.008   35.906    0.000    0.284    0.439
   .rulebrek_cmp_6       0.234    0.009   27.134    0.000    0.234    0.385
 .rulebreak_comp_1 ~~                                                      
   .rulebrek_cmp_2       0.320    0.007   47.448    0.000    0.320    0.583
   .rulebrek_cmp_3       0.299    0.007   43.723    0.000    0.299    0.540
   .rulebrek_cmp_4       0.299    0.007   40.888    0.000    0.299    0.506
   .rulebrek_cmp_5       0.291    0.008   36.685    0.000    0.291    0.453
   .rulebrek_cmp_6       0.255    0.009   29.191    0.000    0.255    0.423
 .rulebreak_comp_2 ~~                                                      
   .rulebrek_cmp_3       0.331    0.007   46.953    0.000    0.331    0.600
   .rulebrek_cmp_4       0.310    0.007   42.005    0.000    0.310    0.528
   .rulebrek_cmp_5       0.330    0.008   40.804    0.000    0.330    0.516
   .rulebrek_cmp_6       0.283    0.009   32.371    0.000    0.283    0.472
 .rulebreak_comp_3 ~~                                                      
   .rulebrek_cmp_4       0.346    0.008   44.946    0.000    0.346    0.583
   .rulebrek_cmp_5       0.351    0.008   41.847    0.000    0.351    0.544
   .rulebrek_cmp_6       0.312    0.009   35.603    0.000    0.312    0.516
 .rulebreak_comp_4 ~~                                                      
   .rulebrek_cmp_5       0.436    0.009   46.901    0.000    0.436    0.633
   .rulebrek_cmp_6       0.389    0.010   39.729    0.000    0.389    0.603
 .rulebreak_comp_5 ~~                                                      
   .rulebrek_cmp_6       0.484    0.011   43.961    0.000    0.484    0.690
 .aggress_comp_0 ~~                                                        
   .aggress_comp_1       0.297    0.006   49.566    0.000    0.297    0.655
   .aggress_comp_2       0.267    0.006   46.306    0.000    0.267    0.604
   .aggress_comp_3       0.229    0.006   40.873    0.000    0.229    0.526
   .aggress_comp_4       0.202    0.005   38.175    0.000    0.202    0.498
   .aggress_comp_5       0.196    0.005   36.007    0.000    0.196    0.480
   .aggress_comp_6       0.162    0.006   28.256    0.000    0.162    0.435
 .aggress_comp_1 ~~                                                        
   .aggress_comp_2       0.275    0.006   47.826    0.000    0.275    0.640
   .aggress_comp_3       0.244    0.006   43.718    0.000    0.244    0.579
   .aggress_comp_4       0.209    0.005   39.901    0.000    0.209    0.530
   .aggress_comp_5       0.196    0.005   36.648    0.000    0.196    0.496
   .aggress_comp_6       0.162    0.006   28.529    0.000    0.162    0.449
 .aggress_comp_2 ~~                                                        
   .aggress_comp_3       0.266    0.006   46.898    0.000    0.266    0.646
   .aggress_comp_4       0.220    0.005   41.934    0.000    0.220    0.572
   .aggress_comp_5       0.213    0.005   39.867    0.000    0.213    0.553
   .aggress_comp_6       0.182    0.006   32.593    0.000    0.182    0.518
 .aggress_comp_3 ~~                                                        
   .aggress_comp_4       0.241    0.005   44.678    0.000    0.241    0.635
   .aggress_comp_5       0.223    0.005   41.056    0.000    0.223    0.587
   .aggress_comp_6       0.193    0.006   34.672    0.000    0.193    0.558
 .aggress_comp_4 ~~                                                        
   .aggress_comp_5       0.237    0.005   44.355    0.000    0.237    0.668
   .aggress_comp_6       0.199    0.005   36.512    0.000    0.199    0.614
 .aggress_comp_5 ~~                                                        
   .aggress_comp_6       0.222    0.006   38.983    0.000    0.222    0.685
 .anxdep_comp_0 ~~                                                         
   .withdep_comp_0       0.100    0.005   19.812    0.000    0.100    0.223
   .soma_comp_0          0.119    0.006   18.817    0.000    0.119    0.198
   .withdep_comp_1       0.085    0.005   16.303    0.000    0.085    0.180
   .soma_comp_1          0.082    0.006   13.041    0.000    0.082    0.137
   .withdep_comp_2       0.087    0.006   15.220    0.000    0.087    0.166
   .soma_comp_2          0.077    0.006   12.531    0.000    0.077    0.133
   .withdep_comp_3       0.098    0.006   15.286    0.000    0.098    0.168
   .soma_comp_3          0.076    0.006   12.152    0.000    0.076    0.132
   .withdep_comp_4       0.081    0.007   11.688    0.000    0.081    0.130
   .soma_comp_4          0.084    0.007   12.442    0.000    0.084    0.138
   .withdep_comp_5       0.076    0.007   10.519    0.000    0.076    0.121
   .soma_comp_5          0.065    0.008    8.511    0.000    0.065    0.097
   .withdep_comp_6       0.065    0.009    7.532    0.000    0.065    0.106
   .soma_comp_6          0.069    0.009    7.396    0.000    0.069    0.103
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_1        0.073    0.005   14.518    0.000    0.073    0.161
 .soma_comp_0 ~~                                                           
   .anxdep_comp_1        0.097    0.006   15.217    0.000    0.097    0.160
 .anxdep_comp_1 ~~                                                         
   .withdep_comp_1       0.106    0.005   19.532    0.000    0.106    0.220
   .soma_comp_1          0.111    0.007   16.964    0.000    0.111    0.181
   .withdep_comp_2       0.089    0.006   15.289    0.000    0.089    0.168
   .soma_comp_2          0.083    0.006   13.216    0.000    0.083    0.141
   .withdep_comp_3       0.105    0.007   16.181    0.000    0.105    0.179
   .soma_comp_3          0.078    0.006   12.197    0.000    0.078    0.132
   .withdep_comp_4       0.087    0.007   12.463    0.000    0.087    0.139
   .soma_comp_4          0.089    0.007   12.823    0.000    0.089    0.142
   .withdep_comp_5       0.098    0.007   13.279    0.000    0.098    0.154
   .soma_comp_5          0.083    0.008   10.686    0.000    0.083    0.123
   .withdep_comp_6       0.077    0.009    8.735    0.000    0.077    0.124
   .soma_comp_6          0.068    0.010    7.162    0.000    0.068    0.101
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_2        0.077    0.005   15.511    0.000    0.077    0.173
 .soma_comp_0 ~~                                                           
   .anxdep_comp_2        0.095    0.006   15.058    0.000    0.095    0.160
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_2        0.093    0.005   17.826    0.000    0.093    0.200
 .soma_comp_1 ~~                                                           
   .anxdep_comp_2        0.085    0.006   13.386    0.000    0.085    0.143
 .anxdep_comp_2 ~~                                                         
   .withdep_comp_2       0.144    0.006   24.374    0.000    0.144    0.277
   .soma_comp_2          0.115    0.006   18.552    0.000    0.115    0.202
   .withdep_comp_3       0.132    0.006   20.493    0.000    0.132    0.229
   .soma_comp_3          0.095    0.006   15.167    0.000    0.095    0.166
   .withdep_comp_4       0.116    0.007   16.796    0.000    0.116    0.189
   .soma_comp_4          0.107    0.007   15.858    0.000    0.107    0.177
   .withdep_comp_5       0.103    0.007   14.363    0.000    0.103    0.166
   .soma_comp_5          0.090    0.008   12.020    0.000    0.090    0.137
   .withdep_comp_6       0.079    0.009    9.282    0.000    0.079    0.130
   .soma_comp_6          0.081    0.009    8.783    0.000    0.081    0.122
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_3        0.066    0.005   12.823    0.000    0.066    0.145
 .soma_comp_0 ~~                                                           
   .anxdep_comp_3        0.100    0.007   15.331    0.000    0.100    0.165
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_3        0.081    0.005   15.082    0.000    0.081    0.170
 .soma_comp_1 ~~                                                           
   .anxdep_comp_3        0.091    0.007   13.715    0.000    0.091    0.148
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_3        0.114    0.006   19.133    0.000    0.114    0.215
 .soma_comp_2 ~~                                                           
   .anxdep_comp_3        0.100    0.006   15.770    0.000    0.100    0.171
 .anxdep_comp_3 ~~                                                         
   .withdep_comp_3       0.182    0.007   26.630    0.000    0.182    0.309
   .soma_comp_3          0.129    0.007   19.680    0.000    0.129    0.220
   .withdep_comp_4       0.139    0.007   19.334    0.000    0.139    0.221
   .soma_comp_4          0.135    0.007   19.067    0.000    0.135    0.217
   .withdep_comp_5       0.133    0.008   17.630    0.000    0.133    0.208
   .soma_comp_5          0.123    0.008   15.638    0.000    0.123    0.183
   .withdep_comp_6       0.098    0.009   11.414    0.000    0.098    0.158
   .soma_comp_6          0.128    0.009   13.730    0.000    0.128    0.189
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_4        0.050    0.005    9.790    0.000    0.050    0.113
 .soma_comp_0 ~~                                                           
   .anxdep_comp_4        0.081    0.006   12.536    0.000    0.081    0.138
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_4        0.066    0.005   12.424    0.000    0.066    0.143
 .soma_comp_1 ~~                                                           
   .anxdep_comp_4        0.079    0.007   12.075    0.000    0.079    0.133
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_4        0.090    0.006   15.354    0.000    0.090    0.175
 .soma_comp_2 ~~                                                           
   .anxdep_comp_4        0.085    0.006   13.478    0.000    0.085    0.150
 .withdep_comp_3 ~~                                                        
   .anxdep_comp_4        0.126    0.007   19.106    0.000    0.126    0.221
 .soma_comp_3 ~~                                                           
   .anxdep_comp_4        0.101    0.006   15.695    0.000    0.101    0.178
 .anxdep_comp_4 ~~                                                         
   .withdep_comp_4       0.191    0.007   26.181    0.000    0.191    0.313
   .soma_comp_4          0.151    0.007   21.572    0.000    0.151    0.250
   .withdep_comp_5       0.146    0.007   19.659    0.000    0.146    0.236
   .soma_comp_5          0.133    0.008   17.222    0.000    0.133    0.204
   .withdep_comp_6       0.115    0.009   13.353    0.000    0.115    0.190
   .soma_comp_6          0.133    0.009   14.368    0.000    0.133    0.203
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_5        0.052    0.005    9.675    0.000    0.052    0.116
 .soma_comp_0 ~~                                                           
   .anxdep_comp_5        0.074    0.007   10.763    0.000    0.074    0.122
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_5        0.069    0.006   12.286    0.000    0.069    0.146
 .soma_comp_1 ~~                                                           
   .anxdep_comp_5        0.082    0.007   11.916    0.000    0.082    0.136
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_5        0.094    0.006   15.179    0.000    0.094    0.179
 .soma_comp_2 ~~                                                           
   .anxdep_comp_5        0.091    0.007   13.747    0.000    0.091    0.157
 .withdep_comp_3 ~~                                                        
   .anxdep_comp_5        0.128    0.007   18.519    0.000    0.128    0.219
 .soma_comp_3 ~~                                                           
   .anxdep_comp_5        0.097    0.007   14.426    0.000    0.097    0.168
 .withdep_comp_4 ~~                                                        
   .anxdep_comp_5        0.152    0.007   20.483    0.000    0.152    0.245
 .soma_comp_4 ~~                                                           
   .anxdep_comp_5        0.141    0.007   19.331    0.000    0.141    0.230
 .anxdep_comp_5 ~~                                                         
   .withdep_comp_5       0.211    0.008   26.681    0.000    0.211    0.335
   .soma_comp_5          0.168    0.008   20.926    0.000    0.168    0.253
   .withdep_comp_6       0.128    0.009   14.442    0.000    0.128    0.207
   .soma_comp_6          0.141    0.010   14.727    0.000    0.141    0.210
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_6        0.053    0.006    8.453    0.000    0.053    0.123
 .soma_comp_0 ~~                                                           
   .anxdep_comp_6        0.068    0.008    8.632    0.000    0.068    0.118
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_6        0.068    0.006   10.452    0.000    0.068    0.149
 .soma_comp_1 ~~                                                           
   .anxdep_comp_6        0.071    0.008    8.929    0.000    0.071    0.123
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_6        0.091    0.007   12.337    0.000    0.091    0.180
 .soma_comp_2 ~~                                                           
   .anxdep_comp_6        0.089    0.008   11.891    0.000    0.089    0.161
 .withdep_comp_3 ~~                                                        
   .anxdep_comp_6        0.124    0.008   15.686    0.000    0.124    0.223
 .soma_comp_3 ~~                                                           
   .anxdep_comp_6        0.080    0.008   10.521    0.000    0.080    0.144
 .withdep_comp_4 ~~                                                        
   .anxdep_comp_6        0.146    0.008   17.143    0.000    0.146    0.245
 .soma_comp_4 ~~                                                           
   .anxdep_comp_6        0.114    0.008   13.620    0.000    0.114    0.193
 .withdep_comp_5 ~~                                                        
   .anxdep_comp_6        0.167    0.009   19.075    0.000    0.167    0.277
 .soma_comp_5 ~~                                                           
   .anxdep_comp_6        0.117    0.009   13.024    0.000    0.117    0.184
 .anxdep_comp_6 ~~                                                         
   .withdep_comp_6       0.207    0.009   22.037    0.000    0.207    0.351
   .soma_comp_6          0.162    0.010   16.687    0.000    0.162    0.252
 .withdep_comp_0 ~~                                                        
   .soma_comp_0          0.053    0.005    9.698    0.000    0.053    0.100
   .soma_comp_1          0.053    0.006    9.562    0.000    0.053    0.101
   .soma_comp_2          0.037    0.005    6.961    0.000    0.037    0.074
   .soma_comp_3          0.026    0.006    4.708    0.000    0.026    0.051
   .soma_comp_4          0.025    0.006    4.191    0.000    0.025    0.047
   .soma_comp_5          0.008    0.007    1.213    0.225    0.008    0.014
   .soma_comp_6          0.011    0.008    1.360    0.174    0.011    0.019
 .soma_comp_0 ~~                                                           
   .withdep_comp_1       0.037    0.006    6.499    0.000    0.037    0.067
 .withdep_comp_1 ~~                                                        
   .soma_comp_1          0.065    0.006   11.214    0.000    0.065    0.118
   .soma_comp_2          0.049    0.006    8.755    0.000    0.049    0.093
   .soma_comp_3          0.050    0.006    8.638    0.000    0.050    0.093
   .soma_comp_4          0.041    0.006    6.518    0.000    0.041    0.072
   .soma_comp_5          0.041    0.007    5.858    0.000    0.041    0.067
   .soma_comp_6          0.025    0.009    2.962    0.003    0.025    0.041
 .soma_comp_0 ~~                                                           
   .withdep_comp_2       0.050    0.006    7.952    0.000    0.050    0.083
 .soma_comp_1 ~~                                                           
   .withdep_comp_2       0.065    0.006   10.079    0.000    0.065    0.106
 .withdep_comp_2 ~~                                                        
   .soma_comp_2          0.080    0.006   12.935    0.000    0.080    0.137
   .soma_comp_3          0.060    0.006    9.457    0.000    0.060    0.102
   .soma_comp_4          0.075    0.007   10.877    0.000    0.075    0.120
   .soma_comp_5          0.064    0.008    8.265    0.000    0.064    0.094
   .soma_comp_6          0.045    0.010    4.640    0.000    0.045    0.066
 .soma_comp_0 ~~                                                           
   .withdep_comp_3       0.065    0.007    9.151    0.000    0.065    0.096
 .soma_comp_1 ~~                                                           
   .withdep_comp_3       0.059    0.007    8.141    0.000    0.059    0.086
 .soma_comp_2 ~~                                                           
   .withdep_comp_3       0.066    0.007    9.566    0.000    0.066    0.101
 .withdep_comp_3 ~~                                                        
   .soma_comp_3          0.086    0.007   12.203    0.000    0.086    0.131
   .soma_comp_4          0.103    0.008   13.388    0.000    0.103    0.148
   .soma_comp_5          0.101    0.009   11.832    0.000    0.101    0.135
   .soma_comp_6          0.100    0.010    9.562    0.000    0.100    0.132
 .soma_comp_0 ~~                                                           
   .withdep_comp_4       0.056    0.008    7.182    0.000    0.056    0.077
 .soma_comp_1 ~~                                                           
   .withdep_comp_4       0.068    0.008    8.726    0.000    0.068    0.093
 .soma_comp_2 ~~                                                           
   .withdep_comp_4       0.067    0.008    8.930    0.000    0.067    0.097
 .soma_comp_3 ~~                                                           
   .withdep_comp_4       0.086    0.008   11.205    0.000    0.086    0.123
 .withdep_comp_4 ~~                                                        
   .soma_comp_4          0.136    0.008   16.484    0.000    0.136    0.184
   .soma_comp_5          0.109    0.009   11.859    0.000    0.109    0.136
   .soma_comp_6          0.123    0.011   11.012    0.000    0.123    0.152
 .soma_comp_0 ~~                                                           
   .withdep_comp_5       0.050    0.008    6.081    0.000    0.050    0.068
 .soma_comp_1 ~~                                                           
   .withdep_comp_5       0.062    0.008    7.492    0.000    0.062    0.083
 .soma_comp_2 ~~                                                           
   .withdep_comp_5       0.061    0.008    7.762    0.000    0.061    0.086
 .soma_comp_3 ~~                                                           
   .withdep_comp_5       0.079    0.008    9.810    0.000    0.079    0.111
 .soma_comp_4 ~~                                                           
   .withdep_comp_5       0.117    0.009   13.555    0.000    0.117    0.156
 .withdep_comp_5 ~~                                                        
   .soma_comp_5          0.160    0.009   16.889    0.000    0.160    0.197
   .soma_comp_6          0.138    0.012   11.987    0.000    0.138    0.168
 .soma_comp_0 ~~                                                           
   .withdep_comp_6       0.056    0.010    5.752    0.000    0.056    0.077
 .soma_comp_1 ~~                                                           
   .withdep_comp_6       0.043    0.010    4.388    0.000    0.043    0.060
 .soma_comp_2 ~~                                                           
   .withdep_comp_6       0.045    0.009    4.846    0.000    0.045    0.065
 .soma_comp_3 ~~                                                           
   .withdep_comp_6       0.053    0.009    5.727    0.000    0.053    0.077
 .soma_comp_4 ~~                                                           
   .withdep_comp_6       0.080    0.010    7.892    0.000    0.080    0.109
 .soma_comp_5 ~~                                                           
   .withdep_comp_6       0.095    0.011    8.607    0.000    0.095    0.119
 .withdep_comp_6 ~~                                                        
   .soma_comp_6          0.157    0.012   13.341    0.000    0.157    0.196
 .rulebreak_comp_0 ~~                                                      
   .aggress_comp_0       0.242    0.006   39.239    0.000    0.242    0.474
   .aggress_comp_1       0.188    0.006   32.546    0.000    0.188    0.380
   .aggress_comp_2       0.176    0.006   31.007    0.000    0.176    0.364
   .aggress_comp_3       0.153    0.006   26.990    0.000    0.153    0.322
   .aggress_comp_4       0.142    0.005   25.953    0.000    0.142    0.319
   .aggress_comp_5       0.145    0.006   25.844    0.000    0.145    0.326
   .aggress_comp_6       0.120    0.006   19.694    0.000    0.120    0.294
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_1       0.197    0.006   33.483    0.000    0.197    0.389
 .rulebreak_comp_1 ~~                                                      
   .aggress_comp_1       0.234    0.006   38.413    0.000    0.234    0.476
   .aggress_comp_2       0.184    0.006   32.232    0.000    0.184    0.383
   .aggress_comp_3       0.167    0.006   29.202    0.000    0.167    0.353
   .aggress_comp_4       0.156    0.005   28.349    0.000    0.156    0.352
   .aggress_comp_5       0.146    0.006   26.086    0.000    0.146    0.331
   .aggress_comp_6       0.132    0.006   21.420    0.000    0.132    0.326
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_2       0.172    0.006   29.523    0.000    0.172    0.341
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_2       0.175    0.006   30.388    0.000    0.175    0.358
 .rulebreak_comp_2 ~~                                                      
   .aggress_comp_2       0.237    0.006   39.077    0.000    0.237    0.496
   .aggress_comp_3       0.180    0.006   31.052    0.000    0.180    0.383
   .aggress_comp_4       0.154    0.006   27.967    0.000    0.154    0.350
   .aggress_comp_5       0.154    0.006   27.460    0.000    0.154    0.351
   .aggress_comp_6       0.147    0.006   23.970    0.000    0.147    0.365
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_3       0.168    0.006   28.089    0.000    0.168    0.329
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_3       0.172    0.006   29.160    0.000    0.172    0.347
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_3       0.187    0.006   31.818    0.000    0.187    0.388
 .rulebreak_comp_3 ~~                                                      
   .aggress_comp_3       0.241    0.006   38.530    0.000    0.241    0.507
   .aggress_comp_4       0.174    0.006   30.856    0.000    0.174    0.393
   .aggress_comp_5       0.165    0.006   28.615    0.000    0.165    0.371
   .aggress_comp_6       0.159    0.006   26.251    0.000    0.159    0.393
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_4       0.177    0.006   27.452    0.000    0.177    0.325
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_4       0.182    0.006   28.728    0.000    0.182    0.345
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_4       0.183    0.006   29.242    0.000    0.183    0.355
 .aggress_comp_3 ~~                                                        
   .rulebrek_cmp_4       0.198    0.006   31.015    0.000    0.198    0.391
 .rulebreak_comp_4 ~~                                                      
   .aggress_comp_4       0.246    0.006   38.231    0.000    0.246    0.519
   .aggress_comp_5       0.205    0.006   32.348    0.000    0.205    0.432
   .aggress_comp_6       0.174    0.007   26.247    0.000    0.174    0.403
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_5       0.191    0.007   26.681    0.000    0.191    0.323
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_5       0.182    0.007   25.997    0.000    0.182    0.317
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_5       0.205    0.007   29.471    0.000    0.205    0.366
 .aggress_comp_3 ~~                                                        
   .rulebrek_cmp_5       0.202    0.007   28.817    0.000    0.202    0.368
 .aggress_comp_4 ~~                                                        
   .rulebrek_cmp_5       0.217    0.007   32.131    0.000    0.217    0.422
 .rulebreak_comp_5 ~~                                                      
   .aggress_comp_5       0.288    0.007   39.360    0.000    0.288    0.558
   .aggress_comp_6       0.224    0.007   30.309    0.000    0.224    0.477
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_6       0.165    0.008   21.159    0.000    0.165    0.298
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_6       0.153    0.008   19.914    0.000    0.153    0.285
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_6       0.178    0.008   23.578    0.000    0.178    0.338
 .aggress_comp_3 ~~                                                        
   .rulebrek_cmp_6       0.184    0.007   24.669    0.000    0.184    0.357
 .aggress_comp_4 ~~                                                        
   .rulebrek_cmp_6       0.202    0.007   27.807    0.000    0.202    0.418
 .aggress_comp_5 ~~                                                        
   .rulebrek_cmp_6       0.224    0.007   29.828    0.000    0.224    0.462
 .rulebreak_comp_6 ~~                                                      
   .aggress_comp_6       0.247    0.008   31.709    0.000    0.247    0.559

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    p_etaB            0.000                               0.000    0.000
    p_eta1            0.000                               0.000    0.000
    p_eta2            0.000                               0.000    0.000
    p_eta3            0.000                               0.000    0.000
    p_eta4            0.000                               0.000    0.000
   .anxd__0 (t_X0)    0.052    0.009    5.471    0.000    0.052    0.050
   .anxd__1 (t_X1)    0.060    0.010    6.229    0.000    0.060    0.058
   .anxd__2 (t_X2)   -0.015    0.009   -1.585    0.113   -0.015   -0.015
   .anxd__3 (t_X3)   -0.004    0.010   -0.397    0.691   -0.004   -0.004
   .anxd__4 (t_X4)   -0.034    0.010   -3.510    0.000   -0.034   -0.034
   .anxd__5 (t_X5)    0.004    0.010    0.344    0.731    0.004    0.003
   .anxd__6 (t_X6)   -0.107    0.011   -9.541    0.000   -0.107   -0.113
   .wthd__0 (t_W0)   -0.155    0.008  -18.476    0.000   -0.155   -0.170
   .wthd__1 (t_W1)   -0.112    0.009  -13.007    0.000   -0.112   -0.121
   .wthd__2 (t_W2)   -0.046    0.009   -5.021    0.000   -0.046   -0.047
   .wthd__3 (t_W3)    0.062    0.010    6.227    0.000    0.062    0.060
   .wthd__4 (t_W4)    0.121    0.011   11.475    0.000    0.121    0.113
   .wthd__5 (t_W5)    0.209    0.011   19.084    0.000    0.209    0.192
   .wthd__6 (t_W6)    0.101    0.013    8.029    0.000    0.101    0.098
   .sm_cm_0 (t_S0)    0.031    0.009    3.329    0.001    0.031    0.031
   .sm_cm_1 (t_S1)    0.012    0.009    1.251    0.211    0.012    0.012
   .sm_cm_2 (t_S2)   -0.033    0.009   -3.585    0.000   -0.033   -0.034
   .sm_cm_3 (t_S3)   -0.036    0.009   -3.843    0.000   -0.036   -0.037
   .sm_cm_4 (t_S4)   -0.013    0.010   -1.306    0.192   -0.013   -0.013
   .sm_cm_5 (t_S5)    0.065    0.011    5.966    0.000    0.065    0.061
   .sm_cm_6 (t_S6)    0.030    0.013    2.309    0.021    0.030    0.028
   .scpr__0 (t_P0)    0.167    0.010   17.363    0.000    0.167    0.160
   .scpr__1 (t_P1)    0.113    0.010   11.864    0.000    0.113    0.110
   .scpr__2 (t_P2)    0.026    0.009    2.782    0.005    0.026    0.026
   .scpr__3 (t_P3)   -0.025    0.009   -2.634    0.008   -0.025   -0.025
   .scpr__4 (t_P4)   -0.087    0.009   -9.258    0.000   -0.087   -0.090
   .scpr__5 (t_P5)   -0.103    0.010  -10.653    0.000   -0.103   -0.106
   .scpr__6 (t_P6)   -0.187    0.010  -18.195    0.000   -0.187   -0.214
   .thpr__0 (t_H0)    0.078    0.010    8.173    0.000    0.078    0.075
   .thpr__1 (t_H1)    0.078    0.010    8.125    0.000    0.078    0.076
   .thpr__2 (t_H2)   -0.003    0.009   -0.345    0.730   -0.003   -0.003
   .thpr__3 (t_H3)   -0.017    0.009   -1.838    0.066   -0.017   -0.018
   .thpr__4 (t_H4)   -0.056    0.009   -5.904    0.000   -0.056   -0.058
   .thpr__5 (t_H5)   -0.008    0.010   -0.778    0.437   -0.008   -0.008
   .thpr__6 (t_H6)   -0.128    0.011  -11.953    0.000   -0.128   -0.143
   .attp__0 (t_A0)    0.075    0.009    8.103    0.000    0.075    0.074
   .attp__1 (t_A1)    0.045    0.009    4.881    0.000    0.045    0.045
   .attp__2 (t_A2)    0.007    0.009    0.799    0.424    0.007    0.007
   .attp__3 (t_A3)    0.031    0.009    3.347    0.001    0.031    0.032
   .attp__4 (t_A4)   -0.038    0.009   -4.141    0.000   -0.038   -0.040
   .attp__5 (t_A5)   -0.028    0.009   -2.948    0.003   -0.028   -0.029
   .attp__6 (t_A6)   -0.116    0.010  -11.316    0.000   -0.116   -0.131
   .rlbr__0 (t_R0)    0.052    0.009    5.605    0.000    0.052    0.051
   .rlbr__1 (t_R1)    0.020    0.009    2.154    0.031    0.020    0.020
   .rlbr__2 (t_R2)   -0.010    0.009   -1.041    0.298   -0.010   -0.010
   .rlbr__3 (t_R3)   -0.001    0.009   -0.122    0.903   -0.001   -0.001
   .rlbr__4 (t_R4)    0.001    0.010    0.054    0.957    0.001    0.001
   .rlbr__5 (t_R5)    0.058    0.011    5.369    0.000    0.058    0.054
   .rlbr__6 (t_R6)   -0.024    0.012   -2.008    0.045   -0.024   -0.024
   .aggr__0 (t_G0)    0.118    0.010   12.226    0.000    0.118    0.112
   .aggr__1 (t_G1)    0.071    0.010    7.410    0.000    0.071    0.069
   .aggr__2 (t_G2)    0.022    0.009    2.352    0.019    0.022    0.022
   .aggr__3 (t_G3)    0.029    0.009    3.097    0.002    0.029    0.029
   .aggr__4 (t_G4)   -0.061    0.009   -6.536    0.000   -0.061   -0.063
   .aggr__5 (t_G5)   -0.063    0.010   -6.510    0.000   -0.063   -0.065
   .aggr__6 (t_G6)   -0.175    0.010  -17.310    0.000   -0.175   -0.199

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    p_etaB            0.556    0.010   56.921    0.000    1.000    1.000
    p_eta1            0.537    0.010   55.923    0.000    1.000    1.000
    p_eta2            0.514    0.009   55.262    0.000    1.000    1.000
    p_eta3            0.518    0.010   54.099    0.000    1.000    1.000
    p_eta4            0.503    0.010   52.898    0.000    1.000    1.000
    p_eta5            0.526    0.010   51.481    0.000    1.000    1.000
    p_eta6            0.419    0.010   43.324    0.000    1.000    1.000
   .anxdep_comp_0     0.512    0.008   66.510    0.000    0.512    0.480
   .withdep_comp_0    0.396    0.006   66.327    0.000    0.396    0.475
   .soma_comp_0       0.700    0.010   72.568    0.000    0.700    0.698
   .socprob_comp_0    0.414    0.007   61.037    0.000    0.414    0.376
   .thouprob_cmp_0    0.404    0.007   61.840    0.000    0.404    0.372
   .attprob_comp_0    0.453    0.007   65.330    0.000    0.453    0.450
   .rulebrek_cmp_0    0.558    0.008   69.125    0.000    0.558    0.553
   .aggress_comp_0    0.466    0.007   64.237    0.000    0.466    0.424
   .anxdep_comp_1     0.528    0.008   65.642    0.000    0.528    0.496
   .withdep_comp_1    0.435    0.007   66.025    0.000    0.435    0.507
   .soma_comp_1       0.707    0.010   70.967    0.000    0.707    0.707
   .socprob_comp_1    0.386    0.007   59.081    0.000    0.386    0.368
   .thouprob_cmp_1    0.414    0.007   60.771    0.000    0.414    0.386
   .attprob_comp_1    0.445    0.007   64.112    0.000    0.445    0.454
   .rulebrek_cmp_1    0.552    0.008   67.267    0.000    0.552    0.559
   .aggress_comp_1    0.440    0.007   62.701    0.000    0.440    0.419
   .anxdep_comp_2     0.504    0.008   64.960    0.000    0.504    0.495
   .withdep_comp_2    0.534    0.008   67.027    0.000    0.534    0.568
   .soma_comp_2       0.647    0.009   69.694    0.000    0.647    0.697
   .socprob_comp_2    0.350    0.006   57.602    0.000    0.350    0.356
   .thouprob_cmp_2    0.367    0.006   58.687    0.000    0.367    0.368
   .attprob_comp_2    0.418    0.007   63.220    0.000    0.418    0.449
   .rulebrek_cmp_2    0.545    0.008   66.128    0.000    0.545    0.567
   .aggress_comp_2    0.419    0.007   61.655    0.000    0.419    0.417
   .anxdep_comp_3     0.528    0.008   63.695    0.000    0.528    0.505
   .withdep_comp_3    0.658    0.010   66.346    0.000    0.658    0.617
   .soma_comp_3       0.650    0.010   67.668    0.000    0.650    0.697
   .socprob_comp_3    0.319    0.006   55.277    0.000    0.319    0.333
   .thouprob_cmp_3    0.340    0.006   56.120    0.000    0.340    0.349
   .attprob_comp_3    0.413    0.007   61.775    0.000    0.413    0.444
   .rulebrek_cmp_3    0.556    0.009   63.663    0.000    0.556    0.570
   .aggress_comp_3    0.405    0.007   59.823    0.000    0.405    0.408
   .anxdep_comp_4     0.496    0.008   61.591    0.000    0.496    0.496
   .withdep_comp_4    0.747    0.012   64.482    0.000    0.747    0.653
   .soma_comp_4       0.733    0.011   65.924    0.000    0.733    0.727
   .socprob_comp_4    0.303    0.006   53.483    0.000    0.303    0.328
   .thouprob_cmp_4    0.320    0.006   53.855    0.000    0.320    0.341
   .attprob_comp_4    0.378    0.006   59.310    0.000    0.378    0.429
   .rulebrek_cmp_4    0.633    0.010   62.732    0.000    0.633    0.608
   .aggress_comp_4    0.354    0.006   57.143    0.000    0.354    0.382
   .anxdep_comp_5     0.516    0.009   59.167    0.000    0.516    0.495
   .withdep_comp_5    0.770    0.012   61.879    0.000    0.770    0.650
   .soma_comp_5       0.859    0.014   63.295    0.000    0.859    0.749
   .socprob_comp_5    0.294    0.006   50.338    0.000    0.294    0.312
   .thouprob_cmp_5    0.366    0.007   52.762    0.000    0.366    0.362
   .attprob_comp_5    0.391    0.007   57.388    0.000    0.391    0.427
   .rulebrek_cmp_5    0.748    0.012   61.347    0.000    0.748    0.637
   .aggress_comp_5    0.356    0.006   54.805    0.000    0.356    0.373
   .anxdep_comp_6     0.474    0.010   47.082    0.000    0.474    0.530
   .withdep_comp_6    0.735    0.015   48.458    0.000    0.735    0.689
   .soma_comp_6       0.873    0.017   50.250    0.000    0.873    0.792
   .socprob_comp_6    0.252    0.006   39.054    0.000    0.252    0.327
   .thouprob_cmp_6    0.295    0.007   40.130    0.000    0.295    0.364
   .attprob_comp_6    0.368    0.008   46.573    0.000    0.368    0.468
   .rulebrek_cmp_6    0.658    0.013   49.063    0.000    0.658    0.659
   .aggress_comp_6    0.295    0.007   43.290    0.000    0.295    0.383

R-Square:
                   Estimate
    anxdep_comp_0     0.520
    withdep_comp_0    0.525
    soma_comp_0       0.302
    socprob_comp_0    0.624
    thouprob_cmp_0    0.628
    attprob_comp_0    0.550
    rulebrek_cmp_0    0.447
    aggress_comp_0    0.576
    anxdep_comp_1     0.504
    withdep_comp_1    0.493
    soma_comp_1       0.293
    socprob_comp_1    0.632
    thouprob_cmp_1    0.614
    attprob_comp_1    0.546
    rulebrek_cmp_1    0.441
    aggress_comp_1    0.581
    anxdep_comp_2     0.505
    withdep_comp_2    0.432
    soma_comp_2       0.303
    socprob_comp_2    0.644
    thouprob_cmp_2    0.632
    attprob_comp_2    0.551
    rulebrek_cmp_2    0.433
    aggress_comp_2    0.583
    anxdep_comp_3     0.495
    withdep_comp_3    0.383
    soma_comp_3       0.303
    socprob_comp_3    0.667
    thouprob_cmp_3    0.651
    attprob_comp_3    0.556
    rulebrek_cmp_3    0.430
    aggress_comp_3    0.592
    anxdep_comp_4     0.504
    withdep_comp_4    0.347
    soma_comp_4       0.273
    socprob_comp_4    0.672
    thouprob_cmp_4    0.659
    attprob_comp_4    0.571
    rulebrek_cmp_4    0.392
    aggress_comp_4    0.618
    anxdep_comp_5     0.505
    withdep_comp_5    0.350
    soma_comp_5       0.251
    socprob_comp_5    0.688
    thouprob_cmp_5    0.638
    attprob_comp_5    0.573
    rulebrek_cmp_5    0.363
    aggress_comp_5    0.627
    anxdep_comp_6     0.470
    withdep_comp_6    0.311
    soma_comp_6       0.208
    socprob_comp_6    0.673
    thouprob_cmp_6    0.636
    attprob_comp_6    0.532
    rulebrek_cmp_6    0.341
    aggress_comp_6    0.617

Strong invariance model

model fit
pc.7t.strong.invar <- "#factor loadings (with constraints)
               p_etaB =~ 1*anxdep_comp_0+
                         lambda_W*withdep_comp_0+
                         lambda_S*soma_comp_0+
                         lambda_C*socprob_comp_0+
                         lambda_H*thouprob_comp_0+
                         lambda_A*attprob_comp_0+
                         lambda_R*rulebreak_comp_0+
                         lambda_G*aggress_comp_0

               p_eta1 =~ 1*anxdep_comp_1+
                         lambda_W*withdep_comp_1+
                         lambda_S*soma_comp_1+
                         lambda_C*socprob_comp_1+
                         lambda_H*thouprob_comp_1+
                         lambda_A*attprob_comp_1+
                         lambda_R*rulebreak_comp_1+
                         lambda_G*aggress_comp_1

               p_eta2 =~ 1*anxdep_comp_2+
                         lambda_W*withdep_comp_2+
                         lambda_S*soma_comp_2+
                         lambda_C*socprob_comp_2+
                         lambda_H*thouprob_comp_2+
                         lambda_A*attprob_comp_2+
                         lambda_R*rulebreak_comp_2+
                         lambda_G*aggress_comp_2

               p_eta3 =~ 1*anxdep_comp_3+
                         lambda_W*withdep_comp_3+
                         lambda_S*soma_comp_3+
                         lambda_C*socprob_comp_3+
                         lambda_H*thouprob_comp_3+
                         lambda_A*attprob_comp_3+
                         lambda_R*rulebreak_comp_3+
                         lambda_G*aggress_comp_3

               p_eta4 =~ 1*anxdep_comp_4+
                         lambda_W*withdep_comp_4+
                         lambda_S*soma_comp_4+
                         lambda_C*socprob_comp_4+
                         lambda_H*thouprob_comp_4+
                         lambda_A*attprob_comp_4+
                         lambda_R*rulebreak_comp_4+
                         lambda_G*aggress_comp_4

               p_eta5 =~ 1*anxdep_comp_5+
                         lambda_W*withdep_comp_5+
                         lambda_S*soma_comp_5+
                         lambda_C*socprob_comp_5+
                         lambda_H*thouprob_comp_5+
                         lambda_A*attprob_comp_5+
                         lambda_R*rulebreak_comp_5+
                         lambda_G*aggress_comp_5

               p_eta6 =~ 1*anxdep_comp_6+
                         lambda_W*withdep_comp_6+
                         lambda_S*soma_comp_6+
                         lambda_C*socprob_comp_6+
                         lambda_H*thouprob_comp_6+
                         lambda_A*attprob_comp_6+
                         lambda_R*rulebreak_comp_6+
                         lambda_G*aggress_comp_6

              #latent variable variances
                      p_etaB~~NA*p_etaB
                      p_eta1~~NA*p_eta1
                      p_eta2~~NA*p_eta2
                      p_eta3~~NA*p_eta3
                      p_eta4~~NA*p_eta4
                      p_eta5~~NA*p_eta5
                      p_eta6~~NA*p_eta6

              #latent variable covariances
                      p_etaB~~p_eta1 + p_eta2 + p_eta3 + p_eta4 + p_eta5 + p_eta6
                      p_eta1~~p_eta2 + p_eta3 + p_eta4 + p_eta5 + p_eta6
                      p_eta2~~p_eta3 + p_eta4 + p_eta5 + p_eta6
                      p_eta3~~p_eta4 + p_eta5 + p_eta6
                      p_eta4~~p_eta5 + p_eta6
                      p_eta5~~p_eta6

              #unique variances # No need to constrict these
                      anxdep_comp_0~~anxdep_comp_0
                      withdep_comp_0~~withdep_comp_0
                      soma_comp_0~~soma_comp_0
                      socprob_comp_0~~socprob_comp_0
                      thouprob_comp_0~~thouprob_comp_0
                      attprob_comp_0~~attprob_comp_0
                      rulebreak_comp_0~~rulebreak_comp_0
                      aggress_comp_0~~aggress_comp_0
                      anxdep_comp_1~~anxdep_comp_1
                      withdep_comp_1~~withdep_comp_1
                      soma_comp_1~~soma_comp_1
                      socprob_comp_1~~socprob_comp_1
                      thouprob_comp_1~~thouprob_comp_1
                      attprob_comp_1~~attprob_comp_1
                      rulebreak_comp_1~~rulebreak_comp_1
                      aggress_comp_1~~aggress_comp_1

                      anxdep_comp_2~~anxdep_comp_2
                      withdep_comp_2~~withdep_comp_2
                      soma_comp_2~~soma_comp_2
                      socprob_comp_2~~socprob_comp_2
                      thouprob_comp_2~~thouprob_comp_2
                      attprob_comp_2~~attprob_comp_2
                      rulebreak_comp_2~~rulebreak_comp_2
                      aggress_comp_2~~aggress_comp_2

                      anxdep_comp_3~~anxdep_comp_3
                      withdep_comp_3~~withdep_comp_3
                      soma_comp_3~~soma_comp_3
                      socprob_comp_3~~socprob_comp_3
                      thouprob_comp_3~~thouprob_comp_3
                      attprob_comp_3~~attprob_comp_3
                      rulebreak_comp_3~~rulebreak_comp_3
                      aggress_comp_3~~aggress_comp_3

                      anxdep_comp_4~~anxdep_comp_4
                      withdep_comp_4~~withdep_comp_4
                      soma_comp_4~~soma_comp_4
                      socprob_comp_4~~socprob_comp_4
                      thouprob_comp_4~~thouprob_comp_4
                      attprob_comp_4~~attprob_comp_4
                      rulebreak_comp_4~~rulebreak_comp_4
                      aggress_comp_4~~aggress_comp_4

                      anxdep_comp_5~~anxdep_comp_5
                      withdep_comp_5~~withdep_comp_5
                      soma_comp_5~~soma_comp_5
                      socprob_comp_5~~socprob_comp_5
                      thouprob_comp_5~~thouprob_comp_5
                      attprob_comp_5~~attprob_comp_5
                      rulebreak_comp_5~~rulebreak_comp_5
                      aggress_comp_5~~aggress_comp_5

                      anxdep_comp_6~~anxdep_comp_6
                      withdep_comp_6~~withdep_comp_6
                      soma_comp_6~~soma_comp_6
                      socprob_comp_6~~socprob_comp_6
                      thouprob_comp_6~~thouprob_comp_6
                      attprob_comp_6~~attprob_comp_6
                      rulebreak_comp_6~~rulebreak_comp_6
                      aggress_comp_6~~aggress_comp_6

              #unique covariances
                      # Scores arcoss times
                      anxdep_comp_0~~anxdep_comp_1 + anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_1~~anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_2~~anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_3~~anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_4~~anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_5~~anxdep_comp_6

                      withdep_comp_0~~withdep_comp_1 + withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_1~~withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_2~~withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_3~~withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_4~~withdep_comp_5 + withdep_comp_6
                      withdep_comp_5~~withdep_comp_6

                      soma_comp_0~~soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_1~~soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_2~~soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_3~~soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_4~~soma_comp_5 + soma_comp_6
                      soma_comp_5~~soma_comp_6

                      socprob_comp_0~~socprob_comp_1 + socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_1~~socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_2~~socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_3~~socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_4~~socprob_comp_5 + socprob_comp_6
                      socprob_comp_5~~socprob_comp_6

                      thouprob_comp_0~~thouprob_comp_1 + thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_1~~thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_2~~thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_3~~thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_4~~thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_5~~thouprob_comp_6

                      attprob_comp_0~~attprob_comp_1 + attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_1~~attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_2~~attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_3~~attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_4~~attprob_comp_5 + attprob_comp_6
                      attprob_comp_5~~attprob_comp_6

                      rulebreak_comp_0~~rulebreak_comp_1 + rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_1~~rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_2~~rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_3~~rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_4~~rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_5~~rulebreak_comp_6

                      aggress_comp_0~~aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_1~~aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_2~~aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_3~~aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_4~~aggress_comp_5 + aggress_comp_6
                      aggress_comp_5~~aggress_comp_6

                      # Internalizeing subscale covariances
                      anxdep_comp_0~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_1~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_2~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_3~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_4~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_5~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_6~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6

                      withdep_comp_0~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_1~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_2~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_3~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_4~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_5~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_6~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6

                      # Externalizeing subscale covariances
                      rulebreak_comp_0~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_1~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_2~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_3~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_4~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_5~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_6~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6

                      #latent variable intercepts
                      p_etaB~0*1
                      p_eta1~m1*1
                      p_eta2~m2*1
                      p_eta3~m3*1
                      p_eta4~m4*1

              #observed variable intercepts
                      anxdep_comp_0~tau_X*1
                      anxdep_comp_1~tau_X*1
                      anxdep_comp_2~tau_X*1
                      anxdep_comp_3~tau_X*1
                      anxdep_comp_4~tau_X*1
                      anxdep_comp_5~tau_X*1
                      anxdep_comp_6~tau_X*1
                      withdep_comp_0~tau_W*1
                      withdep_comp_1~tau_W*1
                      withdep_comp_2~tau_W*1
                      withdep_comp_3~tau_W*1
                      withdep_comp_4~tau_W*1
                      withdep_comp_5~tau_W*1
                      withdep_comp_6~tau_W*1
                      soma_comp_0~tau_S*1
                      soma_comp_1~tau_S*1
                      soma_comp_2~tau_S*1
                      soma_comp_3~tau_S*1
                      soma_comp_4~tau_S*1
                      soma_comp_5~tau_S*1
                      soma_comp_6~tau_S*1
                      socprob_comp_0~tau_P*1
                      socprob_comp_1~tau_P*1
                      socprob_comp_2~tau_P*1
                      socprob_comp_3~tau_P*1
                      socprob_comp_4~tau_P*1
                      socprob_comp_5~tau_P*1
                      socprob_comp_6~tau_P*1
                      thouprob_comp_0~tau_H*1
                      thouprob_comp_1~tau_H*1
                      thouprob_comp_2~tau_H*1
                      thouprob_comp_3~tau_H*1
                      thouprob_comp_4~tau_H*1
                      thouprob_comp_5~tau_H*1
                      thouprob_comp_6~tau_H*1
                      attprob_comp_0~tau_A*1
                      attprob_comp_1~tau_A*1
                      attprob_comp_2~tau_A*1
                      attprob_comp_3~tau_A*1
                      attprob_comp_4~tau_A*1
                      attprob_comp_5~tau_A*1
                      attprob_comp_6~tau_A*1
                      rulebreak_comp_0~tau_R*1
                      rulebreak_comp_1~tau_R*1
                      rulebreak_comp_2~tau_R*1
                      rulebreak_comp_3~tau_R*1
                      rulebreak_comp_4~tau_R*1
                      rulebreak_comp_5~tau_R*1
                      rulebreak_comp_6~tau_R*1
                      aggress_comp_0~tau_G*1
                      aggress_comp_1~tau_G*1
                      aggress_comp_2~tau_G*1
                      aggress_comp_3~tau_G*1
                      aggress_comp_4~tau_G*1
                      aggress_comp_5~tau_G*1
                      aggress_comp_6~tau_G*1"

lavaan(pc.7t.strong.invar,
  data = pc_factor_nolow_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("pc_7t_strong.rds")
result
readRDS("pc_7t_strong.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pc_7t_strong_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pc_7t_strong.rds"), "cor.lv"))$value
[1] 5.1908137 0.6736510 0.3232608 0.2475101 0.2026245 0.1922557 0.1698843
readRDS("pc_7t_strong_result.rds")
lavaan 0.6-19 ended normally after 229 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       557
  Number of equality constraints                    90

                                                  Used       Total
  Number of observations                         11865       11867
  Number of missing patterns                        82            

Model Test User Model:
                                                       
  Test statistic                              17037.322
  Degrees of freedom                               1185
  P-value (Chi-square)                            0.000

Model Test Baseline Model:

  Test statistic                            510459.918
  Degrees of freedom                              1540
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.969
  Tucker-Lewis Index (TLI)                       0.960
                                                      
  Robust Comparative Fit Index (CFI)             0.968
  Robust Tucker-Lewis Index (TLI)                0.958

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -511266.262
  Loglikelihood unrestricted model (H1)    -502747.601
                                                      
  Akaike (AIC)                             1023466.523
  Bayesian (BIC)                           1026913.613
  Sample-size adjusted Bayesian (SABIC)    1025429.541

Root Mean Square Error of Approximation:

  RMSEA                                          0.034
  90 Percent confidence interval - lower         0.033
  90 Percent confidence interval - upper         0.034
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.039
  90 Percent confidence interval - lower         0.038
  90 Percent confidence interval - upper         0.039
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.061

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_etaB =~                                                             
    anxd__0           1.000                               0.751    0.723
    wthd__0 (lm_W)    0.864    0.006  140.690    0.000    0.649    0.712
    sm_cm_0 (lm_S)    0.735    0.007  110.208    0.000    0.552    0.550
    scpr__0 (lm_C)    1.118    0.007  153.098    0.000    0.839    0.790
    thpr__0 (lm_H)    1.109    0.007  152.174    0.000    0.833    0.796
    attp__0 (lm_A)    0.998    0.007  142.385    0.000    0.750    0.745
    rlbr__0 (lm_R)    0.860    0.007  119.974    0.000    0.645    0.681
    aggr__0 (lm_G)    1.067    0.007  146.415    0.000    0.801    0.759
  p_eta1 =~                                                             
    anxd__1           1.000                               0.734    0.709
    wthd__1 (lm_W)    0.864    0.006  140.690    0.000    0.634    0.691
    sm_cm_1 (lm_S)    0.735    0.007  110.208    0.000    0.539    0.540
    scpr__1 (lm_C)    1.118    0.007  153.098    0.000    0.820    0.796
    thpr__1 (lm_H)    1.109    0.007  152.174    0.000    0.814    0.784
    attp__1 (lm_A)    0.998    0.007  142.385    0.000    0.733    0.740
    rlbr__1 (lm_R)    0.860    0.007  119.974    0.000    0.631    0.673
    aggr__1 (lm_G)    1.067    0.007  146.415    0.000    0.783    0.763
  p_eta2 =~                                                             
    anxd__2           1.000                               0.717    0.710
    wthd__2 (lm_W)    0.864    0.006  140.690    0.000    0.619    0.645
    sm_cm_2 (lm_S)    0.735    0.007  110.208    0.000    0.527    0.548
    scpr__2 (lm_C)    1.118    0.007  153.098    0.000    0.801    0.805
    thpr__2 (lm_H)    1.109    0.007  152.174    0.000    0.795    0.796
    attp__2 (lm_A)    0.998    0.007  142.385    0.000    0.716    0.742
    rlbr__2 (lm_R)    0.860    0.007  119.974    0.000    0.616    0.657
    aggr__2 (lm_G)    1.067    0.007  146.415    0.000    0.765    0.763
  p_eta3 =~                                                             
    anxd__3           1.000                               0.719    0.703
    wthd__3 (lm_W)    0.864    0.006  140.690    0.000    0.621    0.600
    sm_cm_3 (lm_S)    0.735    0.007  110.208    0.000    0.528    0.548
    scpr__3 (lm_C)    1.118    0.007  153.098    0.000    0.803    0.818
    thpr__3 (lm_H)    1.109    0.007  152.174    0.000    0.797    0.807
    attp__3 (lm_A)    0.998    0.007  142.385    0.000    0.717    0.744
    rlbr__3 (lm_R)    0.860    0.007  119.974    0.000    0.618    0.648
    aggr__3 (lm_G)    1.067    0.007  146.415    0.000    0.767    0.768
  p_eta4 =~                                                             
    anxd__4           1.000                               0.707    0.708
    wthd__4 (lm_W)    0.864    0.006  140.690    0.000    0.611    0.559
    sm_cm_4 (lm_S)    0.735    0.007  110.208    0.000    0.520    0.518
    scpr__4 (lm_C)    1.118    0.007  153.098    0.000    0.791    0.821
    thpr__4 (lm_H)    1.109    0.007  152.174    0.000    0.785    0.811
    attp__4 (lm_A)    0.998    0.007  142.385    0.000    0.706    0.754
    rlbr__4 (lm_R)    0.860    0.007  119.974    0.000    0.608    0.586
    aggr__4 (lm_G)    1.067    0.007  146.415    0.000    0.755    0.785
  p_eta5 =~                                                             
    anxd__5           1.000                               0.721    0.706
    wthd__5 (lm_W)    0.864    0.006  140.690    0.000    0.623    0.550
    sm_cm_5 (lm_S)    0.735    0.007  110.208    0.000    0.530    0.493
    scpr__5 (lm_C)    1.118    0.007  153.098    0.000    0.806    0.828
    thpr__5 (lm_H)    1.109    0.007  152.174    0.000    0.800    0.796
    attp__5 (lm_A)    0.998    0.007  142.385    0.000    0.720    0.754
    rlbr__5 (lm_R)    0.860    0.007  119.974    0.000    0.620    0.534
    aggr__5 (lm_G)    1.067    0.007  146.415    0.000    0.770    0.790
  p_eta6 =~                                                             
    anxd__6           1.000                               0.659    0.692
    wthd__6 (lm_W)    0.864    0.006  140.690    0.000    0.569    0.530
    sm_cm_6 (lm_S)    0.735    0.007  110.208    0.000    0.484    0.456
    scpr__6 (lm_C)    1.118    0.007  153.098    0.000    0.736    0.823
    thpr__6 (lm_H)    1.109    0.007  152.174    0.000    0.731    0.803
    attp__6 (lm_A)    0.998    0.007  142.385    0.000    0.658    0.735
    rlbr__6 (lm_R)    0.860    0.007  119.974    0.000    0.566    0.491
    aggr__6 (lm_G)    1.067    0.007  146.415    0.000    0.703    0.789

Covariances:
                      Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_etaB ~~                                                                
    p_eta1               0.432    0.008   51.402    0.000    0.784    0.784
    p_eta2               0.383    0.008   48.619    0.000    0.711    0.711
    p_eta3               0.357    0.008   46.358    0.000    0.662    0.662
    p_eta4               0.327    0.007   43.923    0.000    0.617    0.617
    p_eta5               0.320    0.008   42.110    0.000    0.590    0.590
    p_eta6               0.264    0.008   34.915    0.000    0.534    0.534
  p_eta1 ~~                                                                
    p_eta2               0.403    0.008   50.344    0.000    0.767    0.767
    p_eta3               0.381    0.008   48.483    0.000    0.723    0.723
    p_eta4               0.348    0.008   45.983    0.000    0.670    0.670
    p_eta5               0.341    0.008   44.288    0.000    0.645    0.645
    p_eta6               0.286    0.008   37.228    0.000    0.592    0.592
  p_eta2 ~~                                                                
    p_eta3               0.403    0.008   50.072    0.000    0.782    0.782
    p_eta4               0.359    0.008   47.083    0.000    0.707    0.707
    p_eta5               0.349    0.008   45.263    0.000    0.675    0.675
    p_eta6               0.296    0.008   38.798    0.000    0.627    0.627
  p_eta3 ~~                                                                
    p_eta4               0.393    0.008   48.797    0.000    0.773    0.773
    p_eta5               0.382    0.008   46.916    0.000    0.737    0.737
    p_eta6               0.321    0.008   40.400    0.000    0.677    0.677
  p_eta4 ~~                                                                
    p_eta5               0.407    0.008   48.373    0.000    0.798    0.798
    p_eta6               0.340    0.008   41.838    0.000    0.729    0.729
  p_eta5 ~~                                                                
    p_eta6               0.384    0.009   43.971    0.000    0.807    0.807
 .anxdep_comp_0 ~~                                                         
   .anxdep_comp_1        0.318    0.007   48.513    0.000    0.318    0.608
   .anxdep_comp_2        0.280    0.006   44.727    0.000    0.280    0.549
   .anxdep_comp_3        0.253    0.006   39.960    0.000    0.253    0.485
   .anxdep_comp_4        0.226    0.006   36.465    0.000    0.226    0.445
   .anxdep_comp_5        0.208    0.006   32.139    0.000    0.208    0.400
   .anxdep_comp_6        0.186    0.007   25.569    0.000    0.186    0.377
 .anxdep_comp_1 ~~                                                         
   .anxdep_comp_2        0.309    0.007   47.339    0.000    0.309    0.597
   .anxdep_comp_3        0.277    0.007   42.197    0.000    0.277    0.521
   .anxdep_comp_4        0.237    0.006   37.314    0.000    0.237    0.460
   .anxdep_comp_5        0.230    0.007   34.580    0.000    0.230    0.437
   .anxdep_comp_6        0.199    0.007   26.641    0.000    0.199    0.398
 .anxdep_comp_2 ~~                                                         
   .anxdep_comp_3        0.321    0.007   48.132    0.000    0.321    0.620
   .anxdep_comp_4        0.275    0.006   43.093    0.000    0.275    0.548
   .anxdep_comp_5        0.257    0.007   38.991    0.000    0.257    0.500
   .anxdep_comp_6        0.224    0.007   30.763    0.000    0.224    0.459
 .anxdep_comp_3 ~~                                                         
   .anxdep_comp_4        0.309    0.007   45.778    0.000    0.309    0.601
   .anxdep_comp_5        0.290    0.007   41.607    0.000    0.290    0.551
   .anxdep_comp_6        0.248    0.007   33.280    0.000    0.248    0.496
 .anxdep_comp_4 ~~                                                         
   .anxdep_comp_5        0.336    0.007   46.956    0.000    0.336    0.657
   .anxdep_comp_6        0.275    0.008   36.408    0.000    0.275    0.566
 .anxdep_comp_5 ~~                                                         
   .anxdep_comp_6        0.311    0.008   39.136    0.000    0.311    0.626
 .withdep_comp_0 ~~                                                        
   .withdep_comp_1       0.241    0.005   45.224    0.000    0.241    0.567
   .withdep_comp_2       0.205    0.005   37.412    0.000    0.205    0.436
   .withdep_comp_3       0.171    0.006   28.412    0.000    0.171    0.322
   .withdep_comp_4       0.135    0.007   20.336    0.000    0.135    0.233
   .withdep_comp_5       0.118    0.007   16.410    0.000    0.118    0.194
   .withdep_comp_6       0.097    0.008   11.688    0.000    0.097    0.166
 .withdep_comp_1 ~~                                                        
   .withdep_comp_2       0.263    0.006   44.865    0.000    0.263    0.541
   .withdep_comp_3       0.243    0.006   37.724    0.000    0.243    0.442
   .withdep_comp_4       0.208    0.007   29.575    0.000    0.208    0.346
   .withdep_comp_5       0.190    0.008   25.096    0.000    0.190    0.303
   .withdep_comp_6       0.153    0.009   18.037    0.000    0.153    0.254
 .withdep_comp_2 ~~                                                        
   .withdep_comp_3       0.344    0.007   45.978    0.000    0.344    0.566
   .withdep_comp_4       0.320    0.008   39.290    0.000    0.320    0.481
   .withdep_comp_5       0.296    0.009   34.068    0.000    0.296    0.426
   .withdep_comp_6       0.248    0.010   25.041    0.000    0.248    0.371
 .withdep_comp_3 ~~                                                        
   .withdep_comp_4       0.448    0.010   46.140    0.000    0.448    0.596
   .withdep_comp_5       0.429    0.010   41.897    0.000    0.429    0.548
   .withdep_comp_6       0.359    0.011   32.165    0.000    0.359    0.476
 .withdep_comp_4 ~~                                                        
   .withdep_comp_5       0.561    0.012   47.373    0.000    0.561    0.653
   .withdep_comp_6       0.477    0.013   37.873    0.000    0.477    0.578
 .withdep_comp_5 ~~                                                        
   .withdep_comp_6       0.565    0.014   41.341    0.000    0.565    0.656
 .soma_comp_0 ~~                                                           
   .soma_comp_1          0.363    0.008   46.196    0.000    0.363    0.515
   .soma_comp_2          0.307    0.007   41.131    0.000    0.307    0.455
   .soma_comp_3          0.272    0.007   36.456    0.000    0.272    0.403
   .soma_comp_4          0.260    0.008   32.368    0.000    0.260    0.362
   .soma_comp_5          0.258    0.009   28.557    0.000    0.258    0.329
   .soma_comp_6          0.254    0.011   23.427    0.000    0.254    0.320
 .soma_comp_1 ~~                                                           
   .soma_comp_2          0.342    0.008   44.600    0.000    0.342    0.506
   .soma_comp_3          0.298    0.008   38.997    0.000    0.298    0.439
   .soma_comp_4          0.285    0.008   34.894    0.000    0.285    0.394
   .soma_comp_5          0.288    0.009   31.433    0.000    0.288    0.366
   .soma_comp_6          0.264    0.011   24.034    0.000    0.264    0.331
 .soma_comp_2 ~~                                                           
   .soma_comp_3          0.330    0.008   43.925    0.000    0.330    0.509
   .soma_comp_4          0.311    0.008   38.819    0.000    0.311    0.450
   .soma_comp_5          0.306    0.009   34.561    0.000    0.306    0.406
   .soma_comp_6          0.281    0.010   26.994    0.000    0.281    0.369
 .soma_comp_3 ~~                                                           
   .soma_comp_4          0.345    0.008   41.633    0.000    0.345    0.499
   .soma_comp_5          0.333    0.009   36.450    0.000    0.333    0.441
   .soma_comp_6          0.319    0.011   30.048    0.000    0.319    0.418
 .soma_comp_4 ~~                                                           
   .soma_comp_5          0.447    0.010   43.604    0.000    0.447    0.556
   .soma_comp_6          0.418    0.012   34.912    0.000    0.418    0.514
 .soma_comp_5 ~~                                                           
   .soma_comp_6          0.527    0.013   39.346    0.000    0.527    0.594
 .socprob_comp_0 ~~                                                        
   .socprob_comp_1       0.197    0.005   36.044    0.000    0.197    0.485
   .socprob_comp_2       0.162    0.005   31.735    0.000    0.162    0.421
   .socprob_comp_3       0.125    0.005   25.691    0.000    0.125    0.340
   .socprob_comp_4       0.101    0.005   21.020    0.000    0.101    0.281
   .socprob_comp_5       0.086    0.005   17.589    0.000    0.086    0.241
   .socprob_comp_6       0.071    0.005   13.075    0.000    0.071    0.216
 .socprob_comp_1 ~~                                                        
   .socprob_comp_2       0.176    0.005   34.859    0.000    0.176    0.477
   .socprob_comp_3       0.139    0.005   28.943    0.000    0.139    0.394
   .socprob_comp_4       0.110    0.005   23.542    0.000    0.110    0.321
   .socprob_comp_5       0.093    0.005   19.557    0.000    0.093    0.272
   .socprob_comp_6       0.086    0.005   16.263    0.000    0.086    0.273
 .socprob_comp_2 ~~                                                        
   .socprob_comp_3       0.158    0.005   33.295    0.000    0.158    0.473
   .socprob_comp_4       0.135    0.005   29.347    0.000    0.135    0.416
   .socprob_comp_5       0.111    0.005   23.899    0.000    0.111    0.344
   .socprob_comp_6       0.100    0.005   19.748    0.000    0.100    0.334
 .socprob_comp_3 ~~                                                        
   .socprob_comp_4       0.143    0.005   31.286    0.000    0.143    0.460
   .socprob_comp_5       0.128    0.005   27.425    0.000    0.128    0.416
   .socprob_comp_6       0.112    0.005   22.222    0.000    0.112    0.390
 .socprob_comp_4 ~~                                                        
   .socprob_comp_5       0.154    0.005   32.322    0.000    0.154    0.513
   .socprob_comp_6       0.133    0.005   25.772    0.000    0.133    0.476
 .socprob_comp_5 ~~                                                        
   .socprob_comp_6       0.153    0.005   28.479    0.000    0.153    0.551
 .thouprob_comp_0 ~~                                                       
   .thouprob_cmp_1       0.195    0.005   36.590    0.000    0.195    0.476
   .thouprob_cmp_2       0.156    0.005   31.342    0.000    0.156    0.405
   .thouprob_cmp_3       0.130    0.005   27.003    0.000    0.130    0.352
   .thouprob_cmp_4       0.115    0.005   23.890    0.000    0.115    0.319
   .thouprob_cmp_5       0.111    0.005   21.357    0.000    0.111    0.288
   .thouprob_cmp_6       0.081    0.006   14.107    0.000    0.081    0.237
 .thouprob_comp_1 ~~                                                       
   .thouprob_cmp_2       0.185    0.005   35.665    0.000    0.185    0.475
   .thouprob_cmp_3       0.151    0.005   30.082    0.000    0.151    0.402
   .thouprob_cmp_4       0.133    0.005   26.775    0.000    0.133    0.363
   .thouprob_cmp_5       0.139    0.005   25.926    0.000    0.139    0.354
   .thouprob_cmp_6       0.098    0.006   16.864    0.000    0.098    0.281
 .thouprob_comp_2 ~~                                                       
   .thouprob_cmp_3       0.157    0.005   32.119    0.000    0.157    0.443
   .thouprob_cmp_4       0.132    0.005   27.807    0.000    0.132    0.385
   .thouprob_cmp_5       0.132    0.005   25.697    0.000    0.132    0.359
   .thouprob_cmp_6       0.090    0.006   16.232    0.000    0.090    0.276
 .thouprob_comp_3 ~~                                                       
   .thouprob_cmp_4       0.137    0.005   28.960    0.000    0.137    0.415
   .thouprob_cmp_5       0.130    0.005   25.366    0.000    0.130    0.365
   .thouprob_cmp_6       0.090    0.005   16.462    0.000    0.090    0.284
 .thouprob_comp_4 ~~                                                       
   .thouprob_cmp_5       0.168    0.005   32.208    0.000    0.168    0.488
   .thouprob_cmp_6       0.123    0.005   22.431    0.000    0.123    0.402
 .thouprob_comp_5 ~~                                                       
   .thouprob_cmp_6       0.163    0.006   26.844    0.000    0.163    0.494
 .attprob_comp_0 ~~                                                        
   .attprob_comp_1       0.300    0.006   51.232    0.000    0.300    0.671
   .attprob_comp_2       0.267    0.006   47.822    0.000    0.267    0.615
   .attprob_comp_3       0.248    0.006   44.913    0.000    0.248    0.574
   .attprob_comp_4       0.217    0.005   40.793    0.000    0.217    0.523
   .attprob_comp_5       0.216    0.006   39.207    0.000    0.216    0.513
   .attprob_comp_6       0.191    0.006   31.295    0.000    0.191    0.468
 .attprob_comp_1 ~~                                                        
   .attprob_comp_2       0.288    0.006   50.467    0.000    0.288    0.669
   .attprob_comp_3       0.265    0.006   47.145    0.000    0.265    0.617
   .attprob_comp_4       0.226    0.005   42.262    0.000    0.226    0.552
   .attprob_comp_5       0.227    0.006   41.151    0.000    0.227    0.544
   .attprob_comp_6       0.203    0.006   33.215    0.000    0.203    0.501
 .attprob_comp_2 ~~                                                        
   .attprob_comp_3       0.277    0.006   49.365    0.000    0.277    0.664
   .attprob_comp_4       0.238    0.005   44.827    0.000    0.238    0.597
   .attprob_comp_5       0.239    0.005   43.557    0.000    0.239    0.590
   .attprob_comp_6       0.211    0.006   35.404    0.000    0.211    0.538
 .attprob_comp_3 ~~                                                        
   .attprob_comp_4       0.257    0.005   47.071    0.000    0.257    0.648
   .attprob_comp_5       0.249    0.006   44.618    0.000    0.249    0.616
   .attprob_comp_6       0.218    0.006   36.534    0.000    0.218    0.558
 .attprob_comp_4 ~~                                                        
   .attprob_comp_5       0.263    0.006   46.937    0.000    0.263    0.681
   .attprob_comp_6       0.233    0.006   39.034    0.000    0.233    0.622
 .attprob_comp_5 ~~                                                        
   .attprob_comp_6       0.262    0.006   41.568    0.000    0.262    0.687
 .rulebreak_comp_0 ~~                                                      
   .rulebrek_cmp_1       0.294    0.006   49.830    0.000    0.294    0.610
   .rulebrek_cmp_2       0.258    0.006   43.938    0.000    0.258    0.526
   .rulebrek_cmp_3       0.242    0.006   39.742    0.000    0.242    0.479
   .rulebrek_cmp_4       0.245    0.007   34.893    0.000    0.245    0.419
   .rulebrek_cmp_5       0.274    0.008   33.076    0.000    0.274    0.402
   .rulebrek_cmp_6       0.232    0.010   23.784    0.000    0.232    0.333
 .rulebreak_comp_1 ~~                                                      
   .rulebrek_cmp_2       0.283    0.006   46.849    0.000    0.283    0.576
   .rulebrek_cmp_3       0.269    0.006   43.242    0.000    0.269    0.534
   .rulebrek_cmp_4       0.282    0.007   39.397    0.000    0.282    0.484
   .rulebrek_cmp_5       0.283    0.008   34.042    0.000    0.283    0.416
   .rulebrek_cmp_6       0.257    0.010   25.910    0.000    0.257    0.369
 .rulebreak_comp_2 ~~                                                      
   .rulebrek_cmp_3       0.306    0.007   46.418    0.000    0.306    0.596
   .rulebrek_cmp_4       0.305    0.007   40.946    0.000    0.305    0.512
   .rulebrek_cmp_5       0.342    0.009   39.211    0.000    0.342    0.494
   .rulebrek_cmp_6       0.320    0.010   31.080    0.000    0.320    0.451
 .rulebreak_comp_3 ~~                                                      
   .rulebrek_cmp_4       0.349    0.008   44.006    0.000    0.349    0.571
   .rulebrek_cmp_5       0.369    0.009   39.888    0.000    0.369    0.517
   .rulebrek_cmp_6       0.357    0.011   33.895    0.000    0.357    0.489
 .rulebreak_comp_4 ~~                                                      
   .rulebrek_cmp_5       0.533    0.011   47.458    0.000    0.533    0.646
   .rulebrek_cmp_6       0.512    0.013   39.999    0.000    0.512    0.606
 .rulebreak_comp_5 ~~                                                      
   .rulebrek_cmp_6       0.708    0.015   45.951    0.000    0.708    0.718
 .aggress_comp_0 ~~                                                        
   .aggress_comp_1       0.300    0.006   49.259    0.000    0.300    0.657
   .aggress_comp_2       0.270    0.006   46.107    0.000    0.270    0.607
   .aggress_comp_3       0.233    0.006   40.793    0.000    0.233    0.531
   .aggress_comp_4       0.204    0.005   37.994    0.000    0.204    0.498
   .aggress_comp_5       0.196    0.005   35.662    0.000    0.196    0.477
   .aggress_comp_6       0.159    0.006   27.530    0.000    0.159    0.425
 .aggress_comp_1 ~~                                                        
   .aggress_comp_2       0.277    0.006   47.706    0.000    0.277    0.642
   .aggress_comp_3       0.247    0.006   43.631    0.000    0.247    0.581
   .aggress_comp_4       0.210    0.005   39.867    0.000    0.210    0.531
   .aggress_comp_5       0.196    0.005   36.533    0.000    0.196    0.495
   .aggress_comp_6       0.161    0.006   28.196    0.000    0.161    0.445
 .aggress_comp_2 ~~                                                        
   .aggress_comp_3       0.269    0.006   46.780    0.000    0.269    0.648
   .aggress_comp_4       0.221    0.005   41.855    0.000    0.221    0.572
   .aggress_comp_5       0.213    0.005   39.679    0.000    0.213    0.551
   .aggress_comp_6       0.181    0.006   32.058    0.000    0.181    0.510
 .aggress_comp_3 ~~                                                        
   .aggress_comp_4       0.242    0.005   44.559    0.000    0.242    0.636
   .aggress_comp_5       0.223    0.005   40.823    0.000    0.223    0.584
   .aggress_comp_6       0.191    0.006   34.016    0.000    0.191    0.547
 .aggress_comp_4 ~~                                                        
   .aggress_comp_5       0.237    0.005   44.260    0.000    0.237    0.668
   .aggress_comp_6       0.199    0.005   36.185    0.000    0.199    0.610
 .aggress_comp_5 ~~                                                        
   .aggress_comp_6       0.224    0.006   38.837    0.000    0.224    0.686
 .anxdep_comp_0 ~~                                                         
   .withdep_comp_0       0.100    0.005   19.424    0.000    0.100    0.218
   .soma_comp_0          0.120    0.006   19.025    0.000    0.120    0.201
   .withdep_comp_1       0.085    0.005   16.217    0.000    0.085    0.178
   .soma_comp_1          0.084    0.006   13.214    0.000    0.084    0.139
   .withdep_comp_2       0.089    0.006   15.527    0.000    0.089    0.169
   .soma_comp_2          0.077    0.006   12.649    0.000    0.077    0.134
   .withdep_comp_3       0.102    0.007   15.497    0.000    0.102    0.172
   .soma_comp_3          0.077    0.006   12.255    0.000    0.077    0.133
   .withdep_comp_4       0.088    0.007   11.833    0.000    0.088    0.135
   .soma_comp_4          0.087    0.007   12.761    0.000    0.087    0.141
   .withdep_comp_5       0.085    0.008   10.551    0.000    0.085    0.125
   .soma_comp_5          0.069    0.008    8.925    0.000    0.069    0.103
   .withdep_comp_6       0.075    0.009    8.100    0.000    0.075    0.114
   .soma_comp_6          0.075    0.009    7.889    0.000    0.075    0.110
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_1        0.069    0.005   13.404    0.000    0.069    0.148
 .soma_comp_0 ~~                                                           
   .anxdep_comp_1        0.099    0.006   15.415    0.000    0.099    0.162
 .anxdep_comp_1 ~~                                                         
   .withdep_comp_1       0.105    0.005   19.278    0.000    0.105    0.216
   .soma_comp_1          0.112    0.007   17.125    0.000    0.112    0.183
   .withdep_comp_2       0.093    0.006   15.773    0.000    0.093    0.173
   .soma_comp_2          0.083    0.006   13.296    0.000    0.083    0.142
   .withdep_comp_3       0.114    0.007   16.963    0.000    0.114    0.189
   .soma_comp_3          0.078    0.006   12.272    0.000    0.078    0.133
   .withdep_comp_4       0.102    0.008   13.471    0.000    0.102    0.154
   .soma_comp_4          0.093    0.007   13.317    0.000    0.093    0.148
   .withdep_comp_5       0.116    0.008   14.035    0.000    0.116    0.168
   .soma_comp_5          0.090    0.008   11.416    0.000    0.090    0.132
   .withdep_comp_6       0.093    0.009    9.881    0.000    0.093    0.141
   .soma_comp_6          0.077    0.010    7.940    0.000    0.077    0.112
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_2        0.076    0.005   14.831    0.000    0.076    0.166
 .soma_comp_0 ~~                                                           
   .anxdep_comp_2        0.096    0.006   15.217    0.000    0.096    0.162
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_2        0.093    0.005   17.630    0.000    0.093    0.197
 .soma_comp_1 ~~                                                           
   .anxdep_comp_2        0.086    0.006   13.521    0.000    0.086    0.144
 .anxdep_comp_2 ~~                                                         
   .withdep_comp_2       0.146    0.006   24.689    0.000    0.146    0.281
   .soma_comp_2          0.116    0.006   18.637    0.000    0.116    0.203
   .withdep_comp_3       0.137    0.007   20.661    0.000    0.137    0.233
   .soma_comp_3          0.096    0.006   15.250    0.000    0.096    0.167
   .withdep_comp_4       0.124    0.007   16.742    0.000    0.124    0.192
   .soma_comp_4          0.110    0.007   16.157    0.000    0.110    0.180
   .withdep_comp_5       0.114    0.008   14.202    0.000    0.114    0.169
   .soma_comp_5          0.095    0.008   12.434    0.000    0.095    0.143
   .withdep_comp_6       0.089    0.009    9.850    0.000    0.089    0.138
   .soma_comp_6          0.087    0.009    9.274    0.000    0.087    0.129
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_3        0.063    0.005   11.913    0.000    0.063    0.135
 .soma_comp_0 ~~                                                           
   .anxdep_comp_3        0.102    0.007   15.514    0.000    0.102    0.167
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_3        0.080    0.005   14.760    0.000    0.080    0.166
 .soma_comp_1 ~~                                                           
   .anxdep_comp_3        0.092    0.007   13.856    0.000    0.092    0.150
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_3        0.117    0.006   19.483    0.000    0.117    0.219
 .soma_comp_2 ~~                                                           
   .anxdep_comp_3        0.101    0.006   15.841    0.000    0.101    0.172
 .anxdep_comp_3 ~~                                                         
   .withdep_comp_3       0.190    0.007   26.877    0.000    0.190    0.315
   .soma_comp_3          0.130    0.007   19.736    0.000    0.130    0.221
   .withdep_comp_4       0.151    0.008   19.532    0.000    0.151    0.228
   .soma_comp_4          0.138    0.007   19.410    0.000    0.138    0.221
   .withdep_comp_5       0.148    0.008   17.690    0.000    0.148    0.215
   .soma_comp_5          0.129    0.008   16.147    0.000    0.129    0.190
   .withdep_comp_6       0.113    0.009   12.255    0.000    0.113    0.170
   .soma_comp_6          0.136    0.009   14.322    0.000    0.136    0.197
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_4        0.044    0.005    8.333    0.000    0.044    0.096
 .soma_comp_0 ~~                                                           
   .anxdep_comp_4        0.083    0.007   12.703    0.000    0.083    0.140
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_4        0.063    0.005   11.815    0.000    0.063    0.135
 .soma_comp_1 ~~                                                           
   .anxdep_comp_4        0.080    0.007   12.225    0.000    0.080    0.135
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_4        0.094    0.006   15.860    0.000    0.094    0.181
 .soma_comp_2 ~~                                                           
   .anxdep_comp_4        0.086    0.006   13.526    0.000    0.086    0.151
 .withdep_comp_3 ~~                                                        
   .anxdep_comp_4        0.137    0.007   20.025    0.000    0.137    0.234
 .soma_comp_3 ~~                                                           
   .anxdep_comp_4        0.102    0.006   15.719    0.000    0.102    0.178
 .anxdep_comp_4 ~~                                                         
   .withdep_comp_4       0.209    0.008   26.547    0.000    0.209    0.325
   .soma_comp_4          0.155    0.007   21.934    0.000    0.155    0.255
   .withdep_comp_5       0.169    0.008   20.392    0.000    0.169    0.253
   .soma_comp_5          0.142    0.008   18.008    0.000    0.142    0.215
   .withdep_comp_6       0.135    0.009   14.703    0.000    0.135    0.210
   .soma_comp_6          0.144    0.009   15.206    0.000    0.144    0.215
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_5        0.042    0.006    7.610    0.000    0.042    0.091
 .soma_comp_0 ~~                                                           
   .anxdep_comp_5        0.075    0.007   10.864    0.000    0.075    0.124
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_5        0.064    0.006   11.312    0.000    0.064    0.134
 .soma_comp_1 ~~                                                           
   .anxdep_comp_5        0.083    0.007   11.960    0.000    0.083    0.137
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_5        0.099    0.006   15.756    0.000    0.099    0.186
 .soma_comp_2 ~~                                                           
   .anxdep_comp_5        0.091    0.007   13.716    0.000    0.091    0.157
 .withdep_comp_3 ~~                                                        
   .anxdep_comp_5        0.143    0.007   19.866    0.000    0.143    0.238
 .soma_comp_3 ~~                                                           
   .anxdep_comp_5        0.098    0.007   14.341    0.000    0.098    0.167
 .withdep_comp_4 ~~                                                        
   .anxdep_comp_5        0.177    0.008   21.894    0.000    0.177    0.269
 .soma_comp_4 ~~                                                           
   .anxdep_comp_5        0.147    0.007   19.827    0.000    0.147    0.237
 .anxdep_comp_5 ~~                                                         
   .withdep_comp_5       0.244    0.009   27.447    0.000    0.244    0.356
   .soma_comp_5          0.180    0.008   21.807    0.000    0.180    0.266
   .withdep_comp_6       0.156    0.010   16.441    0.000    0.156    0.238
   .soma_comp_6          0.155    0.010   15.838    0.000    0.155    0.227
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_6        0.048    0.006    7.468    0.000    0.048    0.109
 .soma_comp_0 ~~                                                           
   .anxdep_comp_6        0.069    0.008    8.724    0.000    0.069    0.119
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_6        0.065    0.006    9.985    0.000    0.065    0.142
 .soma_comp_1 ~~                                                           
   .anxdep_comp_6        0.072    0.008    8.988    0.000    0.072    0.124
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_6        0.093    0.007   12.641    0.000    0.093    0.185
 .soma_comp_2 ~~                                                           
   .anxdep_comp_6        0.089    0.008   11.877    0.000    0.089    0.161
 .withdep_comp_3 ~~                                                        
   .anxdep_comp_6        0.133    0.008   16.248    0.000    0.133    0.233
 .soma_comp_3 ~~                                                           
   .anxdep_comp_6        0.080    0.008   10.508    0.000    0.080    0.143
 .withdep_comp_4 ~~                                                        
   .anxdep_comp_6        0.159    0.009   17.563    0.000    0.159    0.254
 .soma_comp_4 ~~                                                           
   .anxdep_comp_6        0.117    0.008   13.928    0.000    0.117    0.198
 .withdep_comp_5 ~~                                                        
   .anxdep_comp_6        0.185    0.010   19.149    0.000    0.185    0.284
 .soma_comp_5 ~~                                                           
   .anxdep_comp_6        0.123    0.009   13.483    0.000    0.123    0.191
 .anxdep_comp_6 ~~                                                         
   .withdep_comp_6       0.222    0.010   22.113    0.000    0.222    0.354
   .soma_comp_6          0.168    0.010   17.038    0.000    0.168    0.258
 .withdep_comp_0 ~~                                                        
   .soma_comp_0          0.053    0.006    9.437    0.000    0.053    0.098
   .soma_comp_1          0.053    0.006    9.314    0.000    0.053    0.098
   .soma_comp_2          0.038    0.006    6.888    0.000    0.038    0.074
   .soma_comp_3          0.027    0.006    4.780    0.000    0.027    0.052
   .soma_comp_4          0.019    0.006    3.119    0.002    0.019    0.035
   .soma_comp_5         -0.007    0.007   -0.944    0.345   -0.007   -0.011
   .soma_comp_6         -0.005    0.009   -0.542    0.588   -0.005   -0.008
 .soma_comp_0 ~~                                                           
   .withdep_comp_1       0.037    0.006    6.397    0.000    0.037    0.066
 .withdep_comp_1 ~~                                                        
   .soma_comp_1          0.066    0.006   11.270    0.000    0.066    0.118
   .soma_comp_2          0.049    0.006    8.755    0.000    0.049    0.093
   .soma_comp_3          0.050    0.006    8.719    0.000    0.050    0.094
   .soma_comp_4          0.038    0.006    6.099    0.000    0.038    0.067
   .soma_comp_5          0.034    0.007    4.838    0.000    0.034    0.055
   .soma_comp_6          0.018    0.009    2.053    0.040    0.018    0.028
 .soma_comp_0 ~~                                                           
   .withdep_comp_2       0.051    0.006    8.085    0.000    0.051    0.084
 .soma_comp_1 ~~                                                           
   .withdep_comp_2       0.066    0.006   10.213    0.000    0.066    0.107
 .withdep_comp_2 ~~                                                        
   .soma_comp_2          0.081    0.006   13.036    0.000    0.081    0.137
   .soma_comp_3          0.061    0.006    9.574    0.000    0.061    0.103
   .soma_comp_4          0.079    0.007   11.450    0.000    0.079    0.126
   .soma_comp_5          0.072    0.008    9.171    0.000    0.072    0.104
   .soma_comp_6          0.054    0.010    5.481    0.000    0.054    0.078
 .soma_comp_0 ~~                                                           
   .withdep_comp_3       0.068    0.007    9.240    0.000    0.068    0.098
 .soma_comp_1 ~~                                                           
   .withdep_comp_3       0.061    0.007    8.198    0.000    0.061    0.087
 .soma_comp_2 ~~                                                           
   .withdep_comp_3       0.066    0.007    9.375    0.000    0.066    0.100
 .withdep_comp_3 ~~                                                        
   .soma_comp_3          0.087    0.007   12.062    0.000    0.087    0.131
   .soma_comp_4          0.115    0.008   14.419    0.000    0.115    0.161
   .soma_comp_5          0.125    0.009   13.948    0.000    0.125    0.161
   .soma_comp_6          0.126    0.011   11.572    0.000    0.126    0.160
 .soma_comp_0 ~~                                                           
   .withdep_comp_4       0.059    0.008    7.154    0.000    0.059    0.078
 .soma_comp_1 ~~                                                           
   .withdep_comp_4       0.072    0.008    8.581    0.000    0.072    0.094
 .soma_comp_2 ~~                                                           
   .withdep_comp_4       0.068    0.008    8.422    0.000    0.068    0.093
 .soma_comp_3 ~~                                                           
   .withdep_comp_4       0.087    0.008   10.603    0.000    0.087    0.119
 .withdep_comp_4 ~~                                                        
   .soma_comp_4          0.154    0.009   17.417    0.000    0.154    0.198
   .soma_comp_5          0.146    0.010   14.691    0.000    0.146    0.172
   .soma_comp_6          0.165    0.012   13.798    0.000    0.165    0.192
 .soma_comp_0 ~~                                                           
   .withdep_comp_5       0.053    0.009    5.849    0.000    0.053    0.067
 .soma_comp_1 ~~                                                           
   .withdep_comp_5       0.065    0.009    7.099    0.000    0.065    0.081
 .soma_comp_2 ~~                                                           
   .withdep_comp_5       0.062    0.009    7.086    0.000    0.062    0.081
 .soma_comp_3 ~~                                                           
   .withdep_comp_5       0.079    0.009    8.868    0.000    0.079    0.103
 .soma_comp_4 ~~                                                           
   .withdep_comp_5       0.141    0.010   14.636    0.000    0.141    0.173
 .withdep_comp_5 ~~                                                        
   .soma_comp_5          0.209    0.011   19.624    0.000    0.209    0.236
   .soma_comp_6          0.193    0.013   15.137    0.000    0.193    0.215
 .soma_comp_0 ~~                                                           
   .withdep_comp_6       0.061    0.010    5.944    0.000    0.061    0.080
 .soma_comp_1 ~~                                                           
   .withdep_comp_6       0.046    0.010    4.413    0.000    0.046    0.060
 .soma_comp_2 ~~                                                           
   .withdep_comp_6       0.047    0.010    4.849    0.000    0.047    0.065
 .soma_comp_3 ~~                                                           
   .withdep_comp_6       0.056    0.010    5.660    0.000    0.056    0.076
 .soma_comp_4 ~~                                                           
   .withdep_comp_6       0.100    0.011    9.254    0.000    0.100    0.128
 .soma_comp_5 ~~                                                           
   .withdep_comp_6       0.136    0.012   11.545    0.000    0.136    0.160
 .withdep_comp_6 ~~                                                        
   .soma_comp_6          0.204    0.013   15.947    0.000    0.204    0.237
 .rulebreak_comp_0 ~~                                                      
   .aggress_comp_0       0.223    0.006   38.455    0.000    0.223    0.468
   .aggress_comp_1       0.173    0.005   32.084    0.000    0.173    0.376
   .aggress_comp_2       0.162    0.005   30.524    0.000    0.162    0.360
   .aggress_comp_3       0.140    0.005   26.393    0.000    0.140    0.317
   .aggress_comp_4       0.132    0.005   25.799    0.000    0.132    0.318
   .aggress_comp_5       0.134    0.005   25.648    0.000    0.134    0.325
   .aggress_comp_6       0.113    0.006   19.747    0.000    0.113    0.298
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_1       0.182    0.006   32.659    0.000    0.182    0.381
 .rulebreak_comp_1 ~~                                                      
   .aggress_comp_1       0.216    0.006   37.779    0.000    0.216    0.469
   .aggress_comp_2       0.169    0.005   31.578    0.000    0.169    0.376
   .aggress_comp_3       0.153    0.005   28.416    0.000    0.153    0.344
   .aggress_comp_4       0.145    0.005   28.144    0.000    0.145    0.351
   .aggress_comp_5       0.136    0.005   25.901    0.000    0.136    0.329
   .aggress_comp_6       0.125    0.006   21.454    0.000    0.125    0.330
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_2       0.162    0.006   28.839    0.000    0.162    0.335
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_2       0.165    0.006   29.799    0.000    0.165    0.351
 .rulebreak_comp_2 ~~                                                      
   .aggress_comp_2       0.223    0.006   38.393    0.000    0.223    0.487
   .aggress_comp_3       0.169    0.006   30.140    0.000    0.169    0.373
   .aggress_comp_4       0.144    0.005   27.247    0.000    0.144    0.342
   .aggress_comp_5       0.144    0.005   26.739    0.000    0.144    0.342
   .aggress_comp_6       0.141    0.006   23.619    0.000    0.141    0.364
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_3       0.162    0.006   27.625    0.000    0.162    0.325
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_3       0.165    0.006   28.683    0.000    0.165    0.341
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_3       0.180    0.006   31.297    0.000    0.180    0.382
 .rulebreak_comp_3 ~~                                                      
   .aggress_comp_3       0.231    0.006   37.913    0.000    0.231    0.498
   .aggress_comp_4       0.167    0.006   30.182    0.000    0.167    0.385
   .aggress_comp_5       0.156    0.006   27.742    0.000    0.156    0.361
   .aggress_comp_6       0.154    0.006   25.588    0.000    0.154    0.388
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_4       0.186    0.007   27.136    0.000    0.186    0.322
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_4       0.193    0.007   28.742    0.000    0.193    0.345
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_4       0.193    0.007   29.080    0.000    0.193    0.353
 .aggress_comp_3 ~~                                                        
   .rulebrek_cmp_4       0.206    0.007   30.402    0.000    0.206    0.383
 .rulebreak_comp_4 ~~                                                      
   .aggress_comp_4       0.251    0.007   37.315    0.000    0.251    0.501
   .aggress_comp_5       0.207    0.007   31.002    0.000    0.207    0.412
   .aggress_comp_6       0.175    0.007   24.632    0.000    0.175    0.380
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_5       0.219    0.008   26.756    0.000    0.219    0.325
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_5       0.205    0.008   25.779    0.000    0.205    0.314
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_5       0.231    0.008   29.239    0.000    0.231    0.363
 .aggress_comp_3 ~~                                                        
   .rulebrek_cmp_5       0.226    0.008   28.249    0.000    0.226    0.361
 .aggress_comp_4 ~~                                                        
   .rulebrek_cmp_5       0.234    0.008   30.623    0.000    0.234    0.399
 .rulebreak_comp_5 ~~                                                      
   .aggress_comp_5       0.309    0.008   37.824    0.000    0.309    0.527
   .aggress_comp_6       0.236    0.008   28.419    0.000    0.236    0.440
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_6       0.203    0.010   21.018    0.000    0.203    0.294
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_6       0.183    0.009   19.314    0.000    0.183    0.273
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_6       0.217    0.009   23.453    0.000    0.217    0.333
 .aggress_comp_3 ~~                                                        
   .rulebrek_cmp_6       0.222    0.009   24.146    0.000    0.222    0.346
 .aggress_comp_4 ~~                                                        
   .rulebrek_cmp_6       0.228    0.009   25.736    0.000    0.228    0.380
 .aggress_comp_5 ~~                                                        
   .rulebrek_cmp_6       0.248    0.009   27.256    0.000    0.248    0.414
 .rulebreak_comp_6 ~~                                                      
   .aggress_comp_6       0.273    0.009   29.200    0.000    0.273    0.496

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    p_etaB            0.000                               0.000    0.000
    p_eta1    (m1)    0.024    0.005    4.985    0.000    0.032    0.032
    p_eta2    (m2)   -0.010    0.005   -1.923    0.054   -0.014   -0.014
    p_eta3    (m3)    0.004    0.005    0.762    0.446    0.005    0.005
    p_eta4    (m4)   -0.032    0.005   -6.397    0.000   -0.045   -0.045
   .anxd__0 (ta_X)   -0.047    0.009   -5.545    0.000   -0.047   -0.046
   .anxd__1 (ta_X)   -0.047    0.009   -5.545    0.000   -0.047   -0.046
   .anxd__2 (ta_X)   -0.047    0.009   -5.545    0.000   -0.047   -0.047
   .anxd__3 (ta_X)   -0.047    0.009   -5.545    0.000   -0.047   -0.046
   .anxd__4 (ta_X)   -0.047    0.009   -5.545    0.000   -0.047   -0.047
   .anxd__5 (ta_X)   -0.047    0.009   -5.545    0.000   -0.047   -0.046
   .anxd__6 (ta_X)   -0.047    0.009   -5.545    0.000   -0.047   -0.050
   .wthd__0 (ta_W)   -0.105    0.008  -13.484    0.000   -0.105   -0.115
   .wthd__1 (ta_W)   -0.105    0.008  -13.484    0.000   -0.105   -0.114
   .wthd__2 (ta_W)   -0.105    0.008  -13.484    0.000   -0.105   -0.109
   .wthd__3 (ta_W)   -0.105    0.008  -13.484    0.000   -0.105   -0.101
   .wthd__4 (ta_W)   -0.105    0.008  -13.484    0.000   -0.105   -0.096
   .wthd__5 (ta_W)   -0.105    0.008  -13.484    0.000   -0.105   -0.093
   .wthd__6 (ta_W)   -0.105    0.008  -13.484    0.000   -0.105   -0.098
   .sm_cm_0 (ta_S)   -0.040    0.008   -4.974    0.000   -0.040   -0.039
   .sm_cm_1 (ta_S)   -0.040    0.008   -4.974    0.000   -0.040   -0.040
   .sm_cm_2 (ta_S)   -0.040    0.008   -4.974    0.000   -0.040   -0.041
   .sm_cm_3 (ta_S)   -0.040    0.008   -4.974    0.000   -0.040   -0.041
   .sm_cm_4 (ta_S)   -0.040    0.008   -4.974    0.000   -0.040   -0.039
   .sm_cm_5 (ta_S)   -0.040    0.008   -4.974    0.000   -0.040   -0.037
   .sm_cm_6 (ta_S)   -0.040    0.008   -4.974    0.000   -0.040   -0.037
   .scpr__0 (ta_P)   -0.013    0.008   -1.668    0.095   -0.013   -0.013
   .scpr__1 (ta_P)   -0.013    0.008   -1.668    0.095   -0.013   -0.013
   .scpr__2 (ta_P)   -0.013    0.008   -1.668    0.095   -0.013   -0.013
   .scpr__3 (ta_P)   -0.013    0.008   -1.668    0.095   -0.013   -0.014
   .scpr__4 (ta_P)   -0.013    0.008   -1.668    0.095   -0.013   -0.014
   .scpr__5 (ta_P)   -0.013    0.008   -1.668    0.095   -0.013   -0.014
   .scpr__6 (ta_P)   -0.013    0.008   -1.668    0.095   -0.013   -0.015
   .thpr__0 (ta_H)   -0.010    0.008   -1.260    0.208   -0.010   -0.010
   .thpr__1 (ta_H)   -0.010    0.008   -1.260    0.208   -0.010   -0.010
   .thpr__2 (ta_H)   -0.010    0.008   -1.260    0.208   -0.010   -0.010
   .thpr__3 (ta_H)   -0.010    0.008   -1.260    0.208   -0.010   -0.010
   .thpr__4 (ta_H)   -0.010    0.008   -1.260    0.208   -0.010   -0.010
   .thpr__5 (ta_H)   -0.010    0.008   -1.260    0.208   -0.010   -0.010
   .thpr__6 (ta_H)   -0.010    0.008   -1.260    0.208   -0.010   -0.011
   .attp__0 (ta_A)   -0.003    0.008   -0.340    0.734   -0.003   -0.003
   .attp__1 (ta_A)   -0.003    0.008   -0.340    0.734   -0.003   -0.003
   .attp__2 (ta_A)   -0.003    0.008   -0.340    0.734   -0.003   -0.003
   .attp__3 (ta_A)   -0.003    0.008   -0.340    0.734   -0.003   -0.003
   .attp__4 (ta_A)   -0.003    0.008   -0.340    0.734   -0.003   -0.003
   .attp__5 (ta_A)   -0.003    0.008   -0.340    0.734   -0.003   -0.003
   .attp__6 (ta_A)   -0.003    0.008   -0.340    0.734   -0.003   -0.003
   .rlbr__0 (ta_R)   -0.047    0.008   -6.090    0.000   -0.047   -0.050
   .rlbr__1 (ta_R)   -0.047    0.008   -6.090    0.000   -0.047   -0.050
   .rlbr__2 (ta_R)   -0.047    0.008   -6.090    0.000   -0.047   -0.050
   .rlbr__3 (ta_R)   -0.047    0.008   -6.090    0.000   -0.047   -0.049
   .rlbr__4 (ta_R)   -0.047    0.008   -6.090    0.000   -0.047   -0.045
   .rlbr__5 (ta_R)   -0.047    0.008   -6.090    0.000   -0.047   -0.040
   .rlbr__6 (ta_R)   -0.047    0.008   -6.090    0.000   -0.047   -0.041
   .aggr__0 (ta_G)   -0.041    0.008   -4.955    0.000   -0.041   -0.038
   .aggr__1 (ta_G)   -0.041    0.008   -4.955    0.000   -0.041   -0.040
   .aggr__2 (ta_G)   -0.041    0.008   -4.955    0.000   -0.041   -0.041
   .aggr__3 (ta_G)   -0.041    0.008   -4.955    0.000   -0.041   -0.041
   .aggr__4 (ta_G)   -0.041    0.008   -4.955    0.000   -0.041   -0.042
   .aggr__5 (ta_G)   -0.041    0.008   -4.955    0.000   -0.041   -0.042
   .aggr__6 (ta_G)   -0.041    0.008   -4.955    0.000   -0.041   -0.046

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    p_etaB            0.564    0.010   56.748    0.000    1.000    1.000
    p_eta1            0.538    0.010   55.974    0.000    1.000    1.000
    p_eta2            0.514    0.009   55.369    0.000    1.000    1.000
    p_eta3            0.516    0.010   54.202    0.000    1.000    1.000
    p_eta4            0.500    0.009   52.967    0.000    1.000    1.000
    p_eta5            0.520    0.010   51.490    0.000    1.000    1.000
    p_eta6            0.434    0.010   42.678    0.000    1.000    1.000
   .anxdep_comp_0     0.515    0.008   66.538    0.000    0.515    0.477
   .withdep_comp_0    0.410    0.006   65.290    0.000    0.410    0.494
   .soma_comp_0       0.701    0.010   72.624    0.000    0.701    0.697
   .socprob_comp_0    0.424    0.007   60.332    0.000    0.424    0.376
   .thouprob_cmp_0    0.403    0.007   61.668    0.000    0.403    0.367
   .attprob_comp_0    0.451    0.007   65.283    0.000    0.451    0.445
   .rulebrek_cmp_0    0.481    0.007   68.702    0.000    0.481    0.536
   .aggress_comp_0    0.472    0.007   63.622    0.000    0.472    0.424
   .anxdep_comp_1     0.532    0.008   65.599    0.000    0.532    0.497
   .withdep_comp_1    0.439    0.007   66.174    0.000    0.439    0.522
   .soma_comp_1       0.708    0.010   71.040    0.000    0.708    0.709
   .socprob_comp_1    0.389    0.007   58.672    0.000    0.389    0.367
   .thouprob_cmp_1    0.415    0.007   60.690    0.000    0.415    0.385
   .attprob_comp_1    0.444    0.007   64.156    0.000    0.444    0.453
   .rulebrek_cmp_1    0.482    0.007   66.958    0.000    0.482    0.548
   .aggress_comp_1    0.441    0.007   62.461    0.000    0.441    0.418
   .anxdep_comp_2     0.505    0.008   65.014    0.000    0.505    0.496
   .withdep_comp_2    0.538    0.008   67.219    0.000    0.538    0.584
   .soma_comp_2       0.647    0.009   69.764    0.000    0.647    0.700
   .socprob_comp_2    0.350    0.006   57.356    0.000    0.350    0.353
   .thouprob_cmp_2    0.367    0.006   58.666    0.000    0.367    0.367
   .attprob_comp_2    0.419    0.007   63.301    0.000    0.419    0.450
   .rulebrek_cmp_2    0.500    0.008   66.036    0.000    0.500    0.568
   .aggress_comp_2    0.421    0.007   61.456    0.000    0.421    0.419
   .anxdep_comp_3     0.530    0.008   63.694    0.000    0.530    0.506
   .withdep_comp_3    0.686    0.010   65.636    0.000    0.686    0.640
   .soma_comp_3       0.651    0.010   67.717    0.000    0.651    0.700
   .socprob_comp_3    0.318    0.006   54.977    0.000    0.318    0.330
   .thouprob_cmp_3    0.340    0.006   56.068    0.000    0.340    0.349
   .attprob_comp_3    0.414    0.007   61.778    0.000    0.414    0.446
   .rulebrek_cmp_3    0.528    0.008   63.587    0.000    0.528    0.581
   .aggress_comp_3    0.408    0.007   59.565    0.000    0.408    0.410
   .anxdep_comp_4     0.499    0.008   61.450    0.000    0.499    0.499
   .withdep_comp_4    0.823    0.013   63.162    0.000    0.823    0.688
   .soma_comp_4       0.738    0.011   65.780    0.000    0.738    0.732
   .socprob_comp_4    0.303    0.006   53.103    0.000    0.303    0.326
   .thouprob_cmp_4    0.321    0.006   53.789    0.000    0.321    0.343
   .attprob_comp_4    0.380    0.006   59.354    0.000    0.380    0.432
   .rulebrek_cmp_4    0.708    0.011   62.974    0.000    0.708    0.657
   .aggress_comp_4    0.355    0.006   57.079    0.000    0.355    0.384
   .anxdep_comp_5     0.523    0.009   58.896    0.000    0.523    0.502
   .withdep_comp_5    0.896    0.015   60.440    0.000    0.896    0.697
   .soma_comp_5       0.877    0.014   62.847    0.000    0.877    0.757
   .socprob_comp_5    0.298    0.006   49.816    0.000    0.298    0.315
   .thouprob_cmp_5    0.370    0.007   52.675    0.000    0.370    0.366
   .attprob_comp_5    0.393    0.007   57.371    0.000    0.393    0.431
   .rulebrek_cmp_5    0.963    0.016   61.606    0.000    0.963    0.715
   .aggress_comp_5    0.356    0.007   54.672    0.000    0.356    0.375
   .anxdep_comp_6     0.473    0.010   47.040    0.000    0.473    0.521
   .withdep_comp_6    0.829    0.017   48.501    0.000    0.829    0.719
   .soma_comp_6       0.895    0.018   50.170    0.000    0.895    0.792
   .socprob_comp_6    0.258    0.007   38.705    0.000    0.258    0.322
   .thouprob_cmp_6    0.294    0.007   39.882    0.000    0.294    0.355
   .attprob_comp_6    0.369    0.008   46.476    0.000    0.369    0.460
   .rulebrek_cmp_6    1.011    0.020   50.060    0.000    1.011    0.759
   .aggress_comp_6    0.299    0.007   42.981    0.000    0.299    0.377

R-Square:
                   Estimate
    anxdep_comp_0     0.523
    withdep_comp_0    0.506
    soma_comp_0       0.303
    socprob_comp_0    0.624
    thouprob_cmp_0    0.633
    attprob_comp_0    0.555
    rulebrek_cmp_0    0.464
    aggress_comp_0    0.576
    anxdep_comp_1     0.503
    withdep_comp_1    0.478
    soma_comp_1       0.291
    socprob_comp_1    0.633
    thouprob_cmp_1    0.615
    attprob_comp_1    0.547
    rulebrek_cmp_1    0.452
    aggress_comp_1    0.582
    anxdep_comp_2     0.504
    withdep_comp_2    0.416
    soma_comp_2       0.300
    socprob_comp_2    0.647
    thouprob_cmp_2    0.633
    attprob_comp_2    0.550
    rulebrek_cmp_2    0.432
    aggress_comp_2    0.581
    anxdep_comp_3     0.494
    withdep_comp_3    0.360
    soma_comp_3       0.300
    socprob_comp_3    0.670
    thouprob_cmp_3    0.651
    attprob_comp_3    0.554
    rulebrek_cmp_3    0.419
    aggress_comp_3    0.590
    anxdep_comp_4     0.501
    withdep_comp_4    0.312
    soma_comp_4       0.268
    socprob_comp_4    0.674
    thouprob_cmp_4    0.657
    attprob_comp_4    0.568
    rulebrek_cmp_4    0.343
    aggress_comp_4    0.616
    anxdep_comp_5     0.498
    withdep_comp_5    0.303
    soma_comp_5       0.243
    socprob_comp_5    0.685
    thouprob_cmp_5    0.634
    attprob_comp_5    0.569
    rulebrek_cmp_5    0.285
    aggress_comp_5    0.625
    anxdep_comp_6     0.479
    withdep_comp_6    0.281
    soma_comp_6       0.208
    socprob_comp_6    0.678
    thouprob_cmp_6    0.645
    attprob_comp_6    0.540
    rulebrek_cmp_6    0.241
    aggress_comp_6    0.623

Latent growth curve model

model fit
lg.pc.7t.strong.invar <- "#factor loadings (with constraints)
               p_etaB =~ 1*anxdep_comp_0+
                       lambda_W*withdep_comp_0+
                       lambda_S*soma_comp_0+
                       lambda_C*socprob_comp_0+
                       lambda_H*thouprob_comp_0+
                       lambda_A*attprob_comp_0+
                       lambda_R*rulebreak_comp_0+
                       lambda_G*aggress_comp_0
               p_eta1 =~ 1*anxdep_comp_1+
                       lambda_W*withdep_comp_1+
                       lambda_S*soma_comp_1+
                       lambda_C*socprob_comp_1+
                       lambda_H*thouprob_comp_1+
                       lambda_A*attprob_comp_1+
                       lambda_R*rulebreak_comp_1+
                       lambda_G*aggress_comp_1
               p_eta2 =~ 1*anxdep_comp_2+
                       lambda_W*withdep_comp_2+
                       lambda_S*soma_comp_2+
                       lambda_C*socprob_comp_2+
                       lambda_H*thouprob_comp_2+
                       lambda_A*attprob_comp_2+
                       lambda_R*rulebreak_comp_2+
                       lambda_G*aggress_comp_2
               p_eta3 =~ 1*anxdep_comp_3+
                       lambda_W*withdep_comp_3+
                       lambda_S*soma_comp_3+
                       lambda_C*socprob_comp_3+
                       lambda_H*thouprob_comp_3+
                       lambda_A*attprob_comp_3+
                       lambda_R*rulebreak_comp_3+
                       lambda_G*aggress_comp_3
               p_eta4 =~ 1*anxdep_comp_4+
                       lambda_W*withdep_comp_4+
                       lambda_S*soma_comp_4+
                       lambda_C*socprob_comp_4+
                       lambda_H*thouprob_comp_4+
                       lambda_A*attprob_comp_4+
                       lambda_R*rulebreak_comp_4+
                       lambda_G*aggress_comp_4
               p_eta5 =~ 1*anxdep_comp_5+
                       lambda_W*withdep_comp_5+
                       lambda_S*soma_comp_5+
                       lambda_C*socprob_comp_5+
                       lambda_H*thouprob_comp_5+
                       lambda_A*attprob_comp_5+
                       lambda_R*rulebreak_comp_5+
                       lambda_G*aggress_comp_5
               p_eta6 =~ 1*anxdep_comp_6+
                       lambda_W*withdep_comp_6+
                       lambda_S*soma_comp_6+
                       lambda_C*socprob_comp_6+
                       lambda_H*thouprob_comp_6+
                       lambda_A*attprob_comp_6+
                       lambda_R*rulebreak_comp_6+
                       lambda_G*aggress_comp_6

              #latent variable variances
                      p_etaB~~NA*p_etaB
                      p_eta1~~NA*p_eta1
                      p_eta2~~NA*p_eta2
                      p_eta3~~NA*p_eta3
                      p_eta4~~NA*p_eta4
                      p_eta5~~NA*p_eta5
                      p_eta6~~NA*p_eta6

              #unique variances # No need to constrict these
                      anxdep_comp_0~~anxdep_comp_0
                      withdep_comp_0~~withdep_comp_0
                      soma_comp_0~~soma_comp_0
                      socprob_comp_0~~socprob_comp_0
                      thouprob_comp_0~~thouprob_comp_0
                      attprob_comp_0~~attprob_comp_0
                      rulebreak_comp_0~~rulebreak_comp_0
                      aggress_comp_0~~aggress_comp_0
                      anxdep_comp_1~~anxdep_comp_1
                      withdep_comp_1~~withdep_comp_1
                      soma_comp_1~~soma_comp_1
                      socprob_comp_1~~socprob_comp_1
                      thouprob_comp_1~~thouprob_comp_1
                      attprob_comp_1~~attprob_comp_1
                      rulebreak_comp_1~~rulebreak_comp_1
                      aggress_comp_1~~aggress_comp_1

                      anxdep_comp_2~~anxdep_comp_2
                      withdep_comp_2~~withdep_comp_2
                      soma_comp_2~~soma_comp_2
                      socprob_comp_2~~socprob_comp_2
                      thouprob_comp_2~~thouprob_comp_2
                      attprob_comp_2~~attprob_comp_2
                      rulebreak_comp_2~~rulebreak_comp_2
                      aggress_comp_2~~aggress_comp_2

                      anxdep_comp_3~~anxdep_comp_3
                      withdep_comp_3~~withdep_comp_3
                      soma_comp_3~~soma_comp_3
                      socprob_comp_3~~socprob_comp_3
                      thouprob_comp_3~~thouprob_comp_3
                      attprob_comp_3~~attprob_comp_3
                      rulebreak_comp_3~~rulebreak_comp_3
                      aggress_comp_3~~aggress_comp_3

                      anxdep_comp_4~~anxdep_comp_4
                      withdep_comp_4~~withdep_comp_4
                      soma_comp_4~~soma_comp_4
                      socprob_comp_4~~socprob_comp_4
                      thouprob_comp_4~~thouprob_comp_4
                      attprob_comp_4~~attprob_comp_4
                      rulebreak_comp_4~~rulebreak_comp_4
                      aggress_comp_4~~aggress_comp_4

                      anxdep_comp_5~~anxdep_comp_5
                      withdep_comp_5~~withdep_comp_5
                      soma_comp_5~~soma_comp_5
                      socprob_comp_5~~socprob_comp_5
                      thouprob_comp_5~~thouprob_comp_5
                      attprob_comp_5~~attprob_comp_5
                      rulebreak_comp_5~~rulebreak_comp_5
                      aggress_comp_5~~aggress_comp_5

                      anxdep_comp_6~~anxdep_comp_6
                      withdep_comp_6~~withdep_comp_6
                      soma_comp_6~~soma_comp_6
                      socprob_comp_6~~socprob_comp_6
                      thouprob_comp_6~~thouprob_comp_6
                      attprob_comp_6~~attprob_comp_6
                      rulebreak_comp_6~~rulebreak_comp_6
                      aggress_comp_6~~aggress_comp_6

              #unique covariances
                      # Scores arcoss times
                      anxdep_comp_0~~anxdep_comp_1 + anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_1~~anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_2~~anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_3~~anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_4~~anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_5~~anxdep_comp_6

                      withdep_comp_0~~withdep_comp_1 + withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_1~~withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_2~~withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_3~~withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_4~~withdep_comp_5 + withdep_comp_6
                      withdep_comp_5~~withdep_comp_6

                      soma_comp_0~~soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_1~~soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_2~~soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_3~~soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_4~~soma_comp_5 + soma_comp_6
                      soma_comp_5~~soma_comp_6

                      socprob_comp_0~~socprob_comp_1 + socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_1~~socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_2~~socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_3~~socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_4~~socprob_comp_5 + socprob_comp_6
                      socprob_comp_5~~socprob_comp_6

                      thouprob_comp_0~~thouprob_comp_1 + thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_1~~thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_2~~thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_3~~thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_4~~thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_5~~thouprob_comp_6

                      attprob_comp_0~~attprob_comp_1 + attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_1~~attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_2~~attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_3~~attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_4~~attprob_comp_5 + attprob_comp_6
                      attprob_comp_5~~attprob_comp_6

                      rulebreak_comp_0~~rulebreak_comp_1 + rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_1~~rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_2~~rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_3~~rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_4~~rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_5~~rulebreak_comp_6

                      aggress_comp_0~~aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_1~~aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_2~~aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_3~~aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_4~~aggress_comp_5 + aggress_comp_6
                      aggress_comp_5~~aggress_comp_6

                      # Internalizeing subscale covariances
                      anxdep_comp_0~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_1~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_2~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_3~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_4~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_5~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_6~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6

                      withdep_comp_0~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_1~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_2~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_3~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_4~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_5~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_6~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6

                      # Externalizeing subscale covariances
                      rulebreak_comp_0~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_1~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_2~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_3~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_4~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_5~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_6~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6

              #observed variable intercepts
                      anxdep_comp_0~tau_X*1
                      anxdep_comp_1~tau_X*1
                      anxdep_comp_2~tau_X*1
                      anxdep_comp_3~tau_X*1
                      anxdep_comp_4~tau_X*1
                      anxdep_comp_5~tau_X*1
                      anxdep_comp_6~tau_X*1
                      withdep_comp_0~tau_W*1
                      withdep_comp_1~tau_W*1
                      withdep_comp_2~tau_W*1
                      withdep_comp_3~tau_W*1
                      withdep_comp_4~tau_W*1
                      withdep_comp_5~tau_W*1
                      withdep_comp_6~tau_W*1
                      soma_comp_0~tau_S*1
                      soma_comp_1~tau_S*1
                      soma_comp_2~tau_S*1
                      soma_comp_3~tau_S*1
                      soma_comp_4~tau_S*1
                      soma_comp_5~tau_S*1
                      soma_comp_6~tau_S*1
                      socprob_comp_0~tau_P*1
                      socprob_comp_1~tau_P*1
                      socprob_comp_2~tau_P*1
                      socprob_comp_3~tau_P*1
                      socprob_comp_4~tau_P*1
                      socprob_comp_5~tau_P*1
                      socprob_comp_6~tau_P*1
                      thouprob_comp_0~tau_H*1
                      thouprob_comp_1~tau_H*1
                      thouprob_comp_2~tau_H*1
                      thouprob_comp_3~tau_H*1
                      thouprob_comp_4~tau_H*1
                      thouprob_comp_5~tau_H*1
                      thouprob_comp_6~tau_H*1
                      attprob_comp_0~tau_A*1
                      attprob_comp_1~tau_A*1
                      attprob_comp_2~tau_A*1
                      attprob_comp_3~tau_A*1
                      attprob_comp_4~tau_A*1
                      attprob_comp_5~tau_A*1
                      attprob_comp_6~tau_A*1
                      rulebreak_comp_0~tau_R*1
                      rulebreak_comp_1~tau_R*1
                      rulebreak_comp_2~tau_R*1
                      rulebreak_comp_3~tau_R*1
                      rulebreak_comp_4~tau_R*1
                      rulebreak_comp_5~tau_R*1
                      rulebreak_comp_6~tau_R*1
                      aggress_comp_0~tau_G*1
                      aggress_comp_1~tau_G*1
                      aggress_comp_2~tau_G*1
                      aggress_comp_3~tau_G*1
                      aggress_comp_4~tau_G*1
                      aggress_comp_5~tau_G*1
                      aggress_comp_6~tau_G*1

                       #latent basis model
                      p_i =~ 1*p_etaB + 1*p_eta1 + 1*p_eta2 + 1*p_eta3 + 1*p_eta4 + 1*p_eta5 + 1*p_eta6
                      p_s =~ 0*p_etaB + .5*p_eta1 + 1*p_eta2 + 1.5*p_eta3 + 2*p_eta4 + 2.5*p_eta5 + 3*p_eta6
                      p_q =~ 0*p_etaB + .25*p_eta1 + 1*p_eta2 + 2.25*p_eta3 + 4*p_eta4 + 6.25*p_eta5 + 9*p_eta6

                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q

                      p_i~~p_s + p_q
                      p_s~~p_q
                      p_i~1
                      p_s~1
                      p_q~1
                      p_etaB ~ 0*1
                      p_eta1 ~ 0*1
                      p_eta2 ~ 0*1
                      p_eta3 ~ 0*1
                      p_eta4 ~ 0*1
                      p_eta5 ~ 0*1
                      p_eta6 ~ 0*1"

lavaan(lg.pc.7t.strong.invar,
  data = pc_factor_nolow_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("lgcm_pc_7t_model.rds")
result
readRDS("lgcm_pc_7t_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("lgcm_pc_7t_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("lgcm_pc_7t_model.rds"), "cor.lv"))$value
 [1] 6.02125594 2.19676190 0.73005391 0.22410496 0.22019473 0.21198951
 [7] 0.18907502 0.14346841 0.05649222 0.00660340
readRDS("lgcm_pc_7t_result.rds")
lavaan 0.6-19 ended normally after 184 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       541
  Number of equality constraints                    90

                                                  Used       Total
  Number of observations                         11865       11867
  Number of missing patterns                        82            

Model Test User Model:
                                                       
  Test statistic                              16868.010
  Degrees of freedom                               1201
  P-value (Chi-square)                            0.000

Model Test Baseline Model:

  Test statistic                            510459.918
  Degrees of freedom                              1540
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.969
  Tucker-Lewis Index (TLI)                       0.961
                                                      
  Robust Comparative Fit Index (CFI)             0.969
  Robust Tucker-Lewis Index (TLI)                0.960

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -511181.606
  Loglikelihood unrestricted model (H1)    -502747.601
                                                      
  Akaike (AIC)                             1023265.211
  Bayesian (BIC)                           1026594.199
  Sample-size adjusted Bayesian (SABIC)    1025160.973

Root Mean Square Error of Approximation:

  RMSEA                                          0.033
  90 Percent confidence interval - lower         0.033
  90 Percent confidence interval - upper         0.034
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.038
  90 Percent confidence interval - lower         0.038
  90 Percent confidence interval - upper         0.039
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.062

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_etaB =~                                                             
    anxd__0           1.000                               0.745    0.721
    wthd__0 (lm_W)    0.861    0.006  140.242    0.000    0.642    0.707
    sm_cm_0 (lm_S)    0.734    0.007  109.962    0.000    0.547    0.547
    scpr__0 (lm_C)    1.122    0.007  153.258    0.000    0.837    0.791
    thpr__0 (lm_H)    1.110    0.007  151.925    0.000    0.827    0.793
    attp__0 (lm_A)    0.999    0.007  142.314    0.000    0.745    0.742
    rlbr__0 (lm_R)    0.859    0.007  119.788    0.000    0.640    0.678
    aggr__0 (lm_G)    1.070    0.007  146.552    0.000    0.797    0.759
  p_eta1 =~                                                             
    anxd__1           1.000                               0.731    0.708
    wthd__1 (lm_W)    0.861    0.006  140.242    0.000    0.629    0.689
    sm_cm_1 (lm_S)    0.734    0.007  109.962    0.000    0.537    0.538
    scpr__1 (lm_C)    1.122    0.007  153.258    0.000    0.821    0.797
    thpr__1 (lm_H)    1.110    0.007  151.925    0.000    0.811    0.783
    attp__1 (lm_A)    0.999    0.007  142.314    0.000    0.731    0.739
    rlbr__1 (lm_R)    0.859    0.007  119.788    0.000    0.628    0.671
    aggr__1 (lm_G)    1.070    0.007  146.552    0.000    0.782    0.762
  p_eta2 =~                                                             
    anxd__2           1.000                               0.724    0.714
    wthd__2 (lm_W)    0.861    0.006  140.241    0.000    0.623    0.648
    sm_cm_2 (lm_S)    0.734    0.007  109.962    0.000    0.532    0.551
    scpr__2 (lm_C)    1.122    0.007  153.258    0.000    0.813    0.809
    thpr__2 (lm_H)    1.110    0.007  151.925    0.000    0.803    0.798
    attp__2 (lm_A)    0.999    0.007  142.314    0.000    0.724    0.746
    rlbr__2 (lm_R)    0.859    0.007  119.788    0.000    0.622    0.660
    aggr__2 (lm_G)    1.070    0.007  146.552    0.000    0.774    0.767
  p_eta3 =~                                                             
    anxd__3           1.000                               0.712    0.699
    wthd__3 (lm_W)    0.861    0.006  140.241    0.000    0.613    0.594
    sm_cm_3 (lm_S)    0.734    0.007  109.962    0.000    0.523    0.544
    scpr__3 (lm_C)    1.122    0.007  153.258    0.000    0.800    0.817
    thpr__3 (lm_H)    1.110    0.007  151.925    0.000    0.790    0.804
    attp__3 (lm_A)    0.999    0.007  142.314    0.000    0.712    0.742
    rlbr__3 (lm_R)    0.859    0.007  119.788    0.000    0.612    0.644
    aggr__3 (lm_G)    1.070    0.007  146.552    0.000    0.762    0.766
  p_eta4 =~                                                             
    anxd__4           1.000                               0.707    0.707
    wthd__4 (lm_W)    0.861    0.006  140.241    0.000    0.609    0.556
    sm_cm_4 (lm_S)    0.734    0.007  109.962    0.000    0.519    0.517
    scpr__4 (lm_C)    1.122    0.007  153.258    0.000    0.794    0.822
    thpr__4 (lm_H)    1.110    0.007  151.925    0.000    0.785    0.810
    attp__4 (lm_A)    0.999    0.007  142.314    0.000    0.707    0.754
    rlbr__4 (lm_R)    0.859    0.007  119.788    0.000    0.607    0.585
    aggr__4 (lm_G)    1.070    0.007  146.552    0.000    0.756    0.786
  p_eta5 =~                                                             
    anxd__5           1.000                               0.698    0.693
    wthd__5 (lm_W)    0.861    0.006  140.241    0.000    0.601    0.533
    sm_cm_5 (lm_S)    0.734    0.007  109.962    0.000    0.513    0.479
    scpr__5 (lm_C)    1.122    0.007  153.258    0.000    0.783    0.822
    thpr__5 (lm_H)    1.110    0.007  151.925    0.000    0.774    0.784
    attp__5 (lm_A)    0.999    0.007  142.314    0.000    0.698    0.743
    rlbr__5 (lm_R)    0.859    0.007  119.788    0.000    0.599    0.520
    aggr__5 (lm_G)    1.070    0.007  146.552    0.000    0.747    0.782
  p_eta6 =~                                                             
    anxd__6           1.000                               0.662    0.692
    wthd__6 (lm_W)    0.861    0.006  140.241    0.000    0.570    0.528
    sm_cm_6 (lm_S)    0.734    0.007  109.962    0.000    0.486    0.456
    scpr__6 (lm_C)    1.122    0.007  153.258    0.000    0.743    0.828
    thpr__6 (lm_H)    1.110    0.007  151.925    0.000    0.735    0.804
    attp__6 (lm_A)    0.999    0.007  142.314    0.000    0.662    0.737
    rlbr__6 (lm_R)    0.859    0.007  119.788    0.000    0.569    0.491
    aggr__6 (lm_G)    1.070    0.007  146.552    0.000    0.708    0.793
  p_i =~                                                                
    p_etaB            1.000                               0.917    0.917
    p_eta1            1.000                               0.935    0.935
    p_eta2            1.000                               0.944    0.944
    p_eta3            1.000                               0.960    0.960
    p_eta4            1.000                               0.967    0.967
    p_eta5            1.000                               0.980    0.980
    p_eta6            1.000                               1.032    1.032
  p_s =~                                                                
    p_etaB            0.000                               0.000    0.000
    p_eta1            0.500                               0.286    0.286
    p_eta2            1.000                               0.577    0.577
    p_eta3            1.500                               0.880    0.880
    p_eta4            2.000                               1.182    1.182
    p_eta5            2.500                               1.497    1.497
    p_eta6            3.000                               1.894    1.894
  p_q =~                                                                
    p_etaB            0.000                               0.000    0.000
    p_eta1            0.250                               0.041    0.041
    p_eta2            1.000                               0.167    0.167
    p_eta3            2.250                               0.383    0.383
    p_eta4            4.000                               0.685    0.685
    p_eta5            6.250                               1.085    1.085
    p_eta6            9.000                               1.646    1.646

Covariances:
                      Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .anxdep_comp_0 ~~                                                         
   .anxdep_comp_1        0.317    0.007   48.526    0.000    0.317    0.607
   .anxdep_comp_2        0.279    0.006   44.685    0.000    0.279    0.548
   .anxdep_comp_3        0.253    0.006   39.960    0.000    0.253    0.484
   .anxdep_comp_4        0.225    0.006   36.448    0.000    0.225    0.444
   .anxdep_comp_5        0.207    0.006   32.035    0.000    0.207    0.398
   .anxdep_comp_6        0.185    0.007   25.389    0.000    0.185    0.374
 .anxdep_comp_1 ~~                                                         
   .anxdep_comp_2        0.309    0.007   47.370    0.000    0.309    0.597
   .anxdep_comp_3        0.276    0.007   42.172    0.000    0.276    0.520
   .anxdep_comp_4        0.237    0.006   37.234    0.000    0.237    0.459
   .anxdep_comp_5        0.231    0.007   34.554    0.000    0.231    0.436
   .anxdep_comp_6        0.201    0.008   26.730    0.000    0.201    0.399
 .anxdep_comp_2 ~~                                                         
   .anxdep_comp_3        0.321    0.007   48.178    0.000    0.321    0.620
   .anxdep_comp_4        0.274    0.006   42.919    0.000    0.274    0.545
   .anxdep_comp_5        0.256    0.007   38.784    0.000    0.256    0.496
   .anxdep_comp_6        0.225    0.007   30.725    0.000    0.225    0.458
 .anxdep_comp_3 ~~                                                         
   .anxdep_comp_4        0.310    0.007   45.832    0.000    0.310    0.601
   .anxdep_comp_5        0.292    0.007   41.617    0.000    0.292    0.551
   .anxdep_comp_6        0.249    0.007   33.258    0.000    0.249    0.495
 .anxdep_comp_4 ~~                                                         
   .anxdep_comp_5        0.339    0.007   47.129    0.000    0.339    0.660
   .anxdep_comp_6        0.276    0.008   36.381    0.000    0.276    0.565
 .anxdep_comp_5 ~~                                                         
   .anxdep_comp_6        0.315    0.008   39.207    0.000    0.315    0.628
 .withdep_comp_0 ~~                                                        
   .withdep_comp_1       0.241    0.005   45.194    0.000    0.241    0.566
   .withdep_comp_2       0.204    0.005   37.317    0.000    0.204    0.434
   .withdep_comp_3       0.169    0.006   28.022    0.000    0.169    0.317
   .withdep_comp_4       0.133    0.007   19.940    0.000    0.133    0.228
   .withdep_comp_5       0.113    0.007   15.637    0.000    0.113    0.185
   .withdep_comp_6       0.090    0.008   10.856    0.000    0.090    0.153
 .withdep_comp_1 ~~                                                        
   .withdep_comp_2       0.263    0.006   44.999    0.000    0.263    0.542
   .withdep_comp_3       0.242    0.006   37.615    0.000    0.242    0.440
   .withdep_comp_4       0.208    0.007   29.453    0.000    0.208    0.344
   .withdep_comp_5       0.189    0.008   24.782    0.000    0.189    0.299
   .withdep_comp_6       0.153    0.009   17.800    0.000    0.153    0.251
 .withdep_comp_2 ~~                                                        
   .withdep_comp_3       0.345    0.007   45.996    0.000    0.345    0.566
   .withdep_comp_4       0.319    0.008   39.069    0.000    0.319    0.478
   .withdep_comp_5       0.295    0.009   33.718    0.000    0.295    0.422
   .withdep_comp_6       0.248    0.010   24.882    0.000    0.248    0.368
 .withdep_comp_3 ~~                                                        
   .withdep_comp_4       0.451    0.010   46.217    0.000    0.451    0.597
   .withdep_comp_5       0.436    0.010   41.942    0.000    0.436    0.549
   .withdep_comp_6       0.364    0.011   32.244    0.000    0.364    0.477
 .withdep_comp_4 ~~                                                        
   .withdep_comp_5       0.572    0.012   47.590    0.000    0.572    0.658
   .withdep_comp_6       0.484    0.013   37.935    0.000    0.484    0.579
 .withdep_comp_5 ~~                                                        
   .withdep_comp_6       0.579    0.014   41.535    0.000    0.579    0.660
 .soma_comp_0 ~~                                                           
   .soma_comp_1          0.363    0.008   46.209    0.000    0.363    0.515
   .soma_comp_2          0.307    0.007   41.143    0.000    0.307    0.455
   .soma_comp_3          0.272    0.007   36.487    0.000    0.272    0.403
   .soma_comp_4          0.260    0.008   32.347    0.000    0.260    0.361
   .soma_comp_5          0.257    0.009   28.423    0.000    0.257    0.327
   .soma_comp_6          0.252    0.011   23.243    0.000    0.252    0.317
 .soma_comp_1 ~~                                                           
   .soma_comp_2          0.342    0.008   44.618    0.000    0.342    0.506
   .soma_comp_3          0.298    0.008   38.995    0.000    0.298    0.439
   .soma_comp_4          0.284    0.008   34.861    0.000    0.284    0.393
   .soma_comp_5          0.289    0.009   31.347    0.000    0.289    0.365
   .soma_comp_6          0.264    0.011   23.970    0.000    0.264    0.330
 .soma_comp_2 ~~                                                           
   .soma_comp_3          0.330    0.008   43.952    0.000    0.330    0.509
   .soma_comp_4          0.311    0.008   38.768    0.000    0.311    0.449
   .soma_comp_5          0.305    0.009   34.367    0.000    0.305    0.404
   .soma_comp_6          0.280    0.010   26.878    0.000    0.280    0.367
 .soma_comp_3 ~~                                                           
   .soma_comp_4          0.346    0.008   41.674    0.000    0.346    0.499
   .soma_comp_5          0.335    0.009   36.423    0.000    0.335    0.441
   .soma_comp_6          0.319    0.011   29.998    0.000    0.319    0.417
 .soma_comp_4 ~~                                                           
   .soma_comp_5          0.451    0.010   43.714    0.000    0.451    0.558
   .soma_comp_6          0.420    0.012   34.907    0.000    0.420    0.515
 .soma_comp_5 ~~                                                           
   .soma_comp_6          0.533    0.014   39.463    0.000    0.533    0.597
 .socprob_comp_0 ~~                                                        
   .socprob_comp_1       0.195    0.005   35.931    0.000    0.195    0.483
   .socprob_comp_2       0.159    0.005   31.480    0.000    0.159    0.417
   .socprob_comp_3       0.125    0.005   25.837    0.000    0.125    0.342
   .socprob_comp_4       0.101    0.005   21.257    0.000    0.101    0.284
   .socprob_comp_5       0.089    0.005   18.483    0.000    0.089    0.254
   .socprob_comp_6       0.074    0.005   13.626    0.000    0.074    0.226
 .socprob_comp_1 ~~                                                        
   .socprob_comp_2       0.175    0.005   34.735    0.000    0.175    0.476
   .socprob_comp_3       0.138    0.005   28.921    0.000    0.138    0.394
   .socprob_comp_4       0.110    0.005   23.504    0.000    0.110    0.321
   .socprob_comp_5       0.094    0.005   20.006    0.000    0.094    0.279
   .socprob_comp_6       0.088    0.005   16.628    0.000    0.088    0.280
 .socprob_comp_2 ~~                                                        
   .socprob_comp_3       0.158    0.005   33.289    0.000    0.158    0.474
   .socprob_comp_4       0.134    0.005   29.197    0.000    0.134    0.414
   .socprob_comp_5       0.112    0.005   24.094    0.000    0.112    0.348
   .socprob_comp_6       0.101    0.005   20.006    0.000    0.101    0.339
 .socprob_comp_3 ~~                                                        
   .socprob_comp_4       0.142    0.005   31.162    0.000    0.142    0.459
   .socprob_comp_5       0.127    0.005   27.385    0.000    0.127    0.416
   .socprob_comp_6       0.110    0.005   22.084    0.000    0.110    0.388
 .socprob_comp_4 ~~                                                        
   .socprob_comp_5       0.153    0.005   32.300    0.000    0.153    0.512
   .socprob_comp_6       0.131    0.005   25.614    0.000    0.131    0.474
 .socprob_comp_5 ~~                                                        
   .socprob_comp_6       0.149    0.005   28.151    0.000    0.149    0.545
 .thouprob_comp_0 ~~                                                       
   .thouprob_cmp_1       0.195    0.005   36.597    0.000    0.195    0.476
   .thouprob_cmp_2       0.156    0.005   31.389    0.000    0.156    0.405
   .thouprob_cmp_3       0.131    0.005   27.122    0.000    0.131    0.353
   .thouprob_cmp_4       0.115    0.005   23.953    0.000    0.115    0.319
   .thouprob_cmp_5       0.111    0.005   21.278    0.000    0.111    0.286
   .thouprob_cmp_6       0.082    0.006   14.110    0.000    0.082    0.236
 .thouprob_comp_1 ~~                                                       
   .thouprob_cmp_2       0.185    0.005   35.701    0.000    0.185    0.475
   .thouprob_cmp_3       0.151    0.005   30.166    0.000    0.151    0.402
   .thouprob_cmp_4       0.132    0.005   26.707    0.000    0.132    0.362
   .thouprob_cmp_5       0.140    0.005   26.003    0.000    0.140    0.354
   .thouprob_cmp_6       0.099    0.006   17.009    0.000    0.099    0.283
 .thouprob_comp_2 ~~                                                       
   .thouprob_cmp_3       0.157    0.005   32.242    0.000    0.157    0.445
   .thouprob_cmp_4       0.132    0.005   27.637    0.000    0.132    0.382
   .thouprob_cmp_5       0.132    0.005   25.486    0.000    0.132    0.354
   .thouprob_cmp_6       0.091    0.006   16.241    0.000    0.091    0.275
 .thouprob_comp_3 ~~                                                       
   .thouprob_cmp_4       0.138    0.005   29.073    0.000    0.138    0.416
   .thouprob_cmp_5       0.130    0.005   25.418    0.000    0.130    0.365
   .thouprob_cmp_6       0.090    0.005   16.472    0.000    0.090    0.283
 .thouprob_comp_4 ~~                                                       
   .thouprob_cmp_5       0.171    0.005   32.621    0.000    0.171    0.493
   .thouprob_cmp_6       0.125    0.006   22.632    0.000    0.125    0.404
 .thouprob_comp_5 ~~                                                       
   .thouprob_cmp_6       0.166    0.006   27.226    0.000    0.166    0.499
 .attprob_comp_0 ~~                                                        
   .attprob_comp_1       0.301    0.006   51.302    0.000    0.301    0.672
   .attprob_comp_2       0.267    0.006   47.830    0.000    0.267    0.615
   .attprob_comp_3       0.248    0.006   44.872    0.000    0.248    0.572
   .attprob_comp_4       0.216    0.005   40.780    0.000    0.216    0.523
   .attprob_comp_5       0.216    0.006   39.208    0.000    0.216    0.512
   .attprob_comp_6       0.190    0.006   31.182    0.000    0.190    0.466
 .attprob_comp_1 ~~                                                        
   .attprob_comp_2       0.289    0.006   50.505    0.000    0.289    0.669
   .attprob_comp_3       0.265    0.006   47.132    0.000    0.265    0.616
   .attprob_comp_4       0.226    0.005   42.222    0.000    0.226    0.551
   .attprob_comp_5       0.227    0.006   41.138    0.000    0.227    0.543
   .attprob_comp_6       0.202    0.006   33.124    0.000    0.202    0.499
 .attprob_comp_2 ~~                                                        
   .attprob_comp_3       0.277    0.006   49.363    0.000    0.277    0.664
   .attprob_comp_4       0.237    0.005   44.721    0.000    0.237    0.595
   .attprob_comp_5       0.240    0.006   43.538    0.000    0.240    0.589
   .attprob_comp_6       0.210    0.006   35.280    0.000    0.210    0.535
 .attprob_comp_3 ~~                                                        
   .attprob_comp_4       0.257    0.005   47.086    0.000    0.257    0.648
   .attprob_comp_5       0.250    0.006   44.732    0.000    0.250    0.618
   .attprob_comp_6       0.219    0.006   36.616    0.000    0.219    0.559
 .attprob_comp_4 ~~                                                        
   .attprob_comp_5       0.265    0.006   47.121    0.000    0.265    0.683
   .attprob_comp_6       0.233    0.006   39.026    0.000    0.233    0.621
 .attprob_comp_5 ~~                                                        
   .attprob_comp_6       0.263    0.006   41.702    0.000    0.263    0.688
 .rulebreak_comp_0 ~~                                                      
   .rulebrek_cmp_1       0.294    0.006   49.877    0.000    0.294    0.610
   .rulebrek_cmp_2       0.258    0.006   43.978    0.000    0.258    0.526
   .rulebrek_cmp_3       0.241    0.006   39.703    0.000    0.241    0.478
   .rulebrek_cmp_4       0.244    0.007   34.783    0.000    0.244    0.417
   .rulebrek_cmp_5       0.272    0.008   32.744    0.000    0.272    0.398
   .rulebrek_cmp_6       0.229    0.010   23.357    0.000    0.229    0.327
 .rulebreak_comp_1 ~~                                                      
   .rulebrek_cmp_2       0.283    0.006   46.948    0.000    0.283    0.577
   .rulebrek_cmp_3       0.269    0.006   43.219    0.000    0.269    0.533
   .rulebrek_cmp_4       0.282    0.007   39.291    0.000    0.282    0.482
   .rulebrek_cmp_5       0.283    0.008   33.805    0.000    0.283    0.413
   .rulebrek_cmp_6       0.256    0.010   25.659    0.000    0.256    0.365
 .rulebreak_comp_2 ~~                                                      
   .rulebrek_cmp_3       0.307    0.007   46.458    0.000    0.307    0.596
   .rulebrek_cmp_4       0.303    0.007   40.780    0.000    0.303    0.509
   .rulebrek_cmp_5       0.341    0.009   38.887    0.000    0.341    0.489
   .rulebrek_cmp_6       0.319    0.010   30.795    0.000    0.319    0.446
 .rulebreak_comp_3 ~~                                                      
   .rulebrek_cmp_4       0.350    0.008   44.021    0.000    0.350    0.571
   .rulebrek_cmp_5       0.370    0.009   39.809    0.000    0.370    0.516
   .rulebrek_cmp_6       0.358    0.011   33.784    0.000    0.358    0.488
 .rulebreak_comp_4 ~~                                                      
   .rulebrek_cmp_5       0.537    0.011   47.531    0.000    0.537    0.648
   .rulebrek_cmp_6       0.514    0.013   39.916    0.000    0.514    0.605
 .rulebreak_comp_5 ~~                                                      
   .rulebrek_cmp_6       0.715    0.016   45.979    0.000    0.715    0.719
 .aggress_comp_0 ~~                                                        
   .aggress_comp_1       0.298    0.006   49.332    0.000    0.298    0.657
   .aggress_comp_2       0.268    0.006   46.111    0.000    0.268    0.605
   .aggress_comp_3       0.232    0.006   40.805    0.000    0.232    0.530
   .aggress_comp_4       0.204    0.005   38.112    0.000    0.204    0.499
   .aggress_comp_5       0.197    0.005   36.027    0.000    0.197    0.482
   .aggress_comp_6       0.160    0.006   27.845    0.000    0.160    0.430
 .aggress_comp_1 ~~                                                        
   .aggress_comp_2       0.276    0.006   47.811    0.000    0.276    0.643
   .aggress_comp_3       0.246    0.006   43.595    0.000    0.246    0.580
   .aggress_comp_4       0.209    0.005   39.771    0.000    0.209    0.530
   .aggress_comp_5       0.196    0.005   36.636    0.000    0.196    0.496
   .aggress_comp_6       0.162    0.006   28.440    0.000    0.162    0.449
 .aggress_comp_2 ~~                                                        
   .aggress_comp_3       0.268    0.006   46.861    0.000    0.268    0.648
   .aggress_comp_4       0.220    0.005   41.737    0.000    0.220    0.571
   .aggress_comp_5       0.213    0.005   39.753    0.000    0.213    0.553
   .aggress_comp_6       0.182    0.006   32.356    0.000    0.182    0.515
 .aggress_comp_3 ~~                                                        
   .aggress_comp_4       0.242    0.005   44.532    0.000    0.242    0.635
   .aggress_comp_5       0.223    0.005   40.926    0.000    0.223    0.586
   .aggress_comp_6       0.192    0.006   34.225    0.000    0.192    0.551
 .aggress_comp_4 ~~                                                        
   .aggress_comp_5       0.238    0.005   44.366    0.000    0.238    0.669
   .aggress_comp_6       0.198    0.005   36.253    0.000    0.198    0.611
 .aggress_comp_5 ~~                                                        
   .aggress_comp_6       0.222    0.006   38.788    0.000    0.222    0.684
 .anxdep_comp_0 ~~                                                         
   .withdep_comp_0       0.102    0.005   19.625    0.000    0.102    0.221
   .soma_comp_0          0.120    0.006   19.012    0.000    0.120    0.200
   .withdep_comp_1       0.085    0.005   16.349    0.000    0.085    0.179
   .soma_comp_1          0.083    0.006   13.197    0.000    0.083    0.138
   .withdep_comp_2       0.088    0.006   15.363    0.000    0.088    0.167
   .soma_comp_2          0.077    0.006   12.615    0.000    0.077    0.134
   .withdep_comp_3       0.100    0.007   15.217    0.000    0.100    0.169
   .soma_comp_3          0.077    0.006   12.295    0.000    0.077    0.133
   .withdep_comp_4       0.085    0.007   11.480    0.000    0.085    0.131
   .soma_comp_4          0.087    0.007   12.715    0.000    0.087    0.141
   .withdep_comp_5       0.082    0.008   10.099    0.000    0.082    0.120
   .soma_comp_5          0.068    0.008    8.814    0.000    0.068    0.101
   .withdep_comp_6       0.070    0.009    7.527    0.000    0.070    0.106
   .soma_comp_6          0.073    0.010    7.635    0.000    0.073    0.107
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_1        0.069    0.005   13.362    0.000    0.069    0.148
 .soma_comp_0 ~~                                                           
   .anxdep_comp_1        0.098    0.006   15.361    0.000    0.098    0.161
 .anxdep_comp_1 ~~                                                         
   .withdep_comp_1       0.105    0.005   19.361    0.000    0.105    0.217
   .soma_comp_1          0.112    0.007   17.126    0.000    0.112    0.183
   .withdep_comp_2       0.093    0.006   15.802    0.000    0.093    0.173
   .soma_comp_2          0.083    0.006   13.300    0.000    0.083    0.142
   .withdep_comp_3       0.114    0.007   16.903    0.000    0.114    0.189
   .soma_comp_3          0.078    0.006   12.280    0.000    0.078    0.133
   .withdep_comp_4       0.101    0.008   13.340    0.000    0.101    0.153
   .soma_comp_4          0.093    0.007   13.284    0.000    0.093    0.148
   .withdep_comp_5       0.116    0.008   13.959    0.000    0.116    0.167
   .soma_comp_5          0.090    0.008   11.436    0.000    0.090    0.132
   .withdep_comp_6       0.094    0.010    9.864    0.000    0.094    0.141
   .soma_comp_6          0.078    0.010    7.984    0.000    0.078    0.112
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_2        0.076    0.005   14.870    0.000    0.076    0.167
 .soma_comp_0 ~~                                                           
   .anxdep_comp_2        0.096    0.006   15.164    0.000    0.096    0.161
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_2        0.093    0.005   17.757    0.000    0.093    0.198
 .soma_comp_1 ~~                                                           
   .anxdep_comp_2        0.086    0.006   13.500    0.000    0.086    0.144
 .anxdep_comp_2 ~~                                                         
   .withdep_comp_2       0.146    0.006   24.674    0.000    0.146    0.280
   .soma_comp_2          0.115    0.006   18.599    0.000    0.115    0.202
   .withdep_comp_3       0.137    0.007   20.633    0.000    0.137    0.233
   .soma_comp_3          0.096    0.006   15.304    0.000    0.096    0.168
   .withdep_comp_4       0.122    0.007   16.404    0.000    0.122    0.188
   .soma_comp_4          0.109    0.007   16.043    0.000    0.109    0.179
   .withdep_comp_5       0.112    0.008   13.810    0.000    0.112    0.164
   .soma_comp_5          0.094    0.008   12.251    0.000    0.094    0.141
   .withdep_comp_6       0.088    0.009    9.630    0.000    0.088    0.135
   .soma_comp_6          0.086    0.009    9.164    0.000    0.086    0.127
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_3        0.062    0.005   11.713    0.000    0.062    0.132
 .soma_comp_0 ~~                                                           
   .anxdep_comp_3        0.102    0.007   15.498    0.000    0.102    0.167
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_3        0.079    0.005   14.647    0.000    0.079    0.164
 .soma_comp_1 ~~                                                           
   .anxdep_comp_3        0.092    0.007   13.830    0.000    0.092    0.149
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_3        0.117    0.006   19.553    0.000    0.117    0.220
 .soma_comp_2 ~~                                                           
   .anxdep_comp_3        0.101    0.006   15.848    0.000    0.101    0.172
 .anxdep_comp_3 ~~                                                         
   .withdep_comp_3       0.191    0.007   27.000    0.000    0.191    0.316
   .soma_comp_3          0.130    0.007   19.813    0.000    0.130    0.222
   .withdep_comp_4       0.153    0.008   19.750    0.000    0.153    0.231
   .soma_comp_4          0.139    0.007   19.538    0.000    0.139    0.222
   .withdep_comp_5       0.151    0.008   17.857    0.000    0.151    0.217
   .soma_comp_5          0.131    0.008   16.301    0.000    0.131    0.192
   .withdep_comp_6       0.115    0.009   12.331    0.000    0.115    0.171
   .soma_comp_6          0.137    0.010   14.395    0.000    0.137    0.198
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_4        0.043    0.005    8.166    0.000    0.043    0.094
 .soma_comp_0 ~~                                                           
   .anxdep_comp_4        0.083    0.007   12.697    0.000    0.083    0.140
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_4        0.063    0.005   11.699    0.000    0.063    0.134
 .soma_comp_1 ~~                                                           
   .anxdep_comp_4        0.080    0.007   12.194    0.000    0.080    0.134
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_4        0.093    0.006   15.672    0.000    0.093    0.179
 .soma_comp_2 ~~                                                           
   .anxdep_comp_4        0.085    0.006   13.456    0.000    0.085    0.150
 .withdep_comp_3 ~~                                                        
   .anxdep_comp_4        0.138    0.007   20.151    0.000    0.138    0.235
 .soma_comp_3 ~~                                                           
   .anxdep_comp_4        0.103    0.006   15.831    0.000    0.103    0.180
 .anxdep_comp_4 ~~                                                         
   .withdep_comp_4       0.211    0.008   26.756    0.000    0.211    0.328
   .soma_comp_4          0.157    0.007   22.136    0.000    0.157    0.258
   .withdep_comp_5       0.175    0.008   20.777    0.000    0.175    0.258
   .soma_comp_5          0.146    0.008   18.400    0.000    0.146    0.220
   .withdep_comp_6       0.137    0.009   14.728    0.000    0.137    0.210
   .soma_comp_6          0.146    0.010   15.341    0.000    0.146    0.217
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_5        0.039    0.006    7.005    0.000    0.039    0.084
 .soma_comp_0 ~~                                                           
   .anxdep_comp_5        0.075    0.007   10.780    0.000    0.075    0.123
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_5        0.062    0.006   11.019    0.000    0.062    0.130
 .soma_comp_1 ~~                                                           
   .anxdep_comp_5        0.083    0.007   11.953    0.000    0.083    0.136
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_5        0.098    0.006   15.653    0.000    0.098    0.185
 .soma_comp_2 ~~                                                           
   .anxdep_comp_5        0.091    0.007   13.576    0.000    0.091    0.155
 .withdep_comp_3 ~~                                                        
   .anxdep_comp_5        0.147    0.007   20.235    0.000    0.147    0.243
 .soma_comp_3 ~~                                                           
   .anxdep_comp_5        0.099    0.007   14.414    0.000    0.099    0.168
 .withdep_comp_4 ~~                                                        
   .anxdep_comp_5        0.185    0.008   22.685    0.000    0.185    0.280
 .soma_comp_4 ~~                                                           
   .anxdep_comp_5        0.151    0.007   20.211    0.000    0.151    0.242
 .anxdep_comp_5 ~~                                                         
   .withdep_comp_5       0.254    0.009   28.073    0.000    0.254    0.366
   .soma_comp_5          0.186    0.008   22.294    0.000    0.186    0.273
   .withdep_comp_6       0.165    0.010   17.038    0.000    0.165    0.247
   .soma_comp_6          0.161    0.010   16.319    0.000    0.161    0.234
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_6        0.044    0.006    6.847    0.000    0.044    0.099
 .soma_comp_0 ~~                                                           
   .anxdep_comp_6        0.068    0.008    8.634    0.000    0.068    0.118
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_6        0.064    0.006    9.798    0.000    0.064    0.139
 .soma_comp_1 ~~                                                           
   .anxdep_comp_6        0.072    0.008    9.004    0.000    0.072    0.124
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_6        0.094    0.007   12.718    0.000    0.094    0.186
 .soma_comp_2 ~~                                                           
   .anxdep_comp_6        0.089    0.008   11.876    0.000    0.089    0.161
 .withdep_comp_3 ~~                                                        
   .anxdep_comp_6        0.136    0.008   16.559    0.000    0.136    0.237
 .soma_comp_3 ~~                                                           
   .anxdep_comp_6        0.080    0.008   10.502    0.000    0.080    0.143
 .withdep_comp_4 ~~                                                        
   .anxdep_comp_6        0.164    0.009   18.041    0.000    0.164    0.261
 .soma_comp_4 ~~                                                           
   .anxdep_comp_6        0.118    0.008   14.037    0.000    0.118    0.199
 .withdep_comp_5 ~~                                                        
   .anxdep_comp_6        0.194    0.010   19.794    0.000    0.194    0.294
 .soma_comp_5 ~~                                                           
   .anxdep_comp_6        0.128    0.009   13.848    0.000    0.128    0.197
 .anxdep_comp_6 ~~                                                         
   .withdep_comp_6       0.231    0.010   22.624    0.000    0.231    0.364
   .soma_comp_6          0.174    0.010   17.427    0.000    0.174    0.265
 .withdep_comp_0 ~~                                                        
   .soma_comp_0          0.053    0.006    9.533    0.000    0.053    0.099
   .soma_comp_1          0.053    0.006    9.259    0.000    0.053    0.098
   .soma_comp_2          0.038    0.006    6.916    0.000    0.038    0.074
   .soma_comp_3          0.026    0.006    4.653    0.000    0.026    0.051
   .soma_comp_4          0.018    0.006    2.970    0.003    0.018    0.033
   .soma_comp_5         -0.009    0.007   -1.318    0.188   -0.009   -0.015
   .soma_comp_6         -0.008    0.009   -0.975    0.330   -0.008   -0.014
 .soma_comp_0 ~~                                                           
   .withdep_comp_1       0.037    0.006    6.440    0.000    0.037    0.066
 .withdep_comp_1 ~~                                                        
   .soma_comp_1          0.066    0.006   11.284    0.000    0.066    0.118
   .soma_comp_2          0.050    0.006    8.820    0.000    0.050    0.093
   .soma_comp_3          0.050    0.006    8.624    0.000    0.050    0.093
   .soma_comp_4          0.038    0.006    6.023    0.000    0.038    0.066
   .soma_comp_5          0.033    0.007    4.685    0.000    0.033    0.054
   .soma_comp_6          0.017    0.009    1.965    0.049    0.017    0.027
 .soma_comp_0 ~~                                                           
   .withdep_comp_2       0.051    0.006    7.994    0.000    0.051    0.083
 .soma_comp_1 ~~                                                           
   .withdep_comp_2       0.066    0.006   10.226    0.000    0.066    0.107
 .withdep_comp_2 ~~                                                        
   .soma_comp_2          0.081    0.006   13.022    0.000    0.081    0.137
   .soma_comp_3          0.061    0.006    9.653    0.000    0.061    0.103
   .soma_comp_4          0.079    0.007   11.361    0.000    0.079    0.125
   .soma_comp_5          0.071    0.008    9.094    0.000    0.071    0.104
   .soma_comp_6          0.054    0.010    5.500    0.000    0.054    0.078
 .soma_comp_0 ~~                                                           
   .withdep_comp_3       0.067    0.007    9.084    0.000    0.067    0.096
 .soma_comp_1 ~~                                                           
   .withdep_comp_3       0.061    0.007    8.175    0.000    0.061    0.087
 .soma_comp_2 ~~                                                           
   .withdep_comp_3       0.067    0.007    9.371    0.000    0.067    0.100
 .withdep_comp_3 ~~                                                        
   .soma_comp_3          0.089    0.007   12.213    0.000    0.089    0.132
   .soma_comp_4          0.117    0.008   14.579    0.000    0.117    0.163
   .soma_comp_5          0.129    0.009   14.292    0.000    0.129    0.165
   .soma_comp_6          0.130    0.011   11.861    0.000    0.130    0.164
 .soma_comp_0 ~~                                                           
   .withdep_comp_4       0.058    0.008    6.974    0.000    0.058    0.076
 .soma_comp_1 ~~                                                           
   .withdep_comp_4       0.071    0.008    8.539    0.000    0.071    0.093
 .soma_comp_2 ~~                                                           
   .withdep_comp_4       0.067    0.008    8.273    0.000    0.067    0.091
 .soma_comp_3 ~~                                                           
   .withdep_comp_4       0.089    0.008   10.818    0.000    0.089    0.121
 .withdep_comp_4 ~~                                                        
   .soma_comp_4          0.157    0.009   17.657    0.000    0.157    0.201
   .soma_comp_5          0.154    0.010   15.363    0.000    0.154    0.180
   .soma_comp_6          0.171    0.012   14.196    0.000    0.171    0.198
 .soma_comp_0 ~~                                                           
   .withdep_comp_5       0.051    0.009    5.589    0.000    0.051    0.064
 .soma_comp_1 ~~                                                           
   .withdep_comp_5       0.065    0.009    7.086    0.000    0.065    0.081
 .soma_comp_2 ~~                                                           
   .withdep_comp_5       0.060    0.009    6.871    0.000    0.060    0.079
 .soma_comp_3 ~~                                                           
   .withdep_comp_5       0.081    0.009    9.049    0.000    0.081    0.105
 .soma_comp_4 ~~                                                           
   .withdep_comp_5       0.146    0.010   15.031    0.000    0.146    0.178
 .withdep_comp_5 ~~                                                        
   .soma_comp_5          0.219    0.011   20.289    0.000    0.219    0.244
   .soma_comp_6          0.204    0.013   15.775    0.000    0.204    0.225
 .soma_comp_0 ~~                                                           
   .withdep_comp_6       0.058    0.010    5.607    0.000    0.058    0.076
 .soma_comp_1 ~~                                                           
   .withdep_comp_6       0.046    0.010    4.397    0.000    0.046    0.060
 .soma_comp_2 ~~                                                           
   .withdep_comp_6       0.047    0.010    4.750    0.000    0.047    0.063
 .soma_comp_3 ~~                                                           
   .withdep_comp_6       0.057    0.010    5.735    0.000    0.057    0.077
 .soma_comp_4 ~~                                                           
   .withdep_comp_6       0.103    0.011    9.361    0.000    0.103    0.130
 .soma_comp_5 ~~                                                           
   .withdep_comp_6       0.145    0.012   12.085    0.000    0.145    0.168
 .withdep_comp_6 ~~                                                        
   .soma_comp_6          0.214    0.013   16.479    0.000    0.214    0.246
 .rulebreak_comp_0 ~~                                                      
   .aggress_comp_0       0.222    0.006   38.534    0.000    0.222    0.468
   .aggress_comp_1       0.173    0.005   32.079    0.000    0.173    0.376
   .aggress_comp_2       0.162    0.005   30.535    0.000    0.162    0.360
   .aggress_comp_3       0.139    0.005   26.256    0.000    0.139    0.315
   .aggress_comp_4       0.131    0.005   25.759    0.000    0.131    0.318
   .aggress_comp_5       0.134    0.005   25.614    0.000    0.134    0.324
   .aggress_comp_6       0.112    0.006   19.765    0.000    0.112    0.298
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_1       0.182    0.006   32.835    0.000    0.182    0.383
 .rulebreak_comp_1 ~~                                                      
   .aggress_comp_1       0.217    0.006   37.876    0.000    0.217    0.470
   .aggress_comp_2       0.170    0.005   31.733    0.000    0.170    0.378
   .aggress_comp_3       0.152    0.005   28.362    0.000    0.152    0.343
   .aggress_comp_4       0.145    0.005   28.064    0.000    0.145    0.350
   .aggress_comp_5       0.136    0.005   25.788    0.000    0.136    0.328
   .aggress_comp_6       0.124    0.006   21.419    0.000    0.124    0.328
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_2       0.162    0.006   28.875    0.000    0.162    0.334
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_2       0.165    0.006   29.915    0.000    0.165    0.352
 .rulebreak_comp_2 ~~                                                      
   .aggress_comp_2       0.223    0.006   38.448    0.000    0.223    0.487
   .aggress_comp_3       0.169    0.006   30.153    0.000    0.169    0.373
   .aggress_comp_4       0.143    0.005   27.127    0.000    0.143    0.340
   .aggress_comp_5       0.144    0.005   26.657    0.000    0.144    0.340
   .aggress_comp_6       0.141    0.006   23.692    0.000    0.141    0.365
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_3       0.162    0.006   27.718    0.000    0.162    0.325
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_3       0.165    0.006   28.717    0.000    0.165    0.342
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_3       0.180    0.006   31.424    0.000    0.180    0.383
 .rulebreak_comp_3 ~~                                                      
   .aggress_comp_3       0.232    0.006   37.977    0.000    0.232    0.499
   .aggress_comp_4       0.167    0.006   30.161    0.000    0.167    0.385
   .aggress_comp_5       0.156    0.006   27.744    0.000    0.156    0.360
   .aggress_comp_6       0.154    0.006   25.644    0.000    0.154    0.389
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_4       0.185    0.007   27.071    0.000    0.185    0.321
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_4       0.191    0.007   28.585    0.000    0.191    0.343
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_4       0.190    0.007   28.818    0.000    0.190    0.349
 .aggress_comp_3 ~~                                                        
   .rulebrek_cmp_4       0.206    0.007   30.415    0.000    0.206    0.383
 .rulebreak_comp_4 ~~                                                      
   .aggress_comp_4       0.251    0.007   37.304    0.000    0.251    0.501
   .aggress_comp_5       0.209    0.007   31.313    0.000    0.209    0.416
   .aggress_comp_6       0.175    0.007   24.743    0.000    0.175    0.382
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_5       0.218    0.008   26.577    0.000    0.218    0.323
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_5       0.204    0.008   25.628    0.000    0.204    0.312
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_5       0.229    0.008   28.905    0.000    0.229    0.359
 .aggress_comp_3 ~~                                                        
   .rulebrek_cmp_5       0.227    0.008   28.261    0.000    0.227    0.361
 .aggress_comp_4 ~~                                                        
   .rulebrek_cmp_5       0.235    0.008   30.642    0.000    0.235    0.400
 .rulebreak_comp_5 ~~                                                      
   .aggress_comp_5       0.311    0.008   38.001    0.000    0.311    0.531
   .aggress_comp_6       0.238    0.008   28.588    0.000    0.238    0.444
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_6       0.199    0.010   20.610    0.000    0.199    0.288
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_6       0.181    0.009   19.131    0.000    0.181    0.271
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_6       0.215    0.009   23.169    0.000    0.215    0.329
 .aggress_comp_3 ~~                                                        
   .rulebrek_cmp_6       0.223    0.009   24.112    0.000    0.223    0.346
 .aggress_comp_4 ~~                                                        
   .rulebrek_cmp_6       0.227    0.009   25.594    0.000    0.227    0.378
 .aggress_comp_5 ~~                                                        
   .rulebrek_cmp_6       0.251    0.009   27.448    0.000    0.251    0.418
 .rulebreak_comp_6 ~~                                                      
   .aggress_comp_6       0.275    0.009   29.387    0.000    0.275    0.501
  p_i ~~                                                                   
    p_s                 -0.090    0.007  -13.504    0.000   -0.313   -0.313
    p_q                  0.009    0.002    4.577    0.000    0.109    0.109
  p_s ~~                                                                   
    p_q                 -0.045    0.002  -18.279    0.000   -0.897   -0.897

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .anxd__0 (ta_X)   -0.016    0.005   -3.224    0.001   -0.016   -0.016
   .anxd__1 (ta_X)   -0.016    0.005   -3.224    0.001   -0.016   -0.016
   .anxd__2 (ta_X)   -0.016    0.005   -3.224    0.001   -0.016   -0.016
   .anxd__3 (ta_X)   -0.016    0.005   -3.224    0.001   -0.016   -0.016
   .anxd__4 (ta_X)   -0.016    0.005   -3.224    0.001   -0.016   -0.016
   .anxd__5 (ta_X)   -0.016    0.005   -3.224    0.001   -0.016   -0.016
   .anxd__6 (ta_X)   -0.016    0.005   -3.224    0.001   -0.016   -0.017
   .wthd__0 (ta_W)   -0.081    0.005  -15.929    0.000   -0.081   -0.089
   .wthd__1 (ta_W)   -0.081    0.005  -15.929    0.000   -0.081   -0.089
   .wthd__2 (ta_W)   -0.081    0.005  -15.929    0.000   -0.081   -0.084
   .wthd__3 (ta_W)   -0.081    0.005  -15.929    0.000   -0.081   -0.079
   .wthd__4 (ta_W)   -0.081    0.005  -15.929    0.000   -0.081   -0.074
   .wthd__5 (ta_W)   -0.081    0.005  -15.929    0.000   -0.081   -0.072
   .wthd__6 (ta_W)   -0.081    0.005  -15.929    0.000   -0.081   -0.075
   .sm_cm_0 (ta_S)   -0.018    0.006   -3.062    0.002   -0.018   -0.018
   .sm_cm_1 (ta_S)   -0.018    0.006   -3.062    0.002   -0.018   -0.019
   .sm_cm_2 (ta_S)   -0.018    0.006   -3.062    0.002   -0.018   -0.019
   .sm_cm_3 (ta_S)   -0.018    0.006   -3.062    0.002   -0.018   -0.019
   .sm_cm_4 (ta_S)   -0.018    0.006   -3.062    0.002   -0.018   -0.018
   .sm_cm_5 (ta_S)   -0.018    0.006   -3.062    0.002   -0.018   -0.017
   .sm_cm_6 (ta_S)   -0.018    0.006   -3.062    0.002   -0.018   -0.017
   .scpr__0 (ta_P)    0.025    0.004    6.348    0.000    0.025    0.024
   .scpr__1 (ta_P)    0.025    0.004    6.348    0.000    0.025    0.025
   .scpr__2 (ta_P)    0.025    0.004    6.348    0.000    0.025    0.025
   .scpr__3 (ta_P)    0.025    0.004    6.348    0.000    0.025    0.026
   .scpr__4 (ta_P)    0.025    0.004    6.348    0.000    0.025    0.026
   .scpr__5 (ta_P)    0.025    0.004    6.348    0.000    0.025    0.027
   .scpr__6 (ta_P)    0.025    0.004    6.348    0.000    0.025    0.028
   .thpr__0 (ta_H)    0.027    0.004    6.792    0.000    0.027    0.026
   .thpr__1 (ta_H)    0.027    0.004    6.792    0.000    0.027    0.026
   .thpr__2 (ta_H)    0.027    0.004    6.792    0.000    0.027    0.027
   .thpr__3 (ta_H)    0.027    0.004    6.792    0.000    0.027    0.028
   .thpr__4 (ta_H)    0.027    0.004    6.792    0.000    0.027    0.028
   .thpr__5 (ta_H)    0.027    0.004    6.792    0.000    0.027    0.027
   .thpr__6 (ta_H)    0.027    0.004    6.792    0.000    0.027    0.030
   .attp__0 (ta_A)    0.031    0.005    6.576    0.000    0.031    0.031
   .attp__1 (ta_A)    0.031    0.005    6.576    0.000    0.031    0.031
   .attp__2 (ta_A)    0.031    0.005    6.576    0.000    0.031    0.032
   .attp__3 (ta_A)    0.031    0.005    6.576    0.000    0.031    0.032
   .attp__4 (ta_A)    0.031    0.005    6.576    0.000    0.031    0.033
   .attp__5 (ta_A)    0.031    0.005    6.576    0.000    0.031    0.033
   .attp__6 (ta_A)    0.031    0.005    6.576    0.000    0.031    0.034
   .rlbr__0 (ta_R)   -0.021    0.005   -4.171    0.000   -0.021   -0.022
   .rlbr__1 (ta_R)   -0.021    0.005   -4.171    0.000   -0.021   -0.022
   .rlbr__2 (ta_R)   -0.021    0.005   -4.171    0.000   -0.021   -0.022
   .rlbr__3 (ta_R)   -0.021    0.005   -4.171    0.000   -0.021   -0.022
   .rlbr__4 (ta_R)   -0.021    0.005   -4.171    0.000   -0.021   -0.020
   .rlbr__5 (ta_R)   -0.021    0.005   -4.171    0.000   -0.021   -0.018
   .rlbr__6 (ta_R)   -0.021    0.005   -4.171    0.000   -0.021   -0.018
   .aggr__0 (ta_G)   -0.004    0.004   -0.891    0.373   -0.004   -0.004
   .aggr__1 (ta_G)   -0.004    0.004   -0.891    0.373   -0.004   -0.004
   .aggr__2 (ta_G)   -0.004    0.004   -0.891    0.373   -0.004   -0.004
   .aggr__3 (ta_G)   -0.004    0.004   -0.891    0.373   -0.004   -0.004
   .aggr__4 (ta_G)   -0.004    0.004   -0.891    0.373   -0.004   -0.004
   .aggr__5 (ta_G)   -0.004    0.004   -0.891    0.373   -0.004   -0.004
   .aggr__6 (ta_G)   -0.004    0.004   -0.891    0.373   -0.004   -0.004
    p_i               0.051    0.007    7.223    0.000    0.075    0.075
    p_s              -0.049    0.006   -7.476    0.000   -0.116   -0.116
    p_q              -0.004    0.002   -1.946    0.052   -0.034   -0.034
   .p_etaB            0.000                               0.000    0.000
   .p_eta1            0.000                               0.000    0.000
   .p_eta2            0.000                               0.000    0.000
   .p_eta3            0.000                               0.000    0.000
   .p_eta4            0.000                               0.000    0.000
   .p_eta5            0.000                               0.000    0.000
   .p_eta6            0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .p_etaB            0.088    0.004   20.663    0.000    0.159    0.159
   .p_eta1            0.119    0.003   41.079    0.000    0.222    0.222
   .p_eta2            0.119    0.003   42.056    0.000    0.228    0.228
   .p_eta3            0.107    0.003   38.410    0.000    0.211    0.211
   .p_eta4            0.112    0.003   38.820    0.000    0.223    0.223
   .p_eta5            0.109    0.003   35.040    0.000    0.224    0.224
   .p_eta6            0.038    0.004    8.493    0.000    0.087    0.087
   .anxdep_comp_0     0.514    0.008   66.623    0.000    0.514    0.481
   .withdep_comp_0    0.412    0.006   65.232    0.000    0.412    0.500
   .soma_comp_0       0.701    0.010   72.667    0.000    0.701    0.701
   .socprob_comp_0    0.420    0.007   60.335    0.000    0.420    0.375
   .thouprob_cmp_0    0.403    0.007   61.751    0.000    0.403    0.371
   .attprob_comp_0    0.452    0.007   65.345    0.000    0.452    0.449
   .rulebrek_cmp_0    0.481    0.007   68.766    0.000    0.481    0.540
   .aggress_comp_0    0.469    0.007   63.759    0.000    0.469    0.424
   .anxdep_comp_1     0.531    0.008   65.651    0.000    0.531    0.499
   .withdep_comp_1    0.439    0.007   66.305    0.000    0.439    0.526
   .soma_comp_1       0.708    0.010   71.068    0.000    0.708    0.711
   .socprob_comp_1    0.388    0.007   58.663    0.000    0.388    0.365
   .thouprob_cmp_1    0.415    0.007   60.758    0.000    0.415    0.387
   .attprob_comp_1    0.444    0.007   64.201    0.000    0.444    0.454
   .rulebrek_cmp_1    0.482    0.007   67.009    0.000    0.482    0.550
   .aggress_comp_1    0.440    0.007   62.526    0.000    0.440    0.419
   .anxdep_comp_2     0.504    0.008   65.035    0.000    0.504    0.490
   .withdep_comp_2    0.538    0.008   67.279    0.000    0.538    0.581
   .soma_comp_2       0.647    0.009   69.776    0.000    0.647    0.696
   .socprob_comp_2    0.348    0.006   57.258    0.000    0.348    0.345
   .thouprob_cmp_2    0.367    0.006   58.695    0.000    0.367    0.363
   .attprob_comp_2    0.418    0.007   63.314    0.000    0.418    0.444
   .rulebrek_cmp_2    0.500    0.008   66.077    0.000    0.500    0.564
   .aggress_comp_2    0.420    0.007   61.513    0.000    0.420    0.412
   .anxdep_comp_3     0.531    0.008   63.721    0.000    0.531    0.511
   .withdep_comp_3    0.689    0.011   65.620    0.000    0.689    0.647
   .soma_comp_3       0.651    0.010   67.738    0.000    0.651    0.704
   .socprob_comp_3    0.318    0.006   54.899    0.000    0.318    0.332
   .thouprob_cmp_3    0.341    0.006   56.151    0.000    0.341    0.353
   .attprob_comp_3    0.415    0.007   61.825    0.000    0.415    0.450
   .rulebrek_cmp_3    0.529    0.008   63.615    0.000    0.529    0.585
   .aggress_comp_3    0.408    0.007   59.592    0.000    0.408    0.413
   .anxdep_comp_4     0.501    0.008   61.493    0.000    0.501    0.501
   .withdep_comp_4    0.828    0.013   63.174    0.000    0.828    0.691
   .soma_comp_4       0.740    0.011   65.781    0.000    0.740    0.733
   .socprob_comp_4    0.302    0.006   53.015    0.000    0.302    0.324
   .thouprob_cmp_4    0.322    0.006   53.889    0.000    0.322    0.344
   .attprob_comp_4    0.380    0.006   59.396    0.000    0.380    0.432
   .rulebrek_cmp_4    0.709    0.011   62.988    0.000    0.709    0.658
   .aggress_comp_4    0.355    0.006   57.051    0.000    0.355    0.383
   .anxdep_comp_5     0.528    0.009   58.861    0.000    0.528    0.520
   .withdep_comp_5    0.912    0.015   60.404    0.000    0.912    0.716
   .soma_comp_5       0.884    0.014   62.798    0.000    0.884    0.771
   .socprob_comp_5    0.295    0.006   49.823    0.000    0.295    0.325
   .thouprob_cmp_5    0.375    0.007   52.913    0.000    0.375    0.385
   .attprob_comp_5    0.396    0.007   57.486    0.000    0.396    0.449
   .rulebrek_cmp_5    0.969    0.016   61.572    0.000    0.969    0.730
   .aggress_comp_5    0.355    0.006   54.700    0.000    0.355    0.389
   .anxdep_comp_6     0.477    0.010   47.046    0.000    0.477    0.521
   .withdep_comp_6    0.844    0.017   48.478    0.000    0.844    0.722
   .soma_comp_6       0.902    0.018   50.151    0.000    0.902    0.792
   .socprob_comp_6    0.254    0.007   38.590    0.000    0.254    0.315
   .thouprob_cmp_6    0.296    0.007   40.036    0.000    0.296    0.354
   .attprob_comp_6    0.369    0.008   46.541    0.000    0.369    0.457
   .rulebrek_cmp_6    1.018    0.020   50.032    0.000    1.018    0.759
   .aggress_comp_6    0.297    0.007   43.029    0.000    0.297    0.371
    p_i               0.467    0.010   48.926    0.000    1.000    1.000
    p_s               0.175    0.008   21.257    0.000    1.000    1.000
    p_q               0.015    0.001   18.035    0.000    1.000    1.000

R-Square:
                   Estimate
    p_etaB            0.841
    p_eta1            0.778
    p_eta2            0.772
    p_eta3            0.789
    p_eta4            0.777
    p_eta5            0.776
    p_eta6            0.913
    anxdep_comp_0     0.519
    withdep_comp_0    0.500
    soma_comp_0       0.299
    socprob_comp_0    0.625
    thouprob_cmp_0    0.629
    attprob_comp_0    0.551
    rulebrek_cmp_0    0.460
    aggress_comp_0    0.576
    anxdep_comp_1     0.501
    withdep_comp_1    0.474
    soma_comp_1       0.289
    socprob_comp_1    0.635
    thouprob_cmp_1    0.613
    attprob_comp_1    0.546
    rulebrek_cmp_1    0.450
    aggress_comp_1    0.581
    anxdep_comp_2     0.510
    withdep_comp_2    0.419
    soma_comp_2       0.304
    socprob_comp_2    0.655
    thouprob_cmp_2    0.637
    attprob_comp_2    0.556
    rulebrek_cmp_2    0.436
    aggress_comp_2    0.588
    anxdep_comp_3     0.489
    withdep_comp_3    0.353
    soma_comp_3       0.296
    socprob_comp_3    0.668
    thouprob_cmp_3    0.647
    attprob_comp_3    0.550
    rulebrek_cmp_3    0.415
    aggress_comp_3    0.587
    anxdep_comp_4     0.499
    withdep_comp_4    0.309
    soma_comp_4       0.267
    socprob_comp_4    0.676
    thouprob_cmp_4    0.656
    attprob_comp_4    0.568
    rulebrek_cmp_4    0.342
    aggress_comp_4    0.617
    anxdep_comp_5     0.480
    withdep_comp_5    0.284
    soma_comp_5       0.229
    socprob_comp_5    0.675
    thouprob_cmp_5    0.615
    attprob_comp_5    0.551
    rulebrek_cmp_5    0.270
    aggress_comp_5    0.611
    anxdep_comp_6     0.479
    withdep_comp_6    0.278
    soma_comp_6       0.208
    socprob_comp_6    0.685
    thouprob_cmp_6    0.646
    attprob_comp_6    0.543
    rulebrek_cmp_6    0.241
    aggress_comp_6    0.629
ICC
lavPredict(readRDS("lgcm_pc_7t_model.rds"),
  newdata = pc_factor_nolow_wide.scaled,
  append.data = T
) %>%
  data.frame() %>%
  select(contains(c("p_eta"))) %>%
  ICC(lmer = T) %>%
  saveRDS("pc_7t_icc.rds")
readRDS("pc_7t_icc.rds") %>%
  {
    \(x) x$results
  }() %>%
  knitr::kable()
type ICC F df1 df2 p lower bound upper bound
Single_raters_absolute ICC1 0.7509969 22.1121 11866 71202 0 0.7455985 0.7563640
Single_random_raters ICC2 0.7513432 23.0132 11866 71196 0 0.7412708 0.7610067
Single_fixed_raters ICC3 0.7587305 23.0132 11866 71196 0 0.7534547 0.7639739
Average_raters_absolute ICC1k 0.9547759 22.1121 11866 71202 0 0.9535220 0.9560080
Average_random_raters ICC2k 0.9548558 23.0132 11866 71196 0 0.9525061 0.9570623
Average_fixed_raters ICC3k 0.9565467 23.0132 11866 71196 0 0.9553419 0.9577305
LGCM plot
lgcm_plot(readRDS("lgcm_pc_7t_model.rds")) +
  labs(y = "Children's\nPsychopathology") +
  scale_x_continuous(
    breaks = seq(0, 3, .5),
    labels = c("10", "11", "12", "13", "14", "15", "16")
  ) +
  # add significant results for intercept and slope
  annotate(geom = "text", x = 2.4, y = 0.045, label = 'paste(" ",italic("i")," =  .051***")', parse = TRUE, size = 10) +
  annotate(geom = "text", x = 2.4, y = 0.02, label = 'paste(italic("s")," = -.049***")', parse = TRUE, size = 10) +
  annotate(geom = "text", x = 2.4, y = -0.01, label = 'paste(italic("q")," = -.004    ")', parse = TRUE, size = 10)

Model comparison

lapply(
  c(
    "pc_7t_config_result.rds",
    "pc_7t_weak_result.rds",
    "pc_7t_strong_result.rds",
    "lgcm_pc_7t_result.rds"
  ),
  function(f) {
    readRDS(f)$fit[c(
      "chisq", "df", "pvalue",
      "cfi.robust", "tli.robust",
      "rmsea.robust", "rmsea.ci.lower.robust",
      "rmsea.ci.upper.robust", "srmr"
    )]
  }
) %>%
  do.call(rbind, .) %>%
  round(3) %>%
  data.frame(model = c("config", "weak", "strong", "LGCM"), ., row.names = NULL) %>%
  knitr::kable()
model chisq df pvalue cfi.robust tli.robust rmsea.robust rmsea.ci.lower.robust rmsea.ci.upper.robust srmr
config 7935.205 1099 0 0.987 0.982 0.026 0.025 0.026 0.046
weak 11464.355 1141 0 0.980 0.972 0.032 0.031 0.032 0.057
strong 17037.322 1185 0 0.968 0.958 0.039 0.038 0.039 0.061
LGCM 16868.010 1201 0 0.969 0.960 0.038 0.038 0.039 0.062

pc factor symptom model

Externalizing model

lg.ext6.strong.invar <- "# basis model
                      p_i =~ 1*Ext_comp_0 + 1*Ext_comp_1 + 1*Ext_comp_2 + 1*Ext_comp_3 + 1*Ext_comp_4 + 1*Ext_comp_5 + 1*Ext_comp_6
                      p_s =~ 0*Ext_comp_0 + .5*Ext_comp_1 + 1*Ext_comp_2 + 1.5*Ext_comp_3 + 2*Ext_comp_4 + 2.5*Ext_comp_5 + 3*Ext_comp_6
                      p_q =~ 0*Ext_comp_0 + .25*Ext_comp_1 + 1*Ext_comp_2 + 2.25*Ext_comp_3 + 4*Ext_comp_4 + 6.25*Ext_comp_5 + 9*Ext_comp_6
                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q
                      p_i~~p_s + p_q
                      p_s~~p_q
                      p_i~1
                      p_s~1
                      p_q~1
                      Ext_comp_0 ~~ NA*Ext_comp_0
                      Ext_comp_1 ~~ NA*Ext_comp_1
                      Ext_comp_2 ~~ NA*Ext_comp_2
                      Ext_comp_3 ~~ NA*Ext_comp_3
                      Ext_comp_4 ~~ NA*Ext_comp_4
                      Ext_comp_5 ~~ NA*Ext_comp_5
                      Ext_comp_6 ~~ NA*Ext_comp_6
                      Ext_comp_0 ~ 0*1
                      Ext_comp_1 ~ 0*1
                      Ext_comp_2 ~ 0*1
                      Ext_comp_3 ~ 0*1
                      Ext_comp_4 ~ 0*1
                      Ext_comp_5 ~ 0*1
                      Ext_comp_6 ~ 0*1"

lavaan(lg.ext6.strong.invar,
  data = pc_factor_nolow_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("lgcm_Ext_7t_model.rds")
result
readRDS("lgcm_Ext_7t_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("lgcm_Ext_7t_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("lgcm_Ext_7t_model.rds"), "cor.lv"))$value
[1] 1.99577858 0.91833605 0.08588537
readRDS("lgcm_Ext_7t_result.rds")
lavaan 0.6-19 ended normally after 44 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                        16

                                                  Used       Total
  Number of observations                         11865       11867
  Number of missing patterns                        72            

Model Test User Model:
                                                      
  Test statistic                               526.624
  Degrees of freedom                                19
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                             47700.409
  Degrees of freedom                                21
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.989
  Tucker-Lewis Index (TLI)                       0.988
                                                      
  Robust Comparative Fit Index (CFI)             0.987
  Robust Tucker-Lewis Index (TLI)                0.986

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)             -71417.188
  Loglikelihood unrestricted model (H1)     -71153.876
                                                      
  Akaike (AIC)                              142866.375
  Bayesian (BIC)                            142984.477
  Sample-size adjusted Bayesian (SABIC)     142933.631

Root Mean Square Error of Approximation:

  RMSEA                                          0.047
  90 Percent confidence interval - lower         0.044
  90 Percent confidence interval - upper         0.051
  P-value H_0: RMSEA <= 0.050                    0.880
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.062
  90 Percent confidence interval - lower         0.057
  90 Percent confidence interval - upper         0.066
  P-value H_0: Robust RMSEA <= 0.050             0.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.026

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_i =~                                                                
    Ext_comp_0        1.000                               0.948    0.895
    Ext_comp_1        1.000                               0.948    0.919
    Ext_comp_2        1.000                               0.948    0.933
    Ext_comp_3        1.000                               0.948    0.944
    Ext_comp_4        1.000                               0.948    0.962
    Ext_comp_5        1.000                               0.948    0.969
    Ext_comp_6        1.000                               0.948    1.021
  p_s =~                                                                
    Ext_comp_0        0.000                               0.000    0.000
    Ext_comp_1        0.500                               0.282    0.273
    Ext_comp_2        1.000                               0.563    0.554
    Ext_comp_3        1.500                               0.845    0.841
    Ext_comp_4        2.000                               1.126    1.144
    Ext_comp_5        2.500                               1.408    1.440
    Ext_comp_6        3.000                               1.689    1.820
  p_q =~                                                                
    Ext_comp_0        0.000                               0.000    0.000
    Ext_comp_1        0.250                               0.041    0.040
    Ext_comp_2        1.000                               0.163    0.161
    Ext_comp_3        2.250                               0.367    0.366
    Ext_comp_4        4.000                               0.653    0.663
    Ext_comp_5        6.250                               1.020    1.043
    Ext_comp_6        9.000                               1.468    1.581

Covariances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_i ~~                                                                
    p_s              -0.181    0.012  -15.197    0.000   -0.339   -0.339
    p_q               0.019    0.004    5.383    0.000    0.124    0.124
  p_s ~~                                                                
    p_q              -0.081    0.004  -18.486    0.000   -0.887   -0.887

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    p_i               0.094    0.010    9.849    0.000    0.099    0.099
    p_s              -0.055    0.009   -6.412    0.000   -0.098   -0.098
    p_q              -0.004    0.003   -1.374    0.169   -0.024   -0.024
   .Ext_comp_0        0.000                               0.000    0.000
   .Ext_comp_1        0.000                               0.000    0.000
   .Ext_comp_2        0.000                               0.000    0.000
   .Ext_comp_3        0.000                               0.000    0.000
   .Ext_comp_4        0.000                               0.000    0.000
   .Ext_comp_5        0.000                               0.000    0.000
   .Ext_comp_6        0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    p_i               0.898    0.015   59.727    0.000    1.000    1.000
    p_s               0.317    0.014   21.910    0.000    1.000    1.000
    p_q               0.027    0.001   18.409    0.000    1.000    1.000
   .Ext_comp_0        0.224    0.008   28.772    0.000    0.224    0.200
   .Ext_comp_1        0.276    0.005   55.825    0.000    0.276    0.260
   .Ext_comp_2        0.277    0.005   56.804    0.000    0.277    0.268
   .Ext_comp_3        0.268    0.005   53.405    0.000    0.268    0.266
   .Ext_comp_4        0.251    0.005   51.906    0.000    0.251    0.259
   .Ext_comp_5        0.247    0.005   46.518    0.000    0.247    0.258
   .Ext_comp_6        0.095    0.008   12.048    0.000    0.095    0.110

R-Square:
                   Estimate
    Ext_comp_0        0.800
    Ext_comp_1        0.740
    Ext_comp_2        0.732
    Ext_comp_3        0.734
    Ext_comp_4        0.741
    Ext_comp_5        0.742
    Ext_comp_6        0.890
ICC
lavPredict(readRDS("lgcm_Ext_7t_model.rds"),
  newdata = pc_factor_nolow_wide.scaled,
  append.data = T
) %>%
  data.frame() %>%
  select(contains(c("Ext_comp_"))) %>%
  ICC(lmer = T) %>%
  saveRDS("Ext_pc_7t_icc.rds")
readRDS("Ext_pc_7t_icc.rds") %>%
  {
    \(x) x$results
  }() %>%
  knitr::kable()
type ICC F df1 df2 p lower bound upper bound
Single_raters_absolute ICC1 0.6700728 15.21680 11866 71202 0 0.6635632 0.6765695
Single_random_raters ICC2 0.6703378 15.48083 11866 71196 0 0.6625279 0.6780627
Single_fixed_raters ICC3 0.6741281 15.48083 11866 71196 0 0.6676667 0.6805754
Average_raters_absolute ICC1k 0.9342832 15.21680 11866 71202 0 0.9324611 0.9360736
Average_random_raters ICC2k 0.9343567 15.48083 11866 71196 0 0.9321687 0.9364812
Average_fixed_raters ICC3k 0.9354040 15.48083 11866 71196 0 0.9336130 0.9371639
Growth curve plot
lgcm_plot(readRDS("lgcm_Ext_7t_model.rds")) +
  labs(y = "Children's\nExternalizing") +
  scale_x_continuous(
    breaks = seq(0, 3, .5),
    labels = c("10", "11", "12", "13", "14", "15", "16")
  ) +
  coord_cartesian(ylim = c(-.1, 0.1)) +
  annotate(geom = "text", x = 2.3, y = 0.09, label = 'paste(" ",italic("i")," =  .094***")', parse = TRUE, size = 10) +
  annotate(geom = "text", x = 2.3, y = 0.055, label = 'paste(italic("s")," = -.055***")', parse = TRUE, size = 10) +
  annotate(geom = "text", x = 2.3, y = 0.02, label = 'paste(italic("q")," =  .004    ")', parse = TRUE, size = 10)

Internalizing model

lg.int6.strong.invar <- "# basis model
                      p_i =~ 1*Int_comp_0 + 1*Int_comp_1 + 1*Int_comp_2 + 1*Int_comp_3 + 1*Int_comp_4 + 1*Int_comp_5 + 1*Int_comp_6
                      p_s =~ 0*Int_comp_0 + .5*Int_comp_1 + 1*Int_comp_2 + 1.5*Int_comp_3 + 2*Int_comp_4 + 2.5*Int_comp_5 + 3*Int_comp_6
                      p_q =~ 0*Int_comp_0 + .25*Int_comp_1 + 1*Int_comp_2 + 2.25*Int_comp_3 + 4*Int_comp_4 + 6.25*Int_comp_5 + 9*Int_comp_6
                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q
                      p_i~~p_s + p_q
                      p_s~~p_q
                      p_i~1
                      p_s~1
                      p_q~1
                      Int_comp_0 ~~ NA*Int_comp_0
                      Int_comp_1 ~~ NA*Int_comp_1
                      Int_comp_2 ~~ NA*Int_comp_2
                      Int_comp_3 ~~ NA*Int_comp_3
                      Int_comp_4 ~~ NA*Int_comp_4
                      Int_comp_5 ~~ NA*Int_comp_5
                      Int_comp_6 ~~ NA*Int_comp_6
                      Int_comp_0 ~ 0*1
                      Int_comp_1 ~ 0*1
                      Int_comp_2 ~ 0*1
                      Int_comp_3 ~ 0*1
                      Int_comp_4 ~ 0*1
                      Int_comp_5 ~ 0*1
                      Int_comp_6 ~ 0*1"

lavaan(lg.int6.strong.invar,
  data = pc_factor_nolow_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("lgcm_Int_7t_model.rds")
result
readRDS("lgcm_Int_7t_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("lgcm_Int_7t_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("lgcm_Int_7t_model.rds"), "cor.lv"))$value
[1] 1.9544648 0.9316012 0.1139340
readRDS("lgcm_Int_7t_result.rds")
lavaan 0.6-19 ended normally after 35 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                        16

                                                  Used       Total
  Number of observations                         11865       11867
  Number of missing patterns                        72            

Model Test User Model:
                                                      
  Test statistic                               618.086
  Degrees of freedom                                19
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                             40259.476
  Degrees of freedom                                21
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.985
  Tucker-Lewis Index (TLI)                       0.984
                                                      
  Robust Comparative Fit Index (CFI)             0.981
  Robust Tucker-Lewis Index (TLI)                0.979

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)             -75052.743
  Loglikelihood unrestricted model (H1)     -74743.701
                                                      
  Akaike (AIC)                              150137.487
  Bayesian (BIC)                            150255.588
  Sample-size adjusted Bayesian (SABIC)     150204.742

Root Mean Square Error of Approximation:

  RMSEA                                          0.052
  90 Percent confidence interval - lower         0.048
  90 Percent confidence interval - upper         0.055
  P-value H_0: RMSEA <= 0.050                    0.226
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.068
  90 Percent confidence interval - lower         0.064
  90 Percent confidence interval - upper         0.073
  P-value H_0: Robust RMSEA <= 0.050             0.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.036

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_i =~                                                                
    Int_comp_0        1.000                               0.801    0.881
    Int_comp_1        1.000                               0.801    0.854
    Int_comp_2        1.000                               0.801    0.825
    Int_comp_3        1.000                               0.801    0.792
    Int_comp_4        1.000                               0.801    0.755
    Int_comp_5        1.000                               0.801    0.719
    Int_comp_6        1.000                               0.801    0.704
  p_s =~                                                                
    Int_comp_0        0.000                               0.000    0.000
    Int_comp_1        0.500                               0.310    0.331
    Int_comp_2        1.000                               0.621    0.639
    Int_comp_3        1.500                               0.931    0.921
    Int_comp_4        2.000                               1.242    1.172
    Int_comp_5        2.500                               1.552    1.393
    Int_comp_6        3.000                               1.863    1.638
  p_q =~                                                                
    Int_comp_0        0.000                               0.000    0.000
    Int_comp_1        0.250                               0.046    0.049
    Int_comp_2        1.000                               0.186    0.191
    Int_comp_3        2.250                               0.418    0.413
    Int_comp_4        4.000                               0.742    0.700
    Int_comp_5        6.250                               1.160    1.041
    Int_comp_6        9.000                               1.670    1.469

Covariances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_i ~~                                                                
    p_s              -0.122    0.011  -10.573    0.000   -0.244   -0.244
    p_q               0.020    0.004    5.558    0.000    0.135    0.135
  p_s ~~                                                                
    p_q              -0.101    0.005  -19.613    0.000   -0.879   -0.879

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    p_i              -0.046    0.008   -5.545    0.000   -0.057   -0.057
    p_s               0.035    0.009    3.835    0.000    0.057    0.057
    p_q               0.002    0.003    0.726    0.468    0.012    0.012
   .Int_comp_0        0.000                               0.000    0.000
   .Int_comp_1        0.000                               0.000    0.000
   .Int_comp_2        0.000                               0.000    0.000
   .Int_comp_3        0.000                               0.000    0.000
   .Int_comp_4        0.000                               0.000    0.000
   .Int_comp_5        0.000                               0.000    0.000
   .Int_comp_6        0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    p_i               0.641    0.012   53.945    0.000    1.000    1.000
    p_s               0.386    0.016   23.710    0.000    1.000    1.000
    p_q               0.034    0.002   19.476    0.000    1.000    1.000
   .Int_comp_0        0.186    0.007   24.924    0.000    0.186    0.225
   .Int_comp_1        0.277    0.005   56.613    0.000    0.277    0.314
   .Int_comp_2        0.287    0.005   55.942    0.000    0.287    0.305
   .Int_comp_3        0.298    0.006   52.724    0.000    0.298    0.291
   .Int_comp_4        0.335    0.006   52.253    0.000    0.335    0.298
   .Int_comp_5        0.368    0.008   46.440    0.000    0.368    0.296
   .Int_comp_6        0.230    0.013   17.551    0.000    0.230    0.178

R-Square:
                   Estimate
    Int_comp_0        0.775
    Int_comp_1        0.686
    Int_comp_2        0.695
    Int_comp_3        0.709
    Int_comp_4        0.702
    Int_comp_5        0.704
    Int_comp_6        0.822
ICC
lavPredict(readRDS("lgcm_Int_7t_model.rds"),
  newdata = pc_factor_nolow_wide.scaled,
  append.data = T
) %>%
  data.frame() %>%
  select(contains(c("Int_comp_"))) %>%
  ICC(lmer = T) %>%
  saveRDS("Int_pc_7t_icc.rds")
readRDS("Int_pc_7t_icc.rds") %>%
  {
    \(x) x$results
  }() %>%
  knitr::kable()
type ICC F df1 df2 p lower bound upper bound
Single_raters_absolute ICC1 0.6093104 11.91704 11866 71202 0 0.6021719 0.6164551
Single_random_raters ICC2 0.6094127 11.97322 11866 71196 0 0.6021647 0.6166618
Single_fixed_raters ICC3 0.6105318 11.97322 11866 71196 0 0.6034042 0.6176652
Average_raters_absolute ICC1k 0.9160865 11.91704 11866 71202 0 0.9137599 0.9183726
Average_random_raters ICC2k 0.9161195 11.97322 11866 71196 0 0.9137576 0.9184382
Average_fixed_raters ICC3k 0.9164803 11.97322 11866 71196 0 0.9141646 0.9187557
Growth curve plot
lgcm_plot(readRDS("lgcm_Int_7t_model.rds")) +
  labs(y = "Children's\nInternalizing") +
  scale_x_continuous(
    breaks = seq(0, 3, .5),
    labels = c("10", "11", "12", "13", "14", "15", "16")
  ) +
  coord_cartesian(ylim = c(-.08, 0.08)) +
  annotate(geom = "text", x = 2.4, y = -0.025, label = 'paste(" ",italic("i")," = -.046***")', parse = TRUE, size = 10) +
  annotate(geom = "text", x = 2.4, y = -0.05, label = 'paste(italic("s")," =  .035***")', parse = TRUE, size = 10) +
  annotate(geom = "text", x = 2.4, y = -0.075, label = 'paste(italic("q")," =  .002    ")', parse = TRUE, size = 10)

pp factor

Configural invariance model

model fit
pp.3t.config.invar <- "#factor loadings (with constraints)
               a_etaB =~ lambda_AD0*asr_anxdep_comp_0+
                         lambda_AW0*asr_withdep_comp_0+
                         lambda_AS0*asr_soma_comp_0+
                         lambda_AC0*asr_thouprob_comp_0+
                         lambda_AH0*asr_attprob_comp_0+
                         lambda_AA0*asr_rulebreak_comp_0+
                         lambda_AR0*asr_aggress_comp_0+
                         lambda_AG0*asr_intru_comp_0
               a_eta2 =~ lambda_AD2*asr_anxdep_comp_2+
                         lambda_AW2*asr_withdep_comp_2+
                         lambda_AS2*asr_soma_comp_2+
                         lambda_AC2*asr_thouprob_comp_2+
                         lambda_AH2*asr_attprob_comp_2+
                         lambda_AA2*asr_rulebreak_comp_2+
                         lambda_AR2*asr_aggress_comp_2+
                         lambda_AG2*asr_intru_comp_2
               a_eta4 =~ lambda_AD4*asr_anxdep_comp_4+
                         lambda_AW4*asr_withdep_comp_4+
                         lambda_AS4*asr_soma_comp_4+
                         lambda_AC4*asr_thouprob_comp_4+
                         lambda_AH4*asr_attprob_comp_4+
                         lambda_AA4*asr_rulebreak_comp_4+
                         lambda_AR4*asr_aggress_comp_4+
                         lambda_AG4*asr_intru_comp_4

              #latent variable variances
                      a_etaB~~1*a_etaB
                      a_eta2~~1*a_eta2
                      a_eta4~~1*a_eta4

              #latent variable covariances
                      a_etaB~~a_eta2 + a_eta4
                      a_eta2~~a_eta4

              #unique variances # No need to constrict these
                      asr_anxdep_comp_0~~asr_anxdep_comp_0
                      asr_withdep_comp_0~~asr_withdep_comp_0
                      asr_soma_comp_0~~asr_soma_comp_0
                      asr_thouprob_comp_0~~asr_thouprob_comp_0
                      asr_attprob_comp_0~~asr_attprob_comp_0
                      asr_rulebreak_comp_0~~asr_rulebreak_comp_0
                      asr_aggress_comp_0~~asr_aggress_comp_0
                      asr_intru_comp_0~~asr_intru_comp_0

                      asr_anxdep_comp_2~~asr_anxdep_comp_2
                      asr_withdep_comp_2~~asr_withdep_comp_2
                      asr_soma_comp_2~~asr_soma_comp_2
                      asr_thouprob_comp_2~~asr_thouprob_comp_2
                      asr_attprob_comp_2~~asr_attprob_comp_2
                      asr_rulebreak_comp_2~~asr_rulebreak_comp_2
                      asr_aggress_comp_2~~asr_aggress_comp_2
                      asr_intru_comp_2~~asr_intru_comp_2

                      asr_anxdep_comp_4~~asr_anxdep_comp_4
                      asr_withdep_comp_4~~asr_withdep_comp_4
                      asr_soma_comp_4~~asr_soma_comp_4
                      asr_thouprob_comp_4~~asr_thouprob_comp_4
                      asr_attprob_comp_4~~asr_attprob_comp_4
                      asr_rulebreak_comp_4~~asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_aggress_comp_4
                      asr_intru_comp_4~~asr_intru_comp_4

              #unique covariances
                      # Scores arcoss times
                      asr_anxdep_comp_0~~ asr_anxdep_comp_2 + asr_anxdep_comp_4
                      asr_anxdep_comp_2~~ asr_anxdep_comp_4

                      asr_withdep_comp_0 ~~ asr_withdep_comp_2 + asr_withdep_comp_4
                      asr_withdep_comp_2 ~~ asr_withdep_comp_4

                      asr_soma_comp_0~~ asr_soma_comp_2 + asr_soma_comp_4
                      asr_soma_comp_2~~ asr_soma_comp_4

                      asr_thouprob_comp_0~~ asr_thouprob_comp_2 + asr_thouprob_comp_4
                      asr_thouprob_comp_2~~ asr_thouprob_comp_4

                      asr_attprob_comp_0~~ asr_attprob_comp_2 + asr_attprob_comp_4
                      asr_attprob_comp_2~~ asr_attprob_comp_4

                      asr_rulebreak_comp_0~~ asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_rulebreak_comp_2~~ asr_rulebreak_comp_4

                      asr_aggress_comp_0~~ asr_aggress_comp_2 + asr_aggress_comp_4
                      asr_aggress_comp_2~~ asr_aggress_comp_4

                      asr_intru_comp_0~~ asr_intru_comp_2 + asr_intru_comp_4
                      asr_intru_comp_2~~ asr_intru_comp_4

                      # Internalizeing subscale covariances
                      asr_anxdep_comp_0~~asr_withdep_comp_0 + asr_soma_comp_0 + asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_2~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_4~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4

                      asr_withdep_comp_0~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_2~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_4~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4

                      # Externalizeing subscale covariances
                      asr_aggress_comp_0~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_2~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4

                      asr_intru_comp_0~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_2~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_4~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4

                      #latent variable intercepts
                      a_etaB~0*1
                      a_eta2~0*1
                      a_eta4~0*1

              #observed variable intercepts
                      asr_aggress_comp_0~tau_AR0*1
                      asr_aggress_comp_2~tau_AR2*1
                      asr_aggress_comp_4~tau_AR4*1

                      asr_anxdep_comp_0~tau_AX0*1
                      asr_anxdep_comp_2~tau_AX2*1
                      asr_anxdep_comp_4~tau_AX4*1

                      asr_attprob_comp_0~tau_AH0*1
                      asr_attprob_comp_2~tau_AH2*1
                      asr_attprob_comp_4~tau_AH4*1

                      asr_intru_comp_0~tau_AG0*1
                      asr_intru_comp_2~tau_AG2*1
                      asr_intru_comp_4~tau_AG4*1

                      asr_rulebreak_comp_0~tau_AA0*1
                      asr_rulebreak_comp_2~tau_AA2*1
                      asr_rulebreak_comp_4~tau_AA4*1

                      asr_soma_comp_0~tau_AS0*1
                      asr_soma_comp_2~tau_AS2*1
                      asr_soma_comp_4~tau_AS4*1

                      asr_thouprob_comp_0~tau_AP0*1
                      asr_thouprob_comp_2~tau_AP2*1
                      asr_thouprob_comp_4~tau_AP4*1

                      asr_withdep_comp_0~tau_AW0*1
                      asr_withdep_comp_2~tau_AW2*1
                      asr_withdep_comp_4~tau_AW4*1"

lavaan(pp.3t.config.invar,
  data = pp_factor_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("pp_3t_config.rds")
result
readRDS("pp_3t_config.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pp_3t_config_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pp_3t_config.rds"), "cor.lv"))$value
[1] 2.4448592 0.3233786 0.2317622
readRDS("pp_3t_config_result.rds")
lavaan 0.6-19 ended normally after 85 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       153

                                                  Used       Total
  Number of observations                         11862       11865
  Number of missing patterns                         9            

Model Test User Model:
                                                      
  Test statistic                              3505.862
  Degrees of freedom                               171
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                            186988.711
  Degrees of freedom                               276
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.982
  Tucker-Lewis Index (TLI)                       0.971
                                                      
  Robust Comparative Fit Index (CFI)             0.983
  Robust Tucker-Lewis Index (TLI)                0.973

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -272993.794
  Loglikelihood unrestricted model (H1)    -271240.863
                                                      
  Akaike (AIC)                              546293.588
  Bayesian (BIC)                            547422.895
  Sample-size adjusted Bayesian (SABIC)     546936.679

Root Mean Square Error of Approximation:

  RMSEA                                          0.041
  90 Percent confidence interval - lower         0.039
  90 Percent confidence interval - upper         0.042
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.042
  90 Percent confidence interval - lower         0.041
  90 Percent confidence interval - upper         0.044
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.031

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    as___0 (l_AD0)    0.837    0.008  109.804    0.000    0.837    0.831
    as___0 (l_AW0)    0.751    0.008   91.517    0.000    0.751    0.736
    as___0 (l_AS0)    0.663    0.008   80.015    0.000    0.663    0.663
    as___0 (l_AC0)    0.813    0.008   98.048    0.000    0.813    0.766
    as___0 (l_AH0)    0.742    0.007  100.072    0.000    0.742    0.754
    as___0 (l_AA0)    0.692    0.009   79.474    0.000    0.692    0.652
    as___0 (l_AR0)    0.814    0.008  102.179    0.000    0.814    0.776
    as___0 (l_AG0)    0.387    0.009   44.556    0.000    0.387    0.377
  a_eta2 =~                                                             
    as___2 (l_AD2)    0.834    0.008  104.799    0.000    0.834    0.822
    as___2 (l_AW2)    0.745    0.008   87.993    0.000    0.745    0.735
    as___2 (l_AS2)    0.658    0.009   77.047    0.000    0.658    0.659
    as___2 (l_AC2)    0.758    0.008   93.911    0.000    0.758    0.763
    as___2 (l_AH2)    0.750    0.007  100.068    0.000    0.750    0.770
    as___2 (l_AA2)    0.627    0.009   73.603    0.000    0.627    0.629
    as___2 (l_AR2)    0.752    0.008   94.754    0.000    0.752    0.750
    as___2 (l_AG2)    0.398    0.009   46.370    0.000    0.398    0.401
  a_eta4 =~                                                             
    as___4 (l_AD4)    0.821    0.008   96.983    0.000    0.821    0.815
    as___4 (l_AW4)    0.723    0.009   81.979    0.000    0.723    0.732
    as___4 (l_AS4)    0.656    0.009   72.387    0.000    0.656    0.663
    as___4 (l_AC4)    0.717    0.008   86.419    0.000    0.717    0.755
    as___4 (l_AH4)    0.763    0.008   93.216    0.000    0.763    0.767
    as___4 (l_AA4)    0.602    0.009   68.422    0.000    0.602    0.627
    as___4 (l_AR4)    0.692    0.008   85.548    0.000    0.692    0.727
    as___4 (l_AG4)    0.406    0.009   44.669    0.000    0.406    0.411

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB ~~                                                                    
    a_eta2                   0.737    0.005  144.715    0.000    0.737    0.737
    a_eta4                   0.678    0.006  106.751    0.000    0.678    0.678
  a_eta2 ~~                                                                    
    a_eta4                   0.753    0.005  143.038    0.000    0.753    0.753
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.180    0.005   35.733    0.000    0.180    0.557
   .asr_nxdp_cmp_4           0.163    0.005   31.649    0.000    0.163    0.501
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.195    0.006   35.350    0.000    0.195    0.578
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.222    0.006   36.153    0.000    0.222    0.467
   .asr_wthdp_cm_4           0.202    0.006   32.275    0.000    0.202    0.433
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.218    0.006   34.203    0.000    0.218    0.472
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.281    0.007   40.930    0.000    0.281    0.501
   .asr_soma_cmp_4           0.242    0.007   34.883    0.000    0.242    0.437
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.283    0.007   38.699    0.000    0.283    0.508
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.192    0.005   35.082    0.000    0.192    0.439
   .asr_thprb_cm_4           0.160    0.005   29.288    0.000    0.160    0.378
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.168    0.005   31.689    0.000    0.168    0.420
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.260    0.005   48.699    0.000    0.260    0.647
   .asr_ttprb_cm_4           0.250    0.006   44.707    0.000    0.250    0.605
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.265    0.006   46.878    0.000    0.265    0.669
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.301    0.007   40.893    0.000    0.301    0.482
   .asr_rlbrk_cm_4           0.258    0.007   35.517    0.000    0.258    0.429
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.280    0.007   38.448    0.000    0.280    0.483
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.244    0.006   42.979    0.000    0.244    0.556
   .asr_ggrss_cm_4           0.226    0.006   39.943    0.000    0.226    0.523
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.254    0.006   43.437    0.000    0.254    0.588
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.498    0.010   51.901    0.000    0.498    0.578
   .asr_intr_cmp_4           0.468    0.010   47.969    0.000    0.468    0.547
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.478    0.010   49.620    0.000    0.478    0.584
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.015    0.005    3.010    0.003    0.015    0.040
   .asr_soma_cmp_0           0.032    0.005    5.996    0.000    0.032    0.076
   .asr_wthdp_cm_2           0.016    0.005    3.245    0.001    0.016    0.042
   .asr_soma_cmp_2           0.036    0.005    6.780    0.000    0.036    0.085
   .asr_wthdp_cm_4           0.015    0.005    2.845    0.004    0.015    0.039
   .asr_soma_cmp_4           0.032    0.005    5.796    0.000    0.032    0.076
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2           0.005    0.005    0.987    0.324    0.005    0.012
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.027    0.005    5.128    0.000    0.027    0.063
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.028    0.005    5.204    0.000    0.028    0.071
   .asr_soma_cmp_2           0.045    0.006    7.874    0.000    0.045    0.103
   .asr_wthdp_cm_4           0.016    0.005    3.027    0.002    0.016    0.041
   .asr_soma_cmp_4           0.024    0.006    4.248    0.000    0.024    0.056
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4          -0.003    0.005   -0.559    0.576   -0.003   -0.007
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.025    0.006    4.419    0.000    0.025    0.056
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.010    0.005    1.776    0.076    0.010    0.024
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.041    0.006    7.046    0.000    0.041    0.093
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.031    0.006    5.487    0.000    0.031    0.080
   .asr_soma_cmp_4           0.050    0.006    8.190    0.000    0.050    0.115
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.031    0.006   -5.318    0.000   -0.031   -0.060
   .asr_soma_cmp_2          -0.020    0.006   -3.311    0.001   -0.020   -0.038
   .asr_soma_cmp_4          -0.036    0.006   -5.870    0.000   -0.036   -0.071
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.014    0.006   -2.335    0.020   -0.014   -0.026
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.018    0.006   -2.908    0.004   -0.018   -0.034
   .asr_soma_cmp_4          -0.026    0.006   -4.198    0.000   -0.026   -0.051
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.017    0.006   -2.775    0.006   -0.017   -0.033
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.023    0.006   -3.638    0.000   -0.023   -0.045
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.028    0.006   -4.374    0.000   -0.028   -0.055
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.135    0.007   19.880    0.000    0.135    0.215
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.061    0.006   10.160    0.000    0.061    0.115
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.088    0.007   13.498    0.000    0.088    0.146
   .asr_rlbrk_cm_2           0.023    0.006    3.986    0.000    0.023    0.044
   .asr_intr_cmp_4           0.095    0.007   14.115    0.000    0.095    0.160
   .asr_rlbrk_cm_4           0.032    0.006    5.580    0.000    0.032    0.065
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.098    0.007   14.597    0.000    0.098    0.155
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.048    0.006    8.050    0.000    0.048    0.090
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.141    0.007   21.092    0.000    0.141    0.235
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.046    0.006    7.878    0.000    0.046    0.090
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.111    0.007   16.346    0.000    0.111    0.187
   .asr_rlbrk_cm_4           0.044    0.006    7.491    0.000    0.044    0.089
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.103    0.007   15.084    0.000    0.103    0.166
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.055    0.006    9.165    0.000    0.055    0.106
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.109    0.007   16.329    0.000    0.109    0.183
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.046    0.006    7.682    0.000    0.046    0.090
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.145    0.007   21.058    0.000    0.145    0.247
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.066    0.006   11.156    0.000    0.066    0.136
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.121    0.008   15.577    0.000    0.121    0.158
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.070    0.007    9.293    0.000    0.070    0.094
   .asr_rlbrk_cm_4           0.076    0.008   10.011    0.000    0.076    0.107
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.073    0.008    9.723    0.000    0.073    0.100
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.115    0.007   15.449    0.000    0.115    0.162
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.074    0.007   10.033    0.000    0.074    0.110
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.086    0.008   11.002    0.000    0.086    0.119
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.080    0.008   10.476    0.000    0.080    0.115
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.114    0.008   15.068    0.000    0.114    0.170

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    a_etaB            0.000                               0.000    0.000
    a_eta2            0.000                               0.000    0.000
    a_eta4            0.000                               0.000    0.000
   .as___0 (t_AR0)    0.063    0.010    6.555    0.000    0.063    0.060
   .as___2 (t_AR2)    0.005    0.009    0.535    0.593    0.005    0.005
   .as___4 (t_AR4)   -0.066    0.009   -7.098    0.000   -0.066   -0.069
   .as___0 (t_AX0)    0.003    0.009    0.302    0.763    0.003    0.003
   .as___2 (t_AX2)    0.005    0.010    0.544    0.587    0.005    0.005
   .as___4 (t_AX4)    0.003    0.010    0.325    0.745    0.003    0.003
   .as___0 (t_AH0)    0.008    0.009    0.884    0.376    0.008    0.008
   .as___2 (t_AH2)   -0.001    0.009   -0.065    0.948   -0.001   -0.001
   .as___4 (t_AH4)    0.007    0.010    0.741    0.459    0.007    0.007
   .as___0 (t_AG0)    0.031    0.009    3.239    0.001    0.031    0.030
   .as___2 (t_AG2)   -0.010    0.009   -1.117    0.264   -0.010   -0.011
   .as___4 (t_AG4)   -0.024    0.010   -2.502    0.012   -0.024   -0.025
   .as___0 (t_AA0)    0.060    0.010    6.105    0.000    0.060    0.056
   .as___2 (t_AA2)   -0.001    0.009   -0.141    0.888   -0.001   -0.001
   .as___4 (t_AA4)   -0.044    0.009   -4.632    0.000   -0.044   -0.046
   .as___0 (t_AS0)    0.001    0.009    0.161    0.872    0.001    0.001
   .as___2 (t_AS2)    0.006    0.009    0.599    0.549    0.006    0.006
   .as___4 (t_AS4)    0.005    0.010    0.561    0.575    0.005    0.006
   .as___0 (t_AP0)    0.066    0.010    6.764    0.000    0.066    0.062
   .as___2 (t_AP2)   -0.015    0.009   -1.579    0.114   -0.015   -0.015
   .as___4 (t_AP4)   -0.044    0.009   -4.683    0.000   -0.044   -0.046
   .as___0 (t_AW0)   -0.001    0.009   -0.066    0.948   -0.001   -0.001
   .as___2 (t_AW2)    0.012    0.010    1.302    0.193    0.012    0.012
   .as___4 (t_AW4)    0.006    0.010    0.602    0.547    0.006    0.006

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    a_etaB            1.000                               1.000    1.000
    a_eta2            1.000                               1.000    1.000
    a_eta4            1.000                               1.000    1.000
   .asr_nxdp_cmp_0    0.312    0.006   51.387    0.000    0.312    0.309
   .asr_wthdp_cm_0    0.478    0.008   61.468    0.000    0.478    0.459
   .asr_soma_cmp_0    0.560    0.009   65.697    0.000    0.560    0.560
   .asr_thprb_cm_0    0.464    0.007   63.671    0.000    0.464    0.413
   .asr_ttprb_cm_0    0.417    0.006   64.222    0.000    0.417    0.431
   .asr_rlbrk_cm_0    0.647    0.009   68.276    0.000    0.647    0.575
   .asr_ggrss_cm_0    0.438    0.007   62.516    0.000    0.438    0.398
   .asr_intr_cmp_0    0.902    0.012   74.916    0.000    0.902    0.858
   .asr_nxdp_cmp_2    0.333    0.007   50.611    0.000    0.333    0.324
   .asr_wthdp_cm_2    0.473    0.008   59.010    0.000    0.473    0.460
   .asr_soma_cmp_2    0.564    0.009   63.399    0.000    0.564    0.566
   .asr_thprb_cm_2    0.413    0.007   61.016    0.000    0.413    0.418
   .asr_ttprb_cm_2    0.386    0.006   60.161    0.000    0.386    0.407
   .asr_rlbrk_cm_2    0.602    0.009   66.276    0.000    0.602    0.605
   .asr_ggrss_cm_2    0.440    0.007   61.764    0.000    0.440    0.437
   .asr_intr_cmp_2    0.826    0.011   71.923    0.000    0.826    0.839
   .asr_nxdp_cmp_4    0.341    0.007   47.490    0.000    0.341    0.336
   .asr_wthdp_cm_4    0.453    0.008   55.042    0.000    0.453    0.464
   .asr_soma_cmp_4    0.550    0.009   58.586    0.000    0.550    0.561
   .asr_thprb_cm_4    0.387    0.007   56.984    0.000    0.387    0.430
   .asr_ttprb_cm_4    0.408    0.007   56.132    0.000    0.408    0.412
   .asr_rlbrk_cm_4    0.559    0.009   61.844    0.000    0.559    0.607
   .asr_ggrss_cm_4    0.426    0.007   59.139    0.000    0.426    0.471
   .asr_intr_cmp_4    0.811    0.012   67.551    0.000    0.811    0.831

R-Square:
                   Estimate
    asr_nxdp_cmp_0    0.691
    asr_wthdp_cm_0    0.541
    asr_soma_cmp_0    0.440
    asr_thprb_cm_0    0.587
    asr_ttprb_cm_0    0.569
    asr_rlbrk_cm_0    0.425
    asr_ggrss_cm_0    0.602
    asr_intr_cmp_0    0.142
    asr_nxdp_cmp_2    0.676
    asr_wthdp_cm_2    0.540
    asr_soma_cmp_2    0.434
    asr_thprb_cm_2    0.582
    asr_ttprb_cm_2    0.593
    asr_rlbrk_cm_2    0.395
    asr_ggrss_cm_2    0.563
    asr_intr_cmp_2    0.161
    asr_nxdp_cmp_4    0.664
    asr_wthdp_cm_4    0.536
    asr_soma_cmp_4    0.439
    asr_thprb_cm_4    0.570
    asr_ttprb_cm_4    0.588
    asr_rlbrk_cm_4    0.393
    asr_ggrss_cm_4    0.529
    asr_intr_cmp_4    0.169

Weak invariance model

model fit
pp.3t.weak.invar <- "#factor loadings (with constraints)
               a_etaB =~ 1*asr_anxdep_comp_0+
                         lambda_AW*asr_withdep_comp_0+
                         lambda_AS*asr_soma_comp_0+
                         lambda_AC*asr_thouprob_comp_0+
                         lambda_AH*asr_attprob_comp_0+
                         lambda_AA*asr_rulebreak_comp_0+
                         lambda_AR*asr_aggress_comp_0+
                         lambda_AG*asr_intru_comp_0
               a_eta2 =~ 1*asr_anxdep_comp_2+
                         lambda_AW*asr_withdep_comp_2+
                         lambda_AS*asr_soma_comp_2+
                         lambda_AC*asr_thouprob_comp_2+
                         lambda_AH*asr_attprob_comp_2+
                         lambda_AA*asr_rulebreak_comp_2+
                         lambda_AR*asr_aggress_comp_2+
                         lambda_AG*asr_intru_comp_2
               a_eta4 =~ 1*asr_anxdep_comp_4+
                         lambda_AW*asr_withdep_comp_4+
                         lambda_AS*asr_soma_comp_4+
                         lambda_AC*asr_thouprob_comp_4+
                         lambda_AH*asr_attprob_comp_4+
                         lambda_AA*asr_rulebreak_comp_4+
                         lambda_AR*asr_aggress_comp_4+
                         lambda_AG*asr_intru_comp_4

              #latent variable variances
                      a_etaB~~NA*a_etaB
                      a_eta2~~NA*a_eta2
                      a_eta4~~NA*a_eta4

              #latent variable covariances
                      a_etaB~~a_eta2 + a_eta4
                      a_eta2~~a_eta4

              #unique variances # No need to constrict these
                      asr_anxdep_comp_0~~asr_anxdep_comp_0
                      asr_withdep_comp_0~~asr_withdep_comp_0
                      asr_soma_comp_0~~asr_soma_comp_0
                      asr_thouprob_comp_0~~asr_thouprob_comp_0
                      asr_attprob_comp_0~~asr_attprob_comp_0
                      asr_rulebreak_comp_0~~asr_rulebreak_comp_0
                      asr_aggress_comp_0~~asr_aggress_comp_0
                      asr_intru_comp_0~~asr_intru_comp_0

                      asr_anxdep_comp_2~~asr_anxdep_comp_2
                      asr_withdep_comp_2~~asr_withdep_comp_2
                      asr_soma_comp_2~~asr_soma_comp_2
                      asr_thouprob_comp_2~~asr_thouprob_comp_2
                      asr_attprob_comp_2~~asr_attprob_comp_2
                      asr_rulebreak_comp_2~~asr_rulebreak_comp_2
                      asr_aggress_comp_2~~asr_aggress_comp_2
                      asr_intru_comp_2~~asr_intru_comp_2

                      asr_anxdep_comp_4~~asr_anxdep_comp_4
                      asr_withdep_comp_4~~asr_withdep_comp_4
                      asr_soma_comp_4~~asr_soma_comp_4
                      asr_thouprob_comp_4~~asr_thouprob_comp_4
                      asr_attprob_comp_4~~asr_attprob_comp_4
                      asr_rulebreak_comp_4~~asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_aggress_comp_4
                      asr_intru_comp_4~~asr_intru_comp_4

              #unique covariances
                      # Scores arcoss times
                      asr_anxdep_comp_0~~ asr_anxdep_comp_2 + asr_anxdep_comp_4
                      asr_anxdep_comp_2~~ asr_anxdep_comp_4

                      asr_withdep_comp_0 ~~ asr_withdep_comp_2 + asr_withdep_comp_4
                      asr_withdep_comp_2 ~~ asr_withdep_comp_4

                      asr_soma_comp_0~~ asr_soma_comp_2 + asr_soma_comp_4
                      asr_soma_comp_2~~ asr_soma_comp_4

                      asr_thouprob_comp_0~~ asr_thouprob_comp_2 + asr_thouprob_comp_4
                      asr_thouprob_comp_2~~ asr_thouprob_comp_4

                      asr_attprob_comp_0~~ asr_attprob_comp_2 + asr_attprob_comp_4
                      asr_attprob_comp_2~~ asr_attprob_comp_4

                      asr_rulebreak_comp_0~~ asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_rulebreak_comp_2~~ asr_rulebreak_comp_4

                      asr_aggress_comp_0~~ asr_aggress_comp_2 + asr_aggress_comp_4
                      asr_aggress_comp_2~~ asr_aggress_comp_4

                      asr_intru_comp_0~~ asr_intru_comp_2 + asr_intru_comp_4
                      asr_intru_comp_2~~ asr_intru_comp_4

                      # Internalizeing subscale covariances
                      asr_anxdep_comp_0~~asr_withdep_comp_0 + asr_soma_comp_0 + asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_2~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_4~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4

                      asr_withdep_comp_0~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_2~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_4~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4

                      # Externalizeing subscale covariances
                      asr_aggress_comp_0~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_2~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4

                      asr_intru_comp_0~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_2~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_4~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4

                      #latent variable intercepts
                      a_etaB~0*1
                      a_eta2~0*1
                      a_eta4~0*1

              #observed variable intercepts
                      asr_aggress_comp_0~tau_AR0*1
                      asr_aggress_comp_2~tau_AR2*1
                      asr_aggress_comp_4~tau_AR4*1

                      asr_anxdep_comp_0~tau_AX0*1
                      asr_anxdep_comp_2~tau_AX2*1
                      asr_anxdep_comp_4~tau_AX4*1

                      asr_attprob_comp_0~tau_AH0*1
                      asr_attprob_comp_2~tau_AH2*1
                      asr_attprob_comp_4~tau_AH4*1

                      asr_intru_comp_0~tau_AG0*1
                      asr_intru_comp_2~tau_AG2*1
                      asr_intru_comp_4~tau_AG4*1

                      asr_rulebreak_comp_0~tau_AA0*1
                      asr_rulebreak_comp_2~tau_AA2*1
                      asr_rulebreak_comp_4~tau_AA4*1

                      asr_soma_comp_0~tau_AS0*1
                      asr_soma_comp_2~tau_AS2*1
                      asr_soma_comp_4~tau_AS4*1

                      asr_thouprob_comp_0~tau_AP0*1
                      asr_thouprob_comp_2~tau_AP2*1
                      asr_thouprob_comp_4~tau_AP4*1

                      asr_withdep_comp_0~tau_AW0*1
                      asr_withdep_comp_2~tau_AW2*1
                      asr_withdep_comp_4~tau_AW4*1"

lavaan(pp.3t.weak.invar,
  data = pp_factor_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("pp_3t_weak.rds")
result
readRDS("pp_3t_weak.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pp_3t_weak_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pp_3t_weak.rds"), "cor.lv"))$value
[1] 2.4437411 0.3235398 0.2327191
readRDS("pp_3t_weak_result.rds")
lavaan 0.6-19 ended normally after 90 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       153
  Number of equality constraints                    14

                                                  Used       Total
  Number of observations                         11862       11865
  Number of missing patterns                         9            

Model Test User Model:
                                                      
  Test statistic                              3872.010
  Degrees of freedom                               185
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                            186988.711
  Degrees of freedom                               276
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.980
  Tucker-Lewis Index (TLI)                       0.971
                                                      
  Robust Comparative Fit Index (CFI)             0.981
  Robust Tucker-Lewis Index (TLI)                0.972

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -273176.868
  Loglikelihood unrestricted model (H1)    -271240.863
                                                      
  Akaike (AIC)                              546631.736
  Bayesian (BIC)                            547657.708
  Sample-size adjusted Bayesian (SABIC)     547215.982

Root Mean Square Error of Approximation:

  RMSEA                                          0.041
  90 Percent confidence interval - lower         0.040
  90 Percent confidence interval - upper         0.042
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.043
  90 Percent confidence interval - lower         0.042
  90 Percent confidence interval - upper         0.044
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.035

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.849    0.838
    asr___0 (l_AW)    0.894    0.007  126.288    0.000    0.759    0.739
    asr___0 (l_AS)    0.794    0.007  111.136    0.000    0.674    0.671
    asr___0 (l_AC)    0.925    0.007  124.190    0.000    0.785    0.753
    asr___0 (l_AH)    0.903    0.007  129.777    0.000    0.767    0.767
    asr___0 (l_AA)    0.778    0.008   97.350    0.000    0.661    0.632
    asr___0 (l_AR)    0.915    0.007  123.946    0.000    0.777    0.757
    asr___0 (l_AG)    0.481    0.008   58.716    0.000    0.408    0.395
  a_eta2 =~                                                             
    asr___2           1.000                               0.825    0.817
    asr___2 (l_AW)    0.894    0.007  126.288    0.000    0.738    0.730
    asr___2 (l_AS)    0.794    0.007  111.136    0.000    0.655    0.657
    asr___2 (l_AC)    0.925    0.007  124.190    0.000    0.763    0.766
    asr___2 (l_AH)    0.903    0.007  129.777    0.000    0.745    0.768
    asr___2 (l_AA)    0.778    0.008   97.350    0.000    0.642    0.639
    asr___2 (l_AR)    0.915    0.007  123.946    0.000    0.755    0.752
    asr___2 (l_AG)    0.481    0.008   58.716    0.000    0.397    0.401
  a_eta4 =~                                                             
    asr___4           1.000                               0.802    0.805
    asr___4 (l_AW)    0.894    0.007  126.288    0.000    0.717    0.729
    asr___4 (l_AS)    0.794    0.007  111.136    0.000    0.637    0.649
    asr___4 (l_AC)    0.925    0.007  124.190    0.000    0.742    0.769
    asr___4 (l_AH)    0.903    0.007  129.777    0.000    0.725    0.744
    asr___4 (l_AA)    0.778    0.008   97.350    0.000    0.624    0.643
    asr___4 (l_AR)    0.915    0.007  123.946    0.000    0.734    0.751
    asr___4 (l_AG)    0.481    0.008   58.716    0.000    0.386    0.394

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB ~~                                                                    
    a_eta2                   0.516    0.010   50.952    0.000    0.736    0.736
    a_eta4                   0.461    0.010   47.293    0.000    0.677    0.677
  a_eta2 ~~                                                                    
    a_eta4                   0.498    0.010   48.975    0.000    0.751    0.751
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.180    0.005   35.708    0.000    0.180    0.559
   .asr_nxdp_cmp_4           0.164    0.005   31.693    0.000    0.164    0.501
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.200    0.006   36.170    0.000    0.200    0.581
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.224    0.006   36.226    0.000    0.224    0.469
   .asr_wthdp_cm_4           0.202    0.006   32.278    0.000    0.202    0.433
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.220    0.006   34.568    0.000    0.220    0.473
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.280    0.007   40.871    0.000    0.280    0.501
   .asr_soma_cmp_4           0.243    0.007   34.988    0.000    0.243    0.437
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.286    0.007   39.142    0.000    0.286    0.510
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.193    0.005   35.194    0.000    0.193    0.439
   .asr_thprb_cm_4           0.160    0.005   29.141    0.000    0.160    0.377
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.165    0.005   31.145    0.000    0.165    0.417
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.257    0.005   48.374    0.000    0.257    0.646
   .asr_ttprb_cm_4           0.252    0.006   44.945    0.000    0.252    0.604
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.271    0.006   47.579    0.000    0.271    0.670
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.301    0.007   40.938    0.000    0.301    0.481
   .asr_rlbrk_cm_4           0.258    0.007   35.465    0.000    0.258    0.428
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.277    0.007   38.121    0.000    0.277    0.482
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.246    0.006   43.290    0.000    0.246    0.554
   .asr_ggrss_cm_4           0.224    0.006   39.551    0.000    0.224    0.518
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.250    0.006   42.749    0.000    0.250    0.587
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.498    0.010   51.852    0.000    0.498    0.578
   .asr_intr_cmp_4           0.468    0.010   47.929    0.000    0.468    0.547
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.477    0.010   49.625    0.000    0.477    0.583
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.012    0.005    2.375    0.018    0.012    0.031
   .asr_soma_cmp_0           0.026    0.005    5.030    0.000    0.026    0.064
   .asr_wthdp_cm_2           0.017    0.005    3.374    0.001    0.017    0.044
   .asr_soma_cmp_2           0.035    0.005    6.615    0.000    0.035    0.083
   .asr_wthdp_cm_4           0.014    0.005    2.819    0.005    0.014    0.038
   .asr_soma_cmp_4           0.032    0.005    5.834    0.000    0.032    0.077
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2           0.006    0.005    1.178    0.239    0.006    0.015
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.027    0.005    5.174    0.000    0.027    0.063
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.032    0.005    6.074    0.000    0.032    0.081
   .asr_soma_cmp_2           0.048    0.006    8.580    0.000    0.048    0.110
   .asr_wthdp_cm_4           0.019    0.005    3.605    0.000    0.019    0.048
   .asr_soma_cmp_4           0.029    0.006    5.076    0.000    0.029    0.066
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4          -0.002    0.005   -0.355    0.723   -0.002   -0.005
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.026    0.006    4.672    0.000    0.026    0.059
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.013    0.005    2.418    0.016    0.013    0.032
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.045    0.006    7.739    0.000    0.045    0.100
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.036    0.006    6.482    0.000    0.036    0.091
   .asr_soma_cmp_4           0.059    0.006    9.764    0.000    0.059    0.133
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.034    0.006   -5.897    0.000   -0.034   -0.066
   .asr_soma_cmp_2          -0.020    0.006   -3.320    0.001   -0.020   -0.038
   .asr_soma_cmp_4          -0.036    0.006   -5.771    0.000   -0.036   -0.069
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.013    0.006   -2.246    0.025   -0.013   -0.025
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.015    0.006   -2.485    0.013   -0.015   -0.029
   .asr_soma_cmp_4          -0.023    0.006   -3.718    0.000   -0.023   -0.045
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.016    0.006   -2.750    0.006   -0.016   -0.033
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.021    0.006   -3.341    0.001   -0.021   -0.041
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.023    0.006   -3.731    0.000   -0.023   -0.046
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.136    0.007   19.973    0.000    0.136    0.213
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.071    0.006   11.791    0.000    0.071    0.130
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.088    0.007   13.523    0.000    0.088    0.145
   .asr_rlbrk_cm_2           0.023    0.006    4.028    0.000    0.023    0.045
   .asr_intr_cmp_4           0.096    0.007   14.289    0.000    0.096    0.159
   .asr_rlbrk_cm_4           0.031    0.006    5.415    0.000    0.031    0.063
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.097    0.007   14.442    0.000    0.097    0.154
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.050    0.006    8.330    0.000    0.050    0.092
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.140    0.007   20.987    0.000    0.140    0.233
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.044    0.006    7.463    0.000    0.044    0.085
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.111    0.007   16.261    0.000    0.111    0.185
   .asr_rlbrk_cm_4           0.041    0.006    7.017    0.000    0.041    0.084
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.101    0.007   14.726    0.000    0.101    0.165
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.055    0.006    9.107    0.000    0.055    0.106
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.106    0.007   15.861    0.000    0.106    0.180
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.043    0.006    7.213    0.000    0.043    0.086
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.141    0.007   20.511    0.000    0.141    0.242
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.059    0.006    9.975    0.000    0.059    0.123
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.121    0.008   15.665    0.000    0.121    0.158
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.069    0.007    9.181    0.000    0.069    0.094
   .asr_rlbrk_cm_4           0.075    0.008    9.813    0.000    0.075    0.106
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.073    0.008    9.699    0.000    0.073    0.100
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.112    0.007   15.221    0.000    0.112    0.160
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.072    0.007    9.722    0.000    0.072    0.107
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.086    0.008   11.036    0.000    0.086    0.118
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.079    0.008   10.263    0.000    0.079    0.113
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.111    0.008   14.691    0.000    0.111    0.165

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    a_etaB            0.000                               0.000    0.000
    a_eta2            0.000                               0.000    0.000
    a_eta4            0.000                               0.000    0.000
   .as___0 (t_AR0)    0.063    0.009    6.705    0.000    0.063    0.062
   .as___2 (t_AR2)    0.005    0.009    0.542    0.588    0.005    0.005
   .as___4 (t_AR4)   -0.065    0.010   -6.828    0.000   -0.065   -0.067
   .as___0 (t_AX0)    0.003    0.009    0.299    0.765    0.003    0.003
   .as___2 (t_AX2)    0.005    0.009    0.525    0.599    0.005    0.005
   .as___4 (t_AX4)    0.003    0.010    0.285    0.776    0.003    0.003
   .as___0 (t_AH0)    0.008    0.009    0.869    0.385    0.008    0.008
   .as___2 (t_AH2)   -0.001    0.009   -0.084    0.933   -0.001   -0.001
   .as___4 (t_AH4)    0.006    0.009    0.675    0.500    0.006    0.007
   .as___0 (t_AG0)    0.030    0.009    3.211    0.001    0.030    0.030
   .as___2 (t_AG2)   -0.011    0.009   -1.132    0.258   -0.011   -0.011
   .as___4 (t_AG4)   -0.025    0.010   -2.570    0.010   -0.025   -0.025
   .as___0 (t_AA0)    0.060    0.010    6.202    0.000    0.060    0.057
   .as___2 (t_AA2)   -0.001    0.009   -0.129    0.897   -0.001   -0.001
   .as___4 (t_AA4)   -0.044    0.010   -4.540    0.000   -0.044   -0.045
   .as___0 (t_AS0)    0.001    0.009    0.159    0.874    0.001    0.001
   .as___2 (t_AS2)    0.006    0.009    0.586    0.558    0.006    0.006
   .as___4 (t_AS4)    0.005    0.010    0.520    0.603    0.005    0.005
   .as___0 (t_AP0)    0.066    0.010    6.880    0.000    0.066    0.063
   .as___2 (t_AP2)   -0.015    0.009   -1.568    0.117   -0.015   -0.015
   .as___4 (t_AP4)   -0.043    0.010   -4.560    0.000   -0.043   -0.045
   .as___0 (t_AW0)   -0.001    0.009   -0.066    0.947   -0.001   -0.001
   .as___2 (t_AW2)    0.012    0.010    1.290    0.197    0.012    0.012
   .as___4 (t_AW4)    0.006    0.010    0.586    0.558    0.006    0.006

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    a_etaB            0.721    0.012   59.432    0.000    1.000    1.000
    a_eta2            0.681    0.012   56.430    0.000    1.000    1.000
    a_eta4            0.644    0.012   53.361    0.000    1.000    1.000
   .asr_nxdp_cmp_0    0.306    0.006   51.046    0.000    0.306    0.298
   .asr_wthdp_cm_0    0.477    0.008   61.553    0.000    0.477    0.453
   .asr_soma_cmp_0    0.555    0.008   65.819    0.000    0.555    0.550
   .asr_thprb_cm_0    0.471    0.007   64.805    0.000    0.471    0.433
   .asr_ttprb_cm_0    0.411    0.006   63.864    0.000    0.411    0.412
   .asr_rlbrk_cm_0    0.655    0.009   69.255    0.000    0.655    0.600
   .asr_ggrss_cm_0    0.450    0.007   64.192    0.000    0.450    0.427
   .asr_intr_cmp_0    0.902    0.012   74.847    0.000    0.902    0.844
   .asr_nxdp_cmp_2    0.338    0.007   52.031    0.000    0.338    0.332
   .asr_wthdp_cm_2    0.477    0.008   60.079    0.000    0.477    0.467
   .asr_soma_cmp_2    0.566    0.009   64.196    0.000    0.566    0.568
   .asr_thprb_cm_2    0.410    0.007   61.162    0.000    0.410    0.413
   .asr_ttprb_cm_2    0.386    0.006   60.870    0.000    0.386    0.410
   .asr_rlbrk_cm_2    0.598    0.009   66.189    0.000    0.598    0.592
   .asr_ggrss_cm_2    0.438    0.007   61.951    0.000    0.438    0.435
   .asr_intr_cmp_2    0.824    0.011   71.982    0.000    0.824    0.840
   .asr_nxdp_cmp_4    0.351    0.007   49.466    0.000    0.351    0.353
   .asr_wthdp_cm_4    0.454    0.008   56.172    0.000    0.454    0.469
   .asr_soma_cmp_4    0.558    0.009   59.957    0.000    0.558    0.579
   .asr_thprb_cm_4    0.380    0.007   56.491    0.000    0.380    0.408
   .asr_ttprb_cm_4    0.424    0.007   58.328    0.000    0.424    0.447
   .asr_rlbrk_cm_4    0.553    0.009   61.467    0.000    0.553    0.587
   .asr_ggrss_cm_4    0.416    0.007   57.997    0.000    0.416    0.436
   .asr_intr_cmp_4    0.810    0.012   67.720    0.000    0.810    0.845

R-Square:
                   Estimate
    asr_nxdp_cmp_0    0.702
    asr_wthdp_cm_0    0.547
    asr_soma_cmp_0    0.450
    asr_thprb_cm_0    0.567
    asr_ttprb_cm_0    0.588
    asr_rlbrk_cm_0    0.400
    asr_ggrss_cm_0    0.573
    asr_intr_cmp_0    0.156
    asr_nxdp_cmp_2    0.668
    asr_wthdp_cm_2    0.533
    asr_soma_cmp_2    0.432
    asr_thprb_cm_2    0.587
    asr_ttprb_cm_2    0.590
    asr_rlbrk_cm_2    0.408
    asr_ggrss_cm_2    0.565
    asr_intr_cmp_2    0.160
    asr_nxdp_cmp_4    0.647
    asr_wthdp_cm_4    0.531
    asr_soma_cmp_4    0.421
    asr_thprb_cm_4    0.592
    asr_ttprb_cm_4    0.553
    asr_rlbrk_cm_4    0.413
    asr_ggrss_cm_4    0.564
    asr_intr_cmp_4    0.155

Strong invariance model

model fit
pp.3t.strong.invar <- "#factor loadings (with constraints)
               a_etaB =~ 1*asr_anxdep_comp_0+
                         lambda_AW*asr_withdep_comp_0+
                         lambda_AS*asr_soma_comp_0+
                         lambda_AC*asr_thouprob_comp_0+
                         lambda_AH*asr_attprob_comp_0+
                         lambda_AA*asr_rulebreak_comp_0+
                         lambda_AR*asr_aggress_comp_0+
                         lambda_AG*asr_intru_comp_0
               a_eta2 =~ 1*asr_anxdep_comp_2+
                         lambda_AW*asr_withdep_comp_2+
                         lambda_AS*asr_soma_comp_2+
                         lambda_AC*asr_thouprob_comp_2+
                         lambda_AH*asr_attprob_comp_2+
                         lambda_AA*asr_rulebreak_comp_2+
                         lambda_AR*asr_aggress_comp_2+
                         lambda_AG*asr_intru_comp_2
               a_eta4 =~ 1*asr_anxdep_comp_4+
                         lambda_AW*asr_withdep_comp_4+
                         lambda_AS*asr_soma_comp_4+
                         lambda_AC*asr_thouprob_comp_4+
                         lambda_AH*asr_attprob_comp_4+
                         lambda_AA*asr_rulebreak_comp_4+
                         lambda_AR*asr_aggress_comp_4+
                         lambda_AG*asr_intru_comp_4

              #latent variable variances
                      a_etaB~~NA*a_etaB
                      a_eta2~~NA*a_eta2
                      a_eta4~~NA*a_eta4

              #latent variable covariances
                      a_etaB~~a_eta2 + a_eta4
                      a_eta2~~a_eta4

              #unique variances # No need to constrict these
                      asr_anxdep_comp_0~~asr_anxdep_comp_0
                      asr_withdep_comp_0~~asr_withdep_comp_0
                      asr_soma_comp_0~~asr_soma_comp_0
                      asr_thouprob_comp_0~~asr_thouprob_comp_0
                      asr_attprob_comp_0~~asr_attprob_comp_0
                      asr_rulebreak_comp_0~~asr_rulebreak_comp_0
                      asr_aggress_comp_0~~asr_aggress_comp_0
                      asr_intru_comp_0~~asr_intru_comp_0

                      asr_anxdep_comp_2~~asr_anxdep_comp_2
                      asr_withdep_comp_2~~asr_withdep_comp_2
                      asr_soma_comp_2~~asr_soma_comp_2
                      asr_thouprob_comp_2~~asr_thouprob_comp_2
                      asr_attprob_comp_2~~asr_attprob_comp_2
                      asr_rulebreak_comp_2~~asr_rulebreak_comp_2
                      asr_aggress_comp_2~~asr_aggress_comp_2
                      asr_intru_comp_2~~asr_intru_comp_2

                      asr_anxdep_comp_4~~asr_anxdep_comp_4
                      asr_withdep_comp_4~~asr_withdep_comp_4
                      asr_soma_comp_4~~asr_soma_comp_4
                      asr_thouprob_comp_4~~asr_thouprob_comp_4
                      asr_attprob_comp_4~~asr_attprob_comp_4
                      asr_rulebreak_comp_4~~asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_aggress_comp_4
                      asr_intru_comp_4~~asr_intru_comp_4

              #unique covariances
                      # Scores arcoss times
                      asr_anxdep_comp_0~~ asr_anxdep_comp_2 + asr_anxdep_comp_4
                      asr_anxdep_comp_2~~ asr_anxdep_comp_4

                      asr_withdep_comp_0 ~~ asr_withdep_comp_2 + asr_withdep_comp_4
                      asr_withdep_comp_2 ~~ asr_withdep_comp_4

                      asr_soma_comp_0~~ asr_soma_comp_2 + asr_soma_comp_4
                      asr_soma_comp_2~~ asr_soma_comp_4

                      asr_thouprob_comp_0~~ asr_thouprob_comp_2 + asr_thouprob_comp_4
                      asr_thouprob_comp_2~~ asr_thouprob_comp_4

                      asr_attprob_comp_0~~ asr_attprob_comp_2 + asr_attprob_comp_4
                      asr_attprob_comp_2~~ asr_attprob_comp_4

                      asr_rulebreak_comp_0~~ asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_rulebreak_comp_2~~ asr_rulebreak_comp_4

                      asr_aggress_comp_0~~ asr_aggress_comp_2 + asr_aggress_comp_4
                      asr_aggress_comp_2~~ asr_aggress_comp_4

                      asr_intru_comp_0~~ asr_intru_comp_2 + asr_intru_comp_4
                      asr_intru_comp_2~~ asr_intru_comp_4

                      # Internalizeing subscale covariances
                      asr_anxdep_comp_0~~asr_withdep_comp_0 + asr_soma_comp_0 + asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_2~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_4~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4

                      asr_withdep_comp_0~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_2~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_4~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4

                      # Externalizeing subscale covariances
                      asr_aggress_comp_0~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_2~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4

                      asr_intru_comp_0~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_2~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_4~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4

                      #latent variable intercepts
                      a_etaB~0*1
                      a_eta2~m2*1
                      a_eta4~m4*1

              #observed variable intercepts
                      asr_aggress_comp_0~tau_AR*1
                      asr_aggress_comp_2~tau_AR*1
                      asr_aggress_comp_4~tau_AR*1

                      asr_anxdep_comp_0~tau_AX*1
                      asr_anxdep_comp_2~tau_AX*1
                      asr_anxdep_comp_4~tau_AX*1

                      asr_attprob_comp_0~tau_AH*1
                      asr_attprob_comp_2~tau_AH*1
                      asr_attprob_comp_4~tau_AH*1

                      asr_intru_comp_0~tau_AG*1
                      asr_intru_comp_2~tau_AG*1
                      asr_intru_comp_4~tau_AG*1

                      asr_rulebreak_comp_0~tau_AA*1
                      asr_rulebreak_comp_2~tau_AA*1
                      asr_rulebreak_comp_4~tau_AA*1

                      asr_soma_comp_0~tau_AS*1
                      asr_soma_comp_2~tau_AS*1
                      asr_soma_comp_4~tau_AS*1

                      asr_thouprob_comp_0~tau_AP*1
                      asr_thouprob_comp_2~tau_AP*1
                      asr_thouprob_comp_4~tau_AP*1

                      asr_withdep_comp_0~tau_AW*1
                      asr_withdep_comp_2~tau_AW*1
                      asr_withdep_comp_4~tau_AW*1"

lavaan(pp.3t.strong.invar,
  data = pp_factor_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("pp_3t_strong.rds")
result
readRDS("pp_3t_strong.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pp_3t_strong_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pp_3t_strong.rds"), "cor.lv"))$value
[1] 2.4447037 0.3225134 0.2327829
readRDS("pp_3t_strong_result.rds")
lavaan 0.6-19 ended normally after 93 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       155
  Number of equality constraints                    30

                                                  Used       Total
  Number of observations                         11862       11865
  Number of missing patterns                         9            

Model Test User Model:
                                                      
  Test statistic                              4395.918
  Degrees of freedom                               199
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                            186988.711
  Degrees of freedom                               276
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.978
  Tucker-Lewis Index (TLI)                       0.969
                                                      
  Robust Comparative Fit Index (CFI)             0.978
  Robust Tucker-Lewis Index (TLI)                0.970

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -273438.822
  Loglikelihood unrestricted model (H1)    -271240.863
                                                      
  Akaike (AIC)                              547127.644
  Bayesian (BIC)                            548050.281
  Sample-size adjusted Bayesian (SABIC)     547653.045

Root Mean Square Error of Approximation:

  RMSEA                                          0.042
  90 Percent confidence interval - lower         0.041
  90 Percent confidence interval - upper         0.043
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.044
  90 Percent confidence interval - lower         0.043
  90 Percent confidence interval - upper         0.046
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.036

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.847    0.836
    asr___0 (l_AW)    0.894    0.007  125.990    0.000    0.757    0.738
    asr___0 (l_AS)    0.794    0.007  110.885    0.000    0.672    0.670
    asr___0 (l_AC)    0.930    0.008  123.882    0.000    0.787    0.753
    asr___0 (l_AH)    0.905    0.007  129.615    0.000    0.766    0.767
    asr___0 (l_AA)    0.783    0.008   97.319    0.000    0.663    0.634
    asr___0 (l_AR)    0.920    0.007  123.530    0.000    0.779    0.757
    asr___0 (l_AG)    0.484    0.008   58.859    0.000    0.410    0.396
  a_eta2 =~                                                             
    asr___2           1.000                               0.823    0.816
    asr___2 (l_AW)    0.894    0.007  125.990    0.000    0.736    0.729
    asr___2 (l_AS)    0.794    0.007  110.885    0.000    0.654    0.656
    asr___2 (l_AC)    0.930    0.008  123.882    0.000    0.765    0.767
    asr___2 (l_AH)    0.905    0.007  129.615    0.000    0.745    0.768
    asr___2 (l_AA)    0.783    0.008   97.319    0.000    0.644    0.640
    asr___2 (l_AR)    0.920    0.007  123.530    0.000    0.757    0.753
    asr___2 (l_AG)    0.484    0.008   58.859    0.000    0.399    0.402
  a_eta4 =~                                                             
    asr___4           1.000                               0.800    0.802
    asr___4 (l_AW)    0.894    0.007  125.990    0.000    0.715    0.727
    asr___4 (l_AS)    0.794    0.007  110.885    0.000    0.635    0.647
    asr___4 (l_AC)    0.930    0.008  123.882    0.000    0.744    0.770
    asr___4 (l_AH)    0.905    0.007  129.615    0.000    0.724    0.743
    asr___4 (l_AA)    0.783    0.008   97.319    0.000    0.626    0.643
    asr___4 (l_AR)    0.920    0.007  123.530    0.000    0.736    0.751
    asr___4 (l_AG)    0.484    0.008   58.859    0.000    0.387    0.395

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB ~~                                                                    
    a_eta2                   0.513    0.010   50.845    0.000    0.736    0.736
    a_eta4                   0.459    0.010   47.228    0.000    0.678    0.678
  a_eta2 ~~                                                                    
    a_eta4                   0.495    0.010   48.851    0.000    0.752    0.752
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.181    0.005   35.763    0.000    0.181    0.558
   .asr_nxdp_cmp_4           0.164    0.005   31.577    0.000    0.164    0.497
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.202    0.006   36.294    0.000    0.202    0.582
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.224    0.006   36.189    0.000    0.224    0.467
   .asr_wthdp_cm_4           0.201    0.006   32.114    0.000    0.201    0.430
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.221    0.006   34.620    0.000    0.221    0.473
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.281    0.007   40.882    0.000    0.281    0.500
   .asr_soma_cmp_4           0.243    0.007   34.933    0.000    0.243    0.436
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.287    0.007   39.181    0.000    0.287    0.510
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.192    0.005   34.929    0.000    0.192    0.436
   .asr_thprb_cm_4           0.158    0.005   28.843    0.000    0.158    0.374
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.165    0.005   31.079    0.000    0.165    0.418
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.258    0.005   48.373    0.000    0.258    0.646
   .asr_ttprb_cm_4           0.252    0.006   44.856    0.000    0.252    0.603
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.271    0.006   47.493    0.000    0.271    0.669
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.300    0.007   40.808    0.000    0.300    0.480
   .asr_rlbrk_cm_4           0.257    0.007   35.228    0.000    0.257    0.425
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.278    0.007   38.058    0.000    0.278    0.482
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.246    0.006   43.116    0.000    0.246    0.554
   .asr_ggrss_cm_4           0.221    0.006   38.910    0.000    0.221    0.509
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.250    0.006   42.437    0.000    0.250    0.584
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.497    0.010   51.798    0.000    0.497    0.577
   .asr_intr_cmp_4           0.467    0.010   47.855    0.000    0.467    0.546
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.476    0.010   49.577    0.000    0.476    0.583
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.014    0.005    2.791    0.005    0.014    0.037
   .asr_soma_cmp_0           0.028    0.005    5.349    0.000    0.028    0.068
   .asr_wthdp_cm_2           0.017    0.005    3.469    0.001    0.017    0.045
   .asr_soma_cmp_2           0.035    0.005    6.711    0.000    0.035    0.084
   .asr_wthdp_cm_4           0.014    0.005    2.803    0.005    0.014    0.038
   .asr_soma_cmp_4           0.032    0.005    5.826    0.000    0.032    0.077
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2           0.006    0.005    1.196    0.232    0.006    0.015
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.028    0.005    5.240    0.000    0.028    0.064
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.034    0.005    6.320    0.000    0.034    0.084
   .asr_soma_cmp_2           0.049    0.006    8.800    0.000    0.049    0.112
   .asr_wthdp_cm_4           0.020    0.005    3.858    0.000    0.020    0.052
   .asr_soma_cmp_4           0.030    0.006    5.319    0.000    0.030    0.069
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4          -0.003    0.005   -0.531    0.596   -0.003   -0.007
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.026    0.006    4.630    0.000    0.026    0.058
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.014    0.005    2.625    0.009    0.014    0.035
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.046    0.006    7.918    0.000    0.046    0.102
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.039    0.006    6.851    0.000    0.039    0.096
   .asr_soma_cmp_4           0.061    0.006   10.094    0.000    0.061    0.137
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.032    0.006   -5.556    0.000   -0.032   -0.063
   .asr_soma_cmp_2          -0.019    0.006   -3.280    0.001   -0.019   -0.037
   .asr_soma_cmp_4          -0.036    0.006   -5.849    0.000   -0.036   -0.070
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.013    0.006   -2.187    0.029   -0.013   -0.025
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.014    0.006   -2.311    0.021   -0.014   -0.027
   .asr_soma_cmp_4          -0.022    0.006   -3.560    0.000   -0.022   -0.043
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.016    0.006   -2.746    0.006   -0.016   -0.033
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.020    0.006   -3.182    0.001   -0.020   -0.039
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.021    0.006   -3.436    0.001   -0.021   -0.042
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.136    0.007   19.906    0.000    0.136    0.213
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.071    0.006   11.826    0.000    0.071    0.131
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.087    0.007   13.345    0.000    0.087    0.143
   .asr_rlbrk_cm_2           0.022    0.006    3.872    0.000    0.022    0.043
   .asr_intr_cmp_4           0.095    0.007   14.057    0.000    0.095    0.157
   .asr_rlbrk_cm_4           0.029    0.006    5.000    0.000    0.029    0.058
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.096    0.007   14.378    0.000    0.096    0.153
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.049    0.006    8.270    0.000    0.049    0.092
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.139    0.007   20.881    0.000    0.139    0.232
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.043    0.006    7.335    0.000    0.043    0.084
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.110    0.007   16.168    0.000    0.110    0.185
   .asr_rlbrk_cm_4           0.041    0.006    6.884    0.000    0.041    0.082
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.099    0.007   14.337    0.000    0.099    0.161
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.054    0.006    8.842    0.000    0.054    0.103
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.105    0.007   15.686    0.000    0.105    0.179
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.044    0.006    7.333    0.000    0.044    0.088
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.141    0.007   20.376    0.000    0.141    0.242
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.061    0.006   10.246    0.000    0.061    0.127
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.121    0.008   15.623    0.000    0.121    0.158
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.068    0.007    9.089    0.000    0.068    0.093
   .asr_rlbrk_cm_4           0.073    0.008    9.572    0.000    0.073    0.104
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.073    0.008    9.594    0.000    0.073    0.099
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.112    0.007   15.148    0.000    0.112    0.159
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.072    0.007    9.630    0.000    0.072    0.106
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.086    0.008   10.931    0.000    0.086    0.117
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.078    0.008   10.253    0.000    0.078    0.113
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.111    0.008   14.637    0.000    0.111    0.165

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    a_etaB            0.000                               0.000    0.000
    a_eta2    (m2)   -0.025    0.006   -3.992    0.000   -0.031   -0.031
    a_eta4    (m4)   -0.047    0.007   -6.533    0.000   -0.059   -0.059
   .asr___0 (t_AR)    0.025    0.009    2.745    0.006    0.025    0.024
   .asr___2 (t_AR)    0.025    0.009    2.745    0.006    0.025    0.025
   .asr___4 (t_AR)    0.025    0.009    2.745    0.006    0.025    0.025
   .asr___0 (t_AX)    0.020    0.009    2.185    0.029    0.020    0.020
   .asr___2 (t_AX)    0.020    0.009    2.185    0.029    0.020    0.020
   .asr___4 (t_AX)    0.020    0.009    2.185    0.029    0.020    0.020
   .asr___0 (t_AH)    0.023    0.009    2.601    0.009    0.023    0.023
   .asr___2 (t_AH)    0.023    0.009    2.601    0.009    0.023    0.024
   .asr___4 (t_AH)    0.023    0.009    2.601    0.009    0.023    0.024
   .asr___0 (t_AG)    0.012    0.008    1.452    0.146    0.012    0.012
   .asr___2 (t_AG)    0.012    0.008    1.452    0.146    0.012    0.012
   .asr___4 (t_AG)    0.012    0.008    1.452    0.146    0.012    0.012
   .asr___0 (t_AA)    0.026    0.009    3.057    0.002    0.026    0.025
   .asr___2 (t_AA)    0.026    0.009    3.057    0.002    0.026    0.026
   .asr___4 (t_AA)    0.026    0.009    3.057    0.002    0.026    0.027
   .asr___0 (t_AS)    0.018    0.008    2.154    0.031    0.018    0.018
   .asr___2 (t_AS)    0.018    0.008    2.154    0.031    0.018    0.018
   .asr___4 (t_AS)    0.018    0.008    2.154    0.031    0.018    0.019
   .asr___0 (t_AP)    0.024    0.009    2.698    0.007    0.024    0.023
   .asr___2 (t_AP)    0.024    0.009    2.698    0.007    0.024    0.024
   .asr___4 (t_AP)    0.024    0.009    2.698    0.007    0.024    0.025
   .asr___0 (t_AW)    0.025    0.009    2.866    0.004    0.025    0.025
   .asr___2 (t_AW)    0.025    0.009    2.866    0.004    0.025    0.025
   .asr___4 (t_AW)    0.025    0.009    2.866    0.004    0.025    0.026

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    a_etaB            0.717    0.012   59.261    0.000    1.000    1.000
    a_eta2            0.677    0.012   56.277    0.000    1.000    1.000
    a_eta4            0.640    0.012   53.186    0.000    1.000    1.000
   .asr_nxdp_cmp_0    0.308    0.006   51.197    0.000    0.308    0.301
   .asr_wthdp_cm_0    0.480    0.008   61.615    0.000    0.480    0.456
   .asr_soma_cmp_0    0.556    0.008   65.850    0.000    0.556    0.552
   .asr_thprb_cm_0    0.472    0.007   64.550    0.000    0.472    0.432
   .asr_ttprb_cm_0    0.411    0.006   63.803    0.000    0.411    0.412
   .asr_rlbrk_cm_0    0.655    0.009   69.075    0.000    0.655    0.599
   .asr_ggrss_cm_0    0.451    0.007   63.879    0.000    0.451    0.426
   .asr_intr_cmp_0    0.902    0.012   74.787    0.000    0.902    0.843
   .asr_nxdp_cmp_2    0.340    0.007   52.178    0.000    0.340    0.334
   .asr_wthdp_cm_2    0.478    0.008   60.174    0.000    0.478    0.469
   .asr_soma_cmp_2    0.567    0.009   64.251    0.000    0.567    0.570
   .asr_thprb_cm_2    0.410    0.007   61.040    0.000    0.410    0.412
   .asr_ttprb_cm_2    0.387    0.006   60.857    0.000    0.387    0.411
   .asr_rlbrk_cm_2    0.598    0.009   66.116    0.000    0.598    0.590
   .asr_ggrss_cm_2    0.438    0.007   61.833    0.000    0.438    0.433
   .asr_intr_cmp_2    0.824    0.011   71.955    0.000    0.824    0.838
   .asr_nxdp_cmp_4    0.354    0.007   49.508    0.000    0.354    0.356
   .asr_wthdp_cm_4    0.456    0.008   56.200    0.000    0.456    0.471
   .asr_soma_cmp_4    0.560    0.009   59.943    0.000    0.560    0.581
   .asr_thprb_cm_4    0.380    0.007   56.269    0.000    0.380    0.407
   .asr_ttprb_cm_4    0.425    0.007   58.210    0.000    0.425    0.448
   .asr_rlbrk_cm_4    0.555    0.009   61.252    0.000    0.555    0.586
   .asr_ggrss_cm_4    0.419    0.007   57.631    0.000    0.419    0.436
   .asr_intr_cmp_4    0.810    0.012   67.672    0.000    0.810    0.844

R-Square:
                   Estimate
    asr_nxdp_cmp_0    0.699
    asr_wthdp_cm_0    0.544
    asr_soma_cmp_0    0.448
    asr_thprb_cm_0    0.568
    asr_ttprb_cm_0    0.588
    asr_rlbrk_cm_0    0.401
    asr_ggrss_cm_0    0.574
    asr_intr_cmp_0    0.157
    asr_nxdp_cmp_2    0.666
    asr_wthdp_cm_2    0.531
    asr_soma_cmp_2    0.430
    asr_thprb_cm_2    0.588
    asr_ttprb_cm_2    0.589
    asr_rlbrk_cm_2    0.410
    asr_ggrss_cm_2    0.567
    asr_intr_cmp_2    0.162
    asr_nxdp_cmp_4    0.644
    asr_wthdp_cm_4    0.529
    asr_soma_cmp_4    0.419
    asr_thprb_cm_4    0.593
    asr_ttprb_cm_4    0.552
    asr_rlbrk_cm_4    0.414
    asr_ggrss_cm_4    0.564
    asr_intr_cmp_4    0.156

Latent growth curve model

model fit
lg.pp.3t.strong.invar <- "#factor loadings (with constraints)
               a_etaB =~ 1*asr_anxdep_comp_0+
                       lambda_AW*asr_withdep_comp_0+
                       lambda_AS*asr_soma_comp_0+
                       lambda_AC*asr_thouprob_comp_0+
                       lambda_AH*asr_attprob_comp_0+
                       lambda_AA*asr_rulebreak_comp_0+
                       lambda_AR*asr_aggress_comp_0+
                       lambda_AG*asr_intru_comp_0
               a_eta2 =~ 1*asr_anxdep_comp_2+
                       lambda_AW*asr_withdep_comp_2+
                       lambda_AS*asr_soma_comp_2+
                       lambda_AC*asr_thouprob_comp_2+
                       lambda_AH*asr_attprob_comp_2+
                       lambda_AA*asr_rulebreak_comp_2+
                       lambda_AR*asr_aggress_comp_2+
                       lambda_AG*asr_intru_comp_2
               a_eta4 =~ 1*asr_anxdep_comp_4+
                       lambda_AW*asr_withdep_comp_4+
                       lambda_AS*asr_soma_comp_4+
                       lambda_AC*asr_thouprob_comp_4+
                       lambda_AH*asr_attprob_comp_4+
                       lambda_AA*asr_rulebreak_comp_4+
                       lambda_AR*asr_aggress_comp_4+
                       lambda_AG*asr_intru_comp_4

              #latent variable variances
                      a_etaB~~NA*a_etaB
                      a_eta2~~NA*a_eta2
                      a_eta4~~NA*a_eta4

              #unique variances # No need to constrict these
                      asr_anxdep_comp_0~~asr_anxdep_comp_0
                      asr_withdep_comp_0~~asr_withdep_comp_0
                      asr_soma_comp_0~~asr_soma_comp_0
                      asr_thouprob_comp_0~~asr_thouprob_comp_0
                      asr_attprob_comp_0~~asr_attprob_comp_0
                      asr_rulebreak_comp_0~~asr_rulebreak_comp_0
                      asr_aggress_comp_0~~asr_aggress_comp_0
                      asr_intru_comp_0~~asr_intru_comp_0

                      asr_anxdep_comp_2~~asr_anxdep_comp_2
                      asr_withdep_comp_2~~asr_withdep_comp_2
                      asr_soma_comp_2~~asr_soma_comp_2
                      asr_thouprob_comp_2~~asr_thouprob_comp_2
                      asr_attprob_comp_2~~asr_attprob_comp_2
                      asr_rulebreak_comp_2~~asr_rulebreak_comp_2
                      asr_aggress_comp_2~~asr_aggress_comp_2
                      asr_intru_comp_2~~asr_intru_comp_2

                      asr_anxdep_comp_4~~asr_anxdep_comp_4
                      asr_withdep_comp_4~~asr_withdep_comp_4
                      asr_soma_comp_4~~asr_soma_comp_4
                      asr_thouprob_comp_4~~asr_thouprob_comp_4
                      asr_attprob_comp_4~~asr_attprob_comp_4
                      asr_rulebreak_comp_4~~asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_aggress_comp_4
                      asr_intru_comp_4~~asr_intru_comp_4

              #unique covariances
                      # Scores arcoss times
                      asr_anxdep_comp_0~~ asr_anxdep_comp_2 + asr_anxdep_comp_4
                      asr_anxdep_comp_2~~ asr_anxdep_comp_4

                      asr_withdep_comp_0 ~~ asr_withdep_comp_2 + asr_withdep_comp_4
                      asr_withdep_comp_2 ~~ asr_withdep_comp_4

                      asr_soma_comp_0~~ asr_soma_comp_2 + asr_soma_comp_4
                      asr_soma_comp_2~~ asr_soma_comp_4

                      asr_thouprob_comp_0~~ asr_thouprob_comp_2 + asr_thouprob_comp_4
                      asr_thouprob_comp_2~~ asr_thouprob_comp_4

                      asr_attprob_comp_0~~ asr_attprob_comp_2 + asr_attprob_comp_4
                      asr_attprob_comp_2~~ asr_attprob_comp_4

                      asr_rulebreak_comp_0~~ asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_rulebreak_comp_2~~ asr_rulebreak_comp_4

                      asr_aggress_comp_0~~ asr_aggress_comp_2 + asr_aggress_comp_4
                      asr_aggress_comp_2~~ asr_aggress_comp_4

                      asr_intru_comp_0~~ asr_intru_comp_2 + asr_intru_comp_4
                      asr_intru_comp_2~~ asr_intru_comp_4

                      # Internalizeing subscale covariances
                      asr_anxdep_comp_0~~asr_withdep_comp_0 + asr_soma_comp_0 + asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_2~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_4~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4

                      asr_withdep_comp_0~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_2~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_4~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4

                      # Externalizeing subscale covariances
                      asr_aggress_comp_0~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_2~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4

                      asr_intru_comp_0~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_2~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_4~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4

              #observed variable intercepts
                      asr_anxdep_comp_0~tau_AX*1
                      asr_withdep_comp_0~tau_AW*1
                      asr_soma_comp_0~tau_AS*1
                      asr_thouprob_comp_0~tau_AP*1
                      asr_attprob_comp_0~tau_AH*1
                      asr_rulebreak_comp_0~tau_AA*1
                      asr_aggress_comp_0~tau_AR*1
                      asr_intru_comp_0~tau_AG*1

                      asr_anxdep_comp_2~tau_AX*1
                      asr_withdep_comp_2~tau_AW*1
                      asr_soma_comp_2~tau_AS*1
                      asr_thouprob_comp_2~tau_AP*1
                      asr_attprob_comp_2~tau_AH*1
                      asr_rulebreak_comp_2~tau_AA*1
                      asr_aggress_comp_2~tau_AR*1
                      asr_intru_comp_2~tau_AG*1

                      asr_anxdep_comp_4~tau_AX*1
                      asr_withdep_comp_4~tau_AW*1
                      asr_soma_comp_4~tau_AS*1
                      asr_thouprob_comp_4~tau_AP*1
                      asr_attprob_comp_4~tau_AH*1
                      asr_rulebreak_comp_4~tau_AA*1
                      asr_aggress_comp_4~tau_AR*1
                      asr_intru_comp_4~tau_AG*1

                      #latent basis model
                      a_i =~ 1*a_etaB+1*a_eta2+1*a_eta4
                      a_s =~ 0*a_etaB+1*a_eta2+2*a_eta4
                      a_i~~NA*a_i
                      a_s~~NA*a_s
                      a_i~~a_s
                      a_i~1
                      a_s~1
                      a_etaB~0*1
                      a_eta2~0*1
                      a_eta4~0*1"

lavaan(lg.pp.3t.strong.invar,
  data = pp_factor_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("lgcm_pp_3t_model.rds")
result
readRDS("lgcm_pp_3t_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("lgcm_pp_3t_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("lgcm_pp_3t_model.rds"), "cor.lv"))$value
[1] 3.35465801 1.18956762 0.23586793 0.16894611 0.05096033
readRDS("lgcm_pp_3t_result.rds")
lavaan 0.6-19 ended normally after 79 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       155
  Number of equality constraints                    30

                                                  Used       Total
  Number of observations                         11862       11865
  Number of missing patterns                         9            

Model Test User Model:
                                                      
  Test statistic                              4396.036
  Degrees of freedom                               199
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                            186988.711
  Degrees of freedom                               276
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.978
  Tucker-Lewis Index (TLI)                       0.969
                                                      
  Robust Comparative Fit Index (CFI)             0.978
  Robust Tucker-Lewis Index (TLI)                0.970

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -273438.881
  Loglikelihood unrestricted model (H1)    -271240.863
                                                      
  Akaike (AIC)                              547127.761
  Bayesian (BIC)                            548050.398
  Sample-size adjusted Bayesian (SABIC)     547653.163

Root Mean Square Error of Approximation:

  RMSEA                                          0.042
  90 Percent confidence interval - lower         0.041
  90 Percent confidence interval - upper         0.043
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.044
  90 Percent confidence interval - lower         0.043
  90 Percent confidence interval - upper         0.046
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.036

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.847    0.836
    asr___0 (l_AW)    0.894    0.007  125.991    0.000    0.757    0.738
    asr___0 (l_AS)    0.794    0.007  110.886    0.000    0.672    0.670
    asr___0 (l_AC)    0.930    0.008  123.885    0.000    0.787    0.753
    asr___0 (l_AH)    0.905    0.007  129.618    0.000    0.766    0.767
    asr___0 (l_AA)    0.783    0.008   97.319    0.000    0.663    0.634
    asr___0 (l_AR)    0.920    0.007  123.531    0.000    0.779    0.757
    asr___0 (l_AG)    0.484    0.008   58.859    0.000    0.410    0.396
  a_eta2 =~                                                             
    asr___2           1.000                               0.823    0.816
    asr___2 (l_AW)    0.894    0.007  125.991    0.000    0.736    0.729
    asr___2 (l_AS)    0.794    0.007  110.886    0.000    0.654    0.656
    asr___2 (l_AC)    0.930    0.008  123.885    0.000    0.765    0.767
    asr___2 (l_AH)    0.905    0.007  129.618    0.000    0.745    0.768
    asr___2 (l_AA)    0.783    0.008   97.319    0.000    0.644    0.640
    asr___2 (l_AR)    0.920    0.007  123.531    0.000    0.757    0.753
    asr___2 (l_AG)    0.484    0.008   58.859    0.000    0.399    0.402
  a_eta4 =~                                                             
    asr___4           1.000                               0.800    0.802
    asr___4 (l_AW)    0.894    0.007  125.991    0.000    0.715    0.727
    asr___4 (l_AS)    0.794    0.007  110.886    0.000    0.635    0.647
    asr___4 (l_AC)    0.930    0.008  123.885    0.000    0.744    0.770
    asr___4 (l_AH)    0.905    0.007  129.618    0.000    0.724    0.743
    asr___4 (l_AA)    0.783    0.008   97.319    0.000    0.626    0.643
    asr___4 (l_AR)    0.920    0.007  123.531    0.000    0.736    0.751
    asr___4 (l_AG)    0.484    0.008   58.859    0.000    0.387    0.395
  a_i =~                                                                
    a_etaB            1.000                               0.889    0.889
    a_eta2            1.000                               0.915    0.915
    a_eta4            1.000                               0.942    0.942
  a_s =~                                                                
    a_etaB            0.000                               0.000    0.000
    a_eta2            1.000                               0.257    0.257
    a_eta4            2.000                               0.528    0.528

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.181    0.005   35.766    0.000    0.181    0.558
   .asr_nxdp_cmp_4           0.164    0.005   31.577    0.000    0.164    0.497
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.202    0.006   36.293    0.000    0.202    0.582
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.224    0.006   36.191    0.000    0.224    0.467
   .asr_wthdp_cm_4           0.201    0.006   32.113    0.000    0.201    0.430
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.221    0.006   34.619    0.000    0.221    0.473
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.281    0.007   40.884    0.000    0.281    0.500
   .asr_soma_cmp_4           0.243    0.007   34.933    0.000    0.243    0.436
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.287    0.007   39.180    0.000    0.287    0.510
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.192    0.005   34.927    0.000    0.192    0.436
   .asr_thprb_cm_4           0.158    0.005   28.843    0.000    0.158    0.374
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.165    0.005   31.080    0.000    0.165    0.418
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.258    0.005   48.373    0.000    0.258    0.646
   .asr_ttprb_cm_4           0.252    0.006   44.856    0.000    0.252    0.603
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.271    0.006   47.492    0.000    0.271    0.669
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.300    0.007   40.807    0.000    0.300    0.480
   .asr_rlbrk_cm_4           0.257    0.007   35.228    0.000    0.257    0.425
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.278    0.007   38.060    0.000    0.278    0.483
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.246    0.006   43.115    0.000    0.246    0.554
   .asr_ggrss_cm_4           0.221    0.006   38.910    0.000    0.221    0.509
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.250    0.006   42.443    0.000    0.250    0.584
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.497    0.010   51.798    0.000    0.497    0.577
   .asr_intr_cmp_4           0.467    0.010   47.855    0.000    0.467    0.546
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.476    0.010   49.577    0.000    0.476    0.583
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.014    0.005    2.788    0.005    0.014    0.037
   .asr_soma_cmp_0           0.028    0.005    5.347    0.000    0.028    0.068
   .asr_wthdp_cm_2           0.017    0.005    3.471    0.001    0.017    0.045
   .asr_soma_cmp_2           0.035    0.005    6.712    0.000    0.035    0.084
   .asr_wthdp_cm_4           0.014    0.005    2.803    0.005    0.014    0.038
   .asr_soma_cmp_4           0.032    0.005    5.825    0.000    0.032    0.077
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2           0.006    0.005    1.199    0.230    0.006    0.015
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.028    0.005    5.242    0.000    0.028    0.064
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.034    0.005    6.317    0.000    0.034    0.084
   .asr_soma_cmp_2           0.049    0.006    8.798    0.000    0.049    0.112
   .asr_wthdp_cm_4           0.020    0.005    3.856    0.000    0.020    0.052
   .asr_soma_cmp_4           0.030    0.006    5.316    0.000    0.030    0.069
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4          -0.003    0.005   -0.531    0.595   -0.003   -0.007
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.026    0.006    4.630    0.000    0.026    0.058
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.014    0.005    2.622    0.009    0.014    0.035
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.046    0.006    7.915    0.000    0.046    0.102
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.039    0.006    6.853    0.000    0.039    0.096
   .asr_soma_cmp_4           0.061    0.006   10.096    0.000    0.061    0.137
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.032    0.006   -5.558    0.000   -0.032   -0.063
   .asr_soma_cmp_2          -0.019    0.006   -3.278    0.001   -0.019   -0.037
   .asr_soma_cmp_4          -0.036    0.006   -5.849    0.000   -0.036   -0.070
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.013    0.006   -2.186    0.029   -0.013   -0.025
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.014    0.006   -2.313    0.021   -0.014   -0.027
   .asr_soma_cmp_4          -0.022    0.006   -3.562    0.000   -0.022   -0.043
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.016    0.006   -2.746    0.006   -0.016   -0.033
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.020    0.006   -3.184    0.001   -0.020   -0.039
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.021    0.006   -3.435    0.001   -0.021   -0.042
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.136    0.007   19.907    0.000    0.136    0.213
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.071    0.006   11.828    0.000    0.071    0.131
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.087    0.007   13.343    0.000    0.087    0.143
   .asr_rlbrk_cm_2           0.022    0.006    3.870    0.000    0.022    0.043
   .asr_intr_cmp_4           0.095    0.007   14.057    0.000    0.095    0.157
   .asr_rlbrk_cm_4           0.029    0.006    5.000    0.000    0.029    0.058
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.096    0.007   14.377    0.000    0.096    0.153
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.049    0.006    8.269    0.000    0.049    0.092
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.139    0.007   20.882    0.000    0.139    0.232
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.043    0.006    7.337    0.000    0.043    0.084
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.110    0.007   16.169    0.000    0.110    0.185
   .asr_rlbrk_cm_4           0.041    0.006    6.888    0.000    0.041    0.082
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.099    0.007   14.338    0.000    0.099    0.161
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.054    0.006    8.842    0.000    0.054    0.103
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.105    0.007   15.689    0.000    0.105    0.179
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.044    0.006    7.336    0.000    0.044    0.088
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.141    0.007   20.376    0.000    0.141    0.242
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.061    0.006   10.244    0.000    0.061    0.127
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.121    0.008   15.624    0.000    0.121    0.158
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.068    0.007    9.089    0.000    0.068    0.093
   .asr_rlbrk_cm_4           0.073    0.008    9.573    0.000    0.073    0.104
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.073    0.008    9.593    0.000    0.073    0.099
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.112    0.007   15.149    0.000    0.112    0.159
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.072    0.007    9.632    0.000    0.072    0.106
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.086    0.008   10.931    0.000    0.086    0.117
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.078    0.008   10.254    0.000    0.078    0.113
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.111    0.008   14.636    0.000    0.111    0.165
  a_i ~~                                                                       
    a_s                     -0.054    0.006   -9.013    0.000   -0.339   -0.339

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .asr___0 (t_AX)   -0.007    0.004   -1.653    0.098   -0.007   -0.007
   .asr___0 (t_AW)    0.001    0.005    0.254    0.800    0.001    0.001
   .asr___0 (t_AS)   -0.003    0.005   -0.554    0.580   -0.003   -0.003
   .asr___0 (t_AP)   -0.001    0.005   -0.248    0.804   -0.001   -0.001
   .asr___0 (t_AH)   -0.001    0.005   -0.257    0.797   -0.001   -0.001
   .asr___0 (t_AA)    0.005    0.005    0.975    0.330    0.005    0.005
   .asr___0 (t_AR)    0.000    0.005    0.003    0.998    0.000    0.000
   .asr___0 (t_AG)   -0.001    0.007   -0.134    0.893   -0.001   -0.001
   .asr___2 (t_AX)   -0.007    0.004   -1.653    0.098   -0.007   -0.007
   .asr___2 (t_AW)    0.001    0.005    0.254    0.800    0.001    0.001
   .asr___2 (t_AS)   -0.003    0.005   -0.554    0.580   -0.003   -0.003
   .asr___2 (t_AP)   -0.001    0.005   -0.248    0.804   -0.001   -0.001
   .asr___2 (t_AH)   -0.001    0.005   -0.257    0.797   -0.001   -0.001
   .asr___2 (t_AA)    0.005    0.005    0.975    0.330    0.005    0.005
   .asr___2 (t_AR)    0.000    0.005    0.003    0.998    0.000    0.000
   .asr___2 (t_AG)   -0.001    0.007   -0.134    0.893   -0.001   -0.001
   .asr___4 (t_AX)   -0.007    0.004   -1.653    0.098   -0.007   -0.007
   .asr___4 (t_AW)    0.001    0.005    0.254    0.800    0.001    0.001
   .asr___4 (t_AS)   -0.003    0.005   -0.554    0.580   -0.003   -0.003
   .asr___4 (t_AP)   -0.001    0.005   -0.248    0.804   -0.001   -0.001
   .asr___4 (t_AH)   -0.001    0.005   -0.257    0.797   -0.001   -0.001
   .asr___4 (t_AA)    0.005    0.005    0.975    0.330    0.005    0.005
   .asr___4 (t_AR)    0.000    0.005    0.003    0.998    0.000    0.000
   .asr___4 (t_AG)   -0.001    0.007   -0.134    0.893   -0.001   -0.001
    a_i               0.026    0.008    3.422    0.001    0.035    0.035
    a_s              -0.024    0.004   -6.541    0.000   -0.111   -0.111
   .a_etaB            0.000                               0.000    0.000
   .a_eta2            0.000                               0.000    0.000
   .a_eta4            0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .a_etaB            0.150    0.010   15.131    0.000    0.209    0.209
   .a_eta2            0.173    0.005   32.248    0.000    0.256    0.256
   .a_eta4            0.110    0.010   11.418    0.000    0.171    0.171
   .asr_nxdp_cmp_0    0.308    0.006   51.197    0.000    0.308    0.301
   .asr_wthdp_cm_0    0.480    0.008   61.615    0.000    0.480    0.456
   .asr_soma_cmp_0    0.556    0.008   65.851    0.000    0.556    0.552
   .asr_thprb_cm_0    0.472    0.007   64.551    0.000    0.472    0.432
   .asr_ttprb_cm_0    0.411    0.006   63.803    0.000    0.411    0.412
   .asr_rlbrk_cm_0    0.655    0.009   69.075    0.000    0.655    0.599
   .asr_ggrss_cm_0    0.451    0.007   63.880    0.000    0.451    0.426
   .asr_intr_cmp_0    0.902    0.012   74.787    0.000    0.902    0.843
   .asr_nxdp_cmp_2    0.340    0.007   52.180    0.000    0.340    0.334
   .asr_wthdp_cm_2    0.478    0.008   60.175    0.000    0.478    0.469
   .asr_soma_cmp_2    0.567    0.009   64.252    0.000    0.567    0.570
   .asr_thprb_cm_2    0.410    0.007   61.042    0.000    0.410    0.412
   .asr_ttprb_cm_2    0.387    0.006   60.858    0.000    0.387    0.411
   .asr_rlbrk_cm_2    0.598    0.009   66.116    0.000    0.598    0.590
   .asr_ggrss_cm_2    0.438    0.007   61.833    0.000    0.438    0.433
   .asr_intr_cmp_2    0.824    0.011   71.955    0.000    0.824    0.838
   .asr_nxdp_cmp_4    0.354    0.007   49.509    0.000    0.354    0.356
   .asr_wthdp_cm_4    0.456    0.008   56.199    0.000    0.456    0.471
   .asr_soma_cmp_4    0.560    0.009   59.943    0.000    0.560    0.581
   .asr_thprb_cm_4    0.380    0.007   56.270    0.000    0.380    0.407
   .asr_ttprb_cm_4    0.425    0.007   58.211    0.000    0.425    0.448
   .asr_rlbrk_cm_4    0.555    0.009   61.253    0.000    0.555    0.586
   .asr_ggrss_cm_4    0.419    0.007   57.633    0.000    0.419    0.436
   .asr_intr_cmp_4    0.810    0.012   67.672    0.000    0.810    0.844
    a_i               0.567    0.013   42.193    0.000    1.000    1.000
    a_s               0.045    0.005    9.073    0.000    1.000    1.000

R-Square:
                   Estimate
    a_etaB            0.791
    a_eta2            0.744
    a_eta4            0.829
    asr_nxdp_cmp_0    0.699
    asr_wthdp_cm_0    0.544
    asr_soma_cmp_0    0.448
    asr_thprb_cm_0    0.568
    asr_ttprb_cm_0    0.588
    asr_rlbrk_cm_0    0.401
    asr_ggrss_cm_0    0.574
    asr_intr_cmp_0    0.157
    asr_nxdp_cmp_2    0.666
    asr_wthdp_cm_2    0.531
    asr_soma_cmp_2    0.430
    asr_thprb_cm_2    0.588
    asr_ttprb_cm_2    0.589
    asr_rlbrk_cm_2    0.410
    asr_ggrss_cm_2    0.567
    asr_intr_cmp_2    0.162
    asr_nxdp_cmp_4    0.644
    asr_wthdp_cm_4    0.529
    asr_soma_cmp_4    0.419
    asr_thprb_cm_4    0.593
    asr_ttprb_cm_4    0.552
    asr_rlbrk_cm_4    0.414
    asr_ggrss_cm_4    0.564
    asr_intr_cmp_4    0.156
ICC
lavPredict(readRDS("lgcm_pp_3t_model.rds"),
  newdata = pp_factor_wide.scaled,
  append.data = T
) %>%
  data.frame() %>%
  select(contains(c("a_eta"))) %>%
  ICC(lmer = T) %>%
  saveRDS("pp_3t_icc.rds")
readRDS("pp_3t_icc.rds") %>%
  {
    \(x) x$results
  }() %>%
  knitr::kable()
type ICC F df1 df2 p lower bound upper bound
Single_raters_absolute ICC1 0.7634206 10.68073 11864 23730 0 0.7571602 0.7695813
Single_random_raters ICC2 0.7634947 10.72330 11864 23728 0 0.7570760 0.7698020
Single_fixed_raters ICC3 0.7642120 10.72330 11864 23728 0 0.7579685 0.7703559
Average_raters_absolute ICC1k 0.9063735 10.68073 11864 23730 0 0.9034173 0.9092540
Average_random_raters ICC2k 0.9064083 10.72330 11864 23728 0 0.9033774 0.9093567
Average_fixed_raters ICC3k 0.9067451 10.72330 11864 23728 0 0.9038006 0.9096143
LGCM plot
lgcm_plot(readRDS("lgcm_pp_3t_model.rds")) +
  labs(y = "Parent's\nPsychopathology") +
  scale_x_continuous(
    breaks = seq(0, 2, 1),
    labels = c("10", "12", "14")
  ) +
  # add significant results for intercept and slope
  annotate(geom = "text", x = 1.5, y = 0.023, label = 'paste(" ",italic("i")," =  .026***")', parse = TRUE, size = 10) +
  annotate(geom = "text", x = 1.5, y = 0.016, label = 'paste(italic("s")," = -.024***")', parse = TRUE, size = 10)

Model comparison

lapply(
  c(
    "pp_3t_config_result.rds",
    "pp_3t_weak_result.rds",
    "pp_3t_strong_result.rds",
    "lgcm_pp_3t_result.rds"
  ),
  function(f) {
    readRDS(f)$fit[c(
      "chisq", "df", "pvalue",
      "cfi.robust", "tli.robust",
      "rmsea.robust", "rmsea.ci.lower.robust",
      "rmsea.ci.upper.robust", "srmr"
    )]
  }
) %>%
  do.call(rbind, .) %>%
  round(3) %>%
  data.frame(model = c("config", "weak", "strong", "LGCM"), ., row.names = NULL) %>%
  knitr::kable()
model chisq df pvalue cfi.robust tli.robust rmsea.robust rmsea.ci.lower.robust rmsea.ci.upper.robust srmr
config 3505.862 171 0 0.983 0.973 0.042 0.041 0.044 0.031
weak 3872.010 185 0 0.981 0.972 0.043 0.042 0.044 0.035
strong 4395.918 199 0 0.978 0.970 0.044 0.043 0.046 0.036
LGCM 4396.036 199 0 0.978 0.970 0.044 0.043 0.046 0.036

Parallel Latent Growth Curve Modeling

p factor model

pc ~ pp + g model

Children’s psychopathology (pc) was regressed on parental psychopathology (pp) and children’s cognitive functioning (g).

model fit
pga6.model <- "# second-order pp factor
               #factor loadings (with constraints)
               a_etaB =~ 1*asr_anxdep_comp_0+
                       lambda_AW*asr_withdep_comp_0+
                       lambda_AS*asr_soma_comp_0+
                       lambda_AC*asr_thouprob_comp_0+
                       lambda_AH*asr_attprob_comp_0+
                       lambda_AA*asr_rulebreak_comp_0+
                       lambda_AR*asr_aggress_comp_0+
                       lambda_AG*asr_intru_comp_0
               a_eta2 =~ 1*asr_anxdep_comp_2+
                       lambda_AW*asr_withdep_comp_2+
                       lambda_AS*asr_soma_comp_2+
                       lambda_AC*asr_thouprob_comp_2+
                       lambda_AH*asr_attprob_comp_2+
                       lambda_AA*asr_rulebreak_comp_2+
                       lambda_AR*asr_aggress_comp_2+
                       lambda_AG*asr_intru_comp_2
               a_eta4 =~ 1*asr_anxdep_comp_4+
                       lambda_AW*asr_withdep_comp_4+
                       lambda_AS*asr_soma_comp_4+
                       lambda_AC*asr_thouprob_comp_4+
                       lambda_AH*asr_attprob_comp_4+
                       lambda_AA*asr_rulebreak_comp_4+
                       lambda_AR*asr_aggress_comp_4+
                       lambda_AG*asr_intru_comp_4

              #latent variable variances
                      a_etaB~~NA*a_etaB
                      a_eta2~~NA*a_eta2
                      a_eta4~~NA*a_eta4

              #unique variances # No need to constrict these
                      asr_anxdep_comp_0~~asr_anxdep_comp_0
                      asr_withdep_comp_0~~asr_withdep_comp_0
                      asr_soma_comp_0~~asr_soma_comp_0
                      asr_thouprob_comp_0~~asr_thouprob_comp_0
                      asr_attprob_comp_0~~asr_attprob_comp_0
                      asr_rulebreak_comp_0~~asr_rulebreak_comp_0
                      asr_aggress_comp_0~~asr_aggress_comp_0
                      asr_intru_comp_0~~asr_intru_comp_0

                      asr_anxdep_comp_2~~asr_anxdep_comp_2
                      asr_withdep_comp_2~~asr_withdep_comp_2
                      asr_soma_comp_2~~asr_soma_comp_2
                      asr_thouprob_comp_2~~asr_thouprob_comp_2
                      asr_attprob_comp_2~~asr_attprob_comp_2
                      asr_rulebreak_comp_2~~asr_rulebreak_comp_2
                      asr_aggress_comp_2~~asr_aggress_comp_2
                      asr_intru_comp_2~~asr_intru_comp_2

                      asr_anxdep_comp_4~~asr_anxdep_comp_4
                      asr_withdep_comp_4~~asr_withdep_comp_4
                      asr_soma_comp_4~~asr_soma_comp_4
                      asr_thouprob_comp_4~~asr_thouprob_comp_4
                      asr_attprob_comp_4~~asr_attprob_comp_4
                      asr_rulebreak_comp_4~~asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_aggress_comp_4
                      asr_intru_comp_4~~asr_intru_comp_4

              #unique covariances
                      # Scores arcoss times
                      asr_anxdep_comp_0~~ asr_anxdep_comp_2 + asr_anxdep_comp_4
                      asr_anxdep_comp_2~~ asr_anxdep_comp_4

                      asr_withdep_comp_0 ~~ asr_withdep_comp_2 + asr_withdep_comp_4
                      asr_withdep_comp_2 ~~ asr_withdep_comp_4

                      asr_soma_comp_0~~ asr_soma_comp_2 + asr_soma_comp_4
                      asr_soma_comp_2~~ asr_soma_comp_4

                      asr_thouprob_comp_0~~ asr_thouprob_comp_2 + asr_thouprob_comp_4
                      asr_thouprob_comp_2~~ asr_thouprob_comp_4

                      asr_attprob_comp_0~~ asr_attprob_comp_2 + asr_attprob_comp_4
                      asr_attprob_comp_2~~ asr_attprob_comp_4

                      asr_rulebreak_comp_0~~ asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_rulebreak_comp_2~~ asr_rulebreak_comp_4

                      asr_aggress_comp_0~~ asr_aggress_comp_2 + asr_aggress_comp_4
                      asr_aggress_comp_2~~ asr_aggress_comp_4

                      asr_intru_comp_0~~ asr_intru_comp_2 + asr_intru_comp_4
                      asr_intru_comp_2~~ asr_intru_comp_4

                      # Internalizeing subscale covariances
                      asr_anxdep_comp_0~~asr_withdep_comp_0 + asr_soma_comp_0 + asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_2~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_4~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4

                      asr_withdep_comp_0~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_2~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_4~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4

                      # Externalizeing subscale covariances
                      asr_aggress_comp_0~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_2~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4

                      asr_intru_comp_0~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_2~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_4~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4

              #observed variable intercepts
                      asr_anxdep_comp_0~tau_AX*1
                      asr_withdep_comp_0~tau_AW*1
                      asr_soma_comp_0~tau_AS*1
                      asr_thouprob_comp_0~tau_AP*1
                      asr_attprob_comp_0~tau_AH*1
                      asr_rulebreak_comp_0~tau_AA*1
                      asr_aggress_comp_0~tau_AR*1
                      asr_intru_comp_0~tau_AG*1

                      asr_anxdep_comp_2~tau_AX*1
                      asr_withdep_comp_2~tau_AW*1
                      asr_soma_comp_2~tau_AS*1
                      asr_thouprob_comp_2~tau_AP*1
                      asr_attprob_comp_2~tau_AH*1
                      asr_rulebreak_comp_2~tau_AA*1
                      asr_aggress_comp_2~tau_AR*1
                      asr_intru_comp_2~tau_AG*1

                      asr_anxdep_comp_4~tau_AX*1
                      asr_withdep_comp_4~tau_AW*1
                      asr_soma_comp_4~tau_AS*1
                      asr_thouprob_comp_4~tau_AP*1
                      asr_attprob_comp_4~tau_AH*1
                      asr_rulebreak_comp_4~tau_AA*1
                      asr_aggress_comp_4~tau_AR*1
                      asr_intru_comp_4~tau_AG*1

                      #latent basis model
                      a_i =~ 1*a_etaB+1*a_eta2+1*a_eta4
                      a_s =~ 0*a_etaB+1*a_eta2+2*a_eta4
                      a_i~~NA*a_i
                      a_s~~NA*a_s
                      a_i~~a_s
                      a_i~1
                      a_s~1
                      a_etaB~0*1
                      a_eta2~0*1
                      a_eta4~0*1

               # second-order pc factor
               #factor loadings (with constraints)
               p_etaB =~ 1*anxdep_comp_0+
                       lambda_CW*withdep_comp_0+
                       lambda_CS*soma_comp_0+
                       lambda_CC*socprob_comp_0+
                       lambda_CH*thouprob_comp_0+
                       lambda_CA*attprob_comp_0+
                       lambda_CR*rulebreak_comp_0+
                       lambda_CG*aggress_comp_0
               p_eta1 =~ 1*anxdep_comp_1+
                       lambda_CW*withdep_comp_1+
                       lambda_CS*soma_comp_1+
                       lambda_CC*socprob_comp_1+
                       lambda_CH*thouprob_comp_1+
                       lambda_CA*attprob_comp_1+
                       lambda_CR*rulebreak_comp_1+
                       lambda_CG*aggress_comp_1
               p_eta2 =~ 1*anxdep_comp_2+
                       lambda_CW*withdep_comp_2+
                       lambda_CS*soma_comp_2+
                       lambda_CC*socprob_comp_2+
                       lambda_CH*thouprob_comp_2+
                       lambda_CA*attprob_comp_2+
                       lambda_CR*rulebreak_comp_2+
                       lambda_CG*aggress_comp_2
               p_eta3 =~ 1*anxdep_comp_3+
                       lambda_CW*withdep_comp_3+
                       lambda_CS*soma_comp_3+
                       lambda_CC*socprob_comp_3+
                       lambda_CH*thouprob_comp_3+
                       lambda_CA*attprob_comp_3+
                       lambda_CR*rulebreak_comp_3+
                       lambda_CG*aggress_comp_3
               p_eta4 =~ 1*anxdep_comp_4+
                       lambda_CW*withdep_comp_4+
                       lambda_CS*soma_comp_4+
                       lambda_CC*socprob_comp_4+
                       lambda_CH*thouprob_comp_4+
                       lambda_CA*attprob_comp_4+
                       lambda_CR*rulebreak_comp_4+
                       lambda_CG*aggress_comp_4
               p_eta5 =~ 1*anxdep_comp_5+
                       lambda_CW*withdep_comp_5+
                       lambda_CS*soma_comp_5+
                       lambda_CC*socprob_comp_5+
                       lambda_CH*thouprob_comp_5+
                       lambda_CA*attprob_comp_5+
                       lambda_CR*rulebreak_comp_5+
                       lambda_CG*aggress_comp_5
               p_eta6 =~ 1*anxdep_comp_6+
                       lambda_CW*withdep_comp_6+
                       lambda_CS*soma_comp_6+
                       lambda_CC*socprob_comp_6+
                       lambda_CH*thouprob_comp_6+
                       lambda_CA*attprob_comp_6+
                       lambda_CR*rulebreak_comp_6+
                       lambda_CG*aggress_comp_6

              #latent variable variances
                      p_etaB~~NA*p_etaB
                      p_eta1~~NA*p_eta1
                      p_eta2~~NA*p_eta2
                      p_eta3~~NA*p_eta3
                      p_eta4~~NA*p_eta4
                      p_eta5~~NA*p_eta5
                      p_eta6~~NA*p_eta6

              #unique variances # No need to constrict these
                      anxdep_comp_0~~anxdep_comp_0
                      withdep_comp_0~~withdep_comp_0
                      soma_comp_0~~soma_comp_0
                      socprob_comp_0~~socprob_comp_0
                      thouprob_comp_0~~thouprob_comp_0
                      attprob_comp_0~~attprob_comp_0
                      rulebreak_comp_0~~rulebreak_comp_0
                      aggress_comp_0~~aggress_comp_0
                      anxdep_comp_1~~anxdep_comp_1
                      withdep_comp_1~~withdep_comp_1
                      soma_comp_1~~soma_comp_1
                      socprob_comp_1~~socprob_comp_1
                      thouprob_comp_1~~thouprob_comp_1
                      attprob_comp_1~~attprob_comp_1
                      rulebreak_comp_1~~rulebreak_comp_1
                      aggress_comp_1~~aggress_comp_1

                      anxdep_comp_2~~anxdep_comp_2
                      withdep_comp_2~~withdep_comp_2
                      soma_comp_2~~soma_comp_2
                      socprob_comp_2~~socprob_comp_2
                      thouprob_comp_2~~thouprob_comp_2
                      attprob_comp_2~~attprob_comp_2
                      rulebreak_comp_2~~rulebreak_comp_2
                      aggress_comp_2~~aggress_comp_2

                      anxdep_comp_3~~anxdep_comp_3
                      withdep_comp_3~~withdep_comp_3
                      soma_comp_3~~soma_comp_3
                      socprob_comp_3~~socprob_comp_3
                      thouprob_comp_3~~thouprob_comp_3
                      attprob_comp_3~~attprob_comp_3
                      rulebreak_comp_3~~rulebreak_comp_3
                      aggress_comp_3~~aggress_comp_3

                      anxdep_comp_4~~anxdep_comp_4
                      withdep_comp_4~~withdep_comp_4
                      soma_comp_4~~soma_comp_4
                      socprob_comp_4~~socprob_comp_4
                      thouprob_comp_4~~thouprob_comp_4
                      attprob_comp_4~~attprob_comp_4
                      rulebreak_comp_4~~rulebreak_comp_4
                      aggress_comp_4~~aggress_comp_4

                      anxdep_comp_5~~anxdep_comp_5
                      withdep_comp_5~~withdep_comp_5
                      soma_comp_5~~soma_comp_5
                      socprob_comp_5~~socprob_comp_5
                      thouprob_comp_5~~thouprob_comp_5
                      attprob_comp_5~~attprob_comp_5
                      rulebreak_comp_5~~rulebreak_comp_5
                      aggress_comp_5~~aggress_comp_5

                      anxdep_comp_6~~anxdep_comp_6
                      withdep_comp_6~~withdep_comp_6
                      soma_comp_6~~soma_comp_6
                      socprob_comp_6~~socprob_comp_6
                      thouprob_comp_6~~thouprob_comp_6
                      attprob_comp_6~~attprob_comp_6
                      rulebreak_comp_6~~rulebreak_comp_6
                      aggress_comp_6~~aggress_comp_6

              #unique covariances
                      # Scores arcoss times
                      anxdep_comp_0~~anxdep_comp_1 + anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_1~~anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_2~~anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_3~~anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_4~~anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_5~~anxdep_comp_6

                      withdep_comp_0~~withdep_comp_1 + withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_1~~withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_2~~withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_3~~withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_4~~withdep_comp_5 + withdep_comp_6
                      withdep_comp_5~~withdep_comp_6

                      soma_comp_0~~soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_1~~soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_2~~soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_3~~soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_4~~soma_comp_5 + soma_comp_6
                      soma_comp_5~~soma_comp_6

                      socprob_comp_0~~socprob_comp_1 + socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_1~~socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_2~~socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_3~~socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_4~~socprob_comp_5 + socprob_comp_6
                      socprob_comp_5~~socprob_comp_6

                      thouprob_comp_0~~thouprob_comp_1 + thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_1~~thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_2~~thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_3~~thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_4~~thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_5~~thouprob_comp_6

                      attprob_comp_0~~attprob_comp_1 + attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_1~~attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_2~~attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_3~~attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_4~~attprob_comp_5 + attprob_comp_6
                      attprob_comp_5~~attprob_comp_6

                      rulebreak_comp_0~~rulebreak_comp_1 + rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_1~~rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_2~~rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_3~~rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_4~~rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_5~~rulebreak_comp_6

                      aggress_comp_0~~aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_1~~aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_2~~aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_3~~aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_4~~aggress_comp_5 + aggress_comp_6
                      aggress_comp_5~~aggress_comp_6

                      # Internalizeing subscale covariances
                      anxdep_comp_0~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_1~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_2~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_3~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_4~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_5~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_6~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6

                      withdep_comp_0~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_1~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_2~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_3~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_4~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_5~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_6~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6

                      # Externalizeing subscale covariances
                      rulebreak_comp_0~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_1~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_2~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_3~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_4~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_5~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_6~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6

              #observed variable intercepts
                      anxdep_comp_0~tau_CX*1
                      anxdep_comp_1~tau_CX*1
                      anxdep_comp_2~tau_CX*1
                      anxdep_comp_3~tau_CX*1
                      anxdep_comp_4~tau_CX*1
                      anxdep_comp_5~tau_CX*1
                      anxdep_comp_6~tau_CX*1
                      withdep_comp_0~tau_CW*1
                      withdep_comp_1~tau_CW*1
                      withdep_comp_2~tau_CW*1
                      withdep_comp_3~tau_CW*1
                      withdep_comp_4~tau_CW*1
                      withdep_comp_5~tau_CW*1
                      withdep_comp_6~tau_CW*1
                      soma_comp_0~tau_CS*1
                      soma_comp_1~tau_CS*1
                      soma_comp_2~tau_CS*1
                      soma_comp_3~tau_CS*1
                      soma_comp_4~tau_CS*1
                      soma_comp_5~tau_CS*1
                      soma_comp_6~tau_CS*1
                      socprob_comp_0~tau_CP*1
                      socprob_comp_1~tau_CP*1
                      socprob_comp_2~tau_CP*1
                      socprob_comp_3~tau_CP*1
                      socprob_comp_4~tau_CP*1
                      socprob_comp_5~tau_CP*1
                      socprob_comp_6~tau_CP*1
                      thouprob_comp_0~tau_CH*1
                      thouprob_comp_1~tau_CH*1
                      thouprob_comp_2~tau_CH*1
                      thouprob_comp_3~tau_CH*1
                      thouprob_comp_4~tau_CH*1
                      thouprob_comp_5~tau_CH*1
                      thouprob_comp_6~tau_CH*1
                      attprob_comp_0~tau_CA*1
                      attprob_comp_1~tau_CA*1
                      attprob_comp_2~tau_CA*1
                      attprob_comp_3~tau_CA*1
                      attprob_comp_4~tau_CA*1
                      attprob_comp_5~tau_CA*1
                      attprob_comp_6~tau_CA*1
                      rulebreak_comp_0~tau_CR*1
                      rulebreak_comp_1~tau_CR*1
                      rulebreak_comp_2~tau_CR*1
                      rulebreak_comp_3~tau_CR*1
                      rulebreak_comp_4~tau_CR*1
                      rulebreak_comp_5~tau_CR*1
                      rulebreak_comp_6~tau_CR*1
                      aggress_comp_0~tau_CG*1
                      aggress_comp_1~tau_CG*1
                      aggress_comp_2~tau_CG*1
                      aggress_comp_3~tau_CG*1
                      aggress_comp_4~tau_CG*1
                      aggress_comp_5~tau_CG*1
                      aggress_comp_6~tau_CG*1

                       #latent basis model
                      p_i =~ 1*p_etaB + 1*p_eta1 + 1*p_eta2 + 1*p_eta3 + 1*p_eta4 + 1*p_eta5 + 1*p_eta6
                      p_s =~ 0*p_etaB + .5*p_eta1 + 1*p_eta2 + 1.5*p_eta3 + 2*p_eta4 + 2.5*p_eta5 + 3*p_eta6
                      p_q =~ 0*p_etaB + .25*p_eta1 + 1*p_eta2 + 2.25*p_eta3 + 4*p_eta4 + 6.25*p_eta5 + 9*p_eta6

                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q

                      p_i~~p_s + p_q
                      p_s~~p_q
                      p_i~1
                      p_s~1
                      p_q~1
                      p_etaB ~ 0*1
                      p_eta1 ~ 0*1
                      p_eta2 ~ 0*1
                      p_eta3 ~ 0*1
                      p_eta4 ~ 0*1
                      p_eta5 ~ 0*1
                      p_eta6 ~ 0*1

               # second-order g factor
               #factor loadings # S & S2
               g_etaB =~ 1*flanker_0+
                       lambda_R*pattern_0+
                       lambda_M*picture_0+
                       lambda_P*picvocab_0+
                       lambda_V*reading_0
               g_eta2 =~ 1*flanker_2+
                       lambda_R*pattern_2+
                       lambda_M*picture_2+
                       lambda_P*picvocab_2+
                       lambda_V*reading_2
               g_eta4 =~ 1*flanker_4+
                       lambda_R*pattern_4+
                       lambda_M*picture_4+
                       lambda_P*picvocab_4+
                       lambda_V*reading_4
               g_eta6 =~ 1*flanker_6+
                       lambda_R*pattern_6+
                       lambda_M*picture_6+
                       lambda_P*picvocab_6+
                       lambda_V*reading_6

              #latent variable variances
                       g_etaB~~NA*g_etaB
                       g_eta2~~NA*g_eta2
                       g_eta4~~NA*g_eta4
                       g_eta6~~NA*g_eta6

              #unique variances
                      flanker_0~~flanker_0
                      flanker_2~~flanker_2
                      flanker_4~~flanker_4
                      flanker_6~~flanker_6

                      pattern_0~~pattern_0
                      pattern_2~~pattern_2
                      pattern_4~~pattern_4
                      pattern_6~~pattern_6

                      picture_0~~picture_0
                      picture_2~~picture_2
                      picture_4~~picture_4
                      picture_6~~picture_6

                      picvocab_0~~picvocab_0
                      picvocab_2~~picvocab_2
                      picvocab_4~~picvocab_4
                      picvocab_6~~picvocab_6

                      reading_0~~reading_0
                      reading_2~~reading_2
                      reading_4~~reading_4
                      reading_6~~reading_6

              #unique covariances
                      # Task across times
                      flanker_0~~flanker_2 + flanker_4 + flanker_6
                      flanker_2~~flanker_4 + flanker_6
                      flanker_4~~flanker_6

                      pattern_0~~pattern_2 + pattern_4 + pattern_6
                      pattern_2~~pattern_4 + pattern_6
                      pattern_4~~pattern_6

                      picture_0~~picture_2 + picture_4 + picture_6
                      picture_2~~picture_4 + picture_6
                      picture_4~~picture_6

                      picvocab_0~~picvocab_2 + picvocab_4 + picvocab_6
                      picvocab_2~~picvocab_4 + picvocab_6
                      picvocab_4~~picvocab_6

                      reading_0~~reading_2 + reading_4 + reading_6
                      reading_2~~reading_4 + reading_6
                      reading_4~~reading_6

                      #Language
                      picvocab_0~~reading_0 + reading_2 + reading_4 + reading_6
                      picvocab_2~~reading_2 + reading_0 + reading_4 + reading_6
                      picvocab_4~~reading_4 + reading_0 + reading_2 + reading_6
                      picvocab_6~~reading_6 + reading_0 + reading_2 + reading_4

              #observed variable intercepts # S & S2
                      flanker_0~tau_S*1
                      flanker_2~tau_S*1
                      flanker_4~tau_S*1
                      flanker_6~tau_S*1
                      pattern_0~tau_R*1
                      pattern_2~tau_R*1
                      pattern_4~tau_R*1
                      pattern_6~tau_R*1
                      picture_0~tau_M*1
                      picture_2~tau_M*1
                      picture_4~tau_M*1
                      picture_6~tau_M*1
                      picvocab_0~tau_P*1
                      picvocab_2~tau_P*1
                      picvocab_4~tau_P*1
                      picvocab_6~tau_P*1
                      reading_0~tau_V*1
                      reading_2~tau_V*1
                      reading_4~tau_V*1
                      reading_6~tau_V*1

                      #latent basis model
                      g_i =~    1*g_etaB + 1*g_eta2 + 1*g_eta4 + 1*g_eta6
                      g_s =~    0*g_etaB + 1*g_eta2 + 2*g_eta4 + 3*g_eta6

                      g_i~~NA*g_i
                      g_s~~NA*g_s

                      g_i~~g_s

                      g_i~1
                      g_s~1

                      g_etaB~0*1
                      g_eta2~0*1
                      g_eta4~0*1
                      g_eta6~0*1

                      # regression
                      p_i ~ g_i + a_i
                      p_s ~ g_i + g_s + a_i + a_s
                      p_q ~ g_i + g_s + a_i + a_s"
lavaan(pga6.model,
  data = readRDS("pga6_all_data.rds"),
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = FALSE,
  std.lv = T
) %>%
  saveRDS("pgcm_pga6_model.rds")
result
readRDS("pgcm_pga6_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pgcm_pga6_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pgcm_pga6_model.rds"), "cor.lv"))$value
 [1] 7.918474740 4.667846162 3.215923037 1.363999878 0.958465183 0.758783624
 [7] 0.376478552 0.228289026 0.226437394 0.217924215 0.213371515 0.186833959
[13] 0.156748073 0.137647981 0.119275459 0.079309934 0.058937882 0.052864742
[19] 0.039494084 0.016384857 0.006509703
readRDS("pgcm_pga6_result.rds")
lavaan 0.6-19 ended normally after 344 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       817
  Number of equality constraints                   147

                                                  Used       Total
  Number of observations                         11866       11867
  Number of missing patterns                       713            

Model Test User Model:
                                                       
  Test statistic                              39922.788
  Degrees of freedom                               4480
  P-value (Chi-square)                            0.000

Model Test Baseline Model:

  Test statistic                            796830.018
  Degrees of freedom                              4950
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.955
  Tucker-Lewis Index (TLI)                       0.951
                                                      
  Robust Comparative Fit Index (CFI)             0.954
  Robust Tucker-Lewis Index (TLI)                0.949

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -962585.213
  Loglikelihood unrestricted model (H1)    -942623.819
                                                      
  Akaike (AIC)                             1926510.426
  Bayesian (BIC)                           1931455.986
  Sample-size adjusted Bayesian (SABIC)    1929326.803

Root Mean Square Error of Approximation:

  RMSEA                                          0.026
  90 Percent confidence interval - lower         0.026
  90 Percent confidence interval - upper         0.026
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.030
  90 Percent confidence interval - lower         0.029
  90 Percent confidence interval - upper         0.030
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.056

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.842    0.834
    asr___0 (l_AW)    0.891    0.007  126.536    0.000    0.750    0.733
    asr___0 (l_AS)    0.799    0.007  112.096    0.000    0.673    0.672
    asr___0 (l_AC)    0.929    0.007  125.436    0.000    0.783    0.752
    asr___0 (l_AH)    0.907    0.007  131.159    0.000    0.764    0.767
    asr___0 (l_AA)    0.779    0.008   98.161    0.000    0.656    0.628
    asr___0 (l_AR)    0.921    0.007  125.143    0.000    0.776    0.757
    asr___0 (l_AG)    0.489    0.008   59.988    0.000    0.412    0.399
  a_eta2 =~                                                             
    asr___2           1.000                               0.832    0.819
    asr___2 (l_AW)    0.891    0.007  126.536    0.000    0.741    0.730
    asr___2 (l_AS)    0.799    0.007  112.096    0.000    0.665    0.664
    asr___2 (l_AC)    0.929    0.007  125.436    0.000    0.773    0.769
    asr___2 (l_AH)    0.907    0.007  131.159    0.000    0.755    0.773
    asr___2 (l_AA)    0.779    0.008   98.161    0.000    0.648    0.640
    asr___2 (l_AR)    0.921    0.007  125.143    0.000    0.766    0.758
    asr___2 (l_AG)    0.489    0.008   59.988    0.000    0.407    0.409
  a_eta4 =~                                                             
    asr___4           1.000                               0.801    0.803
    asr___4 (l_AW)    0.891    0.007  126.536    0.000    0.713    0.724
    asr___4 (l_AS)    0.799    0.007  112.096    0.000    0.640    0.652
    asr___4 (l_AC)    0.929    0.007  125.436    0.000    0.744    0.768
    asr___4 (l_AH)    0.907    0.007  131.159    0.000    0.726    0.746
    asr___4 (l_AA)    0.779    0.008   98.161    0.000    0.623    0.640
    asr___4 (l_AR)    0.921    0.007  125.143    0.000    0.737    0.752
    asr___4 (l_AG)    0.489    0.008   59.988    0.000    0.391    0.400
  a_i =~                                                                
    a_etaB            1.000                               0.926    0.926
    a_eta2            1.000                               0.937    0.937
    a_eta4            1.000                               0.974    0.974
  a_s =~                                                                
    a_etaB            0.000                               0.000    0.000
    a_eta2            1.000                               0.302    0.302
    a_eta4            2.000                               0.627    0.627
  p_etaB =~                                                             
    anxd__0           1.000                               0.740    0.720
    wthd__0 (l_CW)    0.864    0.006  140.995    0.000    0.640    0.709
    sm_cm_0 (l_CS)    0.739    0.007  110.836    0.000    0.547    0.550
    scpr__0 (l_CC)    1.119    0.007  153.837    0.000    0.829    0.788
    thpr__0 (l_CH)    1.105    0.007  152.307    0.000    0.818    0.787
    attp__0 (l_CA)    0.995    0.007  142.699    0.000    0.737    0.737
    rlbr__0 (l_CR)    0.858    0.007  120.337    0.000    0.635    0.676
    aggr__0 (l_CG)    1.067    0.007  147.057    0.000    0.790    0.755
  p_eta1 =~                                                             
    anxd__1           1.000                               0.735    0.712
    wthd__1 (l_CW)    0.864    0.006  140.995    0.000    0.635    0.695
    sm_cm_1 (l_CS)    0.739    0.007  110.836    0.000    0.543    0.545
    scpr__1 (l_CC)    1.119    0.007  153.837    0.000    0.823    0.797
    thpr__1 (l_CH)    1.105    0.007  152.307    0.000    0.812    0.781
    attp__1 (l_CA)    0.995    0.007  142.699    0.000    0.732    0.738
    rlbr__1 (l_CR)    0.858    0.007  120.337    0.000    0.631    0.673
    aggr__1 (l_CG)    1.067    0.007  147.057    0.000    0.784    0.763
  p_eta2 =~                                                             
    anxd__2           1.000                               0.727    0.717
    wthd__2 (l_CW)    0.864    0.006  140.995    0.000    0.628    0.653
    sm_cm_2 (l_CS)    0.739    0.007  110.836    0.000    0.537    0.558
    scpr__2 (l_CC)    1.119    0.007  153.837    0.000    0.813    0.809
    thpr__2 (l_CH)    1.105    0.007  152.307    0.000    0.803    0.797
    attp__2 (l_CA)    0.995    0.007  142.699    0.000    0.723    0.744
    rlbr__2 (l_CR)    0.858    0.007  120.337    0.000    0.624    0.662
    aggr__2 (l_CG)    1.067    0.007  147.057    0.000    0.775    0.767
  p_eta3 =~                                                             
    anxd__3           1.000                               0.719    0.704
    wthd__3 (l_CW)    0.864    0.006  140.995    0.000    0.621    0.602
    sm_cm_3 (l_CS)    0.739    0.007  110.836    0.000    0.531    0.552
    scpr__3 (l_CC)    1.119    0.007  153.837    0.000    0.805    0.818
    thpr__3 (l_CH)    1.105    0.007  152.307    0.000    0.795    0.804
    attp__3 (l_CA)    0.995    0.007  142.699    0.000    0.716    0.743
    rlbr__3 (l_CR)    0.858    0.007  120.337    0.000    0.617    0.648
    aggr__3 (l_CG)    1.067    0.007  147.057    0.000    0.767    0.768
  p_eta4 =~                                                             
    anxd__4           1.000                               0.707    0.708
    wthd__4 (l_CW)    0.864    0.006  140.995    0.000    0.611    0.560
    sm_cm_4 (l_CS)    0.739    0.007  110.836    0.000    0.522    0.521
    scpr__4 (l_CC)    1.119    0.007  153.837    0.000    0.791    0.820
    thpr__4 (l_CH)    1.105    0.007  152.307    0.000    0.781    0.808
    attp__4 (l_CA)    0.995    0.007  142.699    0.000    0.704    0.752
    rlbr__4 (l_CR)    0.858    0.007  120.337    0.000    0.606    0.585
    aggr__4 (l_CG)    1.067    0.007  147.057    0.000    0.754    0.785
  p_eta5 =~                                                             
    anxd__5           1.000                               0.704    0.698
    wthd__5 (l_CW)    0.864    0.006  140.995    0.000    0.608    0.540
    sm_cm_5 (l_CS)    0.739    0.007  110.836    0.000    0.520    0.486
    scpr__5 (l_CC)    1.119    0.007  153.837    0.000    0.788    0.822
    thpr__5 (l_CH)    1.105    0.007  152.307    0.000    0.778    0.785
    attp__5 (l_CA)    0.995    0.007  142.699    0.000    0.701    0.744
    rlbr__5 (l_CR)    0.858    0.007  120.337    0.000    0.604    0.524
    aggr__5 (l_CG)    1.067    0.007  147.057    0.000    0.751    0.783
  p_eta6 =~                                                             
    anxd__6           1.000                               0.667    0.696
    wthd__6 (l_CW)    0.864    0.006  140.995    0.000    0.577    0.533
    sm_cm_6 (l_CS)    0.739    0.007  110.836    0.000    0.493    0.462
    scpr__6 (l_CC)    1.119    0.007  153.837    0.000    0.747    0.828
    thpr__6 (l_CH)    1.105    0.007  152.307    0.000    0.737    0.803
    attp__6 (l_CA)    0.995    0.007  142.699    0.000    0.664    0.737
    rlbr__6 (l_CR)    0.858    0.007  120.337    0.000    0.573    0.495
    aggr__6 (l_CG)    1.067    0.007  147.057    0.000    0.712    0.795
  p_i =~                                                                
    p_etaB            1.000                               0.925    0.925
    p_eta1            1.000                               0.931    0.931
    p_eta2            1.000                               0.942    0.942
    p_eta3            1.000                               0.952    0.952
    p_eta4            1.000                               0.969    0.969
    p_eta5            1.000                               0.972    0.972
    p_eta6            1.000                               1.026    1.026
  p_s =~                                                                
    p_etaB            0.000                               0.000    0.000
    p_eta1            0.500                               0.290    0.290
    p_eta2            1.000                               0.587    0.587
    p_eta3            1.500                               0.889    0.889
    p_eta4            2.000                               1.207    1.207
    p_eta5            2.500                               1.514    1.514
    p_eta6            3.000                               1.917    1.917
  p_q =~                                                                
    p_etaB            0.000                               0.000    0.000
    p_eta1            0.250                               0.042    0.042
    p_eta2            1.000                               0.169    0.169
    p_eta3            2.250                               0.385    0.385
    p_eta4            4.000                               0.696    0.696
    p_eta5            6.250                               1.092    1.092
    p_eta6            9.000                               1.659    1.659
  g_etaB =~                                                             
    flnkr_0           1.000                               0.404    0.439
    pttrn_0 (lm_R)    1.217    0.011  112.933    0.000    0.491    0.645
    pictr_0 (lm_M)    0.599    0.009   64.812    0.000    0.242    0.287
    pcvcb_0 (lm_P)    0.928    0.009  107.796    0.000    0.375    0.447
    redng_0 (lm_V)    0.981    0.009  111.525    0.000    0.396    0.463
  g_eta2 =~                                                             
    flnkr_2           1.000                               0.413    0.517
    pttrn_2 (lm_R)    1.217    0.011  112.933    0.000    0.502    0.652
    pictr_2 (lm_M)    0.599    0.009   64.812    0.000    0.247    0.277
    pcvcb_2 (lm_P)    0.928    0.009  107.796    0.000    0.383    0.438
    redng_2 (lm_V)    0.981    0.009  111.525    0.000    0.405    0.480
  g_eta4 =~                                                             
    flnkr_4           1.000                               0.443    0.557
    pttrn_4 (lm_R)    1.217    0.011  112.933    0.000    0.539    0.655
    pictr_4 (lm_M)    0.599    0.009   64.812    0.000    0.265    0.250
    pcvcb_4 (lm_P)    0.928    0.009  107.796    0.000    0.411    0.444
    redng_4 (lm_V)    0.981    0.009  111.525    0.000    0.434    0.470
  g_eta6 =~                                                             
    flnkr_6           1.000                               0.496    0.609
    pttrn_6 (lm_R)    1.217    0.011  112.933    0.000    0.603    0.705
    pictr_6 (lm_M)    0.599    0.009   64.812    0.000    0.297    0.280
    pcvcb_6 (lm_P)    0.928    0.009  107.796    0.000    0.460    0.492
    redng_6 (lm_V)    0.981    0.009  111.525    0.000    0.486    0.501
  g_i =~                                                                
    g_etaB            1.000                               0.963    0.963
    g_eta2            1.000                               0.942    0.942
    g_eta4            1.000                               0.878    0.878
    g_eta6            1.000                               0.784    0.784
  g_s =~                                                                
    g_etaB            0.000                               0.000    0.000
    g_eta2            1.000                               0.127    0.127
    g_eta4            2.000                               0.237    0.237
    g_eta6            3.000                               0.318    0.318

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_i ~                                                                 
    g_i              -0.270    0.019  -14.160    0.000   -0.153   -0.153
    a_i               0.609    0.010   59.286    0.000    0.693    0.693
  p_s ~                                                                 
    g_i               0.091    0.028    3.270    0.001    0.083    0.083
    g_s              -0.826    0.427   -1.935    0.053   -0.102   -0.102
    a_i               0.014    0.012    1.181    0.238    0.025    0.025
    a_s               1.286    0.065   19.842    0.000    0.757    0.757
  p_q ~                                                                 
    g_i              -0.016    0.009   -1.753    0.080   -0.051   -0.051
    g_s               0.227    0.142    1.606    0.108    0.097    0.097
    a_i              -0.018    0.004   -5.014    0.000   -0.114   -0.114
    a_s              -0.316    0.019  -16.837    0.000   -0.645   -0.645

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.181    0.005   36.978    0.000    0.181    0.557
   .asr_nxdp_cmp_4           0.165    0.005   32.638    0.000    0.165    0.497
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.201    0.005   37.264    0.000    0.201    0.582
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.228    0.006   37.168    0.000    0.228    0.471
   .asr_wthdp_cm_4           0.207    0.006   33.242    0.000    0.207    0.437
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.225    0.006   35.569    0.000    0.225    0.478
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.275    0.007   40.924    0.000    0.275    0.495
   .asr_soma_cmp_4           0.239    0.007   35.085    0.000    0.239    0.433
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.282    0.007   39.219    0.000    0.282    0.506
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.192    0.005   35.471    0.000    0.192    0.437
   .asr_thprb_cm_4           0.160    0.005   29.475    0.000    0.160    0.377
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.168    0.005   31.893    0.000    0.168    0.422
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.254    0.005   48.592    0.000    0.254    0.644
   .asr_ttprb_cm_4           0.248    0.006   44.908    0.000    0.248    0.599
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.267    0.006   47.605    0.000    0.267    0.666
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.305    0.007   41.525    0.000    0.305    0.483
   .asr_rlbrk_cm_4           0.261    0.007   35.966    0.000    0.261    0.429
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.284    0.007   38.856    0.000    0.284    0.487
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.243    0.006   43.313    0.000    0.243    0.551
   .asr_ggrss_cm_4           0.220    0.006   39.257    0.000    0.220    0.508
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.248    0.006   42.711    0.000    0.248    0.582
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.495    0.010   51.818    0.000    0.495    0.576
   .asr_intr_cmp_4           0.464    0.010   47.896    0.000    0.464    0.546
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.473    0.010   49.571    0.000    0.473    0.582
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.019    0.005    3.861    0.000    0.019    0.049
   .asr_soma_cmp_0           0.026    0.005    5.101    0.000    0.026    0.063
   .asr_wthdp_cm_2           0.019    0.005    3.919    0.000    0.019    0.049
   .asr_soma_cmp_2           0.032    0.005    6.175    0.000    0.032    0.076
   .asr_wthdp_cm_4           0.017    0.005    3.409    0.001    0.017    0.045
   .asr_soma_cmp_4           0.030    0.005    5.648    0.000    0.030    0.073
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2           0.009    0.005    1.812    0.070    0.009    0.022
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.025    0.005    4.794    0.000    0.025    0.057
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.035    0.005    6.770    0.000    0.035    0.087
   .asr_soma_cmp_2           0.045    0.005    8.193    0.000    0.045    0.102
   .asr_wthdp_cm_4           0.022    0.005    4.258    0.000    0.022    0.056
   .asr_soma_cmp_4           0.027    0.006    4.818    0.000    0.027    0.061
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4           0.001    0.005    0.159    0.874    0.001    0.002
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.023    0.005    4.308    0.000    0.023    0.053
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.016    0.005    3.082    0.002    0.016    0.040
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.042    0.006    7.400    0.000    0.042    0.094
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.041    0.006    7.383    0.000    0.041    0.101
   .asr_soma_cmp_4           0.057    0.006    9.713    0.000    0.057    0.129
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.033    0.006   -5.715    0.000   -0.033   -0.063
   .asr_soma_cmp_2          -0.020    0.006   -3.518    0.000   -0.020   -0.039
   .asr_soma_cmp_4          -0.035    0.006   -5.701    0.000   -0.035   -0.067
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.014    0.006   -2.491    0.013   -0.014   -0.028
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.016    0.006   -2.721    0.007   -0.016   -0.031
   .asr_soma_cmp_4          -0.023    0.006   -3.680    0.000   -0.023   -0.044
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.017    0.006   -2.818    0.005   -0.017   -0.033
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.021    0.006   -3.462    0.001   -0.021   -0.042
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.022    0.006   -3.588    0.000   -0.022   -0.044
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.131    0.007   19.510    0.000    0.131    0.207
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.073    0.006   12.323    0.000    0.073    0.134
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.084    0.006   13.042    0.000    0.084    0.139
   .asr_rlbrk_cm_2           0.024    0.006    4.297    0.000    0.024    0.047
   .asr_intr_cmp_4           0.093    0.007   13.905    0.000    0.093    0.154
   .asr_rlbrk_cm_4           0.032    0.006    5.473    0.000    0.032    0.063
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.093    0.007   13.978    0.000    0.093    0.148
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.050    0.006    8.548    0.000    0.050    0.094
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.136    0.007   20.641    0.000    0.136    0.227
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.045    0.006    7.834    0.000    0.045    0.088
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.107    0.007   15.866    0.000    0.107    0.180
   .asr_rlbrk_cm_4           0.043    0.006    7.286    0.000    0.043    0.086
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.095    0.007   13.982    0.000    0.095    0.156
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.056    0.006    9.316    0.000    0.056    0.107
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.102    0.007   15.325    0.000    0.102    0.174
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.047    0.006    7.891    0.000    0.047    0.093
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.137    0.007   20.047    0.000    0.137    0.236
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.064    0.006   10.893    0.000    0.064    0.133
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.119    0.008   15.472    0.000    0.119    0.155
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.067    0.007    8.999    0.000    0.067    0.091
   .asr_rlbrk_cm_4           0.072    0.008    9.449    0.000    0.072    0.101
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.072    0.008    9.534    0.000    0.072    0.098
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.112    0.007   15.169    0.000    0.112    0.158
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.071    0.007    9.524    0.000    0.071    0.104
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.086    0.008   10.994    0.000    0.086    0.117
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.078    0.008   10.266    0.000    0.078    0.112
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.110    0.008   14.579    0.000    0.110    0.163
  a_i ~~                                                                       
    a_s                     -0.080    0.004  -18.290    0.000   -0.410   -0.410
 .anxdep_comp_0 ~~                                                             
   .anxdep_comp_1            0.313    0.006   48.532    0.000    0.313    0.604
   .anxdep_comp_2            0.275    0.006   44.607    0.000    0.275    0.545
   .anxdep_comp_3            0.249    0.006   39.822    0.000    0.249    0.481
   .anxdep_comp_4            0.222    0.006   36.354    0.000    0.222    0.441
   .anxdep_comp_5            0.202    0.006   31.684    0.000    0.202    0.392
   .anxdep_comp_6            0.182    0.007   25.138    0.000    0.182    0.370
 .anxdep_comp_1 ~~                                                             
   .anxdep_comp_2            0.304    0.006   47.285    0.000    0.304    0.593
   .anxdep_comp_3            0.272    0.006   42.010    0.000    0.272    0.517
   .anxdep_comp_4            0.233    0.006   37.014    0.000    0.233    0.455
   .anxdep_comp_5            0.226    0.007   34.193    0.000    0.226    0.431
   .anxdep_comp_6            0.197    0.007   26.435    0.000    0.197    0.395
 .anxdep_comp_2 ~~                                                             
   .anxdep_comp_3            0.316    0.007   48.056    0.000    0.316    0.617
   .anxdep_comp_4            0.270    0.006   42.728    0.000    0.270    0.541
   .anxdep_comp_5            0.251    0.007   38.463    0.000    0.251    0.491
   .anxdep_comp_6            0.221    0.007   30.453    0.000    0.221    0.454
 .anxdep_comp_3 ~~                                                             
   .anxdep_comp_4            0.305    0.007   45.673    0.000    0.305    0.598
   .anxdep_comp_5            0.286    0.007   41.353    0.000    0.286    0.547
   .anxdep_comp_6            0.245    0.007   33.030    0.000    0.245    0.492
 .anxdep_comp_4 ~~                                                             
   .anxdep_comp_5            0.334    0.007   46.934    0.000    0.334    0.656
   .anxdep_comp_6            0.272    0.008   36.153    0.000    0.272    0.561
 .anxdep_comp_5 ~~                                                             
   .anxdep_comp_6            0.311    0.008   39.018    0.000    0.311    0.625
 .withdep_comp_0 ~~                                                            
   .withdep_comp_1           0.234    0.005   44.810    0.000    0.234    0.560
   .withdep_comp_2           0.196    0.005   36.636    0.000    0.196    0.425
   .withdep_comp_3           0.161    0.006   27.223    0.000    0.161    0.307
   .withdep_comp_4           0.125    0.007   19.082    0.000    0.125    0.218
   .withdep_comp_5           0.105    0.007   14.648    0.000    0.105    0.173
   .withdep_comp_6           0.083    0.008   10.117    0.000    0.083    0.143
 .withdep_comp_1 ~~                                                            
   .withdep_comp_2           0.256    0.006   44.490    0.000    0.256    0.535
   .withdep_comp_3           0.234    0.006   37.002    0.000    0.234    0.432
   .withdep_comp_4           0.199    0.007   28.661    0.000    0.199    0.335
   .withdep_comp_5           0.180    0.008   23.971    0.000    0.180    0.289
   .withdep_comp_6           0.145    0.008   17.175    0.000    0.145    0.242
 .withdep_comp_2 ~~                                                            
   .withdep_comp_3           0.336    0.007   45.564    0.000    0.336    0.560
   .withdep_comp_4           0.309    0.008   38.474    0.000    0.309    0.470
   .withdep_comp_5           0.286    0.009   33.129    0.000    0.286    0.414
   .withdep_comp_6           0.240    0.010   24.422    0.000    0.240    0.362
 .withdep_comp_3 ~~                                                            
   .withdep_comp_4           0.440    0.010   45.790    0.000    0.440    0.591
   .withdep_comp_5           0.426    0.010   41.547    0.000    0.426    0.544
   .withdep_comp_6           0.356    0.011   31.934    0.000    0.356    0.473
 .withdep_comp_4 ~~                                                            
   .withdep_comp_5           0.560    0.012   47.284    0.000    0.560    0.653
   .withdep_comp_6           0.475    0.013   37.684    0.000    0.475    0.575
 .withdep_comp_5 ~~                                                            
   .withdep_comp_6           0.571    0.014   41.356    0.000    0.571    0.658
 .soma_comp_0 ~~                                                               
   .soma_comp_1              0.354    0.008   45.802    0.000    0.354    0.509
   .soma_comp_2              0.299    0.007   40.696    0.000    0.299    0.449
   .soma_comp_3              0.265    0.007   36.069    0.000    0.265    0.398
   .soma_comp_4              0.252    0.008   31.875    0.000    0.252    0.355
   .soma_comp_5              0.249    0.009   27.826    0.000    0.249    0.320
   .soma_comp_6              0.244    0.011   22.761    0.000    0.244    0.311
 .soma_comp_1 ~~                                                               
   .soma_comp_2              0.334    0.008   44.189    0.000    0.334    0.500
   .soma_comp_3              0.291    0.008   38.562    0.000    0.291    0.433
   .soma_comp_4              0.276    0.008   34.320    0.000    0.276    0.387
   .soma_comp_5              0.280    0.009   30.750    0.000    0.280    0.358
   .soma_comp_6              0.256    0.011   23.487    0.000    0.256    0.324
 .soma_comp_2 ~~                                                               
   .soma_comp_3              0.324    0.007   43.594    0.000    0.324    0.504
   .soma_comp_4              0.303    0.008   38.284    0.000    0.303    0.443
   .soma_comp_5              0.297    0.009   33.844    0.000    0.297    0.397
   .soma_comp_6              0.273    0.010   26.457    0.000    0.273    0.361
 .soma_comp_3 ~~                                                               
   .soma_comp_4              0.339    0.008   41.258    0.000    0.339    0.494
   .soma_comp_5              0.327    0.009   35.987    0.000    0.327    0.436
   .soma_comp_6              0.313    0.011   29.651    0.000    0.313    0.412
 .soma_comp_4 ~~                                                               
   .soma_comp_5              0.442    0.010   43.358    0.000    0.442    0.553
   .soma_comp_6              0.413    0.012   34.625    0.000    0.413    0.511
 .soma_comp_5 ~~                                                               
   .soma_comp_6              0.525    0.013   39.222    0.000    0.525    0.594
 .socprob_comp_0 ~~                                                            
   .socprob_comp_1           0.195    0.005   36.436    0.000    0.195    0.482
   .socprob_comp_2           0.159    0.005   31.926    0.000    0.159    0.416
   .socprob_comp_3           0.125    0.005   26.261    0.000    0.125    0.342
   .socprob_comp_4           0.102    0.005   21.686    0.000    0.102    0.286
   .socprob_comp_5           0.091    0.005   18.955    0.000    0.091    0.257
   .socprob_comp_6           0.075    0.005   13.960    0.000    0.075    0.229
 .socprob_comp_1 ~~                                                            
   .socprob_comp_2           0.176    0.005   35.457    0.000    0.176    0.478
   .socprob_comp_3           0.141    0.005   29.674    0.000    0.141    0.399
   .socprob_comp_4           0.112    0.005   24.240    0.000    0.112    0.326
   .socprob_comp_5           0.098    0.005   20.781    0.000    0.098    0.286
   .socprob_comp_6           0.091    0.005   17.173    0.000    0.091    0.287
 .socprob_comp_2 ~~                                                            
   .socprob_comp_3           0.159    0.005   34.002    0.000    0.159    0.477
   .socprob_comp_4           0.136    0.005   29.883    0.000    0.136    0.418
   .socprob_comp_5           0.114    0.005   24.817    0.000    0.114    0.354
   .socprob_comp_6           0.103    0.005   20.562    0.000    0.103    0.345
 .socprob_comp_3 ~~                                                            
   .socprob_comp_4           0.145    0.005   31.959    0.000    0.145    0.463
   .socprob_comp_5           0.130    0.005   28.151    0.000    0.130    0.421
   .socprob_comp_6           0.113    0.005   22.613    0.000    0.113    0.393
 .socprob_comp_4 ~~                                                            
   .socprob_comp_5           0.156    0.005   33.096    0.000    0.156    0.517
   .socprob_comp_6           0.134    0.005   26.125    0.000    0.134    0.478
 .socprob_comp_5 ~~                                                            
   .socprob_comp_6           0.152    0.005   28.743    0.000    0.152    0.550
 .thouprob_comp_0 ~~                                                           
   .thouprob_cmp_1           0.201    0.005   37.843    0.000    0.201    0.483
   .thouprob_cmp_2           0.160    0.005   32.407    0.000    0.160    0.411
   .thouprob_cmp_3           0.135    0.005   28.109    0.000    0.135    0.359
   .thouprob_cmp_4           0.118    0.005   24.668    0.000    0.118    0.323
   .thouprob_cmp_5           0.114    0.005   21.914    0.000    0.114    0.290
   .thouprob_cmp_6           0.085    0.006   14.716    0.000    0.085    0.242
 .thouprob_comp_1 ~~                                                           
   .thouprob_cmp_2           0.189    0.005   36.650    0.000    0.189    0.480
   .thouprob_cmp_3           0.156    0.005   31.096    0.000    0.156    0.408
   .thouprob_cmp_4           0.135    0.005   27.396    0.000    0.135    0.365
   .thouprob_cmp_5           0.142    0.005   26.581    0.000    0.142    0.357
   .thouprob_cmp_6           0.102    0.006   17.617    0.000    0.102    0.289
 .thouprob_comp_2 ~~                                                           
   .thouprob_cmp_3           0.161    0.005   33.225    0.000    0.161    0.451
   .thouprob_cmp_4           0.134    0.005   28.410    0.000    0.134    0.386
   .thouprob_cmp_5           0.134    0.005   26.133    0.000    0.134    0.358
   .thouprob_cmp_6           0.094    0.006   16.880    0.000    0.094    0.282
 .thouprob_comp_3 ~~                                                           
   .thouprob_cmp_4           0.141    0.005   29.933    0.000    0.141    0.421
   .thouprob_cmp_5           0.133    0.005   26.133    0.000    0.133    0.369
   .thouprob_cmp_6           0.093    0.005   17.223    0.000    0.093    0.291
 .thouprob_comp_4 ~~                                                           
   .thouprob_cmp_5           0.173    0.005   33.278    0.000    0.173    0.495
   .thouprob_cmp_6           0.127    0.005   23.212    0.000    0.127    0.409
 .thouprob_comp_5 ~~                                                           
   .thouprob_cmp_6           0.169    0.006   27.786    0.000    0.169    0.502
 .attprob_comp_0 ~~                                                            
   .attprob_comp_1           0.305    0.006   51.929    0.000    0.305    0.675
   .attprob_comp_2           0.271    0.006   48.395    0.000    0.271    0.617
   .attprob_comp_3           0.250    0.006   45.285    0.000    0.250    0.574
   .attprob_comp_4           0.219    0.005   41.244    0.000    0.219    0.525
   .attprob_comp_5           0.219    0.006   39.607    0.000    0.219    0.513
   .attprob_comp_6           0.193    0.006   31.595    0.000    0.193    0.469
 .attprob_comp_1 ~~                                                            
   .attprob_comp_2           0.292    0.006   50.999    0.000    0.292    0.672
   .attprob_comp_3           0.267    0.006   47.515    0.000    0.267    0.618
   .attprob_comp_4           0.228    0.005   42.636    0.000    0.228    0.552
   .attprob_comp_5           0.230    0.006   41.501    0.000    0.230    0.544
   .attprob_comp_6           0.204    0.006   33.480    0.000    0.204    0.501
 .attprob_comp_2 ~~                                                            
   .attprob_comp_3           0.279    0.006   49.768    0.000    0.279    0.666
   .attprob_comp_4           0.240    0.005   45.141    0.000    0.240    0.597
   .attprob_comp_5           0.242    0.006   43.914    0.000    0.242    0.590
   .attprob_comp_6           0.212    0.006   35.595    0.000    0.212    0.537
 .attprob_comp_3 ~~                                                            
   .attprob_comp_4           0.259    0.005   47.452    0.000    0.259    0.649
   .attprob_comp_5           0.252    0.006   45.075    0.000    0.252    0.619
   .attprob_comp_6           0.220    0.006   36.907    0.000    0.220    0.561
 .attprob_comp_4 ~~                                                            
   .attprob_comp_5           0.266    0.006   47.476    0.000    0.266    0.684
   .attprob_comp_6           0.234    0.006   39.331    0.000    0.234    0.623
 .attprob_comp_5 ~~                                                            
   .attprob_comp_6           0.265    0.006   41.958    0.000    0.265    0.689
 .rulebreak_comp_0 ~~                                                          
   .rulebrek_cmp_1           0.293    0.006   50.111    0.000    0.293    0.610
   .rulebrek_cmp_2           0.257    0.006   44.087    0.000    0.257    0.525
   .rulebrek_cmp_3           0.240    0.006   39.750    0.000    0.240    0.477
   .rulebrek_cmp_4           0.241    0.007   34.689    0.000    0.241    0.415
   .rulebrek_cmp_5           0.268    0.008   32.492    0.000    0.268    0.394
   .rulebrek_cmp_6           0.225    0.010   23.109    0.000    0.225    0.323
 .rulebreak_comp_1 ~~                                                          
   .rulebrek_cmp_2           0.282    0.006   47.029    0.000    0.282    0.576
   .rulebrek_cmp_3           0.268    0.006   43.226    0.000    0.268    0.532
   .rulebrek_cmp_4           0.279    0.007   39.151    0.000    0.279    0.479
   .rulebrek_cmp_5           0.279    0.008   33.567    0.000    0.279    0.410
   .rulebrek_cmp_6           0.252    0.010   25.379    0.000    0.252    0.361
 .rulebreak_comp_2 ~~                                                          
   .rulebrek_cmp_3           0.305    0.007   46.534    0.000    0.305    0.596
   .rulebrek_cmp_4           0.301    0.007   40.704    0.000    0.301    0.507
   .rulebrek_cmp_5           0.338    0.009   38.788    0.000    0.338    0.487
   .rulebrek_cmp_6           0.315    0.010   30.573    0.000    0.315    0.443
 .rulebreak_comp_3 ~~                                                          
   .rulebrek_cmp_4           0.347    0.008   43.971    0.000    0.347    0.569
   .rulebrek_cmp_5           0.367    0.009   39.738    0.000    0.367    0.515
   .rulebrek_cmp_6           0.355    0.011   33.588    0.000    0.355    0.485
 .rulebreak_comp_4 ~~                                                          
   .rulebrek_cmp_5           0.534    0.011   47.472    0.000    0.534    0.646
   .rulebrek_cmp_6           0.509    0.013   39.777    0.000    0.509    0.602
 .rulebreak_comp_5 ~~                                                          
   .rulebrek_cmp_6           0.711    0.015   45.883    0.000    0.711    0.718
 .aggress_comp_0 ~~                                                            
   .aggress_comp_1           0.300    0.006   49.888    0.000    0.300    0.658
   .aggress_comp_2           0.270    0.006   46.645    0.000    0.270    0.606
   .aggress_comp_3           0.233    0.006   41.277    0.000    0.233    0.532
   .aggress_comp_4           0.205    0.005   38.610    0.000    0.205    0.502
   .aggress_comp_5           0.198    0.005   36.394    0.000    0.198    0.484
   .aggress_comp_6           0.160    0.006   27.946    0.000    0.160    0.430
 .aggress_comp_1 ~~                                                            
   .aggress_comp_2           0.278    0.006   48.273    0.000    0.278    0.644
   .aggress_comp_3           0.247    0.006   43.988    0.000    0.247    0.582
   .aggress_comp_4           0.210    0.005   40.083    0.000    0.210    0.531
   .aggress_comp_5           0.197    0.005   36.902    0.000    0.197    0.497
   .aggress_comp_6           0.162    0.006   28.473    0.000    0.162    0.448
 .aggress_comp_2 ~~                                                            
   .aggress_comp_3           0.270    0.006   47.284    0.000    0.270    0.649
   .aggress_comp_4           0.221    0.005   42.063    0.000    0.221    0.571
   .aggress_comp_5           0.214    0.005   40.073    0.000    0.214    0.554
   .aggress_comp_6           0.182    0.006   32.421    0.000    0.182    0.515
 .aggress_comp_3 ~~                                                            
   .aggress_comp_4           0.242    0.005   44.817    0.000    0.242    0.635
   .aggress_comp_5           0.224    0.005   41.212    0.000    0.224    0.588
   .aggress_comp_6           0.192    0.006   34.287    0.000    0.192    0.551
 .aggress_comp_4 ~~                                                            
   .aggress_comp_5           0.237    0.005   44.595    0.000    0.237    0.669
   .aggress_comp_6           0.197    0.005   36.296    0.000    0.197    0.610
 .aggress_comp_5 ~~                                                            
   .aggress_comp_6           0.222    0.006   38.839    0.000    0.222    0.684
 .anxdep_comp_0 ~~                                                             
   .withdep_comp_0           0.095    0.005   18.802    0.000    0.095    0.210
   .soma_comp_0              0.111    0.006   17.855    0.000    0.111    0.187
   .withdep_comp_1           0.079    0.005   15.406    0.000    0.079    0.168
   .soma_comp_1              0.075    0.006   12.100    0.000    0.075    0.126
   .withdep_comp_2           0.080    0.006   14.251    0.000    0.080    0.154
   .soma_comp_2              0.070    0.006   11.565    0.000    0.070    0.122
   .withdep_comp_3           0.093    0.007   14.226    0.000    0.093    0.157
   .soma_comp_3              0.071    0.006   11.474    0.000    0.071    0.124
   .withdep_comp_4           0.077    0.007   10.542    0.000    0.077    0.120
   .soma_comp_4              0.079    0.007   11.769    0.000    0.079    0.130
   .withdep_comp_5           0.073    0.008    9.083    0.000    0.073    0.108
   .soma_comp_5              0.059    0.008    7.724    0.000    0.059    0.089
   .withdep_comp_6           0.063    0.009    6.789    0.000    0.063    0.096
   .soma_comp_6              0.064    0.009    6.841    0.000    0.064    0.096
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_1            0.064    0.005   12.523    0.000    0.064    0.138
 .soma_comp_0 ~~                                                               
   .anxdep_comp_1            0.091    0.006   14.368    0.000    0.091    0.150
 .anxdep_comp_1 ~~                                                             
   .withdep_comp_1           0.099    0.005   18.531    0.000    0.099    0.207
   .soma_comp_1              0.105    0.006   16.175    0.000    0.105    0.172
   .withdep_comp_2           0.085    0.006   14.793    0.000    0.085    0.162
   .soma_comp_2              0.076    0.006   12.324    0.000    0.076    0.131
   .withdep_comp_3           0.107    0.007   15.977    0.000    0.107    0.178
   .soma_comp_3              0.073    0.006   11.490    0.000    0.073    0.124
   .withdep_comp_4           0.092    0.007   12.325    0.000    0.092    0.141
   .soma_comp_4              0.085    0.007   12.308    0.000    0.085    0.137
   .withdep_comp_5           0.107    0.008   13.031    0.000    0.107    0.156
   .soma_comp_5              0.082    0.008   10.440    0.000    0.082    0.120
   .withdep_comp_6           0.087    0.009    9.180    0.000    0.087    0.131
   .soma_comp_6              0.070    0.010    7.266    0.000    0.070    0.102
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_2            0.071    0.005   14.089    0.000    0.071    0.157
 .soma_comp_0 ~~                                                               
   .anxdep_comp_2            0.089    0.006   14.257    0.000    0.089    0.151
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_2            0.088    0.005   16.963    0.000    0.088    0.189
 .soma_comp_1 ~~                                                               
   .anxdep_comp_2            0.079    0.006   12.564    0.000    0.079    0.134
 .anxdep_comp_2 ~~                                                             
   .withdep_comp_2           0.139    0.006   23.814    0.000    0.139    0.270
   .soma_comp_2              0.108    0.006   17.668    0.000    0.108    0.192
   .withdep_comp_3           0.130    0.007   19.751    0.000    0.130    0.222
   .soma_comp_3              0.090    0.006   14.527    0.000    0.090    0.159
   .withdep_comp_4           0.113    0.007   15.365    0.000    0.113    0.176
   .soma_comp_4              0.101    0.007   15.069    0.000    0.101    0.168
   .withdep_comp_5           0.103    0.008   12.893    0.000    0.103    0.153
   .soma_comp_5              0.086    0.008   11.287    0.000    0.086    0.129
   .withdep_comp_6           0.081    0.009    8.961    0.000    0.081    0.126
   .soma_comp_6              0.079    0.009    8.490    0.000    0.079    0.118
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_3            0.057    0.005   11.005    0.000    0.057    0.124
 .soma_comp_0 ~~                                                               
   .anxdep_comp_3            0.095    0.006   14.738    0.000    0.095    0.158
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_3            0.074    0.005   13.901    0.000    0.074    0.155
 .soma_comp_1 ~~                                                               
   .anxdep_comp_3            0.085    0.007   13.001    0.000    0.085    0.140
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_3            0.111    0.006   18.729    0.000    0.111    0.210
 .soma_comp_2 ~~                                                               
   .anxdep_comp_3            0.094    0.006   15.007    0.000    0.094    0.163
 .anxdep_comp_3 ~~                                                             
   .withdep_comp_3           0.183    0.007   26.242    0.000    0.183    0.307
   .soma_comp_3              0.124    0.007   19.103    0.000    0.124    0.213
   .withdep_comp_4           0.143    0.008   18.797    0.000    0.143    0.219
   .soma_comp_4              0.131    0.007   18.662    0.000    0.131    0.212
   .withdep_comp_5           0.143    0.008   17.074    0.000    0.143    0.207
   .soma_comp_5              0.123    0.008   15.481    0.000    0.123    0.182
   .withdep_comp_6           0.108    0.009   11.740    0.000    0.108    0.163
   .soma_comp_6              0.131    0.009   13.836    0.000    0.131    0.191
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_4            0.039    0.005    7.517    0.000    0.039    0.087
 .soma_comp_0 ~~                                                               
   .anxdep_comp_4            0.077    0.006   12.043    0.000    0.077    0.132
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_4            0.058    0.005   10.939    0.000    0.058    0.125
 .soma_comp_1 ~~                                                               
   .anxdep_comp_4            0.074    0.006   11.404    0.000    0.074    0.125
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_4            0.086    0.006   14.803    0.000    0.086    0.169
 .soma_comp_2 ~~                                                               
   .anxdep_comp_4            0.079    0.006   12.627    0.000    0.079    0.140
 .withdep_comp_3 ~~                                                            
   .anxdep_comp_4            0.131    0.007   19.324    0.000    0.131    0.225
 .soma_comp_3 ~~                                                               
   .anxdep_comp_4            0.097    0.006   15.136    0.000    0.097    0.171
 .anxdep_comp_4 ~~                                                             
   .withdep_comp_4           0.202    0.008   25.971    0.000    0.202    0.318
   .soma_comp_4              0.149    0.007   21.327    0.000    0.149    0.248
   .withdep_comp_5           0.166    0.008   20.015    0.000    0.166    0.249
   .soma_comp_5              0.138    0.008   17.607    0.000    0.138    0.210
   .withdep_comp_6           0.130    0.009   14.144    0.000    0.130    0.202
   .soma_comp_6              0.140    0.009   14.809    0.000    0.140    0.210
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_5            0.034    0.005    6.169    0.000    0.034    0.074
 .soma_comp_0 ~~                                                               
   .anxdep_comp_5            0.068    0.007    9.991    0.000    0.068    0.114
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_5            0.057    0.006   10.176    0.000    0.057    0.120
 .soma_comp_1 ~~                                                               
   .anxdep_comp_5            0.077    0.007   11.124    0.000    0.077    0.127
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_5            0.092    0.006   14.780    0.000    0.092    0.174
 .soma_comp_2 ~~                                                               
   .anxdep_comp_5            0.084    0.007   12.743    0.000    0.084    0.146
 .withdep_comp_3 ~~                                                            
   .anxdep_comp_5            0.139    0.007   19.440    0.000    0.139    0.234
 .soma_comp_3 ~~                                                               
   .anxdep_comp_5            0.093    0.007   13.711    0.000    0.093    0.160
 .withdep_comp_4 ~~                                                            
   .anxdep_comp_5            0.175    0.008   21.818    0.000    0.175    0.269
 .soma_comp_4 ~~                                                               
   .anxdep_comp_5            0.143    0.007   19.393    0.000    0.143    0.232
 .anxdep_comp_5 ~~                                                             
   .withdep_comp_5           0.245    0.009   27.420    0.000    0.245    0.357
   .soma_comp_5              0.178    0.008   21.542    0.000    0.178    0.263
   .withdep_comp_6           0.158    0.010   16.511    0.000    0.158    0.239
   .soma_comp_6              0.155    0.010   15.806    0.000    0.155    0.226
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_6            0.040    0.006    6.345    0.000    0.040    0.092
 .soma_comp_0 ~~                                                               
   .anxdep_comp_6            0.063    0.008    8.093    0.000    0.063    0.110
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_6            0.059    0.006    9.260    0.000    0.059    0.131
 .soma_comp_1 ~~                                                               
   .anxdep_comp_6            0.067    0.008    8.424    0.000    0.067    0.116
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_6            0.089    0.007   12.146    0.000    0.089    0.178
 .soma_comp_2 ~~                                                               
   .anxdep_comp_6            0.084    0.007   11.291    0.000    0.084    0.153
 .withdep_comp_3 ~~                                                            
   .anxdep_comp_6            0.130    0.008   16.025    0.000    0.130    0.230
 .soma_comp_3 ~~                                                               
   .anxdep_comp_6            0.075    0.008    9.991    0.000    0.075    0.136
 .withdep_comp_4 ~~                                                            
   .anxdep_comp_6            0.157    0.009   17.420    0.000    0.157    0.252
 .soma_comp_4 ~~                                                               
   .anxdep_comp_6            0.112    0.008   13.412    0.000    0.112    0.191
 .withdep_comp_5 ~~                                                            
   .anxdep_comp_6            0.187    0.010   19.290    0.000    0.187    0.287
 .soma_comp_5 ~~                                                               
   .anxdep_comp_6            0.121    0.009   13.255    0.000    0.121    0.188
 .anxdep_comp_6 ~~                                                             
   .withdep_comp_6           0.225    0.010   22.250    0.000    0.225    0.358
   .soma_comp_6              0.168    0.010   16.988    0.000    0.168    0.258
 .withdep_comp_0 ~~                                                            
   .soma_comp_0              0.044    0.005    8.046    0.000    0.044    0.083
   .soma_comp_1              0.045    0.006    8.013    0.000    0.045    0.084
   .soma_comp_2              0.031    0.005    5.709    0.000    0.031    0.061
   .soma_comp_3              0.021    0.006    3.679    0.000    0.021    0.040
   .soma_comp_4              0.011    0.006    1.850    0.064    0.011    0.021
   .soma_comp_5             -0.018    0.007   -2.560    0.010   -0.018   -0.030
   .soma_comp_6             -0.016    0.009   -1.892    0.059   -0.016   -0.027
 .soma_comp_0 ~~                                                               
   .withdep_comp_1           0.029    0.006    5.088    0.000    0.029    0.052
 .withdep_comp_1 ~~                                                            
   .soma_comp_1              0.058    0.006   10.086    0.000    0.058    0.106
   .soma_comp_2              0.043    0.006    7.660    0.000    0.043    0.081
   .soma_comp_3              0.044    0.006    7.691    0.000    0.044    0.083
   .soma_comp_4              0.030    0.006    4.882    0.000    0.030    0.054
   .soma_comp_5              0.025    0.007    3.561    0.000    0.025    0.041
   .soma_comp_6              0.010    0.009    1.138    0.255    0.010    0.016
 .soma_comp_0 ~~                                                               
   .withdep_comp_2           0.042    0.006    6.696    0.000    0.042    0.069
 .soma_comp_1 ~~                                                               
   .withdep_comp_2           0.057    0.006    9.026    0.000    0.057    0.094
 .withdep_comp_2 ~~                                                            
   .soma_comp_2              0.072    0.006   11.830    0.000    0.072    0.124
   .soma_comp_3              0.054    0.006    8.652    0.000    0.054    0.093
   .soma_comp_4              0.070    0.007   10.258    0.000    0.070    0.113
   .soma_comp_5              0.062    0.008    8.059    0.000    0.062    0.092
   .soma_comp_6              0.047    0.010    4.790    0.000    0.047    0.068
 .soma_comp_0 ~~                                                               
   .withdep_comp_3           0.058    0.007    8.005    0.000    0.058    0.085
 .soma_comp_1 ~~                                                               
   .withdep_comp_3           0.052    0.007    7.087    0.000    0.052    0.075
 .soma_comp_2 ~~                                                               
   .withdep_comp_3           0.058    0.007    8.289    0.000    0.058    0.088
 .withdep_comp_3 ~~                                                            
   .soma_comp_3              0.080    0.007   11.228    0.000    0.080    0.122
   .soma_comp_4              0.107    0.008   13.583    0.000    0.107    0.152
   .soma_comp_5              0.119    0.009   13.419    0.000    0.119    0.155
   .soma_comp_6              0.122    0.011   11.288    0.000    0.122    0.156
 .soma_comp_0 ~~                                                               
   .withdep_comp_4           0.050    0.008    6.038    0.000    0.050    0.066
 .soma_comp_1 ~~                                                               
   .withdep_comp_4           0.062    0.008    7.507    0.000    0.062    0.082
 .soma_comp_2 ~~                                                               
   .withdep_comp_4           0.057    0.008    7.185    0.000    0.057    0.079
 .soma_comp_3 ~~                                                               
   .withdep_comp_4           0.080    0.008    9.842    0.000    0.080    0.110
 .withdep_comp_4 ~~                                                            
   .soma_comp_4              0.147    0.009   16.697    0.000    0.147    0.190
   .soma_comp_5              0.143    0.010   14.488    0.000    0.143    0.169
   .soma_comp_6              0.163    0.012   13.644    0.000    0.163    0.190
 .soma_comp_0 ~~                                                               
   .withdep_comp_5           0.042    0.009    4.618    0.000    0.042    0.053
 .soma_comp_1 ~~                                                               
   .withdep_comp_5           0.056    0.009    6.124    0.000    0.056    0.070
 .soma_comp_2 ~~                                                               
   .withdep_comp_5           0.051    0.009    5.921    0.000    0.051    0.068
 .soma_comp_3 ~~                                                               
   .withdep_comp_5           0.073    0.009    8.237    0.000    0.073    0.096
 .soma_comp_4 ~~                                                               
   .withdep_comp_5           0.136    0.010   14.196    0.000    0.136    0.168
 .withdep_comp_5 ~~                                                            
   .soma_comp_5              0.209    0.011   19.556    0.000    0.209    0.235
   .soma_comp_6              0.196    0.013   15.301    0.000    0.196    0.218
 .soma_comp_0 ~~                                                               
   .withdep_comp_6           0.050    0.010    4.900    0.000    0.050    0.066
 .soma_comp_1 ~~                                                               
   .withdep_comp_6           0.038    0.010    3.686    0.000    0.038    0.050
 .soma_comp_2 ~~                                                               
   .withdep_comp_6           0.040    0.010    4.047    0.000    0.040    0.054
 .soma_comp_3 ~~                                                               
   .withdep_comp_6           0.050    0.010    5.118    0.000    0.050    0.069
 .soma_comp_4 ~~                                                               
   .withdep_comp_6           0.095    0.011    8.724    0.000    0.095    0.121
 .soma_comp_5 ~~                                                               
   .withdep_comp_6           0.137    0.012   11.516    0.000    0.137    0.160
 .withdep_comp_6 ~~                                                            
   .soma_comp_6              0.207    0.013   16.058    0.000    0.207    0.239
 .rulebreak_comp_0 ~~                                                          
   .aggress_comp_0           0.222    0.006   38.877    0.000    0.222    0.468
   .aggress_comp_1           0.173    0.005   32.312    0.000    0.173    0.376
   .aggress_comp_2           0.162    0.005   30.784    0.000    0.162    0.361
   .aggress_comp_3           0.140    0.005   26.455    0.000    0.140    0.315
   .aggress_comp_4           0.131    0.005   25.982    0.000    0.131    0.319
   .aggress_comp_5           0.134    0.005   25.775    0.000    0.134    0.325
   .aggress_comp_6           0.112    0.006   19.751    0.000    0.112    0.297
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_1           0.182    0.005   33.079    0.000    0.182    0.382
 .rulebreak_comp_1 ~~                                                          
   .aggress_comp_1           0.216    0.006   38.072    0.000    0.216    0.469
   .aggress_comp_2           0.170    0.005   31.908    0.000    0.170    0.378
   .aggress_comp_3           0.152    0.005   28.476    0.000    0.152    0.343
   .aggress_comp_4           0.144    0.005   28.119    0.000    0.144    0.349
   .aggress_comp_5           0.135    0.005   25.841    0.000    0.135    0.327
   .aggress_comp_6           0.123    0.006   21.330    0.000    0.123    0.327
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_2           0.161    0.006   28.960    0.000    0.161    0.333
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_2           0.165    0.005   29.999    0.000    0.165    0.351
 .rulebreak_comp_2 ~~                                                          
   .aggress_comp_2           0.223    0.006   38.633    0.000    0.223    0.486
   .aggress_comp_3           0.169    0.006   30.316    0.000    0.169    0.373
   .aggress_comp_4           0.143    0.005   27.194    0.000    0.143    0.340
   .aggress_comp_5           0.144    0.005   26.778    0.000    0.144    0.341
   .aggress_comp_6           0.140    0.006   23.623    0.000    0.140    0.364
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_3           0.161    0.006   27.758    0.000    0.161    0.324
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_3           0.164    0.006   28.728    0.000    0.164    0.340
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_3           0.180    0.006   31.497    0.000    0.180    0.382
 .rulebreak_comp_3 ~~                                                          
   .aggress_comp_3           0.231    0.006   38.062    0.000    0.231    0.498
   .aggress_comp_4           0.165    0.005   30.162    0.000    0.165    0.383
   .aggress_comp_5           0.156    0.006   27.794    0.000    0.156    0.360
   .aggress_comp_6           0.153    0.006   25.536    0.000    0.153    0.387
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_4           0.183    0.007   26.956    0.000    0.183    0.318
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_4           0.189    0.007   28.390    0.000    0.189    0.339
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_4           0.188    0.007   28.660    0.000    0.188    0.345
 .aggress_comp_3 ~~                                                            
   .rulebrek_cmp_4           0.204    0.007   30.294    0.000    0.204    0.380
 .rulebreak_comp_4 ~~                                                          
   .aggress_comp_4           0.249    0.007   37.270    0.000    0.249    0.498
   .aggress_comp_5           0.207    0.007   31.198    0.000    0.207    0.413
   .aggress_comp_6           0.173    0.007   24.540    0.000    0.173    0.378
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_5           0.214    0.008   26.261    0.000    0.214    0.317
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_5           0.201    0.008   25.340    0.000    0.201    0.308
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_5           0.227    0.008   28.730    0.000    0.227    0.355
 .aggress_comp_3 ~~                                                            
   .rulebrek_cmp_5           0.225    0.008   28.140    0.000    0.225    0.358
 .aggress_comp_4 ~~                                                            
   .rulebrek_cmp_5           0.232    0.008   30.516    0.000    0.232    0.397
 .rulebreak_comp_5 ~~                                                          
   .aggress_comp_5           0.310    0.008   37.932    0.000    0.310    0.528
   .aggress_comp_6           0.236    0.008   28.439    0.000    0.236    0.442
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_6           0.195    0.010   20.309    0.000    0.195    0.283
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_6           0.178    0.009   18.787    0.000    0.178    0.266
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_6           0.212    0.009   22.853    0.000    0.212    0.324
 .aggress_comp_3 ~~                                                            
   .rulebrek_cmp_6           0.220    0.009   23.827    0.000    0.220    0.341
 .aggress_comp_4 ~~                                                            
   .rulebrek_cmp_6           0.223    0.009   25.316    0.000    0.223    0.373
 .aggress_comp_5 ~~                                                            
   .rulebrek_cmp_6           0.248    0.009   27.190    0.000    0.248    0.414
 .rulebreak_comp_6 ~~                                                          
   .aggress_comp_6           0.272    0.009   29.159    0.000    0.272    0.497
 .p_i ~~                                                                       
   .p_s                     -0.031    0.006   -5.441    0.000   -0.227   -0.227
   .p_q                      0.001    0.002    0.356    0.722    0.013    0.013
 .p_s ~~                                                                       
   .p_q                     -0.023    0.003   -8.656    0.000   -0.856   -0.856
 .flanker_0 ~~                                                                 
   .flanker_2                0.137    0.007   18.700    0.000    0.137    0.243
   .flanker_4                0.098    0.007   13.030    0.000    0.098    0.179
   .flanker_6                0.086    0.009    9.274    0.000    0.086    0.161
 .flanker_2 ~~                                                                 
   .flanker_4                0.144    0.007   19.861    0.000    0.144    0.320
   .flanker_6                0.101    0.008   12.511    0.000    0.101    0.230
 .flanker_4 ~~                                                                 
   .flanker_6                0.152    0.009   16.820    0.000    0.152    0.357
 .pattern_0 ~~                                                                 
   .pattern_2                0.075    0.005   13.682    0.000    0.075    0.219
   .pattern_4                0.041    0.006    6.885    0.000    0.041    0.112
   .pattern_6                0.033    0.007    4.694    0.000    0.033    0.094
 .pattern_2 ~~                                                                 
   .pattern_4                0.106    0.007   15.466    0.000    0.106    0.291
   .pattern_6                0.074    0.008    9.898    0.000    0.074    0.210
 .pattern_4 ~~                                                                 
   .pattern_6                0.126    0.009   14.167    0.000    0.126    0.335
 .picture_0 ~~                                                                 
   .picture_2                0.252    0.007   33.916    0.000    0.252    0.365
   .picture_4                0.258    0.009   28.172    0.000    0.258    0.311
   .picture_6                0.283    0.012   23.634    0.000    0.283    0.344
 .picture_2 ~~                                                                 
   .picture_4                0.287    0.010   28.167    0.000    0.287    0.326
   .picture_6                0.268    0.013   19.962    0.000    0.268    0.307
 .picture_4 ~~                                                                 
   .picture_6                0.391    0.016   24.787    0.000    0.391    0.375
 .picvocab_0 ~~                                                                
   .picvocab_2               0.399    0.007   53.363    0.000    0.399    0.677
   .picvocab_4               0.403    0.008   50.844    0.000    0.403    0.649
   .picvocab_6               0.382    0.009   43.424    0.000    0.382    0.627
 .picvocab_2 ~~                                                                
   .picvocab_4               0.475    0.009   54.239    0.000    0.475    0.728
   .picvocab_6               0.462    0.010   47.613    0.000    0.462    0.722
 .picvocab_4 ~~                                                                
   .picvocab_6               0.511    0.011   48.545    0.000    0.511    0.757
 .reading_0 ~~                                                                 
   .reading_2                0.405    0.007   55.036    0.000    0.405    0.722
   .reading_4                0.409    0.008   50.916    0.000    0.409    0.662
   .reading_6                0.418    0.010   43.677    0.000    0.418    0.657
 .reading_2 ~~                                                                 
   .reading_4                0.418    0.008   51.451    0.000    0.418    0.693
   .reading_6                0.435    0.010   45.409    0.000    0.435    0.699
 .reading_4 ~~                                                                 
   .reading_6                0.459    0.011   43.045    0.000    0.459    0.670
 .picvocab_0 ~~                                                                
   .reading_0                0.234    0.006   36.072    0.000    0.234    0.412
   .reading_2                0.247    0.007   37.793    0.000    0.247    0.446
   .reading_4                0.266    0.007   36.401    0.000    0.266    0.436
   .reading_6                0.285    0.009   32.287    0.000    0.285    0.453
 .picvocab_2 ~~                                                                
   .reading_2                0.290    0.007   40.613    0.000    0.290    0.499
 .reading_0 ~~                                                                 
   .picvocab_2               0.268    0.007   38.429    0.000    0.268    0.451
 .picvocab_2 ~~                                                                
   .reading_4                0.316    0.008   39.738    0.000    0.316    0.493
   .reading_6                0.341    0.010   35.620    0.000    0.341    0.517
 .picvocab_4 ~~                                                                
   .reading_4                0.340    0.009   39.112    0.000    0.340    0.503
 .reading_0 ~~                                                                 
   .picvocab_4               0.277    0.008   36.904    0.000    0.277    0.441
 .reading_2 ~~                                                                 
   .picvocab_4               0.302    0.008   39.578    0.000    0.302    0.493
 .picvocab_4 ~~                                                                
   .reading_6                0.370    0.010   35.790    0.000    0.370    0.531
 .picvocab_6 ~~                                                                
   .reading_6                0.364    0.011   32.416    0.000    0.364    0.532
 .reading_0 ~~                                                                 
   .picvocab_6               0.258    0.009   30.034    0.000    0.258    0.418
 .reading_2 ~~                                                                 
   .picvocab_6               0.286    0.009   33.227    0.000    0.286    0.475
 .reading_4 ~~                                                                 
   .picvocab_6               0.325    0.010   33.553    0.000    0.325    0.490
  g_i ~~                                                                       
    g_s                      0.004    0.001    3.512    0.000    0.204    0.204

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .asr___0 (t_AX)   -0.011    0.004   -2.608    0.009   -0.011   -0.011
   .asr___0 (t_AW)   -0.003    0.005   -0.543    0.587   -0.003   -0.003
   .asr___0 (t_AS)   -0.006    0.005   -1.193    0.233   -0.006   -0.006
   .asr___0 (t_AP)   -0.005    0.005   -1.102    0.270   -0.005   -0.005
   .asr___0 (t_AH)   -0.005    0.005   -1.088    0.276   -0.005   -0.005
   .asr___0 (t_AA)    0.002    0.005    0.369    0.712    0.002    0.002
   .asr___0 (t_AR)   -0.004    0.005   -0.859    0.391   -0.004   -0.004
   .asr___0 (t_AG)   -0.003    0.007   -0.472    0.637   -0.003   -0.003
   .asr___2 (t_AX)   -0.011    0.004   -2.608    0.009   -0.011   -0.011
   .asr___2 (t_AW)   -0.003    0.005   -0.543    0.587   -0.003   -0.003
   .asr___2 (t_AS)   -0.006    0.005   -1.193    0.233   -0.006   -0.006
   .asr___2 (t_AP)   -0.005    0.005   -1.102    0.270   -0.005   -0.005
   .asr___2 (t_AH)   -0.005    0.005   -1.088    0.276   -0.005   -0.005
   .asr___2 (t_AA)    0.002    0.005    0.369    0.712    0.002    0.002
   .asr___2 (t_AR)   -0.004    0.005   -0.859    0.391   -0.004   -0.004
   .asr___2 (t_AG)   -0.003    0.007   -0.472    0.637   -0.003   -0.003
   .asr___4 (t_AX)   -0.011    0.004   -2.608    0.009   -0.011   -0.011
   .asr___4 (t_AW)   -0.003    0.005   -0.543    0.587   -0.003   -0.003
   .asr___4 (t_AS)   -0.006    0.005   -1.193    0.233   -0.006   -0.007
   .asr___4 (t_AP)   -0.005    0.005   -1.102    0.270   -0.005   -0.005
   .asr___4 (t_AH)   -0.005    0.005   -1.088    0.276   -0.005   -0.005
   .asr___4 (t_AA)    0.002    0.005    0.369    0.712    0.002    0.002
   .asr___4 (t_AR)   -0.004    0.005   -0.859    0.391   -0.004   -0.004
   .asr___4 (t_AG)   -0.003    0.007   -0.472    0.637   -0.003   -0.003
    a_i               0.031    0.008    4.045    0.000    0.040    0.040
    a_s              -0.024    0.004   -6.475    0.000   -0.094   -0.094
   .a_etaB            0.000                               0.000    0.000
   .a_eta2            0.000                               0.000    0.000
   .a_eta4            0.000                               0.000    0.000
   .anxd__0 (t_CX)   -0.013    0.005   -2.624    0.009   -0.013   -0.013
   .anxd__1 (t_CX)   -0.013    0.005   -2.624    0.009   -0.013   -0.013
   .anxd__2 (t_CX)   -0.013    0.005   -2.624    0.009   -0.013   -0.013
   .anxd__3 (t_CX)   -0.013    0.005   -2.624    0.009   -0.013   -0.013
   .anxd__4 (t_CX)   -0.013    0.005   -2.624    0.009   -0.013   -0.013
   .anxd__5 (t_CX)   -0.013    0.005   -2.624    0.009   -0.013   -0.013
   .anxd__6 (t_CX)   -0.013    0.005   -2.624    0.009   -0.013   -0.014
   .wthd__0 (t_CW)   -0.079    0.005  -15.587    0.000   -0.079   -0.087
   .wthd__1 (t_CW)   -0.079    0.005  -15.587    0.000   -0.079   -0.086
   .wthd__2 (t_CW)   -0.079    0.005  -15.587    0.000   -0.079   -0.082
   .wthd__3 (t_CW)   -0.079    0.005  -15.587    0.000   -0.079   -0.076
   .wthd__4 (t_CW)   -0.079    0.005  -15.587    0.000   -0.079   -0.072
   .wthd__5 (t_CW)   -0.079    0.005  -15.587    0.000   -0.079   -0.070
   .wthd__6 (t_CW)   -0.079    0.005  -15.587    0.000   -0.079   -0.073
   .sm_cm_0 (t_CS)   -0.016    0.006   -2.739    0.006   -0.016   -0.016
   .sm_cm_1 (t_CS)   -0.016    0.006   -2.739    0.006   -0.016   -0.016
   .sm_cm_2 (t_CS)   -0.016    0.006   -2.739    0.006   -0.016   -0.017
   .sm_cm_3 (t_CS)   -0.016    0.006   -2.739    0.006   -0.016   -0.017
   .sm_cm_4 (t_CS)   -0.016    0.006   -2.739    0.006   -0.016   -0.016
   .sm_cm_5 (t_CS)   -0.016    0.006   -2.739    0.006   -0.016   -0.015
   .sm_cm_6 (t_CS)   -0.016    0.006   -2.739    0.006   -0.016   -0.015
   .scpr__0 (t_CP)    0.027    0.004    6.854    0.000    0.027    0.026
   .scpr__1 (t_CP)    0.027    0.004    6.854    0.000    0.027    0.027
   .scpr__2 (t_CP)    0.027    0.004    6.854    0.000    0.027    0.027
   .scpr__3 (t_CP)    0.027    0.004    6.854    0.000    0.027    0.028
   .scpr__4 (t_CP)    0.027    0.004    6.854    0.000    0.027    0.028
   .scpr__5 (t_CP)    0.027    0.004    6.854    0.000    0.027    0.029
   .scpr__6 (t_CP)    0.027    0.004    6.854    0.000    0.027    0.030
   .thpr__0 (t_CH)    0.029    0.004    7.137    0.000    0.029    0.028
   .thpr__1 (t_CH)    0.029    0.004    7.137    0.000    0.029    0.028
   .thpr__2 (t_CH)    0.029    0.004    7.137    0.000    0.029    0.028
   .thpr__3 (t_CH)    0.029    0.004    7.137    0.000    0.029    0.029
   .thpr__4 (t_CH)    0.029    0.004    7.137    0.000    0.029    0.030
   .thpr__5 (t_CH)    0.029    0.004    7.137    0.000    0.029    0.029
   .thpr__6 (t_CH)    0.029    0.004    7.137    0.000    0.029    0.031
   .attp__0 (t_CA)    0.032    0.005    6.836    0.000    0.032    0.032
   .attp__1 (t_CA)    0.032    0.005    6.836    0.000    0.032    0.032
   .attp__2 (t_CA)    0.032    0.005    6.836    0.000    0.032    0.033
   .attp__3 (t_CA)    0.032    0.005    6.836    0.000    0.032    0.033
   .attp__4 (t_CA)    0.032    0.005    6.836    0.000    0.032    0.034
   .attp__5 (t_CA)    0.032    0.005    6.836    0.000    0.032    0.034
   .attp__6 (t_CA)    0.032    0.005    6.836    0.000    0.032    0.036
   .rlbr__0 (t_CR)   -0.019    0.005   -3.859    0.000   -0.019   -0.020
   .rlbr__1 (t_CR)   -0.019    0.005   -3.859    0.000   -0.019   -0.020
   .rlbr__2 (t_CR)   -0.019    0.005   -3.859    0.000   -0.019   -0.020
   .rlbr__3 (t_CR)   -0.019    0.005   -3.859    0.000   -0.019   -0.020
   .rlbr__4 (t_CR)   -0.019    0.005   -3.859    0.000   -0.019   -0.018
   .rlbr__5 (t_CR)   -0.019    0.005   -3.859    0.000   -0.019   -0.016
   .rlbr__6 (t_CR)   -0.019    0.005   -3.859    0.000   -0.019   -0.016
   .aggr__0 (t_CG)   -0.002    0.004   -0.459    0.646   -0.002   -0.002
   .aggr__1 (t_CG)   -0.002    0.004   -0.459    0.646   -0.002   -0.002
   .aggr__2 (t_CG)   -0.002    0.004   -0.459    0.646   -0.002   -0.002
   .aggr__3 (t_CG)   -0.002    0.004   -0.459    0.646   -0.002   -0.002
   .aggr__4 (t_CG)   -0.002    0.004   -0.459    0.646   -0.002   -0.002
   .aggr__5 (t_CG)   -0.002    0.004   -0.459    0.646   -0.002   -0.002
   .aggr__6 (t_CG)   -0.002    0.004   -0.459    0.646   -0.002   -0.002
   .p_i              -0.147    0.013  -10.993    0.000   -0.214   -0.214
   .p_s               0.432    0.215    2.010    0.044    1.012    1.012
   .p_q              -0.129    0.071   -1.814    0.070   -1.049   -1.049
   .p_etaB            0.000                               0.000    0.000
   .p_eta1            0.000                               0.000    0.000
   .p_eta2            0.000                               0.000    0.000
   .p_eta3            0.000                               0.000    0.000
   .p_eta4            0.000                               0.000    0.000
   .p_eta5            0.000                               0.000    0.000
   .p_eta6            0.000                               0.000    0.000
   .flnkr_0 (ta_S)    0.106    0.005   21.497    0.000    0.106    0.115
   .flnkr_2 (ta_S)    0.106    0.005   21.497    0.000    0.106    0.133
   .flnkr_4 (ta_S)    0.106    0.005   21.497    0.000    0.106    0.133
   .flnkr_6 (ta_S)    0.106    0.005   21.497    0.000    0.106    0.130
   .pttrn_0 (ta_R)    0.123    0.005   26.875    0.000    0.123    0.162
   .pttrn_2 (ta_R)    0.123    0.005   26.875    0.000    0.123    0.160
   .pttrn_4 (ta_R)    0.123    0.005   26.875    0.000    0.123    0.150
   .pttrn_6 (ta_R)    0.123    0.005   26.875    0.000    0.123    0.144
   .pictr_0 (ta_M)    0.056    0.006    8.746    0.000    0.056    0.066
   .pictr_2 (ta_M)    0.056    0.006    8.746    0.000    0.056    0.063
   .pictr_4 (ta_M)    0.056    0.006    8.746    0.000    0.056    0.053
   .pictr_6 (ta_M)    0.056    0.006    8.746    0.000    0.056    0.053
   .pcvcb_0 (ta_P)    0.053    0.005   10.138    0.000    0.053    0.064
   .pcvcb_2 (ta_P)    0.053    0.005   10.138    0.000    0.053    0.061
   .pcvcb_4 (ta_P)    0.053    0.005   10.138    0.000    0.053    0.058
   .pcvcb_6 (ta_P)    0.053    0.005   10.138    0.000    0.053    0.057
   .redng_0 (ta_V)    0.064    0.005   12.634    0.000    0.064    0.075
   .redng_2 (ta_V)    0.064    0.005   12.634    0.000    0.064    0.076
   .redng_4 (ta_V)    0.064    0.005   12.634    0.000    0.064    0.070
   .redng_6 (ta_V)    0.064    0.005   12.634    0.000    0.064    0.066
    g_i              -0.660    0.006 -101.934    0.000   -1.698   -1.698
    g_s               0.473    0.004  128.255    0.000    9.010    9.010
   .g_etaB            0.000                               0.000    0.000
   .g_eta2            0.000                               0.000    0.000
   .g_eta4            0.000                               0.000    0.000
   .g_eta6            0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .a_etaB            0.101    0.006   16.624    0.000    0.142    0.142
   .a_eta2            0.182    0.005   39.319    0.000    0.262    0.262
   .a_eta4            0.102    0.007   14.192    0.000    0.159    0.159
   .asr_nxdp_cmp_0    0.311    0.006   53.388    0.000    0.311    0.305
   .asr_wthdp_cm_0    0.486    0.008   63.083    0.000    0.486    0.463
   .asr_soma_cmp_0    0.551    0.008   66.546    0.000    0.551    0.549
   .asr_thprb_cm_0    0.471    0.007   65.271    0.000    0.471    0.435
   .asr_ttprb_cm_0    0.408    0.006   64.397    0.000    0.408    0.411
   .asr_rlbrk_cm_0    0.660    0.009   69.905    0.000    0.660    0.606
   .asr_ggrss_cm_0    0.448    0.007   64.475    0.000    0.448    0.427
   .asr_intr_cmp_0    0.898    0.012   74.901    0.000    0.898    0.841
   .asr_nxdp_cmp_2    0.339    0.006   53.433    0.000    0.339    0.329
   .asr_wthdp_cm_2    0.481    0.008   61.119    0.000    0.481    0.467
   .asr_soma_cmp_2    0.560    0.009   64.620    0.000    0.560    0.559
   .asr_thprb_cm_2    0.412    0.007   61.782    0.000    0.412    0.408
   .asr_ttprb_cm_2    0.383    0.006   61.200    0.000    0.383    0.402
   .asr_rlbrk_cm_2    0.603    0.009   66.770    0.000    0.603    0.590
   .asr_ggrss_cm_2    0.435    0.007   62.272    0.000    0.435    0.426
   .asr_intr_cmp_2    0.821    0.011   72.050    0.000    0.821    0.832
   .asr_nxdp_cmp_4    0.352    0.007   50.810    0.000    0.352    0.354
   .asr_wthdp_cm_4    0.461    0.008   57.271    0.000    0.461    0.475
   .asr_soma_cmp_4    0.554    0.009   60.444    0.000    0.554    0.575
   .asr_thprb_cm_4    0.384    0.007   57.235    0.000    0.384    0.410
   .asr_ttprb_cm_4    0.420    0.007   58.579    0.000    0.420    0.443
   .asr_rlbrk_cm_4    0.561    0.009   62.020    0.000    0.561    0.591
   .asr_ggrss_cm_4    0.417    0.007   58.230    0.000    0.417    0.434
   .asr_intr_cmp_4    0.806    0.012   67.776    0.000    0.806    0.840
    a_i               0.608    0.012   49.263    0.000    1.000    1.000
    a_s               0.063    0.003   20.105    0.000    1.000    1.000
   .p_etaB            0.079    0.004   20.383    0.000    0.145    0.145
   .p_eta1            0.123    0.003   42.614    0.000    0.228    0.228
   .p_eta2            0.120    0.003   42.364    0.000    0.227    0.227
   .p_eta3            0.112    0.003   39.362    0.000    0.216    0.216
   .p_eta4            0.105    0.003   38.326    0.000    0.210    0.210
   .p_eta5            0.111    0.003   35.558    0.000    0.224    0.224
   .p_eta6            0.040    0.005    8.837    0.000    0.090    0.090
   .anxdep_comp_0     0.509    0.008   66.978    0.000    0.509    0.482
   .withdep_comp_0    0.405    0.006   65.354    0.000    0.405    0.498
   .soma_comp_0       0.690    0.009   72.711    0.000    0.690    0.698
   .socprob_comp_0    0.419    0.007   61.198    0.000    0.419    0.379
   .thouprob_cmp_0    0.410    0.007   63.024    0.000    0.410    0.380
   .attprob_comp_0    0.457    0.007   66.022    0.000    0.457    0.457
   .rulebrek_cmp_0    0.480    0.007   69.179    0.000    0.480    0.543
   .aggress_comp_0    0.470    0.007   64.460    0.000    0.470    0.430
   .anxdep_comp_1     0.527    0.008   65.779    0.000    0.527    0.494
   .withdep_comp_1    0.432    0.007   66.246    0.000    0.432    0.517
   .soma_comp_1       0.699    0.010   71.035    0.000    0.699    0.703
   .socprob_comp_1    0.389    0.007   59.426    0.000    0.389    0.365
   .thouprob_cmp_1    0.420    0.007   61.660    0.000    0.420    0.389
   .attprob_comp_1    0.449    0.007   64.632    0.000    0.449    0.456
   .rulebrek_cmp_1    0.481    0.007   67.225    0.000    0.481    0.548
   .aggress_comp_1    0.441    0.007   62.975    0.000    0.441    0.418
   .anxdep_comp_2     0.499    0.008   65.120    0.000    0.499    0.486
   .withdep_comp_2    0.529    0.008   67.206    0.000    0.529    0.573
   .soma_comp_2       0.639    0.009   69.736    0.000    0.639    0.689
   .socprob_comp_2    0.349    0.006   58.025    0.000    0.349    0.345
   .thouprob_cmp_2    0.371    0.006   59.599    0.000    0.371    0.365
   .attprob_comp_2    0.422    0.007   63.737    0.000    0.422    0.446
   .rulebrek_cmp_2    0.499    0.008   66.263    0.000    0.499    0.562
   .aggress_comp_2    0.422    0.007   61.966    0.000    0.422    0.412
   .anxdep_comp_3     0.526    0.008   63.739    0.000    0.526    0.504
   .withdep_comp_3    0.679    0.010   65.540    0.000    0.679    0.637
   .soma_comp_3       0.645    0.010   67.697    0.000    0.645    0.695
   .socprob_comp_3    0.320    0.006   55.681    0.000    0.320    0.330
   .thouprob_cmp_3    0.345    0.006   57.037    0.000    0.345    0.354
   .attprob_comp_3    0.417    0.007   62.129    0.000    0.417    0.448
   .rulebrek_cmp_3    0.527    0.008   63.729    0.000    0.527    0.580
   .aggress_comp_3    0.410    0.007   59.923    0.000    0.410    0.410
   .anxdep_comp_4     0.496    0.008   61.566    0.000    0.496    0.498
   .withdep_comp_4    0.816    0.013   63.093    0.000    0.816    0.686
   .soma_comp_4       0.731    0.011   65.739    0.000    0.731    0.728
   .socprob_comp_4    0.305    0.006   53.853    0.000    0.305    0.327
   .thouprob_cmp_4    0.325    0.006   54.764    0.000    0.325    0.348
   .attprob_comp_4    0.381    0.006   59.798    0.000    0.381    0.435
   .rulebrek_cmp_4    0.705    0.011   63.069    0.000    0.705    0.657
   .aggress_comp_4    0.354    0.006   57.403    0.000    0.354    0.384
   .anxdep_comp_5     0.522    0.009   58.799    0.000    0.522    0.513
   .withdep_comp_5    0.900    0.015   60.321    0.000    0.900    0.709
   .soma_comp_5       0.874    0.014   62.722    0.000    0.874    0.764
   .socprob_comp_5    0.299    0.006   50.493    0.000    0.299    0.325
   .thouprob_cmp_5    0.376    0.007   53.500    0.000    0.376    0.384
   .attprob_comp_5    0.397    0.007   57.780    0.000    0.397    0.447
   .rulebrek_cmp_5    0.966    0.016   61.566    0.000    0.966    0.726
   .aggress_comp_5    0.356    0.006   54.924    0.000    0.356    0.387
   .anxdep_comp_6     0.473    0.010   46.997    0.000    0.473    0.515
   .withdep_comp_6    0.836    0.017   48.445    0.000    0.836    0.715
   .soma_comp_6       0.895    0.018   50.100    0.000    0.895    0.786
   .socprob_comp_6    0.256    0.007   38.953    0.000    0.256    0.315
   .thouprob_cmp_6    0.299    0.007   40.542    0.000    0.299    0.355
   .attprob_comp_6    0.371    0.008   46.734    0.000    0.371    0.456
   .rulebrek_cmp_6    1.013    0.020   49.971    0.000    1.013    0.755
   .aggress_comp_6    0.295    0.007   43.018    0.000    0.295    0.368
   .p_i               0.232    0.007   35.308    0.000    0.496    0.496
   .p_s               0.078    0.009    8.605    0.000    0.428    0.428
   .p_q               0.009    0.001   11.031    0.000    0.622    0.622
   .g_etaB            0.012    0.002    5.317    0.000    0.073    0.073
   .g_eta2            0.008    0.002    5.196    0.000    0.048    0.048
   .g_eta4            0.017    0.002    8.227    0.000    0.088    0.088
   .g_eta6            0.045    0.004   11.346    0.000    0.183    0.183
   .flanker_0         0.683    0.010   68.062    0.000    0.683    0.807
   .flanker_2         0.465    0.009   54.435    0.000    0.465    0.732
   .flanker_4         0.435    0.009   49.517    0.000    0.435    0.689
   .flanker_6         0.416    0.011   38.690    0.000    0.416    0.629
   .pattern_0         0.339    0.006   52.775    0.000    0.339    0.584
   .pattern_2         0.341    0.008   45.373    0.000    0.341    0.575
   .pattern_4         0.386    0.009   42.961    0.000    0.386    0.571
   .pattern_6         0.367    0.011   33.024    0.000    0.367    0.502
   .picture_0         0.653    0.009   73.385    0.000    0.653    0.918
   .picture_2         0.733    0.011   69.170    0.000    0.733    0.923
   .picture_4         1.055    0.016   66.199    0.000    1.055    0.938
   .picture_6         1.035    0.022   47.849    0.000    1.035    0.922
   .picvocab_0        0.561    0.008   69.074    0.000    0.561    0.800
   .picvocab_2        0.619    0.009   66.319    0.000    0.619    0.808
   .picvocab_4        0.688    0.011   63.182    0.000    0.688    0.803
   .picvocab_6        0.663    0.013   49.360    0.000    0.663    0.758
   .reading_0         0.574    0.008   68.379    0.000    0.574    0.785
   .reading_2         0.548    0.008   64.979    0.000    0.548    0.770
   .reading_4         0.665    0.011   62.114    0.000    0.665    0.779
   .reading_6         0.705    0.015   47.963    0.000    0.705    0.749
    g_i               0.151    0.004   36.173    0.000    1.000    1.000
    g_s               0.003    0.001    4.335    0.000    1.000    1.000

R-Square:
                   Estimate
    a_etaB            0.858
    a_eta2            0.738
    a_eta4            0.841
    asr_nxdp_cmp_0    0.695
    asr_wthdp_cm_0    0.537
    asr_soma_cmp_0    0.451
    asr_thprb_cm_0    0.565
    asr_ttprb_cm_0    0.589
    asr_rlbrk_cm_0    0.394
    asr_ggrss_cm_0    0.573
    asr_intr_cmp_0    0.159
    asr_nxdp_cmp_2    0.671
    asr_wthdp_cm_2    0.533
    asr_soma_cmp_2    0.441
    asr_thprb_cm_2    0.592
    asr_ttprb_cm_2    0.598
    asr_rlbrk_cm_2    0.410
    asr_ggrss_cm_2    0.574
    asr_intr_cmp_2    0.168
    asr_nxdp_cmp_4    0.646
    asr_wthdp_cm_4    0.525
    asr_soma_cmp_4    0.425
    asr_thprb_cm_4    0.590
    asr_ttprb_cm_4    0.557
    asr_rlbrk_cm_4    0.409
    asr_ggrss_cm_4    0.566
    asr_intr_cmp_4    0.160
    p_etaB            0.855
    p_eta1            0.772
    p_eta2            0.773
    p_eta3            0.784
    p_eta4            0.790
    p_eta5            0.776
    p_eta6            0.910
    anxdep_comp_0     0.518
    withdep_comp_0    0.502
    soma_comp_0       0.302
    socprob_comp_0    0.621
    thouprob_cmp_0    0.620
    attprob_comp_0    0.543
    rulebrek_cmp_0    0.457
    aggress_comp_0    0.570
    anxdep_comp_1     0.506
    withdep_comp_1    0.483
    soma_comp_1       0.297
    socprob_comp_1    0.635
    thouprob_cmp_1    0.611
    attprob_comp_1    0.544
    rulebrek_cmp_1    0.452
    aggress_comp_1    0.582
    anxdep_comp_2     0.514
    withdep_comp_2    0.427
    soma_comp_2       0.311
    socprob_comp_2    0.655
    thouprob_cmp_2    0.635
    attprob_comp_2    0.554
    rulebrek_cmp_2    0.438
    aggress_comp_2    0.588
    anxdep_comp_3     0.496
    withdep_comp_3    0.363
    soma_comp_3       0.305
    socprob_comp_3    0.670
    thouprob_cmp_3    0.646
    attprob_comp_3    0.552
    rulebrek_cmp_3    0.420
    aggress_comp_3    0.590
    anxdep_comp_4     0.502
    withdep_comp_4    0.314
    soma_comp_4       0.272
    socprob_comp_4    0.673
    thouprob_cmp_4    0.652
    attprob_comp_4    0.565
    rulebrek_cmp_4    0.343
    aggress_comp_4    0.616
    anxdep_comp_5     0.487
    withdep_comp_5    0.291
    soma_comp_5       0.236
    socprob_comp_5    0.675
    thouprob_cmp_5    0.616
    attprob_comp_5    0.553
    rulebrek_cmp_5    0.274
    aggress_comp_5    0.613
    anxdep_comp_6     0.485
    withdep_comp_6    0.285
    soma_comp_6       0.214
    socprob_comp_6    0.685
    thouprob_cmp_6    0.645
    attprob_comp_6    0.544
    rulebrek_cmp_6    0.245
    aggress_comp_6    0.632
    p_i               0.504
    p_s               0.572
    p_q               0.378
    g_etaB            0.927
    g_eta2            0.952
    g_eta4            0.912
    g_eta6            0.817
    flanker_0         0.193
    flanker_2         0.268
    flanker_4         0.311
    flanker_6         0.371
    pattern_0         0.416
    pattern_2         0.425
    pattern_4         0.429
    pattern_6         0.498
    picture_0         0.082
    picture_2         0.077
    picture_4         0.062
    picture_6         0.078
    picvocab_0        0.200
    picvocab_2        0.192
    picvocab_4        0.197
    picvocab_6        0.242
    reading_0         0.215
    reading_2         0.230
    reading_4         0.221
    reading_6         0.251

pc ~ pp + g model with sex

Children’s psychopathology (pc) was regressed on parental psychopathology (pp) and children’s cognitive functioning (g), with sex as a covariate.

model fit
# Add sex as covariate
pga6.sex.model <- pga6.model %>%
  str_replace_all(
    c(
      "_i ~ 1" = "_i ~ 1 + dummy_sex",
      "_s ~ 1" = "_s ~ 1 + dummy_sex",
      "_q ~ 1" = "_q ~ 1 + dummy_sex",
      "_i~1" = "_i~1 + dummy_sex",
      "_s~1" = "_s~1 + dummy_sex",
      "_q~1" = "_q~1 + dummy_sex"
    )
  )

writeLines(pga6.sex.model)
# second-order pp factor
               #factor loadings (with constraints)
               a_etaB =~ 1*asr_anxdep_comp_0+
                       lambda_AW*asr_withdep_comp_0+
                       lambda_AS*asr_soma_comp_0+
                       lambda_AC*asr_thouprob_comp_0+
                       lambda_AH*asr_attprob_comp_0+
                       lambda_AA*asr_rulebreak_comp_0+
                       lambda_AR*asr_aggress_comp_0+
                       lambda_AG*asr_intru_comp_0
               a_eta2 =~ 1*asr_anxdep_comp_2+
                       lambda_AW*asr_withdep_comp_2+
                       lambda_AS*asr_soma_comp_2+
                       lambda_AC*asr_thouprob_comp_2+
                       lambda_AH*asr_attprob_comp_2+
                       lambda_AA*asr_rulebreak_comp_2+
                       lambda_AR*asr_aggress_comp_2+
                       lambda_AG*asr_intru_comp_2
               a_eta4 =~ 1*asr_anxdep_comp_4+
                       lambda_AW*asr_withdep_comp_4+
                       lambda_AS*asr_soma_comp_4+
                       lambda_AC*asr_thouprob_comp_4+
                       lambda_AH*asr_attprob_comp_4+
                       lambda_AA*asr_rulebreak_comp_4+
                       lambda_AR*asr_aggress_comp_4+
                       lambda_AG*asr_intru_comp_4

              #latent variable variances
                      a_etaB~~NA*a_etaB
                      a_eta2~~NA*a_eta2
                      a_eta4~~NA*a_eta4

              #unique variances # No need to constrict these
                      asr_anxdep_comp_0~~asr_anxdep_comp_0
                      asr_withdep_comp_0~~asr_withdep_comp_0
                      asr_soma_comp_0~~asr_soma_comp_0
                      asr_thouprob_comp_0~~asr_thouprob_comp_0
                      asr_attprob_comp_0~~asr_attprob_comp_0
                      asr_rulebreak_comp_0~~asr_rulebreak_comp_0
                      asr_aggress_comp_0~~asr_aggress_comp_0
                      asr_intru_comp_0~~asr_intru_comp_0

                      asr_anxdep_comp_2~~asr_anxdep_comp_2
                      asr_withdep_comp_2~~asr_withdep_comp_2
                      asr_soma_comp_2~~asr_soma_comp_2
                      asr_thouprob_comp_2~~asr_thouprob_comp_2
                      asr_attprob_comp_2~~asr_attprob_comp_2
                      asr_rulebreak_comp_2~~asr_rulebreak_comp_2
                      asr_aggress_comp_2~~asr_aggress_comp_2
                      asr_intru_comp_2~~asr_intru_comp_2

                      asr_anxdep_comp_4~~asr_anxdep_comp_4
                      asr_withdep_comp_4~~asr_withdep_comp_4
                      asr_soma_comp_4~~asr_soma_comp_4
                      asr_thouprob_comp_4~~asr_thouprob_comp_4
                      asr_attprob_comp_4~~asr_attprob_comp_4
                      asr_rulebreak_comp_4~~asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_aggress_comp_4
                      asr_intru_comp_4~~asr_intru_comp_4

              #unique covariances
                      # Scores arcoss times
                      asr_anxdep_comp_0~~ asr_anxdep_comp_2 + asr_anxdep_comp_4
                      asr_anxdep_comp_2~~ asr_anxdep_comp_4

                      asr_withdep_comp_0 ~~ asr_withdep_comp_2 + asr_withdep_comp_4
                      asr_withdep_comp_2 ~~ asr_withdep_comp_4

                      asr_soma_comp_0~~ asr_soma_comp_2 + asr_soma_comp_4
                      asr_soma_comp_2~~ asr_soma_comp_4

                      asr_thouprob_comp_0~~ asr_thouprob_comp_2 + asr_thouprob_comp_4
                      asr_thouprob_comp_2~~ asr_thouprob_comp_4

                      asr_attprob_comp_0~~ asr_attprob_comp_2 + asr_attprob_comp_4
                      asr_attprob_comp_2~~ asr_attprob_comp_4

                      asr_rulebreak_comp_0~~ asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_rulebreak_comp_2~~ asr_rulebreak_comp_4

                      asr_aggress_comp_0~~ asr_aggress_comp_2 + asr_aggress_comp_4
                      asr_aggress_comp_2~~ asr_aggress_comp_4

                      asr_intru_comp_0~~ asr_intru_comp_2 + asr_intru_comp_4
                      asr_intru_comp_2~~ asr_intru_comp_4

                      # Internalizeing subscale covariances
                      asr_anxdep_comp_0~~asr_withdep_comp_0 + asr_soma_comp_0 + asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_2~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_4~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4

                      asr_withdep_comp_0~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_2~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_4~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4

                      # Externalizeing subscale covariances
                      asr_aggress_comp_0~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_2~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4

                      asr_intru_comp_0~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_2~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_4~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4

              #observed variable intercepts
                      asr_anxdep_comp_0~tau_AX*1
                      asr_withdep_comp_0~tau_AW*1
                      asr_soma_comp_0~tau_AS*1
                      asr_thouprob_comp_0~tau_AP*1
                      asr_attprob_comp_0~tau_AH*1
                      asr_rulebreak_comp_0~tau_AA*1
                      asr_aggress_comp_0~tau_AR*1
                      asr_intru_comp_0~tau_AG*1

                      asr_anxdep_comp_2~tau_AX*1
                      asr_withdep_comp_2~tau_AW*1
                      asr_soma_comp_2~tau_AS*1
                      asr_thouprob_comp_2~tau_AP*1
                      asr_attprob_comp_2~tau_AH*1
                      asr_rulebreak_comp_2~tau_AA*1
                      asr_aggress_comp_2~tau_AR*1
                      asr_intru_comp_2~tau_AG*1

                      asr_anxdep_comp_4~tau_AX*1
                      asr_withdep_comp_4~tau_AW*1
                      asr_soma_comp_4~tau_AS*1
                      asr_thouprob_comp_4~tau_AP*1
                      asr_attprob_comp_4~tau_AH*1
                      asr_rulebreak_comp_4~tau_AA*1
                      asr_aggress_comp_4~tau_AR*1
                      asr_intru_comp_4~tau_AG*1

                      #latent basis model
                      a_i =~ 1*a_etaB+1*a_eta2+1*a_eta4
                      a_s =~ 0*a_etaB+1*a_eta2+2*a_eta4
                      a_i~~NA*a_i
                      a_s~~NA*a_s
                      a_i~~a_s
                      a_i~1 + dummy_sex
                      a_s~1 + dummy_sex
                      a_etaB~0*1
                      a_eta2~0*1
                      a_eta4~0*1

               # second-order pc factor
               #factor loadings (with constraints)
               p_etaB =~ 1*anxdep_comp_0+
                       lambda_CW*withdep_comp_0+
                       lambda_CS*soma_comp_0+
                       lambda_CC*socprob_comp_0+
                       lambda_CH*thouprob_comp_0+
                       lambda_CA*attprob_comp_0+
                       lambda_CR*rulebreak_comp_0+
                       lambda_CG*aggress_comp_0
               p_eta1 =~ 1*anxdep_comp_1+
                       lambda_CW*withdep_comp_1+
                       lambda_CS*soma_comp_1+
                       lambda_CC*socprob_comp_1+
                       lambda_CH*thouprob_comp_1+
                       lambda_CA*attprob_comp_1+
                       lambda_CR*rulebreak_comp_1+
                       lambda_CG*aggress_comp_1
               p_eta2 =~ 1*anxdep_comp_2+
                       lambda_CW*withdep_comp_2+
                       lambda_CS*soma_comp_2+
                       lambda_CC*socprob_comp_2+
                       lambda_CH*thouprob_comp_2+
                       lambda_CA*attprob_comp_2+
                       lambda_CR*rulebreak_comp_2+
                       lambda_CG*aggress_comp_2
               p_eta3 =~ 1*anxdep_comp_3+
                       lambda_CW*withdep_comp_3+
                       lambda_CS*soma_comp_3+
                       lambda_CC*socprob_comp_3+
                       lambda_CH*thouprob_comp_3+
                       lambda_CA*attprob_comp_3+
                       lambda_CR*rulebreak_comp_3+
                       lambda_CG*aggress_comp_3
               p_eta4 =~ 1*anxdep_comp_4+
                       lambda_CW*withdep_comp_4+
                       lambda_CS*soma_comp_4+
                       lambda_CC*socprob_comp_4+
                       lambda_CH*thouprob_comp_4+
                       lambda_CA*attprob_comp_4+
                       lambda_CR*rulebreak_comp_4+
                       lambda_CG*aggress_comp_4
               p_eta5 =~ 1*anxdep_comp_5+
                       lambda_CW*withdep_comp_5+
                       lambda_CS*soma_comp_5+
                       lambda_CC*socprob_comp_5+
                       lambda_CH*thouprob_comp_5+
                       lambda_CA*attprob_comp_5+
                       lambda_CR*rulebreak_comp_5+
                       lambda_CG*aggress_comp_5
               p_eta6 =~ 1*anxdep_comp_6+
                       lambda_CW*withdep_comp_6+
                       lambda_CS*soma_comp_6+
                       lambda_CC*socprob_comp_6+
                       lambda_CH*thouprob_comp_6+
                       lambda_CA*attprob_comp_6+
                       lambda_CR*rulebreak_comp_6+
                       lambda_CG*aggress_comp_6

              #latent variable variances
                      p_etaB~~NA*p_etaB
                      p_eta1~~NA*p_eta1
                      p_eta2~~NA*p_eta2
                      p_eta3~~NA*p_eta3
                      p_eta4~~NA*p_eta4
                      p_eta5~~NA*p_eta5
                      p_eta6~~NA*p_eta6

              #unique variances # No need to constrict these
                      anxdep_comp_0~~anxdep_comp_0
                      withdep_comp_0~~withdep_comp_0
                      soma_comp_0~~soma_comp_0
                      socprob_comp_0~~socprob_comp_0
                      thouprob_comp_0~~thouprob_comp_0
                      attprob_comp_0~~attprob_comp_0
                      rulebreak_comp_0~~rulebreak_comp_0
                      aggress_comp_0~~aggress_comp_0
                      anxdep_comp_1~~anxdep_comp_1
                      withdep_comp_1~~withdep_comp_1
                      soma_comp_1~~soma_comp_1
                      socprob_comp_1~~socprob_comp_1
                      thouprob_comp_1~~thouprob_comp_1
                      attprob_comp_1~~attprob_comp_1
                      rulebreak_comp_1~~rulebreak_comp_1
                      aggress_comp_1~~aggress_comp_1

                      anxdep_comp_2~~anxdep_comp_2
                      withdep_comp_2~~withdep_comp_2
                      soma_comp_2~~soma_comp_2
                      socprob_comp_2~~socprob_comp_2
                      thouprob_comp_2~~thouprob_comp_2
                      attprob_comp_2~~attprob_comp_2
                      rulebreak_comp_2~~rulebreak_comp_2
                      aggress_comp_2~~aggress_comp_2

                      anxdep_comp_3~~anxdep_comp_3
                      withdep_comp_3~~withdep_comp_3
                      soma_comp_3~~soma_comp_3
                      socprob_comp_3~~socprob_comp_3
                      thouprob_comp_3~~thouprob_comp_3
                      attprob_comp_3~~attprob_comp_3
                      rulebreak_comp_3~~rulebreak_comp_3
                      aggress_comp_3~~aggress_comp_3

                      anxdep_comp_4~~anxdep_comp_4
                      withdep_comp_4~~withdep_comp_4
                      soma_comp_4~~soma_comp_4
                      socprob_comp_4~~socprob_comp_4
                      thouprob_comp_4~~thouprob_comp_4
                      attprob_comp_4~~attprob_comp_4
                      rulebreak_comp_4~~rulebreak_comp_4
                      aggress_comp_4~~aggress_comp_4

                      anxdep_comp_5~~anxdep_comp_5
                      withdep_comp_5~~withdep_comp_5
                      soma_comp_5~~soma_comp_5
                      socprob_comp_5~~socprob_comp_5
                      thouprob_comp_5~~thouprob_comp_5
                      attprob_comp_5~~attprob_comp_5
                      rulebreak_comp_5~~rulebreak_comp_5
                      aggress_comp_5~~aggress_comp_5

                      anxdep_comp_6~~anxdep_comp_6
                      withdep_comp_6~~withdep_comp_6
                      soma_comp_6~~soma_comp_6
                      socprob_comp_6~~socprob_comp_6
                      thouprob_comp_6~~thouprob_comp_6
                      attprob_comp_6~~attprob_comp_6
                      rulebreak_comp_6~~rulebreak_comp_6
                      aggress_comp_6~~aggress_comp_6

              #unique covariances
                      # Scores arcoss times
                      anxdep_comp_0~~anxdep_comp_1 + anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_1~~anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_2~~anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_3~~anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_4~~anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_5~~anxdep_comp_6

                      withdep_comp_0~~withdep_comp_1 + withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_1~~withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_2~~withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_3~~withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_4~~withdep_comp_5 + withdep_comp_6
                      withdep_comp_5~~withdep_comp_6

                      soma_comp_0~~soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_1~~soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_2~~soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_3~~soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_4~~soma_comp_5 + soma_comp_6
                      soma_comp_5~~soma_comp_6

                      socprob_comp_0~~socprob_comp_1 + socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_1~~socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_2~~socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_3~~socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_4~~socprob_comp_5 + socprob_comp_6
                      socprob_comp_5~~socprob_comp_6

                      thouprob_comp_0~~thouprob_comp_1 + thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_1~~thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_2~~thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_3~~thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_4~~thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_5~~thouprob_comp_6

                      attprob_comp_0~~attprob_comp_1 + attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_1~~attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_2~~attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_3~~attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_4~~attprob_comp_5 + attprob_comp_6
                      attprob_comp_5~~attprob_comp_6

                      rulebreak_comp_0~~rulebreak_comp_1 + rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_1~~rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_2~~rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_3~~rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_4~~rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_5~~rulebreak_comp_6

                      aggress_comp_0~~aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_1~~aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_2~~aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_3~~aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_4~~aggress_comp_5 + aggress_comp_6
                      aggress_comp_5~~aggress_comp_6

                      # Internalizeing subscale covariances
                      anxdep_comp_0~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_1~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_2~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_3~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_4~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_5~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_6~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6

                      withdep_comp_0~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_1~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_2~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_3~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_4~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_5~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_6~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6

                      # Externalizeing subscale covariances
                      rulebreak_comp_0~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_1~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_2~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_3~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_4~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_5~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_6~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6

              #observed variable intercepts
                      anxdep_comp_0~tau_CX*1
                      anxdep_comp_1~tau_CX*1
                      anxdep_comp_2~tau_CX*1
                      anxdep_comp_3~tau_CX*1
                      anxdep_comp_4~tau_CX*1
                      anxdep_comp_5~tau_CX*1
                      anxdep_comp_6~tau_CX*1
                      withdep_comp_0~tau_CW*1
                      withdep_comp_1~tau_CW*1
                      withdep_comp_2~tau_CW*1
                      withdep_comp_3~tau_CW*1
                      withdep_comp_4~tau_CW*1
                      withdep_comp_5~tau_CW*1
                      withdep_comp_6~tau_CW*1
                      soma_comp_0~tau_CS*1
                      soma_comp_1~tau_CS*1
                      soma_comp_2~tau_CS*1
                      soma_comp_3~tau_CS*1
                      soma_comp_4~tau_CS*1
                      soma_comp_5~tau_CS*1
                      soma_comp_6~tau_CS*1
                      socprob_comp_0~tau_CP*1
                      socprob_comp_1~tau_CP*1
                      socprob_comp_2~tau_CP*1
                      socprob_comp_3~tau_CP*1
                      socprob_comp_4~tau_CP*1
                      socprob_comp_5~tau_CP*1
                      socprob_comp_6~tau_CP*1
                      thouprob_comp_0~tau_CH*1
                      thouprob_comp_1~tau_CH*1
                      thouprob_comp_2~tau_CH*1
                      thouprob_comp_3~tau_CH*1
                      thouprob_comp_4~tau_CH*1
                      thouprob_comp_5~tau_CH*1
                      thouprob_comp_6~tau_CH*1
                      attprob_comp_0~tau_CA*1
                      attprob_comp_1~tau_CA*1
                      attprob_comp_2~tau_CA*1
                      attprob_comp_3~tau_CA*1
                      attprob_comp_4~tau_CA*1
                      attprob_comp_5~tau_CA*1
                      attprob_comp_6~tau_CA*1
                      rulebreak_comp_0~tau_CR*1
                      rulebreak_comp_1~tau_CR*1
                      rulebreak_comp_2~tau_CR*1
                      rulebreak_comp_3~tau_CR*1
                      rulebreak_comp_4~tau_CR*1
                      rulebreak_comp_5~tau_CR*1
                      rulebreak_comp_6~tau_CR*1
                      aggress_comp_0~tau_CG*1
                      aggress_comp_1~tau_CG*1
                      aggress_comp_2~tau_CG*1
                      aggress_comp_3~tau_CG*1
                      aggress_comp_4~tau_CG*1
                      aggress_comp_5~tau_CG*1
                      aggress_comp_6~tau_CG*1

                       #latent basis model
                      p_i =~ 1*p_etaB + 1*p_eta1 + 1*p_eta2 + 1*p_eta3 + 1*p_eta4 + 1*p_eta5 + 1*p_eta6
                      p_s =~ 0*p_etaB + .5*p_eta1 + 1*p_eta2 + 1.5*p_eta3 + 2*p_eta4 + 2.5*p_eta5 + 3*p_eta6
                      p_q =~ 0*p_etaB + .25*p_eta1 + 1*p_eta2 + 2.25*p_eta3 + 4*p_eta4 + 6.25*p_eta5 + 9*p_eta6

                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q

                      p_i~~p_s + p_q
                      p_s~~p_q
                      p_i~1 + dummy_sex
                      p_s~1 + dummy_sex
                      p_q~1 + dummy_sex
                      p_etaB ~ 0*1
                      p_eta1 ~ 0*1
                      p_eta2 ~ 0*1
                      p_eta3 ~ 0*1
                      p_eta4 ~ 0*1
                      p_eta5 ~ 0*1
                      p_eta6 ~ 0*1

               # second-order g factor
               #factor loadings # S & S2
               g_etaB =~ 1*flanker_0+
                       lambda_R*pattern_0+
                       lambda_M*picture_0+
                       lambda_P*picvocab_0+
                       lambda_V*reading_0
               g_eta2 =~ 1*flanker_2+
                       lambda_R*pattern_2+
                       lambda_M*picture_2+
                       lambda_P*picvocab_2+
                       lambda_V*reading_2
               g_eta4 =~ 1*flanker_4+
                       lambda_R*pattern_4+
                       lambda_M*picture_4+
                       lambda_P*picvocab_4+
                       lambda_V*reading_4
               g_eta6 =~ 1*flanker_6+
                       lambda_R*pattern_6+
                       lambda_M*picture_6+
                       lambda_P*picvocab_6+
                       lambda_V*reading_6

              #latent variable variances
                       g_etaB~~NA*g_etaB
                       g_eta2~~NA*g_eta2
                       g_eta4~~NA*g_eta4
                       g_eta6~~NA*g_eta6

              #unique variances
                      flanker_0~~flanker_0
                      flanker_2~~flanker_2
                      flanker_4~~flanker_4
                      flanker_6~~flanker_6

                      pattern_0~~pattern_0
                      pattern_2~~pattern_2
                      pattern_4~~pattern_4
                      pattern_6~~pattern_6

                      picture_0~~picture_0
                      picture_2~~picture_2
                      picture_4~~picture_4
                      picture_6~~picture_6

                      picvocab_0~~picvocab_0
                      picvocab_2~~picvocab_2
                      picvocab_4~~picvocab_4
                      picvocab_6~~picvocab_6

                      reading_0~~reading_0
                      reading_2~~reading_2
                      reading_4~~reading_4
                      reading_6~~reading_6

              #unique covariances
                      # Task across times
                      flanker_0~~flanker_2 + flanker_4 + flanker_6
                      flanker_2~~flanker_4 + flanker_6
                      flanker_4~~flanker_6

                      pattern_0~~pattern_2 + pattern_4 + pattern_6
                      pattern_2~~pattern_4 + pattern_6
                      pattern_4~~pattern_6

                      picture_0~~picture_2 + picture_4 + picture_6
                      picture_2~~picture_4 + picture_6
                      picture_4~~picture_6

                      picvocab_0~~picvocab_2 + picvocab_4 + picvocab_6
                      picvocab_2~~picvocab_4 + picvocab_6
                      picvocab_4~~picvocab_6

                      reading_0~~reading_2 + reading_4 + reading_6
                      reading_2~~reading_4 + reading_6
                      reading_4~~reading_6

                      #Language
                      picvocab_0~~reading_0 + reading_2 + reading_4 + reading_6
                      picvocab_2~~reading_2 + reading_0 + reading_4 + reading_6
                      picvocab_4~~reading_4 + reading_0 + reading_2 + reading_6
                      picvocab_6~~reading_6 + reading_0 + reading_2 + reading_4

              #observed variable intercepts # S & S2
                      flanker_0~tau_S*1
                      flanker_2~tau_S*1
                      flanker_4~tau_S*1
                      flanker_6~tau_S*1
                      pattern_0~tau_R*1
                      pattern_2~tau_R*1
                      pattern_4~tau_R*1
                      pattern_6~tau_R*1
                      picture_0~tau_M*1
                      picture_2~tau_M*1
                      picture_4~tau_M*1
                      picture_6~tau_M*1
                      picvocab_0~tau_P*1
                      picvocab_2~tau_P*1
                      picvocab_4~tau_P*1
                      picvocab_6~tau_P*1
                      reading_0~tau_V*1
                      reading_2~tau_V*1
                      reading_4~tau_V*1
                      reading_6~tau_V*1

                      #latent basis model
                      g_i =~    1*g_etaB + 1*g_eta2 + 1*g_eta4 + 1*g_eta6
                      g_s =~    0*g_etaB + 1*g_eta2 + 2*g_eta4 + 3*g_eta6

                      g_i~~NA*g_i
                      g_s~~NA*g_s

                      g_i~~g_s

                      g_i~1 + dummy_sex
                      g_s~1 + dummy_sex

                      g_etaB~0*1
                      g_eta2~0*1
                      g_eta4~0*1
                      g_eta6~0*1

                      # regression
                      p_i ~ g_i + a_i
                      p_s ~ g_i + g_s + a_i + a_s
                      p_q ~ g_i + g_s + a_i + a_s
lavaan(pga6.sex.model,
  data = readRDS("pga6_all_data_sex.rds"),
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = T,
  std.lv = T
) %>%
  saveRDS("pgcm_pga6_sex_model.rds")
result
readRDS("pgcm_pga6_sex_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pgcm_pga6_sex_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pgcm_pga6_sex_model.rds"), "cor.lv"))$value
 [1] 7.918900050 4.668663431 3.222355222 1.366604893 0.954813435 0.753526138
 [7] 0.372316021 0.228332683 0.226456905 0.217741874 0.212803435 0.187045977
[13] 0.157081344 0.138895611 0.119724081 0.079616476 0.059141301 0.053191185
[19] 0.039629404 0.016415055 0.006745481
readRDS("pgcm_pga6_sex_result.rds")
lavaan 0.6-19 ended normally after 420 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       824
  Number of equality constraints                   147

  Number of observations                         11867
  Number of missing patterns                       714

Model Test User Model:
                                                       
  Test statistic                              41616.231
  Degrees of freedom                               4573
  P-value (Chi-square)                            0.000

Model Test Baseline Model:

  Test statistic                            798843.461
  Degrees of freedom                              5050
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.953
  Tucker-Lewis Index (TLI)                       0.948
                                                      
  Robust Comparative Fit Index (CFI)             0.952
  Robust Tucker-Lewis Index (TLI)                0.947

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -962425.214
  Loglikelihood unrestricted model (H1)    -941617.098
                                                      
  Akaike (AIC)                             1926204.427
  Bayesian (BIC)                           1931201.714
  Sample-size adjusted Bayesian (SABIC)    1929050.286

Root Mean Square Error of Approximation:

  RMSEA                                          0.026
  90 Percent confidence interval - lower         0.026
  90 Percent confidence interval - upper         0.026
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.030
  90 Percent confidence interval - lower         0.030
  90 Percent confidence interval - upper         0.030
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.056

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.842    0.834
    asr___0 (l_AW)    0.891    0.007  126.544    0.000    0.750    0.733
    asr___0 (l_AS)    0.799    0.007  112.101    0.000    0.673    0.672
    asr___0 (l_AC)    0.930    0.007  125.442    0.000    0.783    0.752
    asr___0 (l_AH)    0.907    0.007  131.147    0.000    0.764    0.767
    asr___0 (l_AA)    0.779    0.008   98.170    0.000    0.656    0.628
    asr___0 (l_AR)    0.921    0.007  125.138    0.000    0.776    0.757
    asr___0 (l_AG)    0.489    0.008   59.990    0.000    0.412    0.399
  a_eta2 =~                                                             
    asr___2           1.000                               0.832    0.819
    asr___2 (l_AW)    0.891    0.007  126.544    0.000    0.741    0.730
    asr___2 (l_AS)    0.799    0.007  112.101    0.000    0.665    0.664
    asr___2 (l_AC)    0.930    0.007  125.442    0.000    0.773    0.769
    asr___2 (l_AH)    0.907    0.007  131.147    0.000    0.755    0.773
    asr___2 (l_AA)    0.779    0.008   98.170    0.000    0.648    0.640
    asr___2 (l_AR)    0.921    0.007  125.138    0.000    0.766    0.758
    asr___2 (l_AG)    0.489    0.008   59.990    0.000    0.407    0.409
  a_eta4 =~                                                             
    asr___4           1.000                               0.801    0.803
    asr___4 (l_AW)    0.891    0.007  126.544    0.000    0.714    0.725
    asr___4 (l_AS)    0.799    0.007  112.101    0.000    0.640    0.652
    asr___4 (l_AC)    0.930    0.007  125.442    0.000    0.744    0.768
    asr___4 (l_AH)    0.907    0.007  131.147    0.000    0.726    0.746
    asr___4 (l_AA)    0.779    0.008   98.170    0.000    0.623    0.640
    asr___4 (l_AR)    0.921    0.007  125.138    0.000    0.737    0.752
    asr___4 (l_AG)    0.489    0.008   59.990    0.000    0.391    0.400
  a_i =~                                                                
    a_etaB            1.000                               0.926    0.926
    a_eta2            1.000                               0.937    0.937
    a_eta4            1.000                               0.974    0.974
  a_s =~                                                                
    a_etaB            0.000                               0.000    0.000
    a_eta2            1.000                               0.301    0.301
    a_eta4            2.000                               0.626    0.626
  p_etaB =~                                                             
    anxd__0           1.000                               0.741    0.719
    wthd__0 (l_CW)    0.863    0.006  141.045    0.000    0.640    0.709
    sm_cm_0 (l_CS)    0.739    0.007  110.901    0.000    0.548    0.550
    scpr__0 (l_CC)    1.118    0.007  153.798    0.000    0.828    0.787
    thpr__0 (l_CH)    1.104    0.007  152.355    0.000    0.818    0.788
    attp__0 (l_CA)    0.995    0.007  142.725    0.000    0.737    0.738
    rlbr__0 (l_CR)    0.858    0.007  120.400    0.000    0.636    0.677
    aggr__0 (l_CG)    1.066    0.007  147.026    0.000    0.790    0.755
  p_eta1 =~                                                             
    anxd__1           1.000                               0.736    0.711
    wthd__1 (l_CW)    0.863    0.006  141.045    0.000    0.635    0.694
    sm_cm_1 (l_CS)    0.739    0.007  110.901    0.000    0.544    0.545
    scpr__1 (l_CC)    1.118    0.007  153.798    0.000    0.822    0.796
    thpr__1 (l_CH)    1.104    0.007  152.355    0.000    0.812    0.782
    attp__1 (l_CA)    0.995    0.007  142.725    0.000    0.732    0.739
    rlbr__1 (l_CR)    0.858    0.007  120.400    0.000    0.631    0.673
    aggr__1 (l_CG)    1.066    0.007  147.026    0.000    0.784    0.763
  p_eta2 =~                                                             
    anxd__2           1.000                               0.727    0.717
    wthd__2 (l_CW)    0.863    0.006  141.045    0.000    0.628    0.653
    sm_cm_2 (l_CS)    0.739    0.007  110.901    0.000    0.537    0.557
    scpr__2 (l_CC)    1.118    0.007  153.798    0.000    0.813    0.808
    thpr__2 (l_CH)    1.104    0.007  152.355    0.000    0.803    0.797
    attp__2 (l_CA)    0.995    0.007  142.725    0.000    0.724    0.745
    rlbr__2 (l_CR)    0.858    0.007  120.400    0.000    0.624    0.662
    aggr__2 (l_CG)    1.066    0.007  147.026    0.000    0.775    0.767
  p_eta3 =~                                                             
    anxd__3           1.000                               0.720    0.704
    wthd__3 (l_CW)    0.863    0.006  141.045    0.000    0.621    0.602
    sm_cm_3 (l_CS)    0.739    0.007  110.901    0.000    0.532    0.552
    scpr__3 (l_CC)    1.118    0.007  153.798    0.000    0.805    0.818
    thpr__3 (l_CH)    1.104    0.007  152.355    0.000    0.795    0.804
    attp__3 (l_CA)    0.995    0.007  142.725    0.000    0.716    0.743
    rlbr__3 (l_CR)    0.858    0.007  120.400    0.000    0.617    0.648
    aggr__3 (l_CG)    1.066    0.007  147.026    0.000    0.767    0.768
  p_eta4 =~                                                             
    anxd__4           1.000                               0.708    0.709
    wthd__4 (l_CW)    0.863    0.006  141.045    0.000    0.611    0.560
    sm_cm_4 (l_CS)    0.739    0.007  110.901    0.000    0.523    0.522
    scpr__4 (l_CC)    1.118    0.007  153.798    0.000    0.791    0.820
    thpr__4 (l_CH)    1.104    0.007  152.355    0.000    0.781    0.808
    attp__4 (l_CA)    0.995    0.007  142.725    0.000    0.704    0.752
    rlbr__4 (l_CR)    0.858    0.007  120.400    0.000    0.607    0.586
    aggr__4 (l_CG)    1.066    0.007  147.026    0.000    0.754    0.785
  p_eta5 =~                                                             
    anxd__5           1.000                               0.705    0.699
    wthd__5 (l_CW)    0.863    0.006  141.045    0.000    0.608    0.540
    sm_cm_5 (l_CS)    0.739    0.007  110.901    0.000    0.521    0.487
    scpr__5 (l_CC)    1.118    0.007  153.798    0.000    0.787    0.822
    thpr__5 (l_CH)    1.104    0.007  152.355    0.000    0.778    0.785
    attp__5 (l_CA)    0.995    0.007  142.725    0.000    0.701    0.743
    rlbr__5 (l_CR)    0.858    0.007  120.400    0.000    0.604    0.524
    aggr__5 (l_CG)    1.066    0.007  147.026    0.000    0.751    0.783
  p_eta6 =~                                                             
    anxd__6           1.000                               0.670    0.699
    wthd__6 (l_CW)    0.863    0.006  141.045    0.000    0.578    0.535
    sm_cm_6 (l_CS)    0.739    0.007  110.901    0.000    0.495    0.464
    scpr__6 (l_CC)    1.118    0.007  153.798    0.000    0.749    0.829
    thpr__6 (l_CH)    1.104    0.007  152.355    0.000    0.740    0.804
    attp__6 (l_CA)    0.995    0.007  142.725    0.000    0.666    0.737
    rlbr__6 (l_CR)    0.858    0.007  120.400    0.000    0.574    0.495
    aggr__6 (l_CG)    1.066    0.007  147.026    0.000    0.714    0.795
  p_i =~                                                                
    p_etaB            1.000                               0.925    0.925
    p_eta1            1.000                               0.931    0.931
    p_eta2            1.000                               0.942    0.942
    p_eta3            1.000                               0.952    0.952
    p_eta4            1.000                               0.968    0.968
    p_eta5            1.000                               0.973    0.973
    p_eta6            1.000                               1.023    1.023
  p_s =~                                                                
    p_etaB            0.000                               0.000    0.000
    p_eta1            0.500                               0.289    0.289
    p_eta2            1.000                               0.585    0.585
    p_eta3            1.500                               0.887    0.887
    p_eta4            2.000                               1.203    1.203
    p_eta5            2.500                               1.510    1.510
    p_eta6            3.000                               1.906    1.906
  p_q =~                                                                
    p_etaB            0.000                               0.000    0.000
    p_eta1            0.250                               0.042    0.042
    p_eta2            1.000                               0.168    0.168
    p_eta3            2.250                               0.382    0.382
    p_eta4            4.000                               0.692    0.692
    p_eta5            6.250                               1.085    1.085
    p_eta6            9.000                               1.644    1.644
  g_etaB =~                                                             
    flnkr_0           1.000                               0.403    0.438
    pttrn_0 (lm_R)    1.218    0.011  112.688    0.000    0.491    0.646
    pictr_0 (lm_M)    0.599    0.009   64.799    0.000    0.242    0.287
    pcvcb_0 (lm_P)    0.929    0.009  107.753    0.000    0.375    0.447
    redng_0 (lm_V)    0.981    0.009  111.466    0.000    0.396    0.463
  g_eta2 =~                                                             
    flnkr_2           1.000                               0.412    0.517
    pttrn_2 (lm_R)    1.218    0.011  112.688    0.000    0.502    0.653
    pictr_2 (lm_M)    0.599    0.009   64.799    0.000    0.247    0.277
    pcvcb_2 (lm_P)    0.929    0.009  107.753    0.000    0.383    0.437
    redng_2 (lm_V)    0.981    0.009  111.466    0.000    0.404    0.479
  g_eta4 =~                                                             
    flnkr_4           1.000                               0.442    0.557
    pttrn_4 (lm_R)    1.218    0.011  112.688    0.000    0.539    0.655
    pictr_4 (lm_M)    0.599    0.009   64.799    0.000    0.265    0.250
    pcvcb_4 (lm_P)    0.929    0.009  107.753    0.000    0.411    0.444
    redng_4 (lm_V)    0.981    0.009  111.466    0.000    0.434    0.470
  g_eta6 =~                                                             
    flnkr_6           1.000                               0.495    0.609
    pttrn_6 (lm_R)    1.218    0.011  112.688    0.000    0.603    0.706
    pictr_6 (lm_M)    0.599    0.009   64.799    0.000    0.297    0.280
    pcvcb_6 (lm_P)    0.929    0.009  107.753    0.000    0.460    0.492
    redng_6 (lm_V)    0.981    0.009  111.466    0.000    0.486    0.501
  g_i =~                                                                
    g_etaB            1.000                               0.962    0.962
    g_eta2            1.000                               0.942    0.942
    g_eta4            1.000                               0.878    0.878
    g_eta6            1.000                               0.784    0.784
  g_s =~                                                                
    g_etaB            0.000                               0.000    0.000
    g_eta2            1.000                               0.127    0.127
    g_eta4            2.000                               0.236    0.236
    g_eta6            3.000                               0.316    0.316

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_i ~                                                                 
    dummy_sex         0.031    0.016    1.937    0.053    0.040    0.020
  a_s ~                                                                 
    dummy_sex        -0.015    0.007   -2.033    0.042   -0.059   -0.029
  p_i ~                                                                 
    dummy_sex         0.130    0.012   10.681    0.000    0.189    0.095
  p_s ~                                                                 
    dummy_sex        -0.036    0.014   -2.618    0.009   -0.086   -0.043
  p_q ~                                                                 
    dummy_sex        -0.012    0.004   -2.673    0.008   -0.097   -0.049
  g_i ~                                                                 
    dummy_sex        -0.041    0.009   -4.390    0.000   -0.105   -0.052
  g_s ~                                                                 
    dummy_sex         0.004    0.003    1.160    0.246    0.077    0.038
  p_i ~                                                                 
    g_i              -0.263    0.019  -13.839    0.000   -0.149   -0.149
    a_i               0.608    0.010   59.406    0.000    0.692    0.692
  p_s ~                                                                 
    g_i               0.089    0.028    3.168    0.002    0.082    0.082
    g_s              -0.840    0.436   -1.929    0.054   -0.103   -0.103
    a_i               0.014    0.012    1.240    0.215    0.026    0.026
    a_s               1.290    0.065   19.810    0.000    0.760    0.760
  p_q ~                                                                 
    g_i              -0.018    0.009   -1.890    0.059   -0.056   -0.056
    g_s               0.242    0.145    1.670    0.095    0.103    0.103
    a_i              -0.018    0.004   -5.028    0.000   -0.115   -0.115
    a_s              -0.317    0.019  -16.853    0.000   -0.650   -0.650

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.181    0.005   36.993    0.000    0.181    0.557
   .asr_nxdp_cmp_4           0.165    0.005   32.650    0.000    0.165    0.497
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.201    0.005   37.271    0.000    0.201    0.582
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.228    0.006   37.164    0.000    0.228    0.471
   .asr_wthdp_cm_4           0.206    0.006   33.219    0.000    0.206    0.436
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.225    0.006   35.557    0.000    0.225    0.478
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.275    0.007   40.924    0.000    0.275    0.495
   .asr_soma_cmp_4           0.240    0.007   35.090    0.000    0.240    0.434
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.282    0.007   39.222    0.000    0.282    0.506
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.192    0.005   35.455    0.000    0.192    0.437
   .asr_thprb_cm_4           0.160    0.005   29.462    0.000    0.160    0.377
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.168    0.005   31.881    0.000    0.168    0.422
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.254    0.005   48.610    0.000    0.254    0.644
   .asr_ttprb_cm_4           0.248    0.006   44.926    0.000    0.248    0.599
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.267    0.006   47.616    0.000    0.267    0.666
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.305    0.007   41.521    0.000    0.305    0.483
   .asr_rlbrk_cm_4           0.261    0.007   35.957    0.000    0.261    0.429
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.284    0.007   38.850    0.000    0.284    0.487
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.243    0.006   43.319    0.000    0.243    0.551
   .asr_ggrss_cm_4           0.220    0.006   39.258    0.000    0.220    0.508
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.248    0.006   42.713    0.000    0.248    0.582
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.495    0.010   51.818    0.000    0.495    0.576
   .asr_intr_cmp_4           0.464    0.010   47.898    0.000    0.464    0.546
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.473    0.010   49.572    0.000    0.473    0.582
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.019    0.005    3.844    0.000    0.019    0.049
   .asr_soma_cmp_0           0.026    0.005    5.102    0.000    0.026    0.063
   .asr_wthdp_cm_2           0.019    0.005    3.917    0.000    0.019    0.049
   .asr_soma_cmp_2           0.032    0.005    6.175    0.000    0.032    0.076
   .asr_wthdp_cm_4           0.017    0.005    3.378    0.001    0.017    0.045
   .asr_soma_cmp_4           0.030    0.005    5.658    0.000    0.030    0.073
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2           0.009    0.005    1.813    0.070    0.009    0.022
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.025    0.005    4.804    0.000    0.025    0.057
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.035    0.005    6.774    0.000    0.035    0.088
   .asr_soma_cmp_2           0.045    0.005    8.198    0.000    0.045    0.103
   .asr_wthdp_cm_4           0.022    0.005    4.244    0.000    0.022    0.056
   .asr_soma_cmp_4           0.027    0.006    4.828    0.000    0.027    0.061
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4           0.001    0.005    0.160    0.873    0.001    0.002
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.024    0.005    4.317    0.000    0.024    0.053
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.016    0.005    3.088    0.002    0.016    0.040
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.042    0.006    7.407    0.000    0.042    0.094
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.041    0.006    7.374    0.000    0.041    0.101
   .asr_soma_cmp_4           0.057    0.006    9.719    0.000    0.057    0.129
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.033    0.006   -5.737    0.000   -0.033   -0.063
   .asr_soma_cmp_2          -0.021    0.006   -3.531    0.000   -0.021   -0.039
   .asr_soma_cmp_4          -0.035    0.006   -5.703    0.000   -0.035   -0.067
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.014    0.006   -2.497    0.013   -0.014   -0.028
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.016    0.006   -2.726    0.006   -0.016   -0.031
   .asr_soma_cmp_4          -0.023    0.006   -3.677    0.000   -0.023   -0.044
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.017    0.006   -2.841    0.004   -0.017   -0.033
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.021    0.006   -3.475    0.001   -0.021   -0.042
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.022    0.006   -3.595    0.000   -0.022   -0.044
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.131    0.007   19.515    0.000    0.131    0.207
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.073    0.006   12.318    0.000    0.073    0.134
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.084    0.006   13.044    0.000    0.084    0.139
   .asr_rlbrk_cm_2           0.024    0.006    4.292    0.000    0.024    0.047
   .asr_intr_cmp_4           0.093    0.007   13.912    0.000    0.093    0.154
   .asr_rlbrk_cm_4           0.032    0.006    5.461    0.000    0.032    0.063
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.093    0.007   13.978    0.000    0.093    0.148
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.050    0.006    8.543    0.000    0.050    0.094
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.136    0.007   20.640    0.000    0.136    0.227
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.045    0.006    7.827    0.000    0.045    0.088
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.107    0.007   15.869    0.000    0.107    0.180
   .asr_rlbrk_cm_4           0.043    0.006    7.279    0.000    0.043    0.086
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.095    0.007   13.983    0.000    0.095    0.156
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.056    0.006    9.312    0.000    0.056    0.107
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.102    0.007   15.325    0.000    0.102    0.174
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.047    0.006    7.887    0.000    0.047    0.093
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.137    0.007   20.049    0.000    0.137    0.236
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.064    0.006   10.889    0.000    0.064    0.133
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.119    0.008   15.470    0.000    0.119    0.155
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.067    0.007    8.995    0.000    0.067    0.091
   .asr_rlbrk_cm_4           0.072    0.008    9.444    0.000    0.072    0.101
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.072    0.008    9.532    0.000    0.072    0.097
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.111    0.007   15.165    0.000    0.111    0.158
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.071    0.007    9.520    0.000    0.071    0.104
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.086    0.008   10.998    0.000    0.086    0.117
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.078    0.008   10.267    0.000    0.078    0.112
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.110    0.008   14.579    0.000    0.110    0.163
 .a_i ~~                                                                       
   .a_s                     -0.080    0.004  -18.236    0.000   -0.409   -0.409
 .anxdep_comp_0 ~~                                                             
   .anxdep_comp_1            0.315    0.006   48.673    0.000    0.315    0.606
   .anxdep_comp_2            0.277    0.006   44.785    0.000    0.277    0.547
   .anxdep_comp_3            0.251    0.006   40.035    0.000    0.251    0.484
   .anxdep_comp_4            0.224    0.006   36.630    0.000    0.224    0.445
   .anxdep_comp_5            0.205    0.006   32.016    0.000    0.205    0.397
   .anxdep_comp_6            0.183    0.007   25.338    0.000    0.183    0.373
 .anxdep_comp_1 ~~                                                             
   .anxdep_comp_2            0.306    0.006   47.407    0.000    0.306    0.595
   .anxdep_comp_3            0.274    0.007   42.158    0.000    0.274    0.519
   .anxdep_comp_4            0.234    0.006   37.219    0.000    0.234    0.458
   .anxdep_comp_5            0.228    0.007   34.438    0.000    0.228    0.434
   .anxdep_comp_6            0.198    0.007   26.575    0.000    0.198    0.397
 .anxdep_comp_2 ~~                                                             
   .anxdep_comp_3            0.318    0.007   48.131    0.000    0.318    0.619
   .anxdep_comp_4            0.271    0.006   42.830    0.000    0.271    0.543
   .anxdep_comp_5            0.252    0.007   38.588    0.000    0.252    0.493
   .anxdep_comp_6            0.221    0.007   30.483    0.000    0.221    0.455
 .anxdep_comp_3 ~~                                                             
   .anxdep_comp_4            0.306    0.007   45.697    0.000    0.306    0.598
   .anxdep_comp_5            0.287    0.007   41.378    0.000    0.287    0.548
   .anxdep_comp_6            0.245    0.007   32.984    0.000    0.245    0.492
 .anxdep_comp_4 ~~                                                             
   .anxdep_comp_5            0.333    0.007   46.860    0.000    0.333    0.656
   .anxdep_comp_6            0.270    0.008   36.013    0.000    0.270    0.560
 .anxdep_comp_5 ~~                                                             
   .anxdep_comp_6            0.308    0.008   38.837    0.000    0.308    0.623
 .withdep_comp_0 ~~                                                            
   .withdep_comp_1           0.235    0.005   44.900    0.000    0.235    0.561
   .withdep_comp_2           0.198    0.005   36.771    0.000    0.198    0.426
   .withdep_comp_3           0.162    0.006   27.411    0.000    0.162    0.309
   .withdep_comp_4           0.126    0.007   19.257    0.000    0.126    0.220
   .withdep_comp_5           0.105    0.007   14.775    0.000    0.105    0.175
   .withdep_comp_6           0.083    0.008   10.128    0.000    0.083    0.143
 .withdep_comp_1 ~~                                                            
   .withdep_comp_2           0.257    0.006   44.578    0.000    0.257    0.536
   .withdep_comp_3           0.235    0.006   37.117    0.000    0.235    0.434
   .withdep_comp_4           0.200    0.007   28.767    0.000    0.200    0.336
   .withdep_comp_5           0.181    0.008   24.037    0.000    0.181    0.290
   .withdep_comp_6           0.145    0.008   17.151    0.000    0.145    0.242
 .withdep_comp_2 ~~                                                            
   .withdep_comp_3           0.336    0.007   45.623    0.000    0.336    0.561
   .withdep_comp_4           0.309    0.008   38.518    0.000    0.309    0.471
   .withdep_comp_5           0.286    0.009   33.141    0.000    0.286    0.414
   .withdep_comp_6           0.240    0.010   24.363    0.000    0.240    0.361
 .withdep_comp_3 ~~                                                            
   .withdep_comp_4           0.440    0.010   45.797    0.000    0.440    0.592
   .withdep_comp_5           0.425    0.010   41.527    0.000    0.425    0.544
   .withdep_comp_6           0.355    0.011   31.860    0.000    0.355    0.471
 .withdep_comp_4 ~~                                                            
   .withdep_comp_5           0.560    0.012   47.256    0.000    0.560    0.653
   .withdep_comp_6           0.474    0.013   37.620    0.000    0.474    0.574
 .withdep_comp_5 ~~                                                            
   .withdep_comp_6           0.570    0.014   41.313    0.000    0.570    0.657
 .soma_comp_0 ~~                                                               
   .soma_comp_1              0.355    0.008   45.904    0.000    0.355    0.510
   .soma_comp_2              0.300    0.007   40.806    0.000    0.300    0.451
   .soma_comp_3              0.267    0.007   36.200    0.000    0.267    0.399
   .soma_comp_4              0.254    0.008   32.025    0.000    0.254    0.357
   .soma_comp_5              0.250    0.009   27.994    0.000    0.250    0.322
   .soma_comp_6              0.245    0.011   22.871    0.000    0.245    0.312
 .soma_comp_1 ~~                                                               
   .soma_comp_2              0.336    0.008   44.268    0.000    0.336    0.501
   .soma_comp_3              0.292    0.008   38.657    0.000    0.292    0.435
   .soma_comp_4              0.278    0.008   34.428    0.000    0.278    0.388
   .soma_comp_5              0.281    0.009   30.871    0.000    0.281    0.359
   .soma_comp_6              0.257    0.011   23.563    0.000    0.257    0.325
 .soma_comp_2 ~~                                                               
   .soma_comp_3              0.325    0.007   43.654    0.000    0.325    0.505
   .soma_comp_4              0.304    0.008   38.354    0.000    0.304    0.444
   .soma_comp_5              0.298    0.009   33.922    0.000    0.298    0.398
   .soma_comp_6              0.274    0.010   26.498    0.000    0.274    0.362
 .soma_comp_3 ~~                                                               
   .soma_comp_4              0.339    0.008   41.283    0.000    0.339    0.494
   .soma_comp_5              0.327    0.009   36.002    0.000    0.327    0.436
   .soma_comp_6              0.313    0.011   29.639    0.000    0.313    0.412
 .soma_comp_4 ~~                                                               
   .soma_comp_5              0.442    0.010   43.330    0.000    0.442    0.553
   .soma_comp_6              0.412    0.012   34.567    0.000    0.412    0.510
 .soma_comp_5 ~~                                                               
   .soma_comp_6              0.523    0.013   39.147    0.000    0.523    0.593
 .socprob_comp_0 ~~                                                            
   .socprob_comp_1           0.197    0.005   36.656    0.000    0.197    0.485
   .socprob_comp_2           0.161    0.005   32.110    0.000    0.161    0.418
   .socprob_comp_3           0.126    0.005   26.404    0.000    0.126    0.344
   .socprob_comp_4           0.102    0.005   21.725    0.000    0.102    0.286
   .socprob_comp_5           0.091    0.005   19.015    0.000    0.091    0.257
   .socprob_comp_6           0.075    0.005   13.903    0.000    0.075    0.228
 .socprob_comp_1 ~~                                                            
   .socprob_comp_2           0.178    0.005   35.612    0.000    0.178    0.480
   .socprob_comp_3           0.142    0.005   29.789    0.000    0.142    0.400
   .socprob_comp_4           0.113    0.005   24.259    0.000    0.113    0.326
   .socprob_comp_5           0.098    0.005   20.806    0.000    0.098    0.286
   .socprob_comp_6           0.090    0.005   17.115    0.000    0.090    0.286
 .socprob_comp_2 ~~                                                            
   .socprob_comp_3           0.160    0.005   34.086    0.000    0.160    0.478
   .socprob_comp_4           0.136    0.005   29.894    0.000    0.136    0.417
   .socprob_comp_5           0.114    0.005   24.832    0.000    0.114    0.354
   .socprob_comp_6           0.103    0.005   20.502    0.000    0.103    0.344
 .socprob_comp_3 ~~                                                            
   .socprob_comp_4           0.145    0.005   31.959    0.000    0.145    0.463
   .socprob_comp_5           0.130    0.005   28.135    0.000    0.130    0.421
   .socprob_comp_6           0.112    0.005   22.535    0.000    0.112    0.392
 .socprob_comp_4 ~~                                                            
   .socprob_comp_5           0.156    0.005   33.067    0.000    0.156    0.517
   .socprob_comp_6           0.133    0.005   26.078    0.000    0.133    0.477
 .socprob_comp_5 ~~                                                            
   .socprob_comp_6           0.152    0.005   28.671    0.000    0.152    0.549
 .thouprob_comp_0 ~~                                                           
   .thouprob_cmp_1           0.200    0.005   37.755    0.000    0.200    0.482
   .thouprob_cmp_2           0.159    0.005   32.327    0.000    0.159    0.410
   .thouprob_cmp_3           0.135    0.005   28.054    0.000    0.135    0.359
   .thouprob_cmp_4           0.118    0.005   24.704    0.000    0.118    0.324
   .thouprob_cmp_5           0.114    0.005   21.972    0.000    0.114    0.291
   .thouprob_cmp_6           0.085    0.006   14.805    0.000    0.085    0.244
 .thouprob_comp_1 ~~                                                           
   .thouprob_cmp_2           0.189    0.005   36.592    0.000    0.189    0.479
   .thouprob_cmp_3           0.155    0.005   31.050    0.000    0.155    0.408
   .thouprob_cmp_4           0.135    0.005   27.409    0.000    0.135    0.365
   .thouprob_cmp_5           0.142    0.005   26.611    0.000    0.142    0.358
   .thouprob_cmp_6           0.102    0.006   17.655    0.000    0.102    0.289
 .thouprob_comp_2 ~~                                                           
   .thouprob_cmp_3           0.161    0.005   33.183    0.000    0.161    0.450
   .thouprob_cmp_4           0.134    0.005   28.416    0.000    0.134    0.387
   .thouprob_cmp_5           0.134    0.005   26.151    0.000    0.134    0.359
   .thouprob_cmp_6           0.094    0.006   16.921    0.000    0.094    0.282
 .thouprob_comp_3 ~~                                                           
   .thouprob_cmp_4           0.141    0.005   29.920    0.000    0.141    0.421
   .thouprob_cmp_5           0.133    0.005   26.124    0.000    0.133    0.370
   .thouprob_cmp_6           0.094    0.005   17.231    0.000    0.094    0.291
 .thouprob_comp_4 ~~                                                           
   .thouprob_cmp_5           0.173    0.005   33.254    0.000    0.173    0.495
   .thouprob_cmp_6           0.127    0.005   23.161    0.000    0.127    0.408
 .thouprob_comp_5 ~~                                                           
   .thouprob_cmp_6           0.168    0.006   27.739    0.000    0.168    0.502
 .attprob_comp_0 ~~                                                            
   .attprob_comp_1           0.302    0.006   51.714    0.000    0.302    0.672
   .attprob_comp_2           0.268    0.006   48.145    0.000    0.268    0.614
   .attprob_comp_3           0.248    0.006   45.047    0.000    0.248    0.571
   .attprob_comp_4           0.217    0.005   41.020    0.000    0.217    0.522
   .attprob_comp_5           0.217    0.006   39.393    0.000    0.217    0.511
   .attprob_comp_6           0.192    0.006   31.472    0.000    0.192    0.467
 .attprob_comp_1 ~~                                                            
   .attprob_comp_2           0.290    0.006   50.808    0.000    0.290    0.670
   .attprob_comp_3           0.265    0.006   47.328    0.000    0.265    0.616
   .attprob_comp_4           0.227    0.005   42.463    0.000    0.227    0.551
   .attprob_comp_5           0.229    0.006   41.342    0.000    0.229    0.542
   .attprob_comp_6           0.204    0.006   33.409    0.000    0.204    0.500
 .attprob_comp_2 ~~                                                            
   .attprob_comp_3           0.278    0.006   49.616    0.000    0.278    0.664
   .attprob_comp_4           0.239    0.005   45.015    0.000    0.239    0.596
   .attprob_comp_5           0.241    0.006   43.812    0.000    0.241    0.590
   .attprob_comp_6           0.213    0.006   35.596    0.000    0.213    0.538
 .attprob_comp_3 ~~                                                            
   .attprob_comp_4           0.258    0.005   47.366    0.000    0.258    0.649
   .attprob_comp_5           0.252    0.006   45.020    0.000    0.252    0.619
   .attprob_comp_6           0.221    0.006   36.942    0.000    0.221    0.562
 .attprob_comp_4 ~~                                                            
   .attprob_comp_5           0.267    0.006   47.465    0.000    0.267    0.685
   .attprob_comp_6           0.235    0.006   39.389    0.000    0.235    0.624
 .attprob_comp_5 ~~                                                            
   .attprob_comp_6           0.266    0.006   42.031    0.000    0.266    0.691
 .rulebreak_comp_0 ~~                                                          
   .rulebrek_cmp_1           0.291    0.006   49.992    0.000    0.291    0.609
   .rulebrek_cmp_2           0.255    0.006   43.973    0.000    0.255    0.523
   .rulebrek_cmp_3           0.238    0.006   39.604    0.000    0.238    0.475
   .rulebrek_cmp_4           0.240    0.007   34.547    0.000    0.240    0.413
   .rulebrek_cmp_5           0.266    0.008   32.353    0.000    0.266    0.392
   .rulebrek_cmp_6           0.224    0.010   23.014    0.000    0.224    0.321
 .rulebreak_comp_1 ~~                                                          
   .rulebrek_cmp_2           0.281    0.006   46.938    0.000    0.281    0.575
   .rulebrek_cmp_3           0.266    0.006   43.124    0.000    0.266    0.530
   .rulebrek_cmp_4           0.278    0.007   39.061    0.000    0.278    0.478
   .rulebrek_cmp_5           0.278    0.008   33.477    0.000    0.278    0.409
   .rulebrek_cmp_6           0.252    0.010   25.332    0.000    0.252    0.360
 .rulebreak_comp_2 ~~                                                          
   .rulebrek_cmp_3           0.305    0.007   46.462    0.000    0.305    0.595
   .rulebrek_cmp_4           0.300    0.007   40.634    0.000    0.300    0.506
   .rulebrek_cmp_5           0.337    0.009   38.723    0.000    0.337    0.486
   .rulebrek_cmp_6           0.315    0.010   30.544    0.000    0.315    0.443
 .rulebreak_comp_3 ~~                                                          
   .rulebrek_cmp_4           0.347    0.008   43.933    0.000    0.347    0.569
   .rulebrek_cmp_5           0.367    0.009   39.710    0.000    0.367    0.514
   .rulebrek_cmp_6           0.355    0.011   33.599    0.000    0.355    0.485
 .rulebreak_comp_4 ~~                                                          
   .rulebrek_cmp_5           0.534    0.011   47.473    0.000    0.534    0.646
   .rulebrek_cmp_6           0.510    0.013   39.812    0.000    0.510    0.603
 .rulebreak_comp_5 ~~                                                          
   .rulebrek_cmp_6           0.712    0.016   45.918    0.000    0.712    0.719
 .aggress_comp_0 ~~                                                            
   .aggress_comp_1           0.299    0.006   49.844    0.000    0.299    0.657
   .aggress_comp_2           0.269    0.006   46.581    0.000    0.269    0.605
   .aggress_comp_3           0.232    0.006   41.156    0.000    0.232    0.530
   .aggress_comp_4           0.204    0.005   38.456    0.000    0.204    0.500
   .aggress_comp_5           0.197    0.005   36.180    0.000    0.197    0.481
   .aggress_comp_6           0.159    0.006   27.795    0.000    0.159    0.427
 .aggress_comp_1 ~~                                                            
   .aggress_comp_2           0.277    0.006   48.225    0.000    0.277    0.643
   .aggress_comp_3           0.246    0.006   43.905    0.000    0.246    0.580
   .aggress_comp_4           0.209    0.005   39.971    0.000    0.209    0.529
   .aggress_comp_5           0.196    0.005   36.741    0.000    0.196    0.495
   .aggress_comp_6           0.161    0.006   28.359    0.000    0.161    0.446
 .aggress_comp_2 ~~                                                            
   .aggress_comp_3           0.269    0.006   47.228    0.000    0.269    0.649
   .aggress_comp_4           0.220    0.005   41.986    0.000    0.220    0.570
   .aggress_comp_5           0.214    0.005   39.970    0.000    0.214    0.552
   .aggress_comp_6           0.182    0.006   32.360    0.000    0.182    0.513
 .aggress_comp_3 ~~                                                            
   .aggress_comp_4           0.241    0.005   44.777    0.000    0.241    0.635
   .aggress_comp_5           0.224    0.005   41.164    0.000    0.224    0.587
   .aggress_comp_6           0.192    0.006   34.299    0.000    0.192    0.550
 .aggress_comp_4 ~~                                                            
   .aggress_comp_5           0.238    0.005   44.592    0.000    0.238    0.669
   .aggress_comp_6           0.198    0.005   36.372    0.000    0.198    0.611
 .aggress_comp_5 ~~                                                            
   .aggress_comp_6           0.223    0.006   38.936    0.000    0.223    0.685
 .anxdep_comp_0 ~~                                                             
   .withdep_comp_0           0.097    0.005   19.099    0.000    0.097    0.213
   .soma_comp_0              0.113    0.006   18.174    0.000    0.113    0.190
   .withdep_comp_1           0.081    0.005   15.687    0.000    0.081    0.171
   .soma_comp_1              0.078    0.006   12.401    0.000    0.078    0.130
   .withdep_comp_2           0.082    0.006   14.494    0.000    0.082    0.157
   .soma_comp_2              0.072    0.006   11.846    0.000    0.072    0.125
   .withdep_comp_3           0.094    0.007   14.436    0.000    0.094    0.160
   .soma_comp_3              0.073    0.006   11.768    0.000    0.073    0.127
   .withdep_comp_4           0.078    0.007   10.677    0.000    0.078    0.121
   .soma_comp_4              0.081    0.007   12.062    0.000    0.081    0.133
   .withdep_comp_5           0.074    0.008    9.137    0.000    0.074    0.109
   .soma_comp_5              0.062    0.008    8.032    0.000    0.062    0.092
   .withdep_comp_6           0.062    0.009    6.706    0.000    0.062    0.095
   .soma_comp_6              0.066    0.009    7.043    0.000    0.066    0.098
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_1            0.065    0.005   12.816    0.000    0.065    0.141
 .soma_comp_0 ~~                                                               
   .anxdep_comp_1            0.093    0.006   14.644    0.000    0.093    0.153
 .anxdep_comp_1 ~~                                                             
   .withdep_comp_1           0.100    0.005   18.751    0.000    0.100    0.210
   .soma_comp_1              0.106    0.006   16.393    0.000    0.106    0.175
   .withdep_comp_2           0.087    0.006   14.986    0.000    0.087    0.164
   .soma_comp_2              0.078    0.006   12.541    0.000    0.078    0.134
   .withdep_comp_3           0.108    0.007   16.130    0.000    0.108    0.180
   .soma_comp_3              0.074    0.006   11.713    0.000    0.074    0.127
   .withdep_comp_4           0.093    0.007   12.413    0.000    0.093    0.142
   .soma_comp_4              0.086    0.007   12.521    0.000    0.086    0.139
   .withdep_comp_5           0.108    0.008   13.050    0.000    0.108    0.156
   .soma_comp_5              0.084    0.008   10.658    0.000    0.084    0.123
   .withdep_comp_6           0.086    0.009    9.090    0.000    0.086    0.130
   .soma_comp_6              0.072    0.010    7.400    0.000    0.072    0.104
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_2            0.073    0.005   14.423    0.000    0.073    0.161
 .soma_comp_0 ~~                                                               
   .anxdep_comp_2            0.091    0.006   14.535    0.000    0.091    0.154
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_2            0.089    0.005   17.217    0.000    0.089    0.192
 .soma_comp_1 ~~                                                               
   .anxdep_comp_2            0.081    0.006   12.794    0.000    0.081    0.136
 .anxdep_comp_2 ~~                                                             
   .withdep_comp_2           0.140    0.006   23.967    0.000    0.140    0.271
   .soma_comp_2              0.110    0.006   17.842    0.000    0.110    0.193
   .withdep_comp_3           0.131    0.007   19.864    0.000    0.131    0.224
   .soma_comp_3              0.091    0.006   14.697    0.000    0.091    0.161
   .withdep_comp_4           0.113    0.007   15.407    0.000    0.113    0.177
   .soma_comp_4              0.103    0.007   15.209    0.000    0.103    0.170
   .withdep_comp_5           0.103    0.008   12.869    0.000    0.103    0.153
   .soma_comp_5              0.087    0.008   11.417    0.000    0.087    0.131
   .withdep_comp_6           0.080    0.009    8.832    0.000    0.080    0.124
   .soma_comp_6              0.079    0.009    8.537    0.000    0.079    0.118
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_3            0.059    0.005   11.376    0.000    0.059    0.128
 .soma_comp_0 ~~                                                               
   .anxdep_comp_3            0.097    0.006   14.991    0.000    0.097    0.161
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_3            0.076    0.005   14.172    0.000    0.076    0.159
 .soma_comp_1 ~~                                                               
   .anxdep_comp_3            0.087    0.007   13.203    0.000    0.087    0.143
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_3            0.112    0.006   18.888    0.000    0.112    0.212
 .soma_comp_2 ~~                                                               
   .anxdep_comp_3            0.096    0.006   15.165    0.000    0.096    0.164
 .anxdep_comp_3 ~~                                                             
   .withdep_comp_3           0.184    0.007   26.297    0.000    0.184    0.307
   .soma_comp_3              0.125    0.007   19.197    0.000    0.125    0.214
   .withdep_comp_4           0.144    0.008   18.791    0.000    0.144    0.219
   .soma_comp_4              0.132    0.007   18.716    0.000    0.132    0.213
   .withdep_comp_5           0.142    0.008   17.006    0.000    0.142    0.207
   .soma_comp_5              0.124    0.008   15.507    0.000    0.124    0.182
   .withdep_comp_6           0.107    0.009   11.590    0.000    0.107    0.161
   .soma_comp_6              0.130    0.009   13.801    0.000    0.130    0.190
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_4            0.041    0.005    7.972    0.000    0.041    0.092
 .soma_comp_0 ~~                                                               
   .anxdep_comp_4            0.079    0.006   12.315    0.000    0.079    0.135
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_4            0.060    0.005   11.262    0.000    0.060    0.129
 .soma_comp_1 ~~                                                               
   .anxdep_comp_4            0.075    0.006   11.606    0.000    0.075    0.128
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_4            0.088    0.006   14.979    0.000    0.088    0.171
 .soma_comp_2 ~~                                                               
   .anxdep_comp_4            0.080    0.006   12.772    0.000    0.080    0.142
 .withdep_comp_3 ~~                                                            
   .anxdep_comp_4            0.131    0.007   19.373    0.000    0.131    0.226
 .soma_comp_3 ~~                                                               
   .anxdep_comp_4            0.097    0.006   15.198    0.000    0.097    0.172
 .anxdep_comp_4 ~~                                                             
   .withdep_comp_4           0.202    0.008   25.920    0.000    0.202    0.317
   .soma_comp_4              0.149    0.007   21.296    0.000    0.149    0.247
   .withdep_comp_5           0.165    0.008   19.905    0.000    0.165    0.247
   .soma_comp_5              0.138    0.008   17.524    0.000    0.138    0.209
   .withdep_comp_6           0.128    0.009   13.963    0.000    0.128    0.200
   .soma_comp_6              0.138    0.009   14.677    0.000    0.138    0.208
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_5            0.037    0.005    6.665    0.000    0.037    0.080
 .soma_comp_0 ~~                                                               
   .anxdep_comp_5            0.070    0.007   10.265    0.000    0.070    0.117
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_5            0.059    0.006   10.520    0.000    0.059    0.124
 .soma_comp_1 ~~                                                               
   .anxdep_comp_5            0.078    0.007   11.319    0.000    0.078    0.129
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_5            0.093    0.006   14.960    0.000    0.093    0.177
 .soma_comp_2 ~~                                                               
   .anxdep_comp_5            0.085    0.007   12.872    0.000    0.085    0.147
 .withdep_comp_3 ~~                                                            
   .anxdep_comp_5            0.139    0.007   19.478    0.000    0.139    0.234
 .soma_comp_3 ~~                                                               
   .anxdep_comp_5            0.093    0.007   13.732    0.000    0.093    0.160
 .withdep_comp_4 ~~                                                            
   .anxdep_comp_5            0.175    0.008   21.752    0.000    0.175    0.268
 .soma_comp_4 ~~                                                               
   .anxdep_comp_5            0.142    0.007   19.321    0.000    0.142    0.231
 .anxdep_comp_5 ~~                                                             
   .withdep_comp_5           0.243    0.009   27.311    0.000    0.243    0.356
   .soma_comp_5              0.177    0.008   21.401    0.000    0.177    0.262
   .withdep_comp_6           0.156    0.010   16.327    0.000    0.156    0.237
   .soma_comp_6              0.152    0.010   15.613    0.000    0.152    0.224
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_6            0.042    0.006    6.675    0.000    0.042    0.097
 .soma_comp_0 ~~                                                               
   .anxdep_comp_6            0.064    0.008    8.211    0.000    0.064    0.112
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_6            0.061    0.006    9.479    0.000    0.061    0.135
 .soma_comp_1 ~~                                                               
   .anxdep_comp_6            0.067    0.008    8.498    0.000    0.067    0.117
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_6            0.089    0.007   12.219    0.000    0.089    0.179
 .soma_comp_2 ~~                                                               
   .anxdep_comp_6            0.084    0.007   11.319    0.000    0.084    0.154
 .withdep_comp_3 ~~                                                            
   .anxdep_comp_6            0.130    0.008   15.994    0.000    0.130    0.230
 .soma_comp_3 ~~                                                               
   .anxdep_comp_6            0.075    0.008    9.933    0.000    0.075    0.136
 .withdep_comp_4 ~~                                                            
   .anxdep_comp_6            0.156    0.009   17.321    0.000    0.156    0.251
 .soma_comp_4 ~~                                                               
   .anxdep_comp_6            0.111    0.008   13.268    0.000    0.111    0.189
 .withdep_comp_5 ~~                                                            
   .anxdep_comp_6            0.186    0.010   19.170    0.000    0.186    0.286
 .soma_comp_5 ~~                                                               
   .anxdep_comp_6            0.119    0.009   13.046    0.000    0.119    0.186
 .anxdep_comp_6 ~~                                                             
   .withdep_comp_6           0.223    0.010   22.109    0.000    0.223    0.356
   .soma_comp_6              0.165    0.010   16.748    0.000    0.165    0.255
 .withdep_comp_0 ~~                                                            
   .soma_comp_0              0.046    0.005    8.346    0.000    0.046    0.087
   .soma_comp_1              0.047    0.006    8.279    0.000    0.047    0.087
   .soma_comp_2              0.033    0.005    5.977    0.000    0.033    0.064
   .soma_comp_3              0.022    0.006    3.991    0.000    0.022    0.044
   .soma_comp_4              0.013    0.006    2.195    0.028    0.013    0.025
   .soma_comp_5             -0.015    0.007   -2.187    0.029   -0.015   -0.025
   .soma_comp_6             -0.014    0.009   -1.611    0.107   -0.014   -0.023
 .soma_comp_0 ~~                                                               
   .withdep_comp_1           0.030    0.006    5.350    0.000    0.030    0.055
 .withdep_comp_1 ~~                                                            
   .soma_comp_1              0.059    0.006   10.298    0.000    0.059    0.108
   .soma_comp_2              0.044    0.006    7.869    0.000    0.044    0.083
   .soma_comp_3              0.045    0.006    7.920    0.000    0.045    0.085
   .soma_comp_4              0.032    0.006    5.130    0.000    0.032    0.057
   .soma_comp_5              0.027    0.007    3.821    0.000    0.027    0.044
   .soma_comp_6              0.011    0.009    1.329    0.184    0.011    0.018
 .soma_comp_0 ~~                                                               
   .withdep_comp_2           0.043    0.006    6.904    0.000    0.043    0.071
 .soma_comp_1 ~~                                                               
   .withdep_comp_2           0.059    0.006    9.194    0.000    0.059    0.096
 .withdep_comp_2 ~~                                                            
   .soma_comp_2              0.073    0.006   11.971    0.000    0.073    0.126
   .soma_comp_3              0.055    0.006    8.798    0.000    0.055    0.094
   .soma_comp_4              0.071    0.007   10.396    0.000    0.071    0.114
   .soma_comp_5              0.064    0.008    8.200    0.000    0.064    0.093
   .soma_comp_6              0.048    0.010    4.870    0.000    0.048    0.069
 .soma_comp_0 ~~                                                               
   .withdep_comp_3           0.059    0.007    8.170    0.000    0.059    0.086
 .soma_comp_1 ~~                                                               
   .withdep_comp_3           0.053    0.007    7.215    0.000    0.053    0.077
 .soma_comp_2 ~~                                                               
   .withdep_comp_3           0.059    0.007    8.390    0.000    0.059    0.089
 .withdep_comp_3 ~~                                                            
   .soma_comp_3              0.081    0.007   11.295    0.000    0.081    0.122
   .soma_comp_4              0.107    0.008   13.626    0.000    0.107    0.153
   .soma_comp_5              0.120    0.009   13.452    0.000    0.120    0.155
   .soma_comp_6              0.122    0.011   11.284    0.000    0.122    0.157
 .soma_comp_0 ~~                                                               
   .withdep_comp_4           0.050    0.008    6.134    0.000    0.050    0.067
 .soma_comp_1 ~~                                                               
   .withdep_comp_4           0.063    0.008    7.569    0.000    0.063    0.083
 .soma_comp_2 ~~                                                               
   .withdep_comp_4           0.058    0.008    7.223    0.000    0.058    0.080
 .soma_comp_3 ~~                                                               
   .withdep_comp_4           0.080    0.008    9.843    0.000    0.080    0.110
 .withdep_comp_4 ~~                                                            
   .soma_comp_4              0.146    0.009   16.663    0.000    0.146    0.190
   .soma_comp_5              0.142    0.010   14.438    0.000    0.142    0.169
   .soma_comp_6              0.162    0.012   13.582    0.000    0.162    0.190
 .soma_comp_0 ~~                                                               
   .withdep_comp_5           0.042    0.009    4.651    0.000    0.042    0.053
 .soma_comp_1 ~~                                                               
   .withdep_comp_5           0.056    0.009    6.130    0.000    0.056    0.070
 .soma_comp_2 ~~                                                               
   .withdep_comp_5           0.051    0.009    5.908    0.000    0.051    0.068
 .soma_comp_3 ~~                                                               
   .withdep_comp_5           0.073    0.009    8.184    0.000    0.073    0.095
 .soma_comp_4 ~~                                                               
   .withdep_comp_5           0.136    0.010   14.118    0.000    0.136    0.167
 .withdep_comp_5 ~~                                                            
   .soma_comp_5              0.208    0.011   19.469    0.000    0.208    0.234
   .soma_comp_6              0.194    0.013   15.213    0.000    0.194    0.217
 .soma_comp_0 ~~                                                               
   .withdep_comp_6           0.049    0.010    4.820    0.000    0.049    0.065
 .soma_comp_1 ~~                                                               
   .withdep_comp_6           0.037    0.010    3.608    0.000    0.037    0.049
 .soma_comp_2 ~~                                                               
   .withdep_comp_6           0.039    0.010    3.960    0.000    0.039    0.053
 .soma_comp_3 ~~                                                               
   .withdep_comp_6           0.049    0.010    5.003    0.000    0.049    0.067
 .soma_comp_4 ~~                                                               
   .withdep_comp_6           0.093    0.011    8.592    0.000    0.093    0.119
 .soma_comp_5 ~~                                                               
   .withdep_comp_6           0.135    0.012   11.377    0.000    0.135    0.158
 .withdep_comp_6 ~~                                                            
   .soma_comp_6              0.205    0.013   15.928    0.000    0.205    0.238
 .rulebreak_comp_0 ~~                                                          
   .aggress_comp_0           0.221    0.006   38.735    0.000    0.221    0.466
   .aggress_comp_1           0.172    0.005   32.163    0.000    0.172    0.374
   .aggress_comp_2           0.161    0.005   30.645    0.000    0.161    0.359
   .aggress_comp_3           0.139    0.005   26.295    0.000    0.139    0.313
   .aggress_comp_4           0.130    0.005   25.839    0.000    0.130    0.317
   .aggress_comp_5           0.133    0.005   25.604    0.000    0.133    0.322
   .aggress_comp_6           0.111    0.006   19.682    0.000    0.111    0.296
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_1           0.180    0.005   32.880    0.000    0.180    0.380
 .rulebreak_comp_1 ~~                                                          
   .aggress_comp_1           0.215    0.006   37.937    0.000    0.215    0.468
   .aggress_comp_2           0.169    0.005   31.773    0.000    0.169    0.376
   .aggress_comp_3           0.151    0.005   28.348    0.000    0.151    0.341
   .aggress_comp_4           0.143    0.005   28.023    0.000    0.143    0.348
   .aggress_comp_5           0.135    0.005   25.736    0.000    0.135    0.326
   .aggress_comp_6           0.123    0.006   21.323    0.000    0.123    0.326
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_2           0.160    0.006   28.787    0.000    0.160    0.331
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_2           0.164    0.005   29.864    0.000    0.164    0.349
 .rulebreak_comp_2 ~~                                                          
   .aggress_comp_2           0.222    0.006   38.550    0.000    0.222    0.485
   .aggress_comp_3           0.168    0.006   30.224    0.000    0.168    0.372
   .aggress_comp_4           0.142    0.005   27.120    0.000    0.142    0.339
   .aggress_comp_5           0.143    0.005   26.704    0.000    0.143    0.340
   .aggress_comp_6           0.140    0.006   23.640    0.000    0.140    0.364
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_3           0.160    0.006   27.540    0.000    0.160    0.321
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_3           0.163    0.006   28.563    0.000    0.163    0.338
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_3           0.179    0.006   31.379    0.000    0.179    0.381
 .rulebreak_comp_3 ~~                                                          
   .aggress_comp_3           0.231    0.006   37.996    0.000    0.231    0.497
   .aggress_comp_4           0.165    0.005   30.121    0.000    0.165    0.383
   .aggress_comp_5           0.156    0.006   27.773    0.000    0.156    0.360
   .aggress_comp_6           0.153    0.006   25.610    0.000    0.153    0.388
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_4           0.181    0.007   26.744    0.000    0.181    0.315
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_4           0.188    0.007   28.232    0.000    0.188    0.337
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_4           0.187    0.007   28.548    0.000    0.187    0.344
 .aggress_comp_3 ~~                                                            
   .rulebrek_cmp_4           0.204    0.007   30.237    0.000    0.204    0.379
 .rulebreak_comp_4 ~~                                                          
   .aggress_comp_4           0.249    0.007   37.264    0.000    0.249    0.498
   .aggress_comp_5           0.207    0.007   31.226    0.000    0.207    0.414
   .aggress_comp_6           0.174    0.007   24.666    0.000    0.174    0.380
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_5           0.212    0.008   26.052    0.000    0.212    0.315
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_5           0.200    0.008   25.179    0.000    0.200    0.306
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_5           0.226    0.008   28.625    0.000    0.226    0.354
 .aggress_comp_3 ~~                                                            
   .rulebrek_cmp_5           0.225    0.008   28.090    0.000    0.225    0.358
 .aggress_comp_4 ~~                                                            
   .rulebrek_cmp_5           0.232    0.008   30.521    0.000    0.232    0.397
 .rulebreak_comp_5 ~~                                                          
   .aggress_comp_5           0.311    0.008   37.971    0.000    0.311    0.529
   .aggress_comp_6           0.237    0.008   28.557    0.000    0.237    0.443
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_6           0.194    0.010   20.150    0.000    0.194    0.281
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_6           0.176    0.009   18.666    0.000    0.176    0.264
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_6           0.211    0.009   22.780    0.000    0.211    0.323
 .aggress_comp_3 ~~                                                            
   .rulebrek_cmp_6           0.220    0.009   23.817    0.000    0.220    0.341
 .aggress_comp_4 ~~                                                            
   .rulebrek_cmp_6           0.224    0.009   25.366    0.000    0.224    0.374
 .aggress_comp_5 ~~                                                            
   .rulebrek_cmp_6           0.250    0.009   27.282    0.000    0.250    0.415
 .rulebreak_comp_6 ~~                                                          
   .aggress_comp_6           0.274    0.009   29.265    0.000    0.274    0.499
 .p_i ~~                                                                       
   .p_s                     -0.029    0.006   -5.151    0.000   -0.219   -0.219
   .p_q                      0.001    0.002    0.507    0.612    0.019    0.019
 .p_s ~~                                                                       
   .p_q                     -0.023    0.003   -8.498    0.000   -0.861   -0.861
 .flanker_0 ~~                                                                 
   .flanker_2                0.138    0.007   18.785    0.000    0.138    0.244
   .flanker_4                0.099    0.008   13.137    0.000    0.099    0.181
   .flanker_6                0.087    0.009    9.361    0.000    0.087    0.162
 .flanker_2 ~~                                                                 
   .flanker_4                0.145    0.007   19.939    0.000    0.145    0.322
   .flanker_6                0.102    0.008   12.593    0.000    0.102    0.231
 .flanker_4 ~~                                                                 
   .flanker_6                0.153    0.009   16.866    0.000    0.153    0.358
 .pattern_0 ~~                                                                 
   .pattern_2                0.074    0.005   13.482    0.000    0.074    0.217
   .pattern_4                0.040    0.006    6.685    0.000    0.040    0.110
   .pattern_6                0.032    0.007    4.562    0.000    0.032    0.092
 .pattern_2 ~~                                                                 
   .pattern_4                0.104    0.007   15.272    0.000    0.104    0.289
   .pattern_6                0.073    0.008    9.762    0.000    0.073    0.208
 .pattern_4 ~~                                                                 
   .pattern_6                0.125    0.009   14.056    0.000    0.125    0.334
 .picture_0 ~~                                                                 
   .picture_2                0.252    0.007   33.905    0.000    0.252    0.364
   .picture_4                0.258    0.009   28.163    0.000    0.258    0.311
   .picture_6                0.282    0.012   23.605    0.000    0.282    0.344
 .picture_2 ~~                                                                 
   .picture_4                0.286    0.010   28.160    0.000    0.286    0.326
   .picture_6                0.267    0.013   19.944    0.000    0.267    0.307
 .picture_4 ~~                                                                 
   .picture_6                0.391    0.016   24.781    0.000    0.391    0.374
 .picvocab_0 ~~                                                                
   .picvocab_2               0.400    0.007   53.374    0.000    0.400    0.678
   .picvocab_4               0.404    0.008   50.851    0.000    0.404    0.649
   .picvocab_6               0.383    0.009   43.443    0.000    0.383    0.627
 .picvocab_2 ~~                                                                
   .picvocab_4               0.476    0.009   54.231    0.000    0.476    0.729
   .picvocab_6               0.463    0.010   47.613    0.000    0.463    0.722
 .picvocab_4 ~~                                                                
   .picvocab_6               0.512    0.011   48.537    0.000    0.512    0.758
 .reading_0 ~~                                                                 
   .reading_2                0.405    0.007   55.046    0.000    0.405    0.722
   .reading_4                0.409    0.008   50.922    0.000    0.409    0.662
   .reading_6                0.419    0.010   43.695    0.000    0.419    0.658
 .reading_2 ~~                                                                 
   .reading_4                0.419    0.008   51.450    0.000    0.419    0.694
   .reading_6                0.435    0.010   45.417    0.000    0.435    0.700
 .reading_4 ~~                                                                 
   .reading_6                0.459    0.011   43.052    0.000    0.459    0.670
 .picvocab_0 ~~                                                                
   .reading_0                0.235    0.007   36.119    0.000    0.235    0.413
   .reading_2                0.248    0.007   37.829    0.000    0.248    0.447
   .reading_4                0.267    0.007   36.420    0.000    0.267    0.436
   .reading_6                0.285    0.009   32.308    0.000    0.285    0.453
 .picvocab_2 ~~                                                                
   .reading_2                0.291    0.007   40.640    0.000    0.291    0.499
 .reading_0 ~~                                                                 
   .picvocab_2               0.269    0.007   38.473    0.000    0.269    0.452
 .picvocab_2 ~~                                                                
   .reading_4                0.316    0.008   39.746    0.000    0.316    0.493
   .reading_6                0.342    0.010   35.628    0.000    0.342    0.517
 .picvocab_4 ~~                                                                
   .reading_4                0.340    0.009   39.118    0.000    0.340    0.503
 .reading_0 ~~                                                                 
   .picvocab_4               0.278    0.008   36.941    0.000    0.278    0.442
 .reading_2 ~~                                                                 
   .picvocab_4               0.303    0.008   39.597    0.000    0.303    0.493
 .picvocab_4 ~~                                                                
   .reading_6                0.370    0.010   35.796    0.000    0.370    0.531
 .picvocab_6 ~~                                                                
   .reading_6                0.364    0.011   32.419    0.000    0.364    0.532
 .reading_0 ~~                                                                 
   .picvocab_6               0.259    0.009   30.081    0.000    0.259    0.419
 .reading_2 ~~                                                                 
   .picvocab_6               0.287    0.009   33.255    0.000    0.287    0.476
 .reading_4 ~~                                                                 
   .picvocab_6               0.326    0.010   33.570    0.000    0.326    0.491
 .g_i ~~                                                                       
   .g_s                      0.004    0.001    3.579    0.000    0.210    0.210

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .asr___0 (t_AX)    0.016    0.004    3.813    0.000    0.016    0.016
   .asr___0 (t_AW)    0.022    0.005    4.339    0.000    0.022    0.021
   .asr___0 (t_AS)    0.015    0.005    2.861    0.004    0.015    0.015
   .asr___0 (t_AP)    0.020    0.005    4.376    0.000    0.020    0.019
   .asr___0 (t_AH)    0.019    0.005    3.953    0.000    0.019    0.020
   .asr___0 (t_AA)    0.023    0.005    4.244    0.000    0.023    0.022
   .asr___0 (t_AR)    0.021    0.005    4.487    0.000    0.021    0.021
   .asr___0 (t_AG)    0.010    0.007    1.441    0.150    0.010    0.010
   .asr___2 (t_AX)    0.016    0.004    3.813    0.000    0.016    0.016
   .asr___2 (t_AW)    0.022    0.005    4.339    0.000    0.022    0.021
   .asr___2 (t_AS)    0.015    0.005    2.861    0.004    0.015    0.015
   .asr___2 (t_AP)    0.020    0.005    4.376    0.000    0.020    0.020
   .asr___2 (t_AH)    0.019    0.005    3.953    0.000    0.019    0.020
   .asr___2 (t_AA)    0.023    0.005    4.244    0.000    0.023    0.023
   .asr___2 (t_AR)    0.021    0.005    4.487    0.000    0.021    0.021
   .asr___2 (t_AG)    0.010    0.007    1.441    0.150    0.010    0.010
   .asr___4 (t_AX)    0.016    0.004    3.813    0.000    0.016    0.016
   .asr___4 (t_AW)    0.022    0.005    4.339    0.000    0.022    0.022
   .asr___4 (t_AS)    0.015    0.005    2.861    0.004    0.015    0.016
   .asr___4 (t_AP)    0.020    0.005    4.376    0.000    0.020    0.021
   .asr___4 (t_AH)    0.019    0.005    3.953    0.000    0.019    0.020
   .asr___4 (t_AA)    0.023    0.005    4.244    0.000    0.023    0.024
   .asr___4 (t_AR)    0.021    0.005    4.487    0.000    0.021    0.022
   .asr___4 (t_AG)    0.010    0.007    1.441    0.150    0.010    0.010
   .a_i              -0.013    0.011   -1.131    0.258   -0.016   -0.016
   .a_s              -0.016    0.005   -3.004    0.003   -0.063   -0.063
   .a_etaB            0.000                               0.000    0.000
   .a_eta2            0.000                               0.000    0.000
   .a_eta4            0.000                               0.000    0.000
   .anxd__0 (t_CX)   -0.016    0.005   -3.217    0.001   -0.016   -0.016
   .anxd__1 (t_CX)   -0.016    0.005   -3.217    0.001   -0.016   -0.016
   .anxd__2 (t_CX)   -0.016    0.005   -3.217    0.001   -0.016   -0.016
   .anxd__3 (t_CX)   -0.016    0.005   -3.217    0.001   -0.016   -0.016
   .anxd__4 (t_CX)   -0.016    0.005   -3.217    0.001   -0.016   -0.016
   .anxd__5 (t_CX)   -0.016    0.005   -3.217    0.001   -0.016   -0.016
   .anxd__6 (t_CX)   -0.016    0.005   -3.217    0.001   -0.016   -0.017
   .wthd__0 (t_CW)   -0.082    0.005  -16.213    0.000   -0.082   -0.091
   .wthd__1 (t_CW)   -0.082    0.005  -16.213    0.000   -0.082   -0.090
   .wthd__2 (t_CW)   -0.082    0.005  -16.213    0.000   -0.082   -0.085
   .wthd__3 (t_CW)   -0.082    0.005  -16.213    0.000   -0.082   -0.079
   .wthd__4 (t_CW)   -0.082    0.005  -16.213    0.000   -0.082   -0.075
   .wthd__5 (t_CW)   -0.082    0.005  -16.213    0.000   -0.082   -0.073
   .wthd__6 (t_CW)   -0.082    0.005  -16.213    0.000   -0.082   -0.076
   .sm_cm_0 (t_CS)   -0.019    0.006   -3.093    0.002   -0.019   -0.019
   .sm_cm_1 (t_CS)   -0.019    0.006   -3.093    0.002   -0.019   -0.019
   .sm_cm_2 (t_CS)   -0.019    0.006   -3.093    0.002   -0.019   -0.019
   .sm_cm_3 (t_CS)   -0.019    0.006   -3.093    0.002   -0.019   -0.019
   .sm_cm_4 (t_CS)   -0.019    0.006   -3.093    0.002   -0.019   -0.019
   .sm_cm_5 (t_CS)   -0.019    0.006   -3.093    0.002   -0.019   -0.017
   .sm_cm_6 (t_CS)   -0.019    0.006   -3.093    0.002   -0.019   -0.017
   .scpr__0 (t_CP)    0.023    0.004    5.627    0.000    0.023    0.021
   .scpr__1 (t_CP)    0.023    0.004    5.627    0.000    0.023    0.022
   .scpr__2 (t_CP)    0.023    0.004    5.627    0.000    0.023    0.022
   .scpr__3 (t_CP)    0.023    0.004    5.627    0.000    0.023    0.023
   .scpr__4 (t_CP)    0.023    0.004    5.627    0.000    0.023    0.023
   .scpr__5 (t_CP)    0.023    0.004    5.627    0.000    0.023    0.024
   .scpr__6 (t_CP)    0.023    0.004    5.627    0.000    0.023    0.025
   .thpr__0 (t_CH)    0.024    0.004    6.033    0.000    0.024    0.023
   .thpr__1 (t_CH)    0.024    0.004    6.033    0.000    0.024    0.023
   .thpr__2 (t_CH)    0.024    0.004    6.033    0.000    0.024    0.024
   .thpr__3 (t_CH)    0.024    0.004    6.033    0.000    0.024    0.025
   .thpr__4 (t_CH)    0.024    0.004    6.033    0.000    0.024    0.025
   .thpr__5 (t_CH)    0.024    0.004    6.033    0.000    0.024    0.024
   .thpr__6 (t_CH)    0.024    0.004    6.033    0.000    0.024    0.026
   .attp__0 (t_CA)    0.028    0.005    5.976    0.000    0.028    0.028
   .attp__1 (t_CA)    0.028    0.005    5.976    0.000    0.028    0.028
   .attp__2 (t_CA)    0.028    0.005    5.976    0.000    0.028    0.029
   .attp__3 (t_CA)    0.028    0.005    5.976    0.000    0.028    0.029
   .attp__4 (t_CA)    0.028    0.005    5.976    0.000    0.028    0.030
   .attp__5 (t_CA)    0.028    0.005    5.976    0.000    0.028    0.030
   .attp__6 (t_CA)    0.028    0.005    5.976    0.000    0.028    0.031
   .rlbr__0 (t_CR)   -0.022    0.005   -4.518    0.000   -0.022   -0.024
   .rlbr__1 (t_CR)   -0.022    0.005   -4.518    0.000   -0.022   -0.024
   .rlbr__2 (t_CR)   -0.022    0.005   -4.518    0.000   -0.022   -0.024
   .rlbr__3 (t_CR)   -0.022    0.005   -4.518    0.000   -0.022   -0.023
   .rlbr__4 (t_CR)   -0.022    0.005   -4.518    0.000   -0.022   -0.021
   .rlbr__5 (t_CR)   -0.022    0.005   -4.518    0.000   -0.022   -0.019
   .rlbr__6 (t_CR)   -0.022    0.005   -4.518    0.000   -0.022   -0.019
   .aggr__0 (t_CG)   -0.006    0.004   -1.456    0.145   -0.006   -0.006
   .aggr__1 (t_CG)   -0.006    0.004   -1.456    0.145   -0.006   -0.006
   .aggr__2 (t_CG)   -0.006    0.004   -1.456    0.145   -0.006   -0.006
   .aggr__3 (t_CG)   -0.006    0.004   -1.456    0.145   -0.006   -0.006
   .aggr__4 (t_CG)   -0.006    0.004   -1.456    0.145   -0.006   -0.006
   .aggr__5 (t_CG)   -0.006    0.004   -1.456    0.145   -0.006   -0.006
   .aggr__6 (t_CG)   -0.006    0.004   -1.456    0.145   -0.006   -0.007
   .p_i              -0.193    0.015  -13.268    0.000   -0.282   -0.282
   .p_s               0.457    0.218    2.099    0.036    1.075    1.075
   .p_q              -0.132    0.073   -1.811    0.070   -1.075   -1.075
   .p_etaB            0.000                               0.000    0.000
   .p_eta1            0.000                               0.000    0.000
   .p_eta2            0.000                               0.000    0.000
   .p_eta3            0.000                               0.000    0.000
   .p_eta4            0.000                               0.000    0.000
   .p_eta5            0.000                               0.000    0.000
   .p_eta6            0.000                               0.000    0.000
   .flnkr_0 (ta_S)    0.120    0.005   24.286    0.000    0.120    0.130
   .flnkr_2 (ta_S)    0.120    0.005   24.286    0.000    0.120    0.150
   .flnkr_4 (ta_S)    0.120    0.005   24.286    0.000    0.120    0.151
   .flnkr_6 (ta_S)    0.120    0.005   24.286    0.000    0.120    0.148
   .pttrn_0 (ta_R)    0.141    0.005   30.426    0.000    0.141    0.185
   .pttrn_2 (ta_R)    0.141    0.005   30.426    0.000    0.141    0.183
   .pttrn_4 (ta_R)    0.141    0.005   30.426    0.000    0.141    0.171
   .pttrn_6 (ta_R)    0.141    0.005   30.426    0.000    0.141    0.165
   .pictr_0 (ta_M)    0.065    0.006   10.020    0.000    0.065    0.077
   .pictr_2 (ta_M)    0.065    0.006   10.020    0.000    0.065    0.072
   .pictr_4 (ta_M)    0.065    0.006   10.020    0.000    0.065    0.061
   .pictr_6 (ta_M)    0.065    0.006   10.020    0.000    0.065    0.061
   .pcvcb_0 (ta_P)    0.067    0.005   12.566    0.000    0.067    0.079
   .pcvcb_2 (ta_P)    0.067    0.005   12.566    0.000    0.067    0.076
   .pcvcb_4 (ta_P)    0.067    0.005   12.566    0.000    0.067    0.072
   .pcvcb_6 (ta_P)    0.067    0.005   12.566    0.000    0.067    0.071
   .redng_0 (ta_V)    0.078    0.005   15.290    0.000    0.078    0.092
   .redng_2 (ta_V)    0.078    0.005   15.290    0.000    0.078    0.093
   .redng_4 (ta_V)    0.078    0.005   15.290    0.000    0.078    0.085
   .redng_6 (ta_V)    0.078    0.005   15.290    0.000    0.078    0.081
   .g_i              -0.652    0.008  -81.570    0.000   -1.681   -1.681
   .g_s               0.470    0.004  115.372    0.000    9.018    9.018
   .g_etaB            0.000                               0.000    0.000
   .g_eta2            0.000                               0.000    0.000
   .g_eta4            0.000                               0.000    0.000
   .g_eta6            0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .a_etaB            0.101    0.006   16.726    0.000    0.143    0.143
   .a_eta2            0.181    0.005   39.312    0.000    0.262    0.262
   .a_eta4            0.102    0.007   14.239    0.000    0.160    0.160
   .asr_nxdp_cmp_0    0.312    0.006   53.399    0.000    0.312    0.305
   .asr_wthdp_cm_0    0.486    0.008   63.079    0.000    0.486    0.463
   .asr_soma_cmp_0    0.551    0.008   66.549    0.000    0.551    0.549
   .asr_thprb_cm_0    0.471    0.007   65.270    0.000    0.471    0.435
   .asr_ttprb_cm_0    0.408    0.006   64.412    0.000    0.408    0.411
   .asr_rlbrk_cm_0    0.660    0.009   69.904    0.000    0.660    0.606
   .asr_ggrss_cm_0    0.448    0.007   64.485    0.000    0.448    0.427
   .asr_intr_cmp_0    0.898    0.012   74.903    0.000    0.898    0.841
   .asr_nxdp_cmp_2    0.339    0.006   53.440    0.000    0.339    0.329
   .asr_wthdp_cm_2    0.481    0.008   61.120    0.000    0.481    0.467
   .asr_soma_cmp_2    0.560    0.009   64.620    0.000    0.560    0.559
   .asr_thprb_cm_2    0.412    0.007   61.775    0.000    0.412    0.408
   .asr_ttprb_cm_2    0.383    0.006   61.210    0.000    0.383    0.402
   .asr_rlbrk_cm_2    0.603    0.009   66.769    0.000    0.603    0.590
   .asr_ggrss_cm_2    0.435    0.007   62.275    0.000    0.435    0.426
   .asr_intr_cmp_2    0.821    0.011   72.050    0.000    0.821    0.832
   .asr_nxdp_cmp_4    0.352    0.007   50.812    0.000    0.352    0.354
   .asr_wthdp_cm_4    0.461    0.008   57.261    0.000    0.461    0.475
   .asr_soma_cmp_4    0.554    0.009   60.444    0.000    0.554    0.575
   .asr_thprb_cm_4    0.384    0.007   57.229    0.000    0.384    0.409
   .asr_ttprb_cm_4    0.420    0.007   58.583    0.000    0.420    0.443
   .asr_rlbrk_cm_4    0.561    0.009   62.017    0.000    0.561    0.591
   .asr_ggrss_cm_4    0.417    0.007   58.231    0.000    0.417    0.434
   .asr_intr_cmp_4    0.806    0.012   67.777    0.000    0.806    0.840
   .a_i               0.607    0.012   49.254    0.000    1.000    1.000
   .a_s               0.063    0.003   20.059    0.000    0.999    0.999
   .p_etaB            0.080    0.004   20.535    0.000    0.145    0.145
   .p_eta1            0.124    0.003   42.729    0.000    0.228    0.228
   .p_eta2            0.120    0.003   42.397    0.000    0.227    0.227
   .p_eta3            0.112    0.003   39.399    0.000    0.216    0.216
   .p_eta4            0.105    0.003   38.340    0.000    0.209    0.209
   .p_eta5            0.111    0.003   35.544    0.000    0.223    0.223
   .p_eta6            0.042    0.005    9.316    0.000    0.094    0.094
   .anxdep_comp_0     0.512    0.008   67.026    0.000    0.512    0.482
   .withdep_comp_0    0.406    0.006   65.388    0.000    0.406    0.498
   .soma_comp_0       0.692    0.010   72.729    0.000    0.692    0.698
   .socprob_comp_0    0.421    0.007   61.311    0.000    0.421    0.380
   .thouprob_cmp_0    0.408    0.006   62.992    0.000    0.408    0.379
   .attprob_comp_0    0.454    0.007   65.903    0.000    0.454    0.455
   .rulebrek_cmp_0    0.478    0.007   69.152    0.000    0.478    0.542
   .aggress_comp_0    0.469    0.007   64.458    0.000    0.469    0.429
   .anxdep_comp_1     0.529    0.008   65.815    0.000    0.529    0.494
   .withdep_comp_1    0.433    0.007   66.277    0.000    0.433    0.518
   .soma_comp_1       0.701    0.010   71.049    0.000    0.701    0.703
   .socprob_comp_1    0.391    0.007   59.520    0.000    0.391    0.366
   .thouprob_cmp_1    0.419    0.007   61.638    0.000    0.419    0.389
   .attprob_comp_1    0.446    0.007   64.536    0.000    0.446    0.454
   .rulebrek_cmp_1    0.480    0.007   67.190    0.000    0.480    0.547
   .aggress_comp_1    0.441    0.007   62.968    0.000    0.441    0.418
   .anxdep_comp_2     0.501    0.008   65.136    0.000    0.501    0.487
   .withdep_comp_2    0.530    0.008   67.229    0.000    0.530    0.574
   .soma_comp_2       0.640    0.009   69.744    0.000    0.640    0.689
   .socprob_comp_2    0.350    0.006   58.088    0.000    0.350    0.346
   .thouprob_cmp_2    0.370    0.006   59.576    0.000    0.370    0.365
   .attprob_comp_2    0.420    0.007   63.634    0.000    0.420    0.445
   .rulebrek_cmp_2    0.498    0.008   66.237    0.000    0.498    0.562
   .aggress_comp_2    0.421    0.007   61.955    0.000    0.421    0.412
   .anxdep_comp_3     0.527    0.008   63.732    0.000    0.527    0.504
   .withdep_comp_3    0.680    0.010   65.549    0.000    0.680    0.638
   .soma_comp_3       0.645    0.010   67.696    0.000    0.645    0.695
   .socprob_comp_3    0.320    0.006   55.713    0.000    0.320    0.331
   .thouprob_cmp_3    0.345    0.006   57.011    0.000    0.345    0.353
   .attprob_comp_3    0.415    0.007   62.050    0.000    0.415    0.447
   .rulebrek_cmp_3    0.526    0.008   63.701    0.000    0.526    0.580
   .aggress_comp_3    0.409    0.007   59.903    0.000    0.409    0.410
   .anxdep_comp_4     0.496    0.008   61.522    0.000    0.496    0.498
   .withdep_comp_4    0.816    0.013   63.085    0.000    0.816    0.686
   .soma_comp_4       0.730    0.011   65.732    0.000    0.730    0.728
   .socprob_comp_4    0.305    0.006   53.855    0.000    0.305    0.327
   .thouprob_cmp_4    0.325    0.006   54.741    0.000    0.325    0.347
   .attprob_comp_4    0.381    0.006   59.754    0.000    0.381    0.435
   .rulebrek_cmp_4    0.705    0.011   63.061    0.000    0.705    0.657
   .aggress_comp_4    0.354    0.006   57.396    0.000    0.354    0.384
   .anxdep_comp_5     0.520    0.009   58.723    0.000    0.520    0.512
   .withdep_comp_5    0.900    0.015   60.306    0.000    0.900    0.709
   .soma_comp_5       0.873    0.014   62.703    0.000    0.873    0.763
   .socprob_comp_5    0.298    0.006   50.464    0.000    0.298    0.325
   .thouprob_cmp_5    0.376    0.007   53.484    0.000    0.376    0.383
   .attprob_comp_5    0.398    0.007   57.773    0.000    0.398    0.448
   .rulebrek_cmp_5    0.967    0.016   61.569    0.000    0.967    0.726
   .aggress_comp_5    0.357    0.006   54.942    0.000    0.357    0.387
   .anxdep_comp_6     0.470    0.010   46.899    0.000    0.470    0.512
   .withdep_comp_6    0.835    0.017   48.426    0.000    0.835    0.714
   .soma_comp_6       0.892    0.018   50.067    0.000    0.892    0.785
   .socprob_comp_6    0.256    0.007   38.920    0.000    0.256    0.313
   .thouprob_cmp_6    0.299    0.007   40.513    0.000    0.299    0.353
   .attprob_comp_6    0.373    0.008   46.765    0.000    0.373    0.456
   .rulebrek_cmp_6    1.015    0.020   49.987    0.000    1.015    0.755
   .aggress_comp_6    0.297    0.007   43.076    0.000    0.297    0.368
   .p_i               0.228    0.007   35.004    0.000    0.486    0.486
   .p_s               0.076    0.009    8.404    0.000    0.420    0.420
   .p_q               0.009    0.001   10.762    0.000    0.614    0.614
   .g_etaB            0.012    0.002    5.365    0.000    0.074    0.074
   .g_eta2            0.008    0.002    5.180    0.000    0.048    0.048
   .g_eta4            0.017    0.002    8.229    0.000    0.088    0.088
   .g_eta6            0.045    0.004   11.357    0.000    0.183    0.183
   .flanker_0         0.684    0.010   68.067    0.000    0.684    0.808
   .flanker_2         0.466    0.009   54.450    0.000    0.466    0.733
   .flanker_4         0.435    0.009   49.495    0.000    0.435    0.690
   .flanker_6         0.417    0.011   38.704    0.000    0.417    0.630
   .pattern_0         0.338    0.006   52.588    0.000    0.338    0.583
   .pattern_2         0.340    0.008   45.218    0.000    0.340    0.574
   .pattern_4         0.385    0.009   42.789    0.000    0.385    0.570
   .pattern_6         0.366    0.011   32.943    0.000    0.366    0.502
   .picture_0         0.653    0.009   73.382    0.000    0.653    0.918
   .picture_2         0.733    0.011   69.170    0.000    0.733    0.923
   .picture_4         1.055    0.016   66.200    0.000    1.055    0.938
   .picture_6         1.035    0.022   47.843    0.000    1.035    0.922
   .picvocab_0        0.562    0.008   69.054    0.000    0.562    0.800
   .picvocab_2        0.619    0.009   66.308    0.000    0.619    0.809
   .picvocab_4        0.688    0.011   63.162    0.000    0.688    0.803
   .picvocab_6        0.663    0.013   49.352    0.000    0.663    0.758
   .reading_0         0.574    0.008   68.373    0.000    0.574    0.786
   .reading_2         0.549    0.008   64.975    0.000    0.549    0.770
   .reading_4         0.665    0.011   62.105    0.000    0.665    0.779
   .reading_6         0.705    0.015   47.962    0.000    0.705    0.749
   .g_i               0.150    0.004   36.068    0.000    0.997    0.997
   .g_s               0.003    0.001    4.280    0.000    0.999    0.999

R-Square:
                   Estimate
    a_etaB            0.857
    a_eta2            0.738
    a_eta4            0.840
    asr_nxdp_cmp_0    0.695
    asr_wthdp_cm_0    0.537
    asr_soma_cmp_0    0.451
    asr_thprb_cm_0    0.565
    asr_ttprb_cm_0    0.589
    asr_rlbrk_cm_0    0.394
    asr_ggrss_cm_0    0.573
    asr_intr_cmp_0    0.159
    asr_nxdp_cmp_2    0.671
    asr_wthdp_cm_2    0.533
    asr_soma_cmp_2    0.441
    asr_thprb_cm_2    0.592
    asr_ttprb_cm_2    0.598
    asr_rlbrk_cm_2    0.410
    asr_ggrss_cm_2    0.574
    asr_intr_cmp_2    0.168
    asr_nxdp_cmp_4    0.646
    asr_wthdp_cm_4    0.525
    asr_soma_cmp_4    0.425
    asr_thprb_cm_4    0.591
    asr_ttprb_cm_4    0.557
    asr_rlbrk_cm_4    0.409
    asr_ggrss_cm_4    0.566
    asr_intr_cmp_4    0.160
    a_i               0.000
    a_s               0.001
    p_etaB            0.855
    p_eta1            0.772
    p_eta2            0.773
    p_eta3            0.784
    p_eta4            0.791
    p_eta5            0.777
    p_eta6            0.906
    anxdep_comp_0     0.518
    withdep_comp_0    0.502
    soma_comp_0       0.302
    socprob_comp_0    0.620
    thouprob_cmp_0    0.621
    attprob_comp_0    0.545
    rulebrek_cmp_0    0.458
    aggress_comp_0    0.571
    anxdep_comp_1     0.506
    withdep_comp_1    0.482
    soma_comp_1       0.297
    socprob_comp_1    0.634
    thouprob_cmp_1    0.611
    attprob_comp_1    0.546
    rulebrek_cmp_1    0.453
    aggress_comp_1    0.582
    anxdep_comp_2     0.513
    withdep_comp_2    0.426
    soma_comp_2       0.311
    socprob_comp_2    0.654
    thouprob_cmp_2    0.635
    attprob_comp_2    0.555
    rulebrek_cmp_2    0.438
    aggress_comp_2    0.588
    anxdep_comp_3     0.496
    withdep_comp_3    0.362
    soma_comp_3       0.305
    socprob_comp_3    0.669
    thouprob_cmp_3    0.647
    attprob_comp_3    0.553
    rulebrek_cmp_3    0.420
    aggress_comp_3    0.590
    anxdep_comp_4     0.502
    withdep_comp_4    0.314
    soma_comp_4       0.272
    socprob_comp_4    0.673
    thouprob_cmp_4    0.653
    attprob_comp_4    0.565
    rulebrek_cmp_4    0.343
    aggress_comp_4    0.616
    anxdep_comp_5     0.488
    withdep_comp_5    0.291
    soma_comp_5       0.237
    socprob_comp_5    0.675
    thouprob_cmp_5    0.617
    attprob_comp_5    0.552
    rulebrek_cmp_5    0.274
    aggress_comp_5    0.613
    anxdep_comp_6     0.488
    withdep_comp_6    0.286
    soma_comp_6       0.215
    socprob_comp_6    0.687
    thouprob_cmp_6    0.647
    attprob_comp_6    0.544
    rulebrek_cmp_6    0.245
    aggress_comp_6    0.632
    p_i               0.514
    p_s               0.580
    p_q               0.386
    g_etaB            0.926
    g_eta2            0.952
    g_eta4            0.912
    g_eta6            0.817
    flanker_0         0.192
    flanker_2         0.267
    flanker_4         0.310
    flanker_6         0.370
    pattern_0         0.417
    pattern_2         0.426
    pattern_4         0.430
    pattern_6         0.498
    picture_0         0.082
    picture_2         0.077
    picture_4         0.062
    picture_6         0.078
    picvocab_0        0.200
    picvocab_2        0.191
    picvocab_4        0.197
    picvocab_6        0.242
    reading_0         0.214
    reading_2         0.230
    reading_4         0.221
    reading_6         0.251
    g_i               0.003
    g_s               0.001

Symptom model

Externalizing symptoms

Ext ~ pp + g model

Children’s Externalizing symptoms (Ext) was regressed on parental psychopathology (pp) and children’s cognitive functioning (g).

model fit
Ext.pga6.model <- "# second-order pp factor
               #factor loadings (with constraints)
               a_etaB =~ 1*asr_anxdep_comp_0+
                       lambda_AW*asr_withdep_comp_0+
                       lambda_AS*asr_soma_comp_0+
                       lambda_AC*asr_thouprob_comp_0+
                       lambda_AH*asr_attprob_comp_0+
                       lambda_AA*asr_rulebreak_comp_0+
                       lambda_AR*asr_aggress_comp_0+
                       lambda_AG*asr_intru_comp_0
               a_eta2 =~ 1*asr_anxdep_comp_2+
                       lambda_AW*asr_withdep_comp_2+
                       lambda_AS*asr_soma_comp_2+
                       lambda_AC*asr_thouprob_comp_2+
                       lambda_AH*asr_attprob_comp_2+
                       lambda_AA*asr_rulebreak_comp_2+
                       lambda_AR*asr_aggress_comp_2+
                       lambda_AG*asr_intru_comp_2
               a_eta4 =~ 1*asr_anxdep_comp_4+
                       lambda_AW*asr_withdep_comp_4+
                       lambda_AS*asr_soma_comp_4+
                       lambda_AC*asr_thouprob_comp_4+
                       lambda_AH*asr_attprob_comp_4+
                       lambda_AA*asr_rulebreak_comp_4+
                       lambda_AR*asr_aggress_comp_4+
                       lambda_AG*asr_intru_comp_4

              #latent variable variances
                      a_etaB~~NA*a_etaB
                      a_eta2~~NA*a_eta2
                      a_eta4~~NA*a_eta4

              #unique variances # No need to constrict these
                      asr_anxdep_comp_0~~asr_anxdep_comp_0
                      asr_withdep_comp_0~~asr_withdep_comp_0
                      asr_soma_comp_0~~asr_soma_comp_0
                      asr_thouprob_comp_0~~asr_thouprob_comp_0
                      asr_attprob_comp_0~~asr_attprob_comp_0
                      asr_rulebreak_comp_0~~asr_rulebreak_comp_0
                      asr_aggress_comp_0~~asr_aggress_comp_0
                      asr_intru_comp_0~~asr_intru_comp_0

                      asr_anxdep_comp_2~~asr_anxdep_comp_2
                      asr_withdep_comp_2~~asr_withdep_comp_2
                      asr_soma_comp_2~~asr_soma_comp_2
                      asr_thouprob_comp_2~~asr_thouprob_comp_2
                      asr_attprob_comp_2~~asr_attprob_comp_2
                      asr_rulebreak_comp_2~~asr_rulebreak_comp_2
                      asr_aggress_comp_2~~asr_aggress_comp_2
                      asr_intru_comp_2~~asr_intru_comp_2

                      asr_anxdep_comp_4~~asr_anxdep_comp_4
                      asr_withdep_comp_4~~asr_withdep_comp_4
                      asr_soma_comp_4~~asr_soma_comp_4
                      asr_thouprob_comp_4~~asr_thouprob_comp_4
                      asr_attprob_comp_4~~asr_attprob_comp_4
                      asr_rulebreak_comp_4~~asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_aggress_comp_4
                      asr_intru_comp_4~~asr_intru_comp_4

              #unique covariances
                      # Scores arcoss times
                      asr_anxdep_comp_0~~ asr_anxdep_comp_2 + asr_anxdep_comp_4
                      asr_anxdep_comp_2~~ asr_anxdep_comp_4

                      asr_withdep_comp_0 ~~ asr_withdep_comp_2 + asr_withdep_comp_4
                      asr_withdep_comp_2 ~~ asr_withdep_comp_4

                      asr_soma_comp_0~~ asr_soma_comp_2 + asr_soma_comp_4
                      asr_soma_comp_2~~ asr_soma_comp_4

                      asr_thouprob_comp_0~~ asr_thouprob_comp_2 + asr_thouprob_comp_4
                      asr_thouprob_comp_2~~ asr_thouprob_comp_4

                      asr_attprob_comp_0~~ asr_attprob_comp_2 + asr_attprob_comp_4
                      asr_attprob_comp_2~~ asr_attprob_comp_4

                      asr_rulebreak_comp_0~~ asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_rulebreak_comp_2~~ asr_rulebreak_comp_4

                      asr_aggress_comp_0~~ asr_aggress_comp_2 + asr_aggress_comp_4
                      asr_aggress_comp_2~~ asr_aggress_comp_4

                      asr_intru_comp_0~~ asr_intru_comp_2 + asr_intru_comp_4
                      asr_intru_comp_2~~ asr_intru_comp_4

                      # Internalizeing subscale covariances
                      asr_anxdep_comp_0~~asr_withdep_comp_0 + asr_soma_comp_0 + asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_2~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_4~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4

                      asr_withdep_comp_0~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_2~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_4~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4

                      # Externalizeing subscale covariances
                      asr_aggress_comp_0~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_2~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4

                      asr_intru_comp_0~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_2~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_4~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4

              #observed variable intercepts
                      asr_anxdep_comp_0~tau_AX*1
                      asr_withdep_comp_0~tau_AW*1
                      asr_soma_comp_0~tau_AS*1
                      asr_thouprob_comp_0~tau_AP*1
                      asr_attprob_comp_0~tau_AH*1
                      asr_rulebreak_comp_0~tau_AA*1
                      asr_aggress_comp_0~tau_AR*1
                      asr_intru_comp_0~tau_AG*1

                      asr_anxdep_comp_2~tau_AX*1
                      asr_withdep_comp_2~tau_AW*1
                      asr_soma_comp_2~tau_AS*1
                      asr_thouprob_comp_2~tau_AP*1
                      asr_attprob_comp_2~tau_AH*1
                      asr_rulebreak_comp_2~tau_AA*1
                      asr_aggress_comp_2~tau_AR*1
                      asr_intru_comp_2~tau_AG*1

                      asr_anxdep_comp_4~tau_AX*1
                      asr_withdep_comp_4~tau_AW*1
                      asr_soma_comp_4~tau_AS*1
                      asr_thouprob_comp_4~tau_AP*1
                      asr_attprob_comp_4~tau_AH*1
                      asr_rulebreak_comp_4~tau_AA*1
                      asr_aggress_comp_4~tau_AR*1
                      asr_intru_comp_4~tau_AG*1

                      #latent basis model
                      a_i =~ 1*a_etaB+1*a_eta2+1*a_eta4
                      a_s =~ 0*a_etaB+1*a_eta2+2*a_eta4
                      a_i~~NA*a_i
                      a_s~~NA*a_s
                      a_i~~a_s
                      a_i~1
                      a_s~1
                      a_etaB~0*1
                      a_eta2~0*1
                      a_eta4~0*1

               # second-order g factor
               #factor loadings # S & S2
               g_etaB =~ 1*flanker_0+
                       lambda_R*pattern_0+
                       lambda_M*picture_0+
                       lambda_P*picvocab_0+
                       lambda_V*reading_0
               g_eta2 =~ 1*flanker_2+
                       lambda_R*pattern_2+
                       lambda_M*picture_2+
                       lambda_P*picvocab_2+
                       lambda_V*reading_2
               g_eta4 =~ 1*flanker_4+
                       lambda_R*pattern_4+
                       lambda_M*picture_4+
                       lambda_P*picvocab_4+
                       lambda_V*reading_4
               g_eta6 =~ 1*flanker_6+
                       lambda_R*pattern_6+
                       lambda_M*picture_6+
                       lambda_P*picvocab_6+
                       lambda_V*reading_6

              #latent variable variances
                       g_etaB~~NA*g_etaB
                       g_eta2~~NA*g_eta2
                       g_eta4~~NA*g_eta4
                       g_eta6~~NA*g_eta6

              #unique variances
                      flanker_0~~flanker_0
                      flanker_2~~flanker_2
                      flanker_4~~flanker_4
                      flanker_6~~flanker_6

                      pattern_0~~pattern_0
                      pattern_2~~pattern_2
                      pattern_4~~pattern_4
                      pattern_6~~pattern_6

                      picture_0~~picture_0
                      picture_2~~picture_2
                      picture_4~~picture_4
                      picture_6~~picture_6

                      picvocab_0~~picvocab_0
                      picvocab_2~~picvocab_2
                      picvocab_4~~picvocab_4
                      picvocab_6~~picvocab_6

                      reading_0~~reading_0
                      reading_2~~reading_2
                      reading_4~~reading_4
                      reading_6~~reading_6

              #unique covariances
                      # Task across times
                      flanker_0~~flanker_2 + flanker_4 + flanker_6
                      flanker_2~~flanker_4 + flanker_6
                      flanker_4~~flanker_6

                      pattern_0~~pattern_2 + pattern_4 + pattern_6
                      pattern_2~~pattern_4 + pattern_6
                      pattern_4~~pattern_6

                      picture_0~~picture_2 + picture_4 + picture_6
                      picture_2~~picture_4 + picture_6
                      picture_4~~picture_6

                      picvocab_0~~picvocab_2 + picvocab_4 + picvocab_6
                      picvocab_2~~picvocab_4 + picvocab_6
                      picvocab_4~~picvocab_6

                      reading_0~~reading_2 + reading_4 + reading_6
                      reading_2~~reading_4 + reading_6
                      reading_4~~reading_6

                      #Language
                      picvocab_0~~reading_0 + reading_2 + reading_4 + reading_6
                      picvocab_2~~reading_2 + reading_0 + reading_4 + reading_6
                      picvocab_4~~reading_4 + reading_0 + reading_2 + reading_6
                      picvocab_6~~reading_6 + reading_0 + reading_2 + reading_4

              #observed variable intercepts # S & S2
                      flanker_0~tau_S*1
                      flanker_2~tau_S*1
                      flanker_4~tau_S*1
                      flanker_6~tau_S*1
                      pattern_0~tau_R*1
                      pattern_2~tau_R*1
                      pattern_4~tau_R*1
                      pattern_6~tau_R*1
                      picture_0~tau_M*1
                      picture_2~tau_M*1
                      picture_4~tau_M*1
                      picture_6~tau_M*1
                      picvocab_0~tau_P*1
                      picvocab_2~tau_P*1
                      picvocab_4~tau_P*1
                      picvocab_6~tau_P*1
                      reading_0~tau_V*1
                      reading_2~tau_V*1
                      reading_4~tau_V*1
                      reading_6~tau_V*1

                      #latent basis model
                      g_i =~    1*g_etaB + 1*g_eta2 + 1*g_eta4 + 1*g_eta6
                      g_s =~    0*g_etaB + 1*g_eta2 + 2*g_eta4 + 3*g_eta6

                      g_i~~NA*g_i
                      g_s~~NA*g_s

                      g_i~~g_s

                      g_i~1
                      g_s~1

                      g_etaB~0*1
                      g_eta2~0*1
                      g_eta4~0*1
                      g_eta6~0*1

                      # Externalizing model
                      p_i =~ 1*Ext_comp_0 + 1*Ext_comp_1 + 1*Ext_comp_2 + 1*Ext_comp_3 + 1*Ext_comp_4 + 1*Ext_comp_5 + 1*Ext_comp_6
                      p_s =~ 0*Ext_comp_0 + .5*Ext_comp_1 + 1*Ext_comp_2 + 1.5*Ext_comp_3 + 2*Ext_comp_4 + 2.5*Ext_comp_5 + 3*Ext_comp_6
                      p_q =~ 0*Ext_comp_0 + .25*Ext_comp_1 + 1*Ext_comp_2 + 2.25*Ext_comp_3 + 4*Ext_comp_4 + 6.25*Ext_comp_5 + 9*Ext_comp_6

                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q

                      p_i~~p_s + p_q
                      p_s~~p_q

                      p_i~1
                      p_s~1
                      p_q~1

                      Ext_comp_0 ~~ NA*Ext_comp_0
                      Ext_comp_1 ~~ NA*Ext_comp_1
                      Ext_comp_2 ~~ NA*Ext_comp_2
                      Ext_comp_3 ~~ NA*Ext_comp_3
                      Ext_comp_4 ~~ NA*Ext_comp_4
                      Ext_comp_5 ~~ NA*Ext_comp_5
                      Ext_comp_6 ~~ NA*Ext_comp_6

                      Ext_comp_0 ~ 0*1
                      Ext_comp_1 ~ 0*1
                      Ext_comp_2 ~ 0*1
                      Ext_comp_3 ~ 0*1
                      Ext_comp_4 ~ 0*1
                      Ext_comp_5 ~ 0*1
                      Ext_comp_6 ~ 0*1

                      # regression
                      p_i ~ g_i + a_i
                      p_s ~ g_i + g_s + a_i + a_s
                      p_q ~ g_i + g_s + a_i + a_s"
lavaan(Ext.pga6.model,
  data = readRDS("pga6_all_data.rds"),
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = FALSE,
  std.lv = T
) %>%
  saveRDS("pgcm_Ext_pga6_model.rds")
result
readRDS("pgcm_Ext_pga6_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pgcm_Ext_pga6_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pgcm_Ext_pga6_model.rds"), "cor.lv"))$value
 [1] 4.82146687 3.81456746 2.43888409 0.93951339 0.61878366 0.56702729
 [7] 0.22953692 0.16062166 0.13268380 0.08277712 0.07497169 0.06081217
[13] 0.04167452 0.01667939
readRDS("pgcm_Ext_pga6_result.rds")
lavaan 0.6-19 ended normally after 199 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       292
  Number of equality constraints                    57

                                                  Used       Total
  Number of observations                         11866       11867
  Number of missing patterns                       709            

Model Test User Model:
                                                       
  Test statistic                              13996.005
  Degrees of freedom                               1142
  P-value (Chi-square)                            0.000

Model Test Baseline Model:

  Test statistic                            322041.968
  Degrees of freedom                              1275
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.960
  Tucker-Lewis Index (TLI)                       0.955
                                                      
  Robust Comparative Fit Index (CFI)             0.955
  Robust Tucker-Lewis Index (TLI)                0.950

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -524118.654
  Loglikelihood unrestricted model (H1)    -517120.651
                                                      
  Akaike (AIC)                             1048707.307
  Bayesian (BIC)                           1050441.944
  Sample-size adjusted Bayesian (SABIC)    1049695.141

Root Mean Square Error of Approximation:

  RMSEA                                          0.031
  90 Percent confidence interval - lower         0.030
  90 Percent confidence interval - upper         0.031
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.037
  90 Percent confidence interval - lower         0.036
  90 Percent confidence interval - upper         0.038
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.050

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.840    0.831
    asr___0 (l_AW)    0.894    0.007  126.182    0.000    0.751    0.733
    asr___0 (l_AS)    0.796    0.007  111.259    0.000    0.669    0.667
    asr___0 (l_AC)    0.933    0.007  124.632    0.000    0.783    0.752
    asr___0 (l_AH)    0.908    0.007  130.177    0.000    0.763    0.765
    asr___0 (l_AA)    0.787    0.008   98.167    0.000    0.662    0.634
    asr___0 (l_AR)    0.930    0.007  124.760    0.000    0.781    0.763
    asr___0 (l_AG)    0.490    0.008   59.697    0.000    0.412    0.399
  a_eta2 =~                                                             
    asr___2           1.000                               0.827    0.815
    asr___2 (l_AW)    0.894    0.007  126.182    0.000    0.740    0.729
    asr___2 (l_AS)    0.796    0.007  111.259    0.000    0.659    0.658
    asr___2 (l_AC)    0.933    0.007  124.632    0.000    0.772    0.769
    asr___2 (l_AH)    0.908    0.007  130.177    0.000    0.751    0.770
    asr___2 (l_AA)    0.787    0.008   98.167    0.000    0.652    0.645
    asr___2 (l_AR)    0.930    0.007  124.760    0.000    0.770    0.762
    asr___2 (l_AG)    0.490    0.008   59.697    0.000    0.406    0.409
  a_eta4 =~                                                             
    asr___4           1.000                               0.797    0.799
    asr___4 (l_AW)    0.894    0.007  126.182    0.000    0.712    0.723
    asr___4 (l_AS)    0.796    0.007  111.259    0.000    0.635    0.646
    asr___4 (l_AC)    0.933    0.007  124.632    0.000    0.743    0.768
    asr___4 (l_AH)    0.908    0.007  130.177    0.000    0.724    0.743
    asr___4 (l_AA)    0.787    0.008   98.167    0.000    0.627    0.645
    asr___4 (l_AR)    0.930    0.007  124.760    0.000    0.741    0.758
    asr___4 (l_AG)    0.490    0.008   59.697    0.000    0.391    0.399
  a_i =~                                                                
    a_etaB            1.000                               0.918    0.918
    a_eta2            1.000                               0.932    0.932
    a_eta4            1.000                               0.968    0.968
  a_s =~                                                                
    a_etaB            0.000                               0.000    0.000
    a_eta2            1.000                               0.294    0.294
    a_eta4            2.000                               0.611    0.611
  g_etaB =~                                                             
    flnkr_0           1.000                               0.404    0.439
    pttrn_0 (lm_R)    1.214    0.011  112.940    0.000    0.491    0.643
    pictr_0 (lm_M)    0.600    0.009   64.854    0.000    0.242    0.287
    pcvcb_0 (lm_P)    0.930    0.009  107.806    0.000    0.376    0.449
    redng_0 (lm_V)    0.981    0.009  111.496    0.000    0.396    0.464
  g_eta2 =~                                                             
    flnkr_2           1.000                               0.413    0.518
    pttrn_2 (lm_R)    1.214    0.011  112.940    0.000    0.501    0.650
    pictr_2 (lm_M)    0.600    0.009   64.854    0.000    0.248    0.278
    pcvcb_2 (lm_P)    0.930    0.009  107.806    0.000    0.384    0.439
    redng_2 (lm_V)    0.981    0.009  111.496    0.000    0.405    0.480
  g_eta4 =~                                                             
    flnkr_4           1.000                               0.444    0.559
    pttrn_4 (lm_R)    1.214    0.011  112.940    0.000    0.539    0.653
    pictr_4 (lm_M)    0.600    0.009   64.854    0.000    0.266    0.251
    pcvcb_4 (lm_P)    0.930    0.009  107.806    0.000    0.412    0.447
    redng_4 (lm_V)    0.981    0.009  111.496    0.000    0.435    0.472
  g_eta6 =~                                                             
    flnkr_6           1.000                               0.497    0.610
    pttrn_6 (lm_R)    1.214    0.011  112.940    0.000    0.604    0.704
    pictr_6 (lm_M)    0.600    0.009   64.854    0.000    0.298    0.281
    pcvcb_6 (lm_P)    0.930    0.009  107.806    0.000    0.462    0.495
    redng_6 (lm_V)    0.981    0.009  111.496    0.000    0.488    0.503
  g_i =~                                                                
    g_etaB            1.000                               0.958    0.958
    g_eta2            1.000                               0.938    0.938
    g_eta4            1.000                               0.873    0.873
    g_eta6            1.000                               0.779    0.779
  g_s =~                                                                
    g_etaB            0.000                               0.000    0.000
    g_eta2            1.000                               0.117    0.117
    g_eta4            2.000                               0.218    0.218
    g_eta6            3.000                               0.292    0.292
  p_i =~                                                                
    Ext_c_0           1.000                               0.938    0.900
    Ext_c_1           1.000                               0.938    0.914
    Ext_c_2           1.000                               0.938    0.924
    Ext_c_3           1.000                               0.938    0.929
    Ext_c_4           1.000                               0.938    0.945
    Ext_c_5           1.000                               0.938    0.939
    Ext_c_6           1.000                               0.938    0.983
  p_s =~                                                                
    Ext_c_0           0.000                               0.000    0.000
    Ext_c_1           0.500                               0.284    0.276
    Ext_c_2           1.000                               0.567    0.559
    Ext_c_3           1.500                               0.851    0.843
    Ext_c_4           2.000                               1.135    1.144
    Ext_c_5           2.500                               1.418    1.421
    Ext_c_6           3.000                               1.702    1.783
  p_q =~                                                                
    Ext_c_0           0.000                               0.000    0.000
    Ext_c_1           0.250                               0.041    0.040
    Ext_c_2           1.000                               0.165    0.163
    Ext_c_3           2.250                               0.371    0.368
    Ext_c_4           4.000                               0.660    0.665
    Ext_c_5           6.250                               1.031    1.033
    Ext_c_6           9.000                               1.485    1.556

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_i ~                                                                 
    g_i              -0.361    0.027  -13.324    0.000   -0.149   -0.149
    a_i               0.677    0.014   50.095    0.000    0.557    0.557
  p_s ~                                                                 
    g_i               0.176    0.059    3.000    0.003    0.120    0.120
    g_s              -2.560    0.992   -2.580    0.010   -0.218   -0.218
    a_i               0.001    0.015    0.056    0.955    0.001    0.001
    a_s               1.455    0.088   16.522    0.000    0.624    0.624
  p_q ~                                                                 
    g_i              -0.042    0.017   -2.458    0.014   -0.099   -0.099
    g_s               0.616    0.286    2.155    0.031    0.181    0.181
    a_i              -0.013    0.005   -2.762    0.006   -0.061   -0.061
    a_s              -0.355    0.026  -13.835    0.000   -0.523   -0.523

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.186    0.005   37.245    0.000    0.186    0.563
   .asr_nxdp_cmp_4           0.170    0.005   33.031    0.000    0.170    0.504
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.207    0.006   37.617    0.000    0.207    0.588
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.227    0.006   37.000    0.000    0.227    0.471
   .asr_wthdp_cm_4           0.206    0.006   33.055    0.000    0.206    0.436
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.225    0.006   35.408    0.000    0.225    0.478
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.282    0.007   41.271    0.000    0.282    0.500
   .asr_soma_cmp_4           0.245    0.007   35.382    0.000    0.245    0.438
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.289    0.007   39.563    0.000    0.289    0.511
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.193    0.005   35.360    0.000    0.193    0.437
   .asr_thprb_cm_4           0.160    0.005   29.282    0.000    0.160    0.376
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.168    0.005   31.763    0.000    0.168    0.422
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.258    0.005   48.714    0.000    0.258    0.646
   .asr_ttprb_cm_4           0.252    0.006   45.095    0.000    0.252    0.603
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.272    0.006   47.759    0.000    0.272    0.670
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.298    0.007   40.843    0.000    0.298    0.478
   .asr_rlbrk_cm_4           0.255    0.007   35.286    0.000    0.255    0.424
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.276    0.007   38.101    0.000    0.276    0.481
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.236    0.006   42.242    0.000    0.236    0.544
   .asr_ggrss_cm_4           0.212    0.006   38.203    0.000    0.212    0.502
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.240    0.006   41.586    0.000    0.240    0.574
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.495    0.010   51.751    0.000    0.495    0.576
   .asr_intr_cmp_4           0.464    0.010   47.812    0.000    0.464    0.545
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.473    0.010   49.497    0.000    0.473    0.582
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.021    0.005    4.218    0.000    0.021    0.054
   .asr_soma_cmp_0           0.032    0.005    6.189    0.000    0.032    0.076
   .asr_wthdp_cm_2           0.021    0.005    4.294    0.000    0.021    0.054
   .asr_soma_cmp_2           0.038    0.005    7.293    0.000    0.038    0.090
   .asr_wthdp_cm_4           0.019    0.005    3.808    0.000    0.019    0.051
   .asr_soma_cmp_4           0.036    0.005    6.555    0.000    0.036    0.085
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2           0.011    0.005    2.261    0.024    0.011    0.028
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.030    0.005    5.799    0.000    0.030    0.069
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.038    0.005    7.213    0.000    0.038    0.093
   .asr_soma_cmp_2           0.052    0.006    9.362    0.000    0.052    0.117
   .asr_wthdp_cm_4           0.025    0.005    4.805    0.000    0.025    0.063
   .asr_soma_cmp_4           0.033    0.006    5.861    0.000    0.033    0.075
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4           0.003    0.005    0.620    0.536    0.003    0.008
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.029    0.006    5.238    0.000    0.029    0.065
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.019    0.005    3.485    0.000    0.019    0.045
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.049    0.006    8.485    0.000    0.049    0.108
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.045    0.006    7.980    0.000    0.045    0.110
   .asr_soma_cmp_4           0.065    0.006   10.770    0.000    0.065    0.144
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.029    0.006   -4.992    0.000   -0.029   -0.055
   .asr_soma_cmp_2          -0.017    0.006   -2.830    0.005   -0.017   -0.032
   .asr_soma_cmp_4          -0.032    0.006   -5.209    0.000   -0.032   -0.062
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.011    0.006   -1.939    0.052   -0.011   -0.022
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.012    0.006   -2.010    0.044   -0.012   -0.023
   .asr_soma_cmp_4          -0.020    0.006   -3.191    0.001   -0.020   -0.038
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.014    0.006   -2.322    0.020   -0.014   -0.027
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.017    0.006   -2.757    0.006   -0.017   -0.033
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.018    0.006   -2.866    0.004   -0.018   -0.035
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.129    0.007   19.227    0.000    0.129    0.205
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.064    0.006   10.891    0.000    0.064    0.120
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.082    0.006   12.747    0.000    0.082    0.137
   .asr_rlbrk_cm_2           0.017    0.006    3.021    0.003    0.017    0.033
   .asr_intr_cmp_4           0.090    0.007   13.573    0.000    0.090    0.152
   .asr_rlbrk_cm_4           0.025    0.006    4.303    0.000    0.025    0.050
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.091    0.007   13.723    0.000    0.091    0.146
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.043    0.006    7.388    0.000    0.043    0.082
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.133    0.007   20.299    0.000    0.133    0.225
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.037    0.006    6.442    0.000    0.037    0.073
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.104    0.007   15.514    0.000    0.104    0.177
   .asr_rlbrk_cm_4           0.035    0.006    6.028    0.000    0.035    0.072
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.093    0.007   13.730    0.000    0.093    0.154
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.049    0.006    8.201    0.000    0.049    0.096
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.099    0.007   15.022    0.000    0.099    0.172
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.039    0.006    6.564    0.000    0.039    0.079
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.134    0.007   19.664    0.000    0.134    0.233
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.056    0.006    9.477    0.000    0.056    0.117
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.117    0.008   15.197    0.000    0.117    0.153
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.065    0.007    8.729    0.000    0.065    0.089
   .asr_rlbrk_cm_4           0.070    0.008    9.201    0.000    0.070    0.099
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.070    0.008    9.265    0.000    0.070    0.095
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.109    0.007   14.828    0.000    0.109    0.156
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.068    0.007    9.239    0.000    0.068    0.101
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.083    0.008   10.695    0.000    0.083    0.115
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.075    0.008    9.912    0.000    0.075    0.109
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.107    0.008   14.227    0.000    0.107    0.160
  a_i ~~                                                                       
    a_s                     -0.074    0.005  -15.905    0.000   -0.396   -0.396
 .flanker_0 ~~                                                                 
   .flanker_2                0.137    0.007   18.701    0.000    0.137    0.243
   .flanker_4                0.097    0.007   12.936    0.000    0.097    0.178
   .flanker_6                0.086    0.009    9.232    0.000    0.086    0.160
 .flanker_2 ~~                                                                 
   .flanker_4                0.143    0.007   19.723    0.000    0.143    0.318
   .flanker_6                0.101    0.008   12.483    0.000    0.101    0.229
 .flanker_4 ~~                                                                 
   .flanker_6                0.152    0.009   16.824    0.000    0.152    0.358
 .pattern_0 ~~                                                                 
   .pattern_2                0.077    0.005   14.114    0.000    0.077    0.226
   .pattern_4                0.043    0.006    7.208    0.000    0.043    0.117
   .pattern_6                0.035    0.007    4.945    0.000    0.035    0.099
 .pattern_2 ~~                                                                 
   .pattern_4                0.109    0.007   15.825    0.000    0.109    0.296
   .pattern_6                0.077    0.008   10.225    0.000    0.077    0.216
 .pattern_4 ~~                                                                 
   .pattern_6                0.130    0.009   14.543    0.000    0.130    0.342
 .picture_0 ~~                                                                 
   .picture_2                0.252    0.007   33.858    0.000    0.252    0.364
   .picture_4                0.257    0.009   28.084    0.000    0.257    0.310
   .picture_6                0.282    0.012   23.554    0.000    0.282    0.343
 .picture_2 ~~                                                                 
   .picture_4                0.285    0.010   28.065    0.000    0.285    0.325
   .picture_6                0.266    0.013   19.867    0.000    0.266    0.306
 .picture_4 ~~                                                                 
   .picture_6                0.390    0.016   24.733    0.000    0.390    0.374
 .picvocab_0 ~~                                                                
   .picvocab_2               0.397    0.007   53.210    0.000    0.397    0.676
   .picvocab_4               0.400    0.008   50.638    0.000    0.400    0.647
   .picvocab_6               0.379    0.009   43.178    0.000    0.379    0.625
 .picvocab_2 ~~                                                                
   .picvocab_4               0.471    0.009   54.016    0.000    0.471    0.726
   .picvocab_6               0.458    0.010   47.383    0.000    0.458    0.720
 .picvocab_4 ~~                                                                
   .picvocab_6               0.507    0.010   48.365    0.000    0.507    0.756
 .reading_0 ~~                                                                 
   .reading_2                0.403    0.007   54.980    0.000    0.403    0.722
   .reading_4                0.407    0.008   50.789    0.000    0.407    0.661
   .reading_6                0.416    0.010   43.528    0.000    0.416    0.656
 .reading_2 ~~                                                                 
   .reading_4                0.416    0.008   51.285    0.000    0.416    0.692
   .reading_6                0.432    0.010   45.250    0.000    0.432    0.698
 .reading_4 ~~                                                                 
   .reading_6                0.456    0.011   42.912    0.000    0.456    0.669
 .picvocab_0 ~~                                                                
   .reading_0                0.232    0.006   35.869    0.000    0.232    0.410
   .reading_2                0.245    0.007   37.607    0.000    0.245    0.444
   .reading_4                0.264    0.007   36.159    0.000    0.264    0.433
   .reading_6                0.282    0.009   32.062    0.000    0.282    0.450
 .picvocab_2 ~~                                                                
   .reading_2                0.288    0.007   40.384    0.000    0.288    0.496
 .reading_0 ~~                                                                 
   .picvocab_2               0.267    0.007   38.260    0.000    0.267    0.449
 .picvocab_2 ~~                                                                
   .reading_4                0.312    0.008   39.466    0.000    0.312    0.490
   .reading_6                0.338    0.010   35.393    0.000    0.338    0.514
 .picvocab_4 ~~                                                                
   .reading_4                0.336    0.009   38.862    0.000    0.336    0.500
 .reading_0 ~~                                                                 
   .picvocab_4               0.274    0.007   36.677    0.000    0.274    0.439
 .reading_2 ~~                                                                 
   .picvocab_4               0.299    0.008   39.294    0.000    0.299    0.490
 .picvocab_4 ~~                                                                
   .reading_6                0.366    0.010   35.600    0.000    0.366    0.529
 .picvocab_6 ~~                                                                
   .reading_6                0.360    0.011   32.210    0.000    0.360    0.529
 .reading_0 ~~                                                                 
   .picvocab_6               0.255    0.009   29.785    0.000    0.255    0.416
 .reading_2 ~~                                                                 
   .picvocab_6               0.283    0.009   32.944    0.000    0.283    0.472
 .reading_4 ~~                                                                 
   .picvocab_6               0.322    0.010   33.302    0.000    0.322    0.487
  g_i ~~                                                                       
    g_s                      0.005    0.001    4.227    0.000    0.269    0.269
 .p_i ~~                                                                       
   .p_s                     -0.098    0.011   -9.200    0.000   -0.299   -0.299
   .p_q                      0.007    0.003    2.069    0.039    0.062    0.062
 .p_s ~~                                                                       
   .p_q                     -0.050    0.005   -9.788    0.000   -0.846   -0.846

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .asr___0 (t_AX)   -0.005    0.004   -1.133    0.257   -0.005   -0.005
   .asr___0 (t_AW)    0.003    0.005    0.596    0.551    0.003    0.003
   .asr___0 (t_AS)   -0.001    0.005   -0.249    0.804   -0.001   -0.001
   .asr___0 (t_AP)    0.001    0.005    0.219    0.826    0.001    0.001
   .asr___0 (t_AH)    0.000    0.005    0.092    0.927    0.000    0.000
   .asr___0 (t_AA)    0.007    0.005    1.276    0.202    0.007    0.007
   .asr___0 (t_AR)    0.002    0.005    0.383    0.702    0.002    0.002
   .asr___0 (t_AG)   -0.000    0.007   -0.027    0.979   -0.000   -0.000
   .asr___2 (t_AX)   -0.005    0.004   -1.133    0.257   -0.005   -0.005
   .asr___2 (t_AW)    0.003    0.005    0.596    0.551    0.003    0.003
   .asr___2 (t_AS)   -0.001    0.005   -0.249    0.804   -0.001   -0.001
   .asr___2 (t_AP)    0.001    0.005    0.219    0.826    0.001    0.001
   .asr___2 (t_AH)    0.000    0.005    0.092    0.927    0.000    0.000
   .asr___2 (t_AA)    0.007    0.005    1.276    0.202    0.007    0.007
   .asr___2 (t_AR)    0.002    0.005    0.383    0.702    0.002    0.002
   .asr___2 (t_AG)   -0.000    0.007   -0.027    0.979   -0.000   -0.000
   .asr___4 (t_AX)   -0.005    0.004   -1.133    0.257   -0.005   -0.005
   .asr___4 (t_AW)    0.003    0.005    0.596    0.551    0.003    0.003
   .asr___4 (t_AS)   -0.001    0.005   -0.249    0.804   -0.001   -0.001
   .asr___4 (t_AP)    0.001    0.005    0.219    0.826    0.001    0.001
   .asr___4 (t_AH)    0.000    0.005    0.092    0.927    0.000    0.000
   .asr___4 (t_AA)    0.007    0.005    1.276    0.202    0.007    0.007
   .asr___4 (t_AR)    0.002    0.005    0.383    0.702    0.002    0.002
   .asr___4 (t_AG)   -0.000    0.007   -0.027    0.979   -0.000   -0.000
    a_i               0.025    0.008    3.236    0.001    0.032    0.032
    a_s              -0.023    0.004   -6.494    0.000   -0.097   -0.097
   .a_etaB            0.000                               0.000    0.000
   .a_eta2            0.000                               0.000    0.000
   .a_eta4            0.000                               0.000    0.000
   .flnkr_0 (ta_S)    0.089    0.007   13.188    0.000    0.089    0.097
   .flnkr_2 (ta_S)    0.089    0.007   13.188    0.000    0.089    0.112
   .flnkr_4 (ta_S)    0.089    0.007   13.188    0.000    0.089    0.112
   .flnkr_6 (ta_S)    0.089    0.007   13.188    0.000    0.089    0.109
   .pttrn_0 (ta_R)    0.102    0.007   14.069    0.000    0.102    0.134
   .pttrn_2 (ta_R)    0.102    0.007   14.069    0.000    0.102    0.132
   .pttrn_4 (ta_R)    0.102    0.007   14.069    0.000    0.102    0.124
   .pttrn_6 (ta_R)    0.102    0.007   14.069    0.000    0.102    0.119
   .pictr_0 (ta_M)    0.046    0.007    6.648    0.000    0.046    0.055
   .pictr_2 (ta_M)    0.046    0.007    6.648    0.000    0.046    0.052
   .pictr_4 (ta_M)    0.046    0.007    6.648    0.000    0.046    0.044
   .pictr_6 (ta_M)    0.046    0.007    6.648    0.000    0.046    0.044
   .pcvcb_0 (ta_P)    0.038    0.007    5.666    0.000    0.038    0.046
   .pcvcb_2 (ta_P)    0.038    0.007    5.666    0.000    0.038    0.044
   .pcvcb_4 (ta_P)    0.038    0.007    5.666    0.000    0.038    0.041
   .pcvcb_6 (ta_P)    0.038    0.007    5.666    0.000    0.038    0.041
   .redng_0 (ta_V)    0.048    0.007    7.073    0.000    0.048    0.056
   .redng_2 (ta_V)    0.048    0.007    7.073    0.000    0.048    0.057
   .redng_4 (ta_V)    0.048    0.007    7.073    0.000    0.048    0.052
   .redng_6 (ta_V)    0.048    0.007    7.073    0.000    0.048    0.050
    g_i              -0.642    0.008  -80.089    0.000   -1.659   -1.659
    g_s               0.472    0.004  128.330    0.000    9.757    9.757
   .g_etaB            0.000                               0.000    0.000
   .g_eta2            0.000                               0.000    0.000
   .g_eta4            0.000                               0.000    0.000
   .g_eta6            0.000                               0.000    0.000
   .p_i              -0.159    0.019   -8.556    0.000   -0.170   -0.170
   .p_s               1.301    0.500    2.602    0.009    2.293    2.293
   .p_q              -0.327    0.144   -2.273    0.023   -1.981   -1.981
   .Ext_c_0           0.000                               0.000    0.000
   .Ext_c_1           0.000                               0.000    0.000
   .Ext_c_2           0.000                               0.000    0.000
   .Ext_c_3           0.000                               0.000    0.000
   .Ext_c_4           0.000                               0.000    0.000
   .Ext_c_5           0.000                               0.000    0.000
   .Ext_c_6           0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .a_etaB            0.111    0.007   16.166    0.000    0.157    0.157
   .a_eta2            0.179    0.005   37.516    0.000    0.262    0.262
   .a_eta4            0.100    0.008   13.214    0.000    0.158    0.158
   .asr_nxdp_cmp_0    0.316    0.006   53.179    0.000    0.316    0.309
   .asr_wthdp_cm_0    0.486    0.008   62.793    0.000    0.486    0.463
   .asr_soma_cmp_0    0.558    0.008   66.517    0.000    0.558    0.555
   .asr_thprb_cm_0    0.472    0.007   65.032    0.000    0.472    0.435
   .asr_ttprb_cm_0    0.412    0.006   64.331    0.000    0.412    0.414
   .asr_rlbrk_cm_0    0.652    0.009   69.322    0.000    0.652    0.598
   .asr_ggrss_cm_0    0.439    0.007   63.463    0.000    0.439    0.418
   .asr_intr_cmp_0    0.898    0.012   74.817    0.000    0.898    0.841
   .asr_nxdp_cmp_2    0.346    0.006   53.493    0.000    0.346    0.336
   .asr_wthdp_cm_2    0.481    0.008   60.943    0.000    0.481    0.468
   .asr_soma_cmp_2    0.567    0.009   64.681    0.000    0.567    0.566
   .asr_thprb_cm_2    0.412    0.007   61.578    0.000    0.412    0.409
   .asr_ttprb_cm_2    0.387    0.006   61.199    0.000    0.387    0.407
   .asr_rlbrk_cm_2    0.596    0.009   66.273    0.000    0.596    0.584
   .asr_ggrss_cm_2    0.427    0.007   61.388    0.000    0.427    0.419
   .asr_intr_cmp_2    0.821    0.011   71.971    0.000    0.821    0.833
   .asr_nxdp_cmp_4    0.360    0.007   50.868    0.000    0.360    0.362
   .asr_wthdp_cm_4    0.462    0.008   57.103    0.000    0.462    0.477
   .asr_soma_cmp_4    0.561    0.009   60.451    0.000    0.561    0.582
   .asr_thprb_cm_4    0.384    0.007   56.998    0.000    0.384    0.410
   .asr_ttprb_cm_4    0.425    0.007   58.492    0.000    0.425    0.448
   .asr_rlbrk_cm_4    0.554    0.009   61.496    0.000    0.554    0.584
   .asr_ggrss_cm_4    0.408    0.007   57.278    0.000    0.408    0.426
   .asr_intr_cmp_4    0.805    0.012   67.678    0.000    0.805    0.841
    a_i               0.595    0.013   47.516    0.000    1.000    1.000
    a_s               0.059    0.003   17.122    0.000    1.000    1.000
   .g_etaB            0.013    0.002    5.907    0.000    0.082    0.082
   .g_eta2            0.008    0.002    5.056    0.000    0.047    0.047
   .g_eta4            0.017    0.002    8.242    0.000    0.088    0.088
   .g_eta6            0.046    0.004   11.567    0.000    0.186    0.186
   .flanker_0         0.683    0.010   68.024    0.000    0.683    0.807
   .flanker_2         0.465    0.009   54.388    0.000    0.465    0.732
   .flanker_4         0.434    0.009   49.457    0.000    0.434    0.688
   .flanker_6         0.417    0.011   38.662    0.000    0.417    0.628
   .pattern_0         0.341    0.006   52.897    0.000    0.341    0.586
   .pattern_2         0.344    0.008   45.549    0.000    0.344    0.578
   .pattern_4         0.390    0.009   43.178    0.000    0.390    0.573
   .pattern_6         0.370    0.011   33.191    0.000    0.370    0.504
   .picture_0         0.652    0.009   73.349    0.000    0.652    0.917
   .picture_2         0.732    0.011   69.139    0.000    0.732    0.923
   .picture_4         1.054    0.016   66.180    0.000    1.054    0.937
   .picture_6         1.034    0.022   47.831    0.000    1.034    0.921
   .picvocab_0        0.559    0.008   68.970    0.000    0.559    0.798
   .picvocab_2        0.615    0.009   66.209    0.000    0.615    0.807
   .picvocab_4        0.683    0.011   63.060    0.000    0.683    0.801
   .picvocab_6        0.658    0.013   49.238    0.000    0.658    0.755
   .reading_0         0.573    0.008   68.317    0.000    0.573    0.785
   .reading_2         0.546    0.008   64.910    0.000    0.546    0.769
   .reading_4         0.662    0.011   62.045    0.000    0.662    0.778
   .reading_6         0.702    0.015   47.886    0.000    0.702    0.747
    g_i               0.150    0.004   35.869    0.000    1.000    1.000
    g_s               0.002    0.001    3.682    0.000    1.000    1.000
   .p_i               0.587    0.012   48.868    0.000    0.668    0.668
   .p_s               0.181    0.017   10.421    0.000    0.563    0.563
   .p_q               0.019    0.002   12.011    0.000    0.715    0.715
   .Ext_comp_0        0.207    0.007   28.632    0.000    0.207    0.191
   .Ext_comp_1        0.277    0.005   57.042    0.000    0.277    0.263
   .Ext_comp_2        0.277    0.005   57.071    0.000    0.277    0.269
   .Ext_comp_3        0.273    0.005   53.981    0.000    0.273    0.268
   .Ext_comp_4        0.249    0.005   52.080    0.000    0.249    0.253
   .Ext_comp_5        0.260    0.006   47.011    0.000    0.260    0.261
   .Ext_comp_6        0.101    0.008   12.232    0.000    0.101    0.110

R-Square:
                   Estimate
    a_etaB            0.843
    a_eta2            0.738
    a_eta4            0.842
    asr_nxdp_cmp_0    0.691
    asr_wthdp_cm_0    0.537
    asr_soma_cmp_0    0.445
    asr_thprb_cm_0    0.565
    asr_ttprb_cm_0    0.586
    asr_rlbrk_cm_0    0.402
    asr_ggrss_cm_0    0.582
    asr_intr_cmp_0    0.159
    asr_nxdp_cmp_2    0.664
    asr_wthdp_cm_2    0.532
    asr_soma_cmp_2    0.434
    asr_thprb_cm_2    0.591
    asr_ttprb_cm_2    0.593
    asr_rlbrk_cm_2    0.416
    asr_ggrss_cm_2    0.581
    asr_intr_cmp_2    0.167
    asr_nxdp_cmp_4    0.638
    asr_wthdp_cm_4    0.523
    asr_soma_cmp_4    0.418
    asr_thprb_cm_4    0.590
    asr_ttprb_cm_4    0.552
    asr_rlbrk_cm_4    0.416
    asr_ggrss_cm_4    0.574
    asr_intr_cmp_4    0.159
    g_etaB            0.918
    g_eta2            0.953
    g_eta4            0.912
    g_eta6            0.814
    flanker_0         0.193
    flanker_2         0.268
    flanker_4         0.312
    flanker_6         0.372
    pattern_0         0.414
    pattern_2         0.422
    pattern_4         0.427
    pattern_6         0.496
    picture_0         0.083
    picture_2         0.077
    picture_4         0.063
    picture_6         0.079
    picvocab_0        0.202
    picvocab_2        0.193
    picvocab_4        0.199
    picvocab_6        0.245
    reading_0         0.215
    reading_2         0.231
    reading_4         0.222
    reading_6         0.253
    p_i               0.332
    p_s               0.437
    p_q               0.285
    Ext_comp_0        0.809
    Ext_comp_1        0.737
    Ext_comp_2        0.731
    Ext_comp_3        0.732
    Ext_comp_4        0.747
    Ext_comp_5        0.739
    Ext_comp_6        0.890
Ext ~ pp + g model with sex

Children’s Externalizing symptoms (Ext) was regressed on parental psychopathology (pp) and children’s cognitive functioning (g), with sex as a covariate.

model fit
# Add sex as covariate
Ext.pga6.sex.model <- Ext.pga6.model %>%
  str_replace_all(
    c(
      "_i ~ 1" = "_i ~ 1 + dummy_sex",
      "_s ~ 1" = "_s ~ 1 + dummy_sex",
      "_q ~ 1" = "_q ~ 1 + dummy_sex",
      "_i~1" = "_i~1 + dummy_sex",
      "_s~1" = "_s~1 + dummy_sex",
      "_q~1" = "_q~1 + dummy_sex"
    )
  )

writeLines(Ext.pga6.sex.model)
lavaan(Ext.pga6.sex.model,
  data = pga6_wide.allscaled.sex,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = T,
  std.lv = T
) %>%
  saveRDS("pgcm_Ext_pga6_sex_model.rds")
result
readRDS("pgcm_Ext_pga6_sex_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pgcm_Ext_pga6_sex_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pgcm_Ext_pga6_sex_model.rds"), "cor.lv"))$value
 [1] 4.82369428 3.81480287 2.44291040 0.93817379 0.61452292 0.56471502
 [7] 0.22957333 0.16085155 0.13321057 0.08309506 0.07500923 0.06094003
[13] 0.04180549 0.01669547
readRDS("pgcm_Ext_pga6_sex_result.rds")
lavaan 0.6-19 ended normally after 199 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       299
  Number of equality constraints                    57

  Number of observations                         11867
  Number of missing patterns                       710

Model Test User Model:
                                                       
  Test statistic                              14404.052
  Degrees of freedom                               1186
  P-value (Chi-square)                            0.000

Model Test Baseline Model:

  Test statistic                            322688.448
  Degrees of freedom                              1326
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.959
  Tucker-Lewis Index (TLI)                       0.954
                                                      
  Robust Comparative Fit Index (CFI)             0.954
  Robust Tucker-Lewis Index (TLI)                0.949

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -523999.437
  Loglikelihood unrestricted model (H1)    -516797.411
                                                      
  Akaike (AIC)                             1048482.874
  Bayesian (BIC)                           1050269.201
  Sample-size adjusted Bayesian (SABIC)    1049500.153

Root Mean Square Error of Approximation:

  RMSEA                                          0.031
  90 Percent confidence interval - lower         0.030
  90 Percent confidence interval - upper         0.031
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.037
  90 Percent confidence interval - lower         0.036
  90 Percent confidence interval - upper         0.037
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.049

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.840    0.831
    asr___0 (l_AW)    0.894    0.007  126.192    0.000    0.751    0.733
    asr___0 (l_AS)    0.796    0.007  111.260    0.000    0.669    0.667
    asr___0 (l_AC)    0.933    0.007  124.638    0.000    0.784    0.752
    asr___0 (l_AH)    0.908    0.007  130.159    0.000    0.763    0.765
    asr___0 (l_AA)    0.788    0.008   98.178    0.000    0.662    0.634
    asr___0 (l_AR)    0.930    0.007  124.756    0.000    0.781    0.763
    asr___0 (l_AG)    0.491    0.008   59.699    0.000    0.412    0.399
  a_eta2 =~                                                             
    asr___2           1.000                               0.827    0.815
    asr___2 (l_AW)    0.894    0.007  126.192    0.000    0.740    0.729
    asr___2 (l_AS)    0.796    0.007  111.260    0.000    0.659    0.658
    asr___2 (l_AC)    0.933    0.007  124.638    0.000    0.772    0.769
    asr___2 (l_AH)    0.908    0.007  130.159    0.000    0.751    0.770
    asr___2 (l_AA)    0.788    0.008   98.178    0.000    0.652    0.645
    asr___2 (l_AR)    0.930    0.007  124.756    0.000    0.769    0.762
    asr___2 (l_AG)    0.491    0.008   59.699    0.000    0.406    0.409
  a_eta4 =~                                                             
    asr___4           1.000                               0.797    0.799
    asr___4 (l_AW)    0.894    0.007  126.192    0.000    0.712    0.724
    asr___4 (l_AS)    0.796    0.007  111.260    0.000    0.635    0.646
    asr___4 (l_AC)    0.933    0.007  124.638    0.000    0.743    0.768
    asr___4 (l_AH)    0.908    0.007  130.159    0.000    0.723    0.743
    asr___4 (l_AA)    0.788    0.008   98.178    0.000    0.628    0.645
    asr___4 (l_AR)    0.930    0.007  124.756    0.000    0.741    0.758
    asr___4 (l_AG)    0.491    0.008   59.699    0.000    0.391    0.399
  a_i =~                                                                
    a_etaB            1.000                               0.918    0.918
    a_eta2            1.000                               0.932    0.932
    a_eta4            1.000                               0.967    0.967
  a_s =~                                                                
    a_etaB            0.000                               0.000    0.000
    a_eta2            1.000                               0.294    0.294
    a_eta4            2.000                               0.609    0.609
  g_etaB =~                                                             
    flnkr_0           1.000                               0.404    0.439
    pttrn_0 (lm_R)    1.216    0.011  112.681    0.000    0.491    0.644
    pictr_0 (lm_M)    0.600    0.009   64.837    0.000    0.242    0.288
    pcvcb_0 (lm_P)    0.930    0.009  107.771    0.000    0.375    0.448
    redng_0 (lm_V)    0.981    0.009  111.442    0.000    0.396    0.464
  g_eta2 =~                                                             
    flnkr_2           1.000                               0.412    0.517
    pttrn_2 (lm_R)    1.216    0.011  112.681    0.000    0.501    0.650
    pictr_2 (lm_M)    0.600    0.009   64.837    0.000    0.248    0.278
    pcvcb_2 (lm_P)    0.930    0.009  107.771    0.000    0.383    0.439
    redng_2 (lm_V)    0.981    0.009  111.442    0.000    0.405    0.480
  g_eta4 =~                                                             
    flnkr_4           1.000                               0.443    0.558
    pttrn_4 (lm_R)    1.216    0.011  112.681    0.000    0.539    0.654
    pictr_4 (lm_M)    0.600    0.009   64.837    0.000    0.266    0.251
    pcvcb_4 (lm_P)    0.930    0.009  107.771    0.000    0.412    0.446
    redng_4 (lm_V)    0.981    0.009  111.442    0.000    0.435    0.471
  g_eta6 =~                                                             
    flnkr_6           1.000                               0.497    0.610
    pttrn_6 (lm_R)    1.216    0.011  112.681    0.000    0.604    0.704
    pictr_6 (lm_M)    0.600    0.009   64.837    0.000    0.298    0.281
    pcvcb_6 (lm_P)    0.930    0.009  107.771    0.000    0.462    0.495
    redng_6 (lm_V)    0.981    0.009  111.442    0.000    0.487    0.503
  g_i =~                                                                
    g_etaB            1.000                               0.958    0.958
    g_eta2            1.000                               0.938    0.938
    g_eta4            1.000                               0.873    0.873
    g_eta6            1.000                               0.779    0.779
  g_s =~                                                                
    g_etaB            0.000                               0.000    0.000
    g_eta2            1.000                               0.117    0.117
    g_eta4            2.000                               0.217    0.217
    g_eta6            3.000                               0.291    0.291
  p_i =~                                                                
    Ext_c_0           1.000                               0.938    0.900
    Ext_c_1           1.000                               0.938    0.914
    Ext_c_2           1.000                               0.938    0.924
    Ext_c_3           1.000                               0.938    0.929
    Ext_c_4           1.000                               0.938    0.946
    Ext_c_5           1.000                               0.938    0.940
    Ext_c_6           1.000                               0.938    0.982
  p_s =~                                                                
    Ext_c_0           0.000                               0.000    0.000
    Ext_c_1           0.500                               0.284    0.276
    Ext_c_2           1.000                               0.567    0.559
    Ext_c_3           1.500                               0.851    0.843
    Ext_c_4           2.000                               1.134    1.143
    Ext_c_5           2.500                               1.418    1.420
    Ext_c_6           3.000                               1.701    1.782
  p_q =~                                                                
    Ext_c_0           0.000                               0.000    0.000
    Ext_c_1           0.250                               0.041    0.040
    Ext_c_2           1.000                               0.165    0.162
    Ext_c_3           2.250                               0.371    0.367
    Ext_c_4           4.000                               0.659    0.665
    Ext_c_5           6.250                               1.030    1.032
    Ext_c_6           9.000                               1.484    1.554

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_i ~                                                                 
    dummy_sex         0.031    0.016    1.933    0.053    0.040    0.020
  a_s ~                                                                 
    dummy_sex        -0.014    0.007   -1.925    0.054   -0.057   -0.029
  g_i ~                                                                 
    dummy_sex        -0.040    0.009   -4.349    0.000   -0.104   -0.052
  g_s ~                                                                 
    dummy_sex         0.004    0.003    1.218    0.223    0.087    0.044
  p_i ~                                                                 
    dummy_sex         0.215    0.017   12.729    0.000    0.229    0.115
  p_s ~                                                                 
    dummy_sex        -0.009    0.021   -0.440    0.660   -0.016   -0.008
  p_q ~                                                                 
    dummy_sex        -0.013    0.006   -1.996    0.046   -0.078   -0.039
  p_i ~                                                                 
    g_i              -0.348    0.027  -12.915    0.000   -0.143   -0.143
    a_i               0.675    0.013   50.287    0.000    0.555    0.555
  p_s ~                                                                 
    g_i               0.180    0.061    2.943    0.003    0.123    0.123
    g_s              -2.650    1.032   -2.569    0.010   -0.225   -0.225
    a_i               0.001    0.015    0.088    0.930    0.002    0.002
    a_s               1.460    0.088   16.522    0.000    0.625    0.625
  p_q ~                                                                 
    g_i              -0.044    0.018   -2.498    0.013   -0.104   -0.104
    g_s               0.646    0.297    2.177    0.029    0.189    0.189
    a_i              -0.013    0.005   -2.770    0.006   -0.061   -0.061
    a_s              -0.356    0.026  -13.851    0.000   -0.525   -0.525

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.186    0.005   37.264    0.000    0.186    0.563
   .asr_nxdp_cmp_4           0.170    0.005   33.048    0.000    0.170    0.504
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.208    0.006   37.636    0.000    0.208    0.588
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.227    0.006   36.998    0.000    0.227    0.470
   .asr_wthdp_cm_4           0.206    0.006   33.037    0.000    0.206    0.436
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.225    0.006   35.398    0.000    0.225    0.477
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.282    0.007   41.273    0.000    0.282    0.500
   .asr_soma_cmp_4           0.245    0.007   35.387    0.000    0.245    0.438
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.289    0.007   39.565    0.000    0.289    0.511
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.193    0.005   35.349    0.000    0.193    0.437
   .asr_thprb_cm_4           0.160    0.005   29.270    0.000    0.160    0.376
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.168    0.005   31.746    0.000    0.168    0.422
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.258    0.005   48.734    0.000    0.258    0.647
   .asr_ttprb_cm_4           0.252    0.006   45.118    0.000    0.252    0.603
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.272    0.006   47.782    0.000    0.272    0.670
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.298    0.007   40.838    0.000    0.298    0.478
   .asr_rlbrk_cm_4           0.255    0.007   35.275    0.000    0.255    0.424
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.276    0.007   38.091    0.000    0.276    0.481
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.236    0.006   42.246    0.000    0.236    0.545
   .asr_ggrss_cm_4           0.212    0.006   38.206    0.000    0.212    0.502
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.240    0.006   41.587    0.000    0.240    0.574
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.495    0.010   51.751    0.000    0.495    0.576
   .asr_intr_cmp_4           0.464    0.010   47.813    0.000    0.464    0.545
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.473    0.010   49.498    0.000    0.473    0.582
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.021    0.005    4.211    0.000    0.021    0.054
   .asr_soma_cmp_0           0.032    0.005    6.195    0.000    0.032    0.077
   .asr_wthdp_cm_2           0.021    0.005    4.299    0.000    0.021    0.054
   .asr_soma_cmp_2           0.038    0.005    7.296    0.000    0.038    0.090
   .asr_wthdp_cm_4           0.019    0.005    3.791    0.000    0.019    0.050
   .asr_soma_cmp_4           0.036    0.005    6.566    0.000    0.036    0.085
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2           0.011    0.005    2.263    0.024    0.011    0.028
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.031    0.005    5.810    0.000    0.031    0.070
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.038    0.005    7.225    0.000    0.038    0.094
   .asr_soma_cmp_2           0.052    0.006    9.372    0.000    0.052    0.118
   .asr_wthdp_cm_4           0.025    0.005    4.797    0.000    0.025    0.063
   .asr_soma_cmp_4           0.033    0.006    5.878    0.000    0.033    0.075
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4           0.003    0.005    0.614    0.539    0.003    0.008
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.029    0.006    5.249    0.000    0.029    0.065
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.019    0.005    3.492    0.000    0.019    0.045
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.049    0.006    8.492    0.000    0.049    0.108
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.045    0.006    7.965    0.000    0.045    0.109
   .asr_soma_cmp_4           0.065    0.006   10.785    0.000    0.065    0.144
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.029    0.006   -5.006    0.000   -0.029   -0.055
   .asr_soma_cmp_2          -0.017    0.006   -2.842    0.004   -0.017   -0.032
   .asr_soma_cmp_4          -0.032    0.006   -5.218    0.000   -0.032   -0.062
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.011    0.006   -1.942    0.052   -0.011   -0.022
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.012    0.006   -2.012    0.044   -0.012   -0.023
   .asr_soma_cmp_4          -0.020    0.006   -3.190    0.001   -0.020   -0.038
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.014    0.006   -2.339    0.019   -0.014   -0.027
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.017    0.006   -2.776    0.006   -0.017   -0.033
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.018    0.006   -2.882    0.004   -0.018   -0.035
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.129    0.007   19.229    0.000    0.129    0.205
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.064    0.006   10.880    0.000    0.064    0.120
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.082    0.006   12.746    0.000    0.082    0.137
   .asr_rlbrk_cm_2           0.017    0.006    3.014    0.003    0.017    0.033
   .asr_intr_cmp_4           0.090    0.007   13.577    0.000    0.090    0.152
   .asr_rlbrk_cm_4           0.025    0.006    4.296    0.000    0.025    0.050
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.091    0.007   13.720    0.000    0.091    0.146
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.043    0.006    7.374    0.000    0.043    0.082
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.133    0.007   20.294    0.000    0.133    0.225
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.037    0.006    6.428    0.000    0.037    0.073
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.104    0.007   15.515    0.000    0.104    0.177
   .asr_rlbrk_cm_4           0.035    0.006    6.017    0.000    0.035    0.072
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.093    0.007   13.729    0.000    0.093    0.154
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.049    0.006    8.184    0.000    0.049    0.095
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.099    0.007   15.019    0.000    0.099    0.172
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.039    0.006    6.547    0.000    0.039    0.078
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.134    0.007   19.666    0.000    0.134    0.233
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.056    0.006    9.465    0.000    0.056    0.117
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.117    0.008   15.193    0.000    0.117    0.153
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.065    0.007    8.724    0.000    0.065    0.089
   .asr_rlbrk_cm_4           0.070    0.008    9.197    0.000    0.070    0.099
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.070    0.008    9.259    0.000    0.070    0.095
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.109    0.007   14.821    0.000    0.109    0.155
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.068    0.007    9.233    0.000    0.068    0.101
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.083    0.008   10.691    0.000    0.083    0.115
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.075    0.008    9.908    0.000    0.075    0.109
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.107    0.008   14.225    0.000    0.107    0.160
 .a_i ~~                                                                       
   .a_s                     -0.074    0.005  -15.859    0.000   -0.395   -0.395
 .flanker_0 ~~                                                                 
   .flanker_2                0.138    0.007   18.776    0.000    0.138    0.244
   .flanker_4                0.098    0.007   13.031    0.000    0.098    0.179
   .flanker_6                0.086    0.009    9.308    0.000    0.086    0.162
 .flanker_2 ~~                                                                 
   .flanker_4                0.144    0.007   19.785    0.000    0.144    0.320
   .flanker_6                0.102    0.008   12.547    0.000    0.102    0.231
 .flanker_4 ~~                                                                 
   .flanker_6                0.152    0.009   16.848    0.000    0.152    0.358
 .pattern_0 ~~                                                                 
   .pattern_2                0.076    0.005   13.919    0.000    0.076    0.223
   .pattern_4                0.042    0.006    7.025    0.000    0.042    0.115
   .pattern_6                0.034    0.007    4.825    0.000    0.034    0.097
 .pattern_2 ~~                                                                 
   .pattern_4                0.108    0.007   15.649    0.000    0.108    0.294
   .pattern_6                0.076    0.008   10.105    0.000    0.076    0.214
 .pattern_4 ~~                                                                 
   .pattern_6                0.129    0.009   14.447    0.000    0.129    0.341
 .picture_0 ~~                                                                 
   .picture_2                0.251    0.007   33.851    0.000    0.251    0.364
   .picture_4                0.257    0.009   28.078    0.000    0.257    0.310
   .picture_6                0.281    0.012   23.528    0.000    0.281    0.343
 .picture_2 ~~                                                                 
   .picture_4                0.285    0.010   28.061    0.000    0.285    0.325
   .picture_6                0.266    0.013   19.853    0.000    0.266    0.306
 .picture_4 ~~                                                                 
   .picture_6                0.390    0.016   24.731    0.000    0.390    0.374
 .picvocab_0 ~~                                                                
   .picvocab_2               0.397    0.007   53.215    0.000    0.397    0.677
   .picvocab_4               0.400    0.008   50.636    0.000    0.400    0.647
   .picvocab_6               0.380    0.009   43.191    0.000    0.380    0.625
 .picvocab_2 ~~                                                                
   .picvocab_4               0.471    0.009   53.999    0.000    0.471    0.727
   .picvocab_6               0.458    0.010   47.377    0.000    0.458    0.720
 .picvocab_4 ~~                                                                
   .picvocab_6               0.507    0.010   48.353    0.000    0.507    0.756
 .reading_0 ~~                                                                 
   .reading_2                0.404    0.007   54.986    0.000    0.404    0.722
   .reading_4                0.407    0.008   50.789    0.000    0.407    0.661
   .reading_6                0.416    0.010   43.542    0.000    0.416    0.656
 .reading_2 ~~                                                                 
   .reading_4                0.416    0.008   51.280    0.000    0.416    0.692
   .reading_6                0.432    0.010   45.255    0.000    0.432    0.698
 .reading_4 ~~                                                                 
   .reading_6                0.456    0.011   42.917    0.000    0.456    0.669
 .picvocab_0 ~~                                                                
   .reading_0                0.233    0.006   35.910    0.000    0.233    0.411
   .reading_2                0.246    0.007   37.636    0.000    0.246    0.445
   .reading_4                0.264    0.007   36.169    0.000    0.264    0.434
   .reading_6                0.282    0.009   32.076    0.000    0.282    0.451
 .picvocab_2 ~~                                                                
   .reading_2                0.288    0.007   40.403    0.000    0.288    0.497
 .reading_0 ~~                                                                 
   .picvocab_2               0.267    0.007   38.298    0.000    0.267    0.450
 .picvocab_2 ~~                                                                
   .reading_4                0.313    0.008   39.466    0.000    0.313    0.490
   .reading_6                0.338    0.010   35.396    0.000    0.338    0.514
 .picvocab_4 ~~                                                                
   .reading_4                0.337    0.009   38.862    0.000    0.337    0.500
 .reading_0 ~~                                                                 
   .picvocab_4               0.275    0.007   36.706    0.000    0.275    0.439
 .reading_2 ~~                                                                 
   .picvocab_4               0.299    0.008   39.307    0.000    0.299    0.490
 .picvocab_4 ~~                                                                
   .reading_6                0.366    0.010   35.602    0.000    0.366    0.529
 .picvocab_6 ~~                                                                
   .reading_6                0.360    0.011   32.211    0.000    0.360    0.529
 .reading_0 ~~                                                                 
   .picvocab_6               0.256    0.009   29.826    0.000    0.256    0.417
 .reading_2 ~~                                                                 
   .picvocab_6               0.284    0.009   32.967    0.000    0.284    0.473
 .reading_4 ~~                                                                 
   .picvocab_6               0.322    0.010   33.313    0.000    0.322    0.488
 .g_i ~~                                                                       
   .g_s                      0.005    0.001    4.285    0.000    0.274    0.274
 .p_i ~~                                                                       
   .p_s                     -0.096    0.011   -9.083    0.000   -0.298   -0.298
   .p_q                      0.007    0.003    2.198    0.028    0.067    0.067
 .p_s ~~                                                                       
   .p_q                     -0.050    0.005   -9.617    0.000   -0.846   -0.846

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .asr___0 (t_AX)    0.003    0.004    0.641    0.521    0.003    0.003
   .asr___0 (t_AW)    0.010    0.005    1.959    0.050    0.010    0.010
   .asr___0 (t_AS)    0.005    0.005    0.869    0.385    0.005    0.005
   .asr___0 (t_AP)    0.008    0.005    1.742    0.082    0.008    0.008
   .asr___0 (t_AH)    0.007    0.005    1.482    0.138    0.007    0.007
   .asr___0 (t_AA)    0.013    0.005    2.370    0.018    0.013    0.012
   .asr___0 (t_AR)    0.009    0.005    1.892    0.058    0.009    0.009
   .asr___0 (t_AG)    0.004    0.007    0.508    0.611    0.004    0.003
   .asr___2 (t_AX)    0.003    0.004    0.641    0.521    0.003    0.003
   .asr___2 (t_AW)    0.010    0.005    1.959    0.050    0.010    0.010
   .asr___2 (t_AS)    0.005    0.005    0.869    0.385    0.005    0.005
   .asr___2 (t_AP)    0.008    0.005    1.742    0.082    0.008    0.008
   .asr___2 (t_AH)    0.007    0.005    1.482    0.138    0.007    0.008
   .asr___2 (t_AA)    0.013    0.005    2.370    0.018    0.013    0.013
   .asr___2 (t_AR)    0.009    0.005    1.892    0.058    0.009    0.009
   .asr___2 (t_AG)    0.004    0.007    0.508    0.611    0.004    0.004
   .asr___4 (t_AX)    0.003    0.004    0.641    0.521    0.003    0.003
   .asr___4 (t_AW)    0.010    0.005    1.959    0.050    0.010    0.010
   .asr___4 (t_AS)    0.005    0.005    0.869    0.385    0.005    0.005
   .asr___4 (t_AP)    0.008    0.005    1.742    0.082    0.008    0.008
   .asr___4 (t_AH)    0.007    0.005    1.482    0.138    0.007    0.008
   .asr___4 (t_AA)    0.013    0.005    2.370    0.018    0.013    0.013
   .asr___4 (t_AR)    0.009    0.005    1.892    0.058    0.009    0.009
   .asr___4 (t_AG)    0.004    0.007    0.508    0.611    0.004    0.004
   .a_i               0.001    0.011    0.085    0.932    0.001    0.001
   .a_s              -0.016    0.005   -3.088    0.002   -0.067   -0.067
   .a_etaB            0.000                               0.000    0.000
   .a_eta2            0.000                               0.000    0.000
   .a_eta4            0.000                               0.000    0.000
   .flnkr_0 (ta_S)    0.093    0.007   13.407    0.000    0.093    0.101
   .flnkr_2 (ta_S)    0.093    0.007   13.407    0.000    0.093    0.117
   .flnkr_4 (ta_S)    0.093    0.007   13.407    0.000    0.093    0.117
   .flnkr_6 (ta_S)    0.093    0.007   13.407    0.000    0.093    0.115
   .pttrn_0 (ta_R)    0.108    0.008   14.224    0.000    0.108    0.141
   .pttrn_2 (ta_R)    0.108    0.008   14.224    0.000    0.108    0.140
   .pttrn_4 (ta_R)    0.108    0.008   14.224    0.000    0.108    0.131
   .pttrn_6 (ta_R)    0.108    0.008   14.224    0.000    0.108    0.126
   .pictr_0 (ta_M)    0.049    0.007    6.949    0.000    0.049    0.058
   .pictr_2 (ta_M)    0.049    0.007    6.949    0.000    0.049    0.055
   .pictr_4 (ta_M)    0.049    0.007    6.949    0.000    0.049    0.046
   .pictr_6 (ta_M)    0.049    0.007    6.949    0.000    0.049    0.046
   .pcvcb_0 (ta_P)    0.042    0.007    6.097    0.000    0.042    0.051
   .pcvcb_2 (ta_P)    0.042    0.007    6.097    0.000    0.042    0.048
   .pcvcb_4 (ta_P)    0.042    0.007    6.097    0.000    0.042    0.046
   .pcvcb_6 (ta_P)    0.042    0.007    6.097    0.000    0.042    0.045
   .redng_0 (ta_V)    0.052    0.007    7.476    0.000    0.052    0.061
   .redng_2 (ta_V)    0.052    0.007    7.476    0.000    0.052    0.062
   .redng_4 (ta_V)    0.052    0.007    7.476    0.000    0.052    0.057
   .redng_6 (ta_V)    0.052    0.007    7.476    0.000    0.052    0.054
   .g_i              -0.625    0.009  -66.294    0.000   -1.617   -1.617
   .g_s               0.470    0.004  115.439    0.000    9.757    9.757
   .g_etaB            0.000                               0.000    0.000
   .g_eta2            0.000                               0.000    0.000
   .g_eta4            0.000                               0.000    0.000
   .g_eta6            0.000                               0.000    0.000
   .p_i              -0.260    0.020  -12.943    0.000   -0.277   -0.277
   .p_s               1.350    0.517    2.613    0.009    2.381    2.381
   .p_q              -0.336    0.149   -2.263    0.024   -2.040   -2.040
   .Ext_c_0           0.000                               0.000    0.000
   .Ext_c_1           0.000                               0.000    0.000
   .Ext_c_2           0.000                               0.000    0.000
   .Ext_c_3           0.000                               0.000    0.000
   .Ext_c_4           0.000                               0.000    0.000
   .Ext_c_5           0.000                               0.000    0.000
   .Ext_c_6           0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .a_etaB            0.112    0.007   16.270    0.000    0.158    0.158
   .a_eta2            0.179    0.005   37.523    0.000    0.261    0.261
   .a_eta4            0.101    0.008   13.265    0.000    0.158    0.158
   .asr_nxdp_cmp_0    0.316    0.006   53.193    0.000    0.316    0.309
   .asr_wthdp_cm_0    0.486    0.008   62.793    0.000    0.486    0.463
   .asr_soma_cmp_0    0.558    0.008   66.521    0.000    0.558    0.555
   .asr_thprb_cm_0    0.472    0.007   65.033    0.000    0.472    0.435
   .asr_ttprb_cm_0    0.412    0.006   64.345    0.000    0.412    0.414
   .asr_rlbrk_cm_0    0.652    0.009   69.319    0.000    0.652    0.598
   .asr_ggrss_cm_0    0.439    0.007   63.469    0.000    0.439    0.418
   .asr_intr_cmp_0    0.898    0.012   74.818    0.000    0.898    0.841
   .asr_nxdp_cmp_2    0.346    0.006   53.509    0.000    0.346    0.336
   .asr_wthdp_cm_2    0.481    0.008   60.949    0.000    0.481    0.468
   .asr_soma_cmp_2    0.567    0.009   64.684    0.000    0.567    0.567
   .asr_thprb_cm_2    0.412    0.007   61.572    0.000    0.412    0.409
   .asr_ttprb_cm_2    0.387    0.006   61.214    0.000    0.387    0.407
   .asr_rlbrk_cm_2    0.596    0.009   66.273    0.000    0.596    0.584
   .asr_ggrss_cm_2    0.427    0.007   61.389    0.000    0.427    0.419
   .asr_intr_cmp_2    0.821    0.011   71.972    0.000    0.821    0.833
   .asr_nxdp_cmp_4    0.360    0.007   50.880    0.000    0.360    0.362
   .asr_wthdp_cm_4    0.462    0.008   57.093    0.000    0.462    0.476
   .asr_soma_cmp_4    0.561    0.009   60.455    0.000    0.561    0.582
   .asr_thprb_cm_4    0.384    0.007   56.993    0.000    0.384    0.410
   .asr_ttprb_cm_4    0.425    0.007   58.509    0.000    0.425    0.448
   .asr_rlbrk_cm_4    0.554    0.009   61.492    0.000    0.554    0.584
   .asr_ggrss_cm_4    0.407    0.007   57.281    0.000    0.407    0.426
   .asr_intr_cmp_4    0.805    0.012   67.679    0.000    0.805    0.841
   .a_i               0.594    0.013   47.512    0.000    1.000    1.000
   .a_s               0.059    0.003   17.091    0.000    0.999    0.999
   .g_etaB            0.013    0.002    5.944    0.000    0.082    0.082
   .g_eta2            0.008    0.002    5.043    0.000    0.046    0.046
   .g_eta4            0.017    0.002    8.244    0.000    0.088    0.088
   .g_eta6            0.046    0.004   11.572    0.000    0.186    0.186
   .flanker_0         0.684    0.010   68.024    0.000    0.684    0.808
   .flanker_2         0.466    0.009   54.394    0.000    0.466    0.733
   .flanker_4         0.434    0.009   49.419    0.000    0.434    0.689
   .flanker_6         0.417    0.011   38.668    0.000    0.417    0.628
   .pattern_0         0.340    0.006   52.705    0.000    0.340    0.585
   .pattern_2         0.343    0.008   45.392    0.000    0.343    0.577
   .pattern_4         0.389    0.009   43.013    0.000    0.389    0.573
   .pattern_6         0.370    0.011   33.118    0.000    0.370    0.504
   .picture_0         0.652    0.009   73.347    0.000    0.652    0.917
   .picture_2         0.732    0.011   69.139    0.000    0.732    0.923
   .picture_4         1.054    0.016   66.180    0.000    1.054    0.937
   .picture_6         1.034    0.022   47.824    0.000    1.034    0.921
   .picvocab_0        0.560    0.008   68.946    0.000    0.560    0.799
   .picvocab_2        0.616    0.009   66.192    0.000    0.616    0.807
   .picvocab_4        0.683    0.011   63.034    0.000    0.683    0.801
   .picvocab_6        0.659    0.013   49.228    0.000    0.659    0.755
   .reading_0         0.573    0.008   68.309    0.000    0.573    0.785
   .reading_2         0.547    0.008   64.902    0.000    0.547    0.770
   .reading_4         0.662    0.011   62.033    0.000    0.662    0.778
   .reading_6         0.702    0.015   47.885    0.000    0.702    0.747
   .g_i               0.149    0.004   35.766    0.000    0.997    0.997
   .g_s               0.002    0.001    3.638    0.000    0.998    0.998
   .p_i               0.575    0.012   48.515    0.000    0.654    0.654
   .p_s               0.180    0.018   10.224    0.000    0.558    0.558
   .p_q               0.019    0.002   11.815    0.000    0.711    0.711
   .Ext_comp_0        0.207    0.007   28.710    0.000    0.207    0.191
   .Ext_comp_1        0.277    0.005   57.132    0.000    0.277    0.263
   .Ext_comp_2        0.277    0.005   57.105    0.000    0.277    0.269
   .Ext_comp_3        0.273    0.005   53.989    0.000    0.273    0.268
   .Ext_comp_4        0.249    0.005   52.081    0.000    0.249    0.253
   .Ext_comp_5        0.260    0.006   47.014    0.000    0.260    0.261
   .Ext_comp_6        0.101    0.008   12.277    0.000    0.101    0.111

R-Square:
                   Estimate
    a_etaB            0.842
    a_eta2            0.739
    a_eta4            0.842
    asr_nxdp_cmp_0    0.691
    asr_wthdp_cm_0    0.537
    asr_soma_cmp_0    0.445
    asr_thprb_cm_0    0.565
    asr_ttprb_cm_0    0.586
    asr_rlbrk_cm_0    0.402
    asr_ggrss_cm_0    0.582
    asr_intr_cmp_0    0.159
    asr_nxdp_cmp_2    0.664
    asr_wthdp_cm_2    0.532
    asr_soma_cmp_2    0.433
    asr_thprb_cm_2    0.591
    asr_ttprb_cm_2    0.593
    asr_rlbrk_cm_2    0.416
    asr_ggrss_cm_2    0.581
    asr_intr_cmp_2    0.167
    asr_nxdp_cmp_4    0.638
    asr_wthdp_cm_4    0.524
    asr_soma_cmp_4    0.418
    asr_thprb_cm_4    0.590
    asr_ttprb_cm_4    0.552
    asr_rlbrk_cm_4    0.416
    asr_ggrss_cm_4    0.574
    asr_intr_cmp_4    0.159
    a_i               0.000
    a_s               0.001
    g_etaB            0.918
    g_eta2            0.954
    g_eta4            0.912
    g_eta6            0.814
    flanker_0         0.192
    flanker_2         0.267
    flanker_4         0.311
    flanker_6         0.372
    pattern_0         0.415
    pattern_2         0.423
    pattern_4         0.427
    pattern_6         0.496
    picture_0         0.083
    picture_2         0.077
    picture_4         0.063
    picture_6         0.079
    picvocab_0        0.201
    picvocab_2        0.193
    picvocab_4        0.199
    picvocab_6        0.245
    reading_0         0.215
    reading_2         0.230
    reading_4         0.222
    reading_6         0.253
    g_i               0.003
    g_s               0.002
    p_i               0.346
    p_s               0.442
    p_q               0.289
    Ext_comp_0        0.809
    Ext_comp_1        0.737
    Ext_comp_2        0.731
    Ext_comp_3        0.732
    Ext_comp_4        0.747
    Ext_comp_5        0.739
    Ext_comp_6        0.889

Internalizing Symptoms

Int ~ pp + g model

Children’s Internalizing symptoms (Int) was regressed on parental psychopathology (pp) and children’s cognitive functioning (g).

model fit
Int.pga6.model <- "# second-order pp factor
               #factor loadings (with constraints)
               a_etaB =~ 1*asr_anxdep_comp_0+
                       lambda_AW*asr_withdep_comp_0+
                       lambda_AS*asr_soma_comp_0+
                       lambda_AC*asr_thouprob_comp_0+
                       lambda_AH*asr_attprob_comp_0+
                       lambda_AA*asr_rulebreak_comp_0+
                       lambda_AR*asr_aggress_comp_0+
                       lambda_AG*asr_intru_comp_0
               a_eta2 =~ 1*asr_anxdep_comp_2+
                       lambda_AW*asr_withdep_comp_2+
                       lambda_AS*asr_soma_comp_2+
                       lambda_AC*asr_thouprob_comp_2+
                       lambda_AH*asr_attprob_comp_2+
                       lambda_AA*asr_rulebreak_comp_2+
                       lambda_AR*asr_aggress_comp_2+
                       lambda_AG*asr_intru_comp_2
               a_eta4 =~ 1*asr_anxdep_comp_4+
                       lambda_AW*asr_withdep_comp_4+
                       lambda_AS*asr_soma_comp_4+
                       lambda_AC*asr_thouprob_comp_4+
                       lambda_AH*asr_attprob_comp_4+
                       lambda_AA*asr_rulebreak_comp_4+
                       lambda_AR*asr_aggress_comp_4+
                       lambda_AG*asr_intru_comp_4

              #latent variable variances
                      a_etaB~~NA*a_etaB
                      a_eta2~~NA*a_eta2
                      a_eta4~~NA*a_eta4

              #unique variances # No need to constrict these
                      asr_anxdep_comp_0~~asr_anxdep_comp_0
                      asr_withdep_comp_0~~asr_withdep_comp_0
                      asr_soma_comp_0~~asr_soma_comp_0
                      asr_thouprob_comp_0~~asr_thouprob_comp_0
                      asr_attprob_comp_0~~asr_attprob_comp_0
                      asr_rulebreak_comp_0~~asr_rulebreak_comp_0
                      asr_aggress_comp_0~~asr_aggress_comp_0
                      asr_intru_comp_0~~asr_intru_comp_0

                      asr_anxdep_comp_2~~asr_anxdep_comp_2
                      asr_withdep_comp_2~~asr_withdep_comp_2
                      asr_soma_comp_2~~asr_soma_comp_2
                      asr_thouprob_comp_2~~asr_thouprob_comp_2
                      asr_attprob_comp_2~~asr_attprob_comp_2
                      asr_rulebreak_comp_2~~asr_rulebreak_comp_2
                      asr_aggress_comp_2~~asr_aggress_comp_2
                      asr_intru_comp_2~~asr_intru_comp_2

                      asr_anxdep_comp_4~~asr_anxdep_comp_4
                      asr_withdep_comp_4~~asr_withdep_comp_4
                      asr_soma_comp_4~~asr_soma_comp_4
                      asr_thouprob_comp_4~~asr_thouprob_comp_4
                      asr_attprob_comp_4~~asr_attprob_comp_4
                      asr_rulebreak_comp_4~~asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_aggress_comp_4
                      asr_intru_comp_4~~asr_intru_comp_4

              #unique covariances
                      # Scores arcoss times
                      asr_anxdep_comp_0~~ asr_anxdep_comp_2 + asr_anxdep_comp_4
                      asr_anxdep_comp_2~~ asr_anxdep_comp_4

                      asr_withdep_comp_0 ~~ asr_withdep_comp_2 + asr_withdep_comp_4
                      asr_withdep_comp_2 ~~ asr_withdep_comp_4

                      asr_soma_comp_0~~ asr_soma_comp_2 + asr_soma_comp_4
                      asr_soma_comp_2~~ asr_soma_comp_4

                      asr_thouprob_comp_0~~ asr_thouprob_comp_2 + asr_thouprob_comp_4
                      asr_thouprob_comp_2~~ asr_thouprob_comp_4

                      asr_attprob_comp_0~~ asr_attprob_comp_2 + asr_attprob_comp_4
                      asr_attprob_comp_2~~ asr_attprob_comp_4

                      asr_rulebreak_comp_0~~ asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_rulebreak_comp_2~~ asr_rulebreak_comp_4

                      asr_aggress_comp_0~~ asr_aggress_comp_2 + asr_aggress_comp_4
                      asr_aggress_comp_2~~ asr_aggress_comp_4

                      asr_intru_comp_0~~ asr_intru_comp_2 + asr_intru_comp_4
                      asr_intru_comp_2~~ asr_intru_comp_4

                      # Internalizeing subscale covariances
                      asr_anxdep_comp_0~~asr_withdep_comp_0 + asr_soma_comp_0 + asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_2~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_4~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4

                      asr_withdep_comp_0~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_2~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_4~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4

                      # Externalizeing subscale covariances
                      asr_aggress_comp_0~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_2~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4

                      asr_intru_comp_0~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_2~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_4~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4

              #observed variable intercepts
                      asr_anxdep_comp_0~tau_AX*1
                      asr_withdep_comp_0~tau_AW*1
                      asr_soma_comp_0~tau_AS*1
                      asr_thouprob_comp_0~tau_AP*1
                      asr_attprob_comp_0~tau_AH*1
                      asr_rulebreak_comp_0~tau_AA*1
                      asr_aggress_comp_0~tau_AR*1
                      asr_intru_comp_0~tau_AG*1

                      asr_anxdep_comp_2~tau_AX*1
                      asr_withdep_comp_2~tau_AW*1
                      asr_soma_comp_2~tau_AS*1
                      asr_thouprob_comp_2~tau_AP*1
                      asr_attprob_comp_2~tau_AH*1
                      asr_rulebreak_comp_2~tau_AA*1
                      asr_aggress_comp_2~tau_AR*1
                      asr_intru_comp_2~tau_AG*1

                      asr_anxdep_comp_4~tau_AX*1
                      asr_withdep_comp_4~tau_AW*1
                      asr_soma_comp_4~tau_AS*1
                      asr_thouprob_comp_4~tau_AP*1
                      asr_attprob_comp_4~tau_AH*1
                      asr_rulebreak_comp_4~tau_AA*1
                      asr_aggress_comp_4~tau_AR*1
                      asr_intru_comp_4~tau_AG*1

                      #latent basis model
                      a_i =~ 1*a_etaB+1*a_eta2+1*a_eta4
                      a_s =~ 0*a_etaB+1*a_eta2+2*a_eta4
                      a_i~~NA*a_i
                      a_s~~NA*a_s
                      a_i~~a_s
                      a_i~1
                      a_s~1
                      a_etaB~0*1
                      a_eta2~0*1
                      a_eta4~0*1

               # second-order g factor
               #factor loadings # S & S2
               g_etaB =~ 1*flanker_0+
                       lambda_R*pattern_0+
                       lambda_M*picture_0+
                       lambda_P*picvocab_0+
                       lambda_V*reading_0
               g_eta2 =~ 1*flanker_2+
                       lambda_R*pattern_2+
                       lambda_M*picture_2+
                       lambda_P*picvocab_2+
                       lambda_V*reading_2
               g_eta4 =~ 1*flanker_4+
                       lambda_R*pattern_4+
                       lambda_M*picture_4+
                       lambda_P*picvocab_4+
                       lambda_V*reading_4
               g_eta6 =~ 1*flanker_6+
                       lambda_R*pattern_6+
                       lambda_M*picture_6+
                       lambda_P*picvocab_6+
                       lambda_V*reading_6

              #latent variable variances
                       g_etaB~~NA*g_etaB
                       g_eta2~~NA*g_eta2
                       g_eta4~~NA*g_eta4
                       g_eta6~~NA*g_eta6

              #unique variances
                      flanker_0~~flanker_0
                      flanker_2~~flanker_2
                      flanker_4~~flanker_4
                      flanker_6~~flanker_6

                      pattern_0~~pattern_0
                      pattern_2~~pattern_2
                      pattern_4~~pattern_4
                      pattern_6~~pattern_6

                      picture_0~~picture_0
                      picture_2~~picture_2
                      picture_4~~picture_4
                      picture_6~~picture_6

                      picvocab_0~~picvocab_0
                      picvocab_2~~picvocab_2
                      picvocab_4~~picvocab_4
                      picvocab_6~~picvocab_6

                      reading_0~~reading_0
                      reading_2~~reading_2
                      reading_4~~reading_4
                      reading_6~~reading_6

              #unique covariances
                      # Task across times
                      flanker_0~~flanker_2 + flanker_4 + flanker_6
                      flanker_2~~flanker_4 + flanker_6
                      flanker_4~~flanker_6

                      pattern_0~~pattern_2 + pattern_4 + pattern_6
                      pattern_2~~pattern_4 + pattern_6
                      pattern_4~~pattern_6

                      picture_0~~picture_2 + picture_4 + picture_6
                      picture_2~~picture_4 + picture_6
                      picture_4~~picture_6

                      picvocab_0~~picvocab_2 + picvocab_4 + picvocab_6
                      picvocab_2~~picvocab_4 + picvocab_6
                      picvocab_4~~picvocab_6

                      reading_0~~reading_2 + reading_4 + reading_6
                      reading_2~~reading_4 + reading_6
                      reading_4~~reading_6

                      #Language
                      picvocab_0~~reading_0 + reading_2 + reading_4 + reading_6
                      picvocab_2~~reading_2 + reading_0 + reading_4 + reading_6
                      picvocab_4~~reading_4 + reading_0 + reading_2 + reading_6
                      picvocab_6~~reading_6 + reading_0 + reading_2 + reading_4

              #observed variable intercepts # S & S2
                      flanker_0~tau_S*1
                      flanker_2~tau_S*1
                      flanker_4~tau_S*1
                      flanker_6~tau_S*1
                      pattern_0~tau_R*1
                      pattern_2~tau_R*1
                      pattern_4~tau_R*1
                      pattern_6~tau_R*1
                      picture_0~tau_M*1
                      picture_2~tau_M*1
                      picture_4~tau_M*1
                      picture_6~tau_M*1
                      picvocab_0~tau_P*1
                      picvocab_2~tau_P*1
                      picvocab_4~tau_P*1
                      picvocab_6~tau_P*1
                      reading_0~tau_V*1
                      reading_2~tau_V*1
                      reading_4~tau_V*1
                      reading_6~tau_V*1

                      #latent basis model
                      g_i =~    1*g_etaB + 1*g_eta2 + 1*g_eta4 + 1*g_eta6
                      g_s =~    0*g_etaB + 1*g_eta2 + 2*g_eta4 + 3*g_eta6

                      g_i~~NA*g_i
                      g_s~~NA*g_s

                      g_i~~g_s

                      g_i~1
                      g_s~1

                      g_etaB~0*1
                      g_eta2~0*1
                      g_eta4~0*1
                      g_eta6~0*1

                      # Internalizing model
                      p_i =~ 1*Int_comp_0 + 1*Int_comp_1 + 1*Int_comp_2 + 1*Int_comp_3 + 1*Int_comp_4 + 1*Int_comp_5 + 1*Int_comp_6
                      p_s =~ 0*Int_comp_0 + .5*Int_comp_1 + 1*Int_comp_2 + 1.5*Int_comp_3 + 2*Int_comp_4 + 2.5*Int_comp_5 + 3*Int_comp_6
                      p_q =~ 0*Int_comp_0 + .25*Int_comp_1 + 1*Int_comp_2 + 2.25*Int_comp_3 + 4*Int_comp_4 + 6.25*Int_comp_5 + 9*Int_comp_6
                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q
                      p_i~~p_s + p_q
                      p_s~~p_q
                      p_i~1
                      p_s~1
                      p_q~1
                      Int_comp_0 ~~ NA*Int_comp_0
                      Int_comp_1 ~~ NA*Int_comp_1
                      Int_comp_2 ~~ NA*Int_comp_2
                      Int_comp_3 ~~ NA*Int_comp_3
                      Int_comp_4 ~~ NA*Int_comp_4
                      Int_comp_5 ~~ NA*Int_comp_5
                      Int_comp_6 ~~ NA*Int_comp_6
                      Int_comp_0 ~ 0*1
                      Int_comp_1 ~ 0*1
                      Int_comp_2 ~ 0*1
                      Int_comp_3 ~ 0*1
                      Int_comp_4 ~ 0*1
                      Int_comp_5 ~ 0*1
                      Int_comp_6 ~ 0*1

                      # regression
                      p_i ~ g_i + a_i
                      p_s ~ g_i + g_s + a_i + a_s
                      p_q ~ g_i + g_s + a_i + a_s"
lavaan(Int.pga6.model,
  data = readRDS("pga6_all_data.rds"),
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = FALSE,
  std.lv = T
) %>%
  saveRDS("pgcm_Int_pga6_model.rds")
result
readRDS("pgcm_Int_pga6_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pgcm_Int_pga6_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pgcm_Int_pga6_model.rds"), "cor.lv"))$value
 [1] 4.75753136 3.87711426 2.42842968 0.95273967 0.67701135 0.50477867
 [7] 0.22765339 0.15797176 0.12871307 0.09200984 0.07980981 0.05965170
[13] 0.04001518 0.01657026
readRDS("pgcm_Int_pga6_result.rds")
lavaan 0.6-19 ended normally after 201 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       292
  Number of equality constraints                    57

                                                  Used       Total
  Number of observations                         11866       11867
  Number of missing patterns                       705            

Model Test User Model:
                                                       
  Test statistic                              14365.183
  Degrees of freedom                               1142
  P-value (Chi-square)                            0.000

Model Test Baseline Model:

  Test statistic                            316779.323
  Degrees of freedom                              1275
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.958
  Tucker-Lewis Index (TLI)                       0.953
                                                      
  Robust Comparative Fit Index (CFI)             0.953
  Robust Tucker-Lewis Index (TLI)                0.948

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -526727.637
  Loglikelihood unrestricted model (H1)    -519545.045
                                                      
  Akaike (AIC)                             1053925.274
  Bayesian (BIC)                           1055659.910
  Sample-size adjusted Bayesian (SABIC)    1054913.107

Root Mean Square Error of Approximation:

  RMSEA                                          0.031
  90 Percent confidence interval - lower         0.031
  90 Percent confidence interval - upper         0.032
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.038
  90 Percent confidence interval - lower         0.037
  90 Percent confidence interval - upper         0.038
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.050

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.851    0.843
    asr___0 (l_AW)    0.888    0.007  127.151    0.000    0.755    0.737
    asr___0 (l_AS)    0.799    0.007  112.969    0.000    0.680    0.680
    asr___0 (l_AC)    0.914    0.007  125.318    0.000    0.778    0.746
    asr___0 (l_AH)    0.897    0.007  131.589    0.000    0.763    0.766
    asr___0 (l_AA)    0.763    0.008   97.371    0.000    0.649    0.621
    asr___0 (l_AR)    0.905    0.007  125.094    0.000    0.770    0.751
    asr___0 (l_AG)    0.476    0.008   59.057    0.000    0.405    0.392
  a_eta2 =~                                                             
    asr___2           1.000                               0.839    0.828
    asr___2 (l_AW)    0.888    0.007  127.151    0.000    0.745    0.734
    asr___2 (l_AS)    0.799    0.007  112.969    0.000    0.671    0.671
    asr___2 (l_AC)    0.914    0.007  125.318    0.000    0.767    0.765
    asr___2 (l_AH)    0.897    0.007  131.589    0.000    0.753    0.772
    asr___2 (l_AA)    0.763    0.008   97.371    0.000    0.640    0.634
    asr___2 (l_AR)    0.905    0.007  125.094    0.000    0.760    0.751
    asr___2 (l_AG)    0.476    0.008   59.057    0.000    0.399    0.402
  a_eta4 =~                                                             
    asr___4           1.000                               0.809    0.814
    asr___4 (l_AW)    0.888    0.007  127.151    0.000    0.718    0.730
    asr___4 (l_AS)    0.799    0.007  112.969    0.000    0.647    0.660
    asr___4 (l_AC)    0.914    0.007  125.318    0.000    0.740    0.763
    asr___4 (l_AH)    0.897    0.007  131.589    0.000    0.726    0.746
    asr___4 (l_AA)    0.763    0.008   97.371    0.000    0.617    0.633
    asr___4 (l_AR)    0.905    0.007  125.094    0.000    0.732    0.746
    asr___4 (l_AG)    0.476    0.008   59.057    0.000    0.385    0.393
  a_i =~                                                                
    a_etaB            1.000                               0.923    0.923
    a_eta2            1.000                               0.936    0.936
    a_eta4            1.000                               0.970    0.970
  a_s =~                                                                
    a_etaB            0.000                               0.000    0.000
    a_eta2            1.000                               0.299    0.299
    a_eta4            2.000                               0.621    0.621
  g_etaB =~                                                             
    flnkr_0           1.000                               0.403    0.438
    pttrn_0 (lm_R)    1.218    0.011  112.699    0.000    0.491    0.646
    pictr_0 (lm_M)    0.598    0.009   64.688    0.000    0.241    0.286
    pcvcb_0 (lm_P)    0.929    0.009  107.695    0.000    0.375    0.448
    redng_0 (lm_V)    0.981    0.009  111.392    0.000    0.396    0.463
  g_eta2 =~                                                             
    flnkr_2           1.000                               0.412    0.517
    pttrn_2 (lm_R)    1.218    0.011  112.699    0.000    0.502    0.653
    pictr_2 (lm_M)    0.598    0.009   64.688    0.000    0.246    0.276
    pcvcb_2 (lm_P)    0.929    0.009  107.695    0.000    0.383    0.438
    redng_2 (lm_V)    0.981    0.009  111.392    0.000    0.404    0.479
  g_eta4 =~                                                             
    flnkr_4           1.000                               0.442    0.557
    pttrn_4 (lm_R)    1.218    0.011  112.699    0.000    0.539    0.655
    pictr_4 (lm_M)    0.598    0.009   64.688    0.000    0.264    0.249
    pcvcb_4 (lm_P)    0.929    0.009  107.695    0.000    0.411    0.444
    redng_4 (lm_V)    0.981    0.009  111.392    0.000    0.434    0.470
  g_eta6 =~                                                             
    flnkr_6           1.000                               0.495    0.608
    pttrn_6 (lm_R)    1.218    0.011  112.699    0.000    0.603    0.706
    pictr_6 (lm_M)    0.598    0.009   64.688    0.000    0.296    0.279
    pcvcb_6 (lm_P)    0.929    0.009  107.695    0.000    0.460    0.492
    redng_6 (lm_V)    0.981    0.009  111.392    0.000    0.485    0.501
  g_i =~                                                                
    g_etaB            1.000                               0.962    0.962
    g_eta2            1.000                               0.941    0.941
    g_eta4            1.000                               0.878    0.878
    g_eta6            1.000                               0.784    0.784
  g_s =~                                                                
    g_etaB            0.000                               0.000    0.000
    g_eta2            1.000                               0.125    0.125
    g_eta4            2.000                               0.234    0.234
    g_eta6            3.000                               0.313    0.313
  p_i =~                                                                
    Int_c_0           1.000                               0.804    0.886
    Int_c_1           1.000                               0.804    0.852
    Int_c_2           1.000                               0.804    0.824
    Int_c_3           1.000                               0.804    0.788
    Int_c_4           1.000                               0.804    0.759
    Int_c_5           1.000                               0.804    0.717
    Int_c_6           1.000                               0.804    0.702
  p_s =~                                                                
    Int_c_0           0.000                               0.000    0.000
    Int_c_1           0.500                               0.310    0.329
    Int_c_2           1.000                               0.620    0.635
    Int_c_3           1.500                               0.931    0.911
    Int_c_4           2.000                               1.241    1.170
    Int_c_5           2.500                               1.551    1.383
    Int_c_6           3.000                               1.861    1.624
  p_q =~                                                                
    Int_c_0           0.000                               0.000    0.000
    Int_c_1           0.250                               0.046    0.049
    Int_c_2           1.000                               0.185    0.189
    Int_c_3           2.250                               0.416    0.407
    Int_c_4           4.000                               0.740    0.698
    Int_c_5           6.250                               1.156    1.030
    Int_c_6           9.000                               1.664    1.452

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_i ~                                                                 
    g_i              -0.029    0.022   -1.299    0.194   -0.014   -0.014
    a_i               0.673    0.011   59.776    0.000    0.657    0.657
  p_s ~                                                                 
    g_i               0.143    0.038    3.714    0.000    0.089    0.089
    g_s              -0.445    0.588   -0.757    0.449   -0.037   -0.037
    a_i               0.089    0.016    5.665    0.000    0.112    0.112
    a_s               1.597    0.084   19.084    0.000    0.647    0.647
  p_q ~                                                                 
    g_i              -0.043    0.014   -3.084    0.002   -0.090   -0.090
    g_s               0.233    0.215    1.082    0.279    0.065    0.065
    a_i              -0.019    0.005   -3.690    0.000   -0.081   -0.081
    a_s              -0.356    0.025  -14.306    0.000   -0.485   -0.485

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.166    0.005   34.771    0.000    0.166    0.541
   .asr_nxdp_cmp_4           0.151    0.005   30.766    0.000    0.151    0.483
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.186    0.005   35.280    0.000    0.186    0.565
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.222    0.006   36.479    0.000    0.222    0.466
   .asr_wthdp_cm_4           0.201    0.006   32.573    0.000    0.201    0.432
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.219    0.006   34.774    0.000    0.219    0.472
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.265    0.007   39.930    0.000    0.265    0.488
   .asr_soma_cmp_4           0.230    0.007   34.093    0.000    0.230    0.425
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.272    0.007   38.262    0.000    0.272    0.498
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.199    0.005   36.225    0.000    0.199    0.443
   .asr_thprb_cm_4           0.167    0.006   30.279    0.000    0.167    0.384
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.175    0.005   32.804    0.000    0.175    0.431
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.256    0.005   48.805    0.000    0.256    0.644
   .asr_ttprb_cm_4           0.249    0.006   45.117    0.000    0.249    0.599
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.267    0.006   47.870    0.000    0.267    0.666
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.313    0.007   42.048    0.000    0.313    0.488
   .asr_rlbrk_cm_4           0.269    0.007   36.502    0.000    0.269    0.434
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.291    0.007   39.429    0.000    0.291    0.493
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.252    0.006   44.263    0.000    0.252    0.558
   .asr_ggrss_cm_4           0.228    0.006   40.143    0.000    0.228    0.515
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.257    0.006   43.699    0.000    0.257    0.590
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.500    0.010   52.017    0.000    0.500    0.578
   .asr_intr_cmp_4           0.469    0.010   48.111    0.000    0.469    0.547
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.479    0.010   49.834    0.000    0.479    0.584
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.007    0.005    1.487    0.137    0.007    0.019
   .asr_soma_cmp_0           0.011    0.005    2.215    0.027    0.011    0.028
   .asr_wthdp_cm_2           0.010    0.005    2.083    0.037    0.010    0.027
   .asr_soma_cmp_2           0.020    0.005    3.908    0.000    0.020    0.049
   .asr_wthdp_cm_4           0.008    0.005    1.638    0.101    0.008    0.022
   .asr_soma_cmp_4           0.019    0.005    3.533    0.000    0.019    0.047
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2          -0.001    0.005   -0.164    0.870   -0.001   -0.002
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.013    0.005    2.467    0.014    0.013    0.030
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.024    0.005    4.742    0.000    0.024    0.062
   .asr_soma_cmp_2           0.031    0.005    5.856    0.000    0.031    0.075
   .asr_wthdp_cm_4           0.011    0.005    2.140    0.032    0.011    0.029
   .asr_soma_cmp_4           0.014    0.005    2.600    0.009    0.014    0.034
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4          -0.008    0.005   -1.554    0.120   -0.008   -0.020
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.012    0.005    2.329    0.020    0.012    0.029
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.006    0.005    1.223    0.221    0.006    0.016
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.029    0.006    5.284    0.000    0.029    0.068
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.027    0.005    5.038    0.000    0.027    0.070
   .asr_soma_cmp_4           0.043    0.006    7.431    0.000    0.043    0.101
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.043    0.006   -7.506    0.000   -0.043   -0.084
   .asr_soma_cmp_2          -0.028    0.006   -4.909    0.000   -0.028   -0.055
   .asr_soma_cmp_4          -0.043    0.006   -7.050    0.000   -0.043   -0.084
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.022    0.006   -3.847    0.000   -0.022   -0.043
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.025    0.006   -4.217    0.000   -0.025   -0.048
   .asr_soma_cmp_4          -0.031    0.006   -5.039    0.000   -0.031   -0.060
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.024    0.006   -4.140    0.000   -0.024   -0.049
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.030    0.006   -4.991    0.000   -0.030   -0.061
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.032    0.006   -5.333    0.000   -0.032   -0.065
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.140    0.007   20.622    0.000    0.140    0.218
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.084    0.006   13.879    0.000    0.084    0.151
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.091    0.007   13.947    0.000    0.091    0.148
   .asr_rlbrk_cm_2           0.033    0.006    5.642    0.000    0.033    0.061
   .asr_intr_cmp_4           0.100    0.007   14.788    0.000    0.100    0.163
   .asr_rlbrk_cm_4           0.040    0.006    6.758    0.000    0.040    0.078
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.100    0.007   14.955    0.000    0.100    0.158
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.059    0.006    9.840    0.000    0.059    0.108
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.144    0.007   21.596    0.000    0.144    0.237
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.054    0.006    9.258    0.000    0.054    0.104
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.115    0.007   16.888    0.000    0.115    0.191
   .asr_rlbrk_cm_4           0.052    0.006    8.708    0.000    0.052    0.102
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.103    0.007   14.885    0.000    0.103    0.165
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.064    0.006   10.417    0.000    0.064    0.119
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.109    0.007   16.291    0.000    0.109    0.184
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.055    0.006    9.118    0.000    0.055    0.107
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.146    0.007   21.189    0.000    0.146    0.248
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.074    0.006   12.393    0.000    0.074    0.150
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.128    0.008   16.407    0.000    0.128    0.164
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.074    0.008    9.802    0.000    0.074    0.099
   .asr_rlbrk_cm_4           0.079    0.008   10.236    0.000    0.079    0.110
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.078    0.008   10.271    0.000    0.078    0.105
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.118    0.007   15.974    0.000    0.118    0.167
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.078    0.007   10.383    0.000    0.078    0.113
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.092    0.008   11.679    0.000    0.092    0.124
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.085    0.008   11.069    0.000    0.085    0.121
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.118    0.008   15.568    0.000    0.118    0.174
  a_i ~~                                                                       
    a_s                     -0.080    0.005  -17.675    0.000   -0.403   -0.403
 .flanker_0 ~~                                                                 
   .flanker_2                0.138    0.007   18.779    0.000    0.138    0.244
   .flanker_4                0.098    0.008   13.115    0.000    0.098    0.180
   .flanker_6                0.087    0.009    9.357    0.000    0.087    0.162
 .flanker_2 ~~                                                                 
   .flanker_4                0.145    0.007   19.911    0.000    0.145    0.321
   .flanker_6                0.102    0.008   12.602    0.000    0.102    0.232
 .flanker_4 ~~                                                                 
   .flanker_6                0.153    0.009   16.879    0.000    0.153    0.359
 .pattern_0 ~~                                                                 
   .pattern_2                0.073    0.005   13.377    0.000    0.073    0.216
   .pattern_4                0.040    0.006    6.757    0.000    0.040    0.111
   .pattern_6                0.033    0.007    4.580    0.000    0.033    0.093
 .pattern_2 ~~                                                                 
   .pattern_4                0.105    0.007   15.299    0.000    0.105    0.289
   .pattern_6                0.074    0.008    9.785    0.000    0.074    0.209
 .pattern_4 ~~                                                                 
   .pattern_6                0.126    0.009   14.154    0.000    0.126    0.336
 .picture_0 ~~                                                                 
   .picture_2                0.253    0.007   33.993    0.000    0.253    0.365
   .picture_4                0.259    0.009   28.238    0.000    0.259    0.312
   .picture_6                0.284    0.012   23.732    0.000    0.284    0.345
 .picture_2 ~~                                                                 
   .picture_4                0.288    0.010   28.242    0.000    0.288    0.327
   .picture_6                0.269    0.013   20.061    0.000    0.269    0.309
 .picture_4 ~~                                                                 
   .picture_6                0.393    0.016   24.843    0.000    0.393    0.375
 .picvocab_0 ~~                                                                
   .picvocab_2               0.398    0.007   53.229    0.000    0.398    0.677
   .picvocab_4               0.402    0.008   50.694    0.000    0.402    0.648
   .picvocab_6               0.381    0.009   43.278    0.000    0.381    0.626
 .picvocab_2 ~~                                                                
   .picvocab_4               0.474    0.009   54.091    0.000    0.474    0.728
   .picvocab_6               0.461    0.010   47.487    0.000    0.461    0.721
 .picvocab_4 ~~                                                                
   .picvocab_6               0.510    0.011   48.403    0.000    0.510    0.757
 .reading_0 ~~                                                                 
   .reading_2                0.406    0.007   55.000    0.000    0.406    0.722
   .reading_4                0.409    0.008   50.835    0.000    0.409    0.662
   .reading_6                0.418    0.010   43.618    0.000    0.418    0.657
 .reading_2 ~~                                                                 
   .reading_4                0.418    0.008   51.341    0.000    0.418    0.693
   .reading_6                0.435    0.010   45.330    0.000    0.435    0.699
 .reading_4 ~~                                                                 
   .reading_6                0.458    0.011   42.948    0.000    0.458    0.670
 .picvocab_0 ~~                                                                
   .reading_0                0.234    0.007   36.008    0.000    0.234    0.412
   .reading_2                0.247    0.007   37.699    0.000    0.247    0.446
   .reading_4                0.265    0.007   36.260    0.000    0.265    0.435
   .reading_6                0.284    0.009   32.188    0.000    0.284    0.452
 .picvocab_2 ~~                                                                
   .reading_2                0.290    0.007   40.520    0.000    0.290    0.498
 .reading_0 ~~                                                                 
   .picvocab_2               0.269    0.007   38.377    0.000    0.269    0.451
 .picvocab_2 ~~                                                                
   .reading_4                0.315    0.008   39.598    0.000    0.315    0.492
   .reading_6                0.341    0.010   35.527    0.000    0.341    0.516
 .picvocab_4 ~~                                                                
   .reading_4                0.339    0.009   38.963    0.000    0.339    0.502
 .reading_0 ~~                                                                 
   .picvocab_4               0.277    0.008   36.824    0.000    0.277    0.441
 .reading_2 ~~                                                                 
   .picvocab_4               0.302    0.008   39.459    0.000    0.302    0.492
 .picvocab_4 ~~                                                                
   .reading_6                0.369    0.010   35.675    0.000    0.369    0.530
 .picvocab_6 ~~                                                                
   .reading_6                0.363    0.011   32.314    0.000    0.363    0.531
 .reading_0 ~~                                                                 
   .picvocab_6               0.258    0.009   29.953    0.000    0.258    0.418
 .reading_2 ~~                                                                 
   .picvocab_6               0.286    0.009   33.121    0.000    0.286    0.475
 .reading_4 ~~                                                                 
   .picvocab_6               0.324    0.010   33.426    0.000    0.324    0.490
  g_i ~~                                                                       
    g_s                      0.004    0.001    3.501    0.000    0.211    0.211
 .p_i ~~                                                                       
   .p_s                     -0.070    0.010   -6.858    0.000   -0.235   -0.235
   .p_q                      0.008    0.003    2.632    0.009    0.085    0.085
 .p_s ~~                                                                       
   .p_q                     -0.068    0.005  -12.655    0.000   -0.850   -0.850

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .asr___0 (t_AX)   -0.006    0.004   -1.311    0.190   -0.006   -0.006
   .asr___0 (t_AW)    0.002    0.005    0.416    0.678    0.002    0.002
   .asr___0 (t_AS)   -0.002    0.005   -0.427    0.669   -0.002   -0.002
   .asr___0 (t_AP)   -0.000    0.005   -0.097    0.923   -0.000   -0.000
   .asr___0 (t_AH)   -0.000    0.005   -0.090    0.928   -0.000   -0.000
   .asr___0 (t_AA)    0.006    0.006    1.061    0.289    0.006    0.006
   .asr___0 (t_AR)    0.001    0.005    0.170    0.865    0.001    0.001
   .asr___0 (t_AG)   -0.001    0.007   -0.082    0.935   -0.001   -0.001
   .asr___2 (t_AX)   -0.006    0.004   -1.311    0.190   -0.006   -0.006
   .asr___2 (t_AW)    0.002    0.005    0.416    0.678    0.002    0.002
   .asr___2 (t_AS)   -0.002    0.005   -0.427    0.669   -0.002   -0.002
   .asr___2 (t_AP)   -0.000    0.005   -0.097    0.923   -0.000   -0.000
   .asr___2 (t_AH)   -0.000    0.005   -0.090    0.928   -0.000   -0.000
   .asr___2 (t_AA)    0.006    0.006    1.061    0.289    0.006    0.006
   .asr___2 (t_AR)    0.001    0.005    0.170    0.865    0.001    0.001
   .asr___2 (t_AG)   -0.001    0.007   -0.082    0.935   -0.001   -0.001
   .asr___4 (t_AX)   -0.006    0.004   -1.311    0.190   -0.006   -0.006
   .asr___4 (t_AW)    0.002    0.005    0.416    0.678    0.002    0.002
   .asr___4 (t_AS)   -0.002    0.005   -0.427    0.669   -0.002   -0.002
   .asr___4 (t_AP)   -0.000    0.005   -0.097    0.923   -0.000   -0.000
   .asr___4 (t_AH)   -0.000    0.005   -0.090    0.928   -0.000   -0.000
   .asr___4 (t_AA)    0.006    0.006    1.061    0.289    0.006    0.006
   .asr___4 (t_AR)    0.001    0.005    0.170    0.865    0.001    0.001
   .asr___4 (t_AG)   -0.001    0.007   -0.082    0.935   -0.001   -0.001
    a_i               0.025    0.008    3.205    0.001    0.032    0.032
    a_s              -0.023    0.004   -6.228    0.000   -0.091   -0.091
   .a_etaB            0.000                               0.000    0.000
   .a_eta2            0.000                               0.000    0.000
   .a_eta4            0.000                               0.000    0.000
   .flnkr_0 (ta_S)    0.094    0.005   17.617    0.000    0.094    0.102
   .flnkr_2 (ta_S)    0.094    0.005   17.617    0.000    0.094    0.118
   .flnkr_4 (ta_S)    0.094    0.005   17.617    0.000    0.094    0.119
   .flnkr_6 (ta_S)    0.094    0.005   17.617    0.000    0.094    0.116
   .pttrn_0 (ta_R)    0.109    0.005   20.935    0.000    0.109    0.144
   .pttrn_2 (ta_R)    0.109    0.005   20.935    0.000    0.109    0.142
   .pttrn_4 (ta_R)    0.109    0.005   20.935    0.000    0.109    0.133
   .pttrn_6 (ta_R)    0.109    0.005   20.935    0.000    0.109    0.128
   .pictr_0 (ta_M)    0.049    0.007    7.490    0.000    0.049    0.058
   .pictr_2 (ta_M)    0.049    0.007    7.490    0.000    0.049    0.055
   .pictr_4 (ta_M)    0.049    0.007    7.490    0.000    0.049    0.046
   .pictr_6 (ta_M)    0.049    0.007    7.490    0.000    0.049    0.046
   .pcvcb_0 (ta_P)    0.043    0.006    7.641    0.000    0.043    0.051
   .pcvcb_2 (ta_P)    0.043    0.006    7.641    0.000    0.043    0.049
   .pcvcb_4 (ta_P)    0.043    0.006    7.641    0.000    0.043    0.046
   .pcvcb_6 (ta_P)    0.043    0.006    7.641    0.000    0.043    0.046
   .redng_0 (ta_V)    0.053    0.005    9.673    0.000    0.053    0.062
   .redng_2 (ta_V)    0.053    0.005    9.673    0.000    0.053    0.063
   .redng_4 (ta_V)    0.053    0.005    9.673    0.000    0.053    0.057
   .redng_6 (ta_V)    0.053    0.005    9.673    0.000    0.053    0.055
    g_i              -0.648    0.007  -95.705    0.000   -1.670   -1.670
    g_s               0.473    0.004  128.126    0.000    9.141    9.141
   .g_etaB            0.000                               0.000    0.000
   .g_eta2            0.000                               0.000    0.000
   .g_eta4            0.000                               0.000    0.000
   .g_eta6            0.000                               0.000    0.000
   .p_i              -0.081    0.016   -5.176    0.000   -0.101   -0.101
   .p_s               0.371    0.295    1.260    0.208    0.599    0.599
   .p_q              -0.143    0.108   -1.322    0.186   -0.772   -0.772
   .Int_c_0           0.000                               0.000    0.000
   .Int_c_1           0.000                               0.000    0.000
   .Int_c_2           0.000                               0.000    0.000
   .Int_c_3           0.000                               0.000    0.000
   .Int_c_4           0.000                               0.000    0.000
   .Int_c_5           0.000                               0.000    0.000
   .Int_c_6           0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .a_etaB            0.108    0.006   16.948    0.000    0.148    0.148
   .a_eta2            0.184    0.005   39.149    0.000    0.261    0.261
   .a_eta4            0.104    0.007   14.170    0.000    0.159    0.159
   .asr_nxdp_cmp_0    0.294    0.006   51.210    0.000    0.294    0.289
   .asr_wthdp_cm_0    0.479    0.008   62.291    0.000    0.479    0.456
   .asr_soma_cmp_0    0.538    0.008   65.693    0.000    0.538    0.538
   .asr_thprb_cm_0    0.481    0.007   65.759    0.000    0.481    0.443
   .asr_ttprb_cm_0    0.410    0.006   64.501    0.000    0.410    0.413
   .asr_rlbrk_cm_0    0.671    0.010   70.143    0.000    0.671    0.614
   .asr_ggrss_cm_0    0.459    0.007   65.216    0.000    0.459    0.436
   .asr_intr_cmp_0    0.904    0.012   75.005    0.000    0.904    0.846
   .asr_nxdp_cmp_2    0.323    0.006   51.811    0.000    0.323    0.314
   .asr_wthdp_cm_2    0.475    0.008   60.549    0.000    0.475    0.461
   .asr_soma_cmp_2    0.549    0.009   64.025    0.000    0.549    0.550
   .asr_thprb_cm_2    0.418    0.007   62.263    0.000    0.418    0.416
   .asr_ttprb_cm_2    0.384    0.006   61.467    0.000    0.384    0.404
   .asr_rlbrk_cm_2    0.612    0.009   67.042    0.000    0.612    0.599
   .asr_ggrss_cm_2    0.445    0.007   62.975    0.000    0.445    0.435
   .asr_intr_cmp_2    0.827    0.011   72.171    0.000    0.827    0.838
   .asr_nxdp_cmp_4    0.334    0.007   49.266    0.000    0.334    0.338
   .asr_wthdp_cm_4    0.451    0.008   56.581    0.000    0.451    0.467
   .asr_soma_cmp_4    0.543    0.009   59.864    0.000    0.543    0.565
   .asr_thprb_cm_4    0.392    0.007   57.747    0.000    0.392    0.417
   .asr_ttprb_cm_4    0.420    0.007   58.877    0.000    0.420    0.443
   .asr_rlbrk_cm_4    0.571    0.009   62.318    0.000    0.571    0.599
   .asr_ggrss_cm_4    0.428    0.007   58.935    0.000    0.428    0.444
   .asr_intr_cmp_4    0.813    0.012   67.936    0.000    0.813    0.846
    a_i               0.617    0.012   49.407    0.000    1.000    1.000
    a_s               0.063    0.003   19.573    0.000    1.000    1.000
   .g_etaB            0.012    0.002    5.312    0.000    0.074    0.074
   .g_eta2            0.008    0.002    5.235    0.000    0.048    0.048
   .g_eta4            0.017    0.002    8.204    0.000    0.088    0.088
   .g_eta6            0.045    0.004   11.349    0.000    0.184    0.184
   .flanker_0         0.684    0.010   68.043    0.000    0.684    0.808
   .flanker_2         0.466    0.009   54.419    0.000    0.466    0.733
   .flanker_4         0.435    0.009   49.477    0.000    0.435    0.690
   .flanker_6         0.417    0.011   38.684    0.000    0.417    0.630
   .pattern_0         0.337    0.006   52.423    0.000    0.337    0.583
   .pattern_2         0.339    0.008   45.087    0.000    0.339    0.574
   .pattern_4         0.387    0.009   42.825    0.000    0.387    0.572
   .pattern_6         0.367    0.011   32.918    0.000    0.367    0.502
   .picture_0         0.654    0.009   73.394    0.000    0.654    0.918
   .picture_2         0.734    0.011   69.177    0.000    0.734    0.924
   .picture_4         1.056    0.016   66.199    0.000    1.056    0.938
   .picture_6         1.036    0.022   47.863    0.000    1.036    0.922
   .picvocab_0        0.561    0.008   68.952    0.000    0.561    0.800
   .picvocab_2        0.618    0.009   66.210    0.000    0.618    0.808
   .picvocab_4        0.686    0.011   63.052    0.000    0.686    0.803
   .picvocab_6        0.661    0.013   49.270    0.000    0.661    0.758
   .reading_0         0.575    0.008   68.327    0.000    0.575    0.786
   .reading_2         0.549    0.008   64.900    0.000    0.549    0.770
   .reading_4         0.664    0.011   62.001    0.000    0.664    0.779
   .reading_6         0.704    0.015   47.897    0.000    0.704    0.749
    g_i               0.151    0.004   35.986    0.000    1.000    1.000
    g_s               0.003    0.001    4.136    0.000    1.000    1.000
   .p_i               0.367    0.009   39.541    0.000    0.568    0.568
   .p_s               0.238    0.017   13.825    0.000    0.619    0.619
   .p_q               0.027    0.002   14.755    0.000    0.780    0.780
   .Int_comp_0        0.178    0.007   25.777    0.000    0.178    0.216
   .Int_comp_1        0.281    0.005   58.286    0.000    0.281    0.315
   .Int_comp_2        0.287    0.005   56.454    0.000    0.287    0.301
   .Int_comp_3        0.305    0.006   53.703    0.000    0.305    0.293
   .Int_comp_4        0.321    0.006   52.347    0.000    0.321    0.286
   .Int_comp_5        0.369    0.008   46.893    0.000    0.369    0.294
   .Int_comp_6        0.237    0.013   18.025    0.000    0.237    0.180

R-Square:
                   Estimate
    a_etaB            0.852
    a_eta2            0.739
    a_eta4            0.841
    asr_nxdp_cmp_0    0.711
    asr_wthdp_cm_0    0.544
    asr_soma_cmp_0    0.462
    asr_thprb_cm_0    0.557
    asr_ttprb_cm_0    0.587
    asr_rlbrk_cm_0    0.386
    asr_ggrss_cm_0    0.564
    asr_intr_cmp_0    0.154
    asr_nxdp_cmp_2    0.686
    asr_wthdp_cm_2    0.539
    asr_soma_cmp_2    0.450
    asr_thprb_cm_2    0.584
    asr_ttprb_cm_2    0.596
    asr_rlbrk_cm_2    0.401
    asr_ggrss_cm_2    0.565
    asr_intr_cmp_2    0.162
    asr_nxdp_cmp_4    0.662
    asr_wthdp_cm_4    0.533
    asr_soma_cmp_4    0.435
    asr_thprb_cm_4    0.583
    asr_ttprb_cm_4    0.557
    asr_rlbrk_cm_4    0.401
    asr_ggrss_cm_4    0.556
    asr_intr_cmp_4    0.154
    g_etaB            0.926
    g_eta2            0.952
    g_eta4            0.912
    g_eta6            0.816
    flanker_0         0.192
    flanker_2         0.267
    flanker_4         0.310
    flanker_6         0.370
    pattern_0         0.417
    pattern_2         0.426
    pattern_4         0.428
    pattern_6         0.498
    picture_0         0.082
    picture_2         0.076
    picture_4         0.062
    picture_6         0.078
    picvocab_0        0.200
    picvocab_2        0.192
    picvocab_4        0.197
    picvocab_6        0.242
    reading_0         0.214
    reading_2         0.230
    reading_4         0.221
    reading_6         0.251
    p_i               0.432
    p_s               0.381
    p_q               0.220
    Int_comp_0        0.784
    Int_comp_1        0.685
    Int_comp_2        0.699
    Int_comp_3        0.707
    Int_comp_4        0.714
    Int_comp_5        0.706
    Int_comp_6        0.820
Int ~ pp + g model with sex

Children’s Internalizing symptoms (Int) was regressed on parental psychopathology (pp) and children’s cognitive functioning (g), with sex as a covariate.

model fit
# Add sex as covariate
Int.pga6.sex.model <- Int.pga6.model %>%
  str_replace_all(
    c(
      "_i ~ 1" = "_i ~ 1 + dummy_sex",
      "_s ~ 1" = "_s ~ 1 + dummy_sex",
      "_q ~ 1" = "_q ~ 1 + dummy_sex",
      "_i~1" = "_i~1 + dummy_sex",
      "_s~1" = "_s~1 + dummy_sex",
      "_q~1" = "_q~1 + dummy_sex"
    )
  )

writeLines(Int.pga6.sex.model)
lavaan(Int.pga6.sex.model,
  data = pga6_wide.allscaled.sex,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = T,
  std.lv = T
) %>%
  saveRDS("pgcm_Int_pga6_sex_model.rds")
result
readRDS("pgcm_Int_pga6_sex_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pgcm_Int_pga6_sex_result.rds")
# Check model
eigen(inspect(readRDS("pgcm_Int_pga6_sex_model.rds"), "cor.lv"))$value
 [1] 4.75826048 3.87742034 2.43240691 0.95199492 0.67142754 0.50460633
 [7] 0.22761964 0.15819609 0.12891311 0.09272414 0.08003755 0.05974674
[13] 0.04007076 0.01657547
readRDS("pgcm_Int_pga6_sex_result.rds")
lavaan 0.6-19 ended normally after 202 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       299
  Number of equality constraints                    57

  Number of observations                         11867
  Number of missing patterns                       706

Model Test User Model:
                                                       
  Test statistic                              14826.957
  Degrees of freedom                               1186
  P-value (Chi-square)                            0.000

Model Test Baseline Model:

  Test statistic                            317693.880
  Degrees of freedom                              1326
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.957
  Tucker-Lewis Index (TLI)                       0.952
                                                      
  Robust Comparative Fit Index (CFI)             0.952
  Robust Tucker-Lewis Index (TLI)                0.946

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -526501.246
  Loglikelihood unrestricted model (H1)    -519087.767
                                                      
  Akaike (AIC)                             1053486.492
  Bayesian (BIC)                           1055272.819
  Sample-size adjusted Bayesian (SABIC)    1054503.771

Root Mean Square Error of Approximation:

  RMSEA                                          0.031
  90 Percent confidence interval - lower         0.031
  90 Percent confidence interval - upper         0.032
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.037
  90 Percent confidence interval - lower         0.037
  90 Percent confidence interval - upper         0.038
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.050

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.851    0.844
    asr___0 (l_AW)    0.887    0.007  127.142    0.000    0.755    0.737
    asr___0 (l_AS)    0.799    0.007  112.988    0.000    0.680    0.680
    asr___0 (l_AC)    0.914    0.007  125.326    0.000    0.778    0.746
    asr___0 (l_AH)    0.897    0.007  131.629    0.000    0.764    0.766
    asr___0 (l_AA)    0.763    0.008   97.370    0.000    0.649    0.621
    asr___0 (l_AR)    0.905    0.007  125.122    0.000    0.770    0.751
    asr___0 (l_AG)    0.476    0.008   59.069    0.000    0.405    0.392
  a_eta2 =~                                                             
    asr___2           1.000                               0.839    0.828
    asr___2 (l_AW)    0.887    0.007  127.142    0.000    0.745    0.734
    asr___2 (l_AS)    0.799    0.007  112.988    0.000    0.671    0.671
    asr___2 (l_AC)    0.914    0.007  125.326    0.000    0.767    0.764
    asr___2 (l_AH)    0.897    0.007  131.629    0.000    0.753    0.772
    asr___2 (l_AA)    0.763    0.008   97.370    0.000    0.640    0.633
    asr___2 (l_AR)    0.905    0.007  125.122    0.000    0.759    0.751
    asr___2 (l_AG)    0.476    0.008   59.069    0.000    0.399    0.402
  a_eta4 =~                                                             
    asr___4           1.000                               0.810    0.814
    asr___4 (l_AW)    0.887    0.007  127.142    0.000    0.718    0.730
    asr___4 (l_AS)    0.799    0.007  112.988    0.000    0.647    0.660
    asr___4 (l_AC)    0.914    0.007  125.326    0.000    0.740    0.763
    asr___4 (l_AH)    0.897    0.007  131.629    0.000    0.726    0.746
    asr___4 (l_AA)    0.763    0.008   97.370    0.000    0.617    0.633
    asr___4 (l_AR)    0.905    0.007  125.122    0.000    0.732    0.746
    asr___4 (l_AG)    0.476    0.008   59.069    0.000    0.385    0.393
  a_i =~                                                                
    a_etaB            1.000                               0.923    0.923
    a_eta2            1.000                               0.936    0.936
    a_eta4            1.000                               0.970    0.970
  a_s =~                                                                
    a_etaB            0.000                               0.000    0.000
    a_eta2            1.000                               0.299    0.299
    a_eta4            2.000                               0.621    0.621
  g_etaB =~                                                             
    flnkr_0           1.000                               0.403    0.437
    pttrn_0 (lm_R)    1.220    0.011  112.460    0.000    0.492    0.647
    pictr_0 (lm_M)    0.598    0.009   64.681    0.000    0.241    0.286
    pcvcb_0 (lm_P)    0.930    0.009  107.659    0.000    0.375    0.447
    redng_0 (lm_V)    0.982    0.009  111.344    0.000    0.395    0.462
  g_eta2 =~                                                             
    flnkr_2           1.000                               0.412    0.516
    pttrn_2 (lm_R)    1.220    0.011  112.460    0.000    0.502    0.654
    pictr_2 (lm_M)    0.598    0.009   64.681    0.000    0.246    0.276
    pcvcb_2 (lm_P)    0.930    0.009  107.659    0.000    0.383    0.437
    redng_2 (lm_V)    0.982    0.009  111.344    0.000    0.404    0.479
  g_eta4 =~                                                             
    flnkr_4           1.000                               0.441    0.556
    pttrn_4 (lm_R)    1.220    0.011  112.460    0.000    0.539    0.655
    pictr_4 (lm_M)    0.598    0.009   64.681    0.000    0.264    0.249
    pcvcb_4 (lm_P)    0.930    0.009  107.659    0.000    0.410    0.444
    redng_4 (lm_V)    0.982    0.009  111.344    0.000    0.433    0.469
  g_eta6 =~                                                             
    flnkr_6           1.000                               0.494    0.607
    pttrn_6 (lm_R)    1.220    0.011  112.460    0.000    0.603    0.706
    pictr_6 (lm_M)    0.598    0.009   64.681    0.000    0.296    0.279
    pcvcb_6 (lm_P)    0.930    0.009  107.659    0.000    0.460    0.492
    redng_6 (lm_V)    0.982    0.009  111.344    0.000    0.485    0.500
  g_i =~                                                                
    g_etaB            1.000                               0.962    0.962
    g_eta2            1.000                               0.941    0.941
    g_eta4            1.000                               0.878    0.878
    g_eta6            1.000                               0.784    0.784
  g_s =~                                                                
    g_etaB            0.000                               0.000    0.000
    g_eta2            1.000                               0.125    0.125
    g_eta4            2.000                               0.233    0.233
    g_eta6            3.000                               0.313    0.313
  p_i =~                                                                
    Int_c_0           1.000                               0.803    0.884
    Int_c_1           1.000                               0.803    0.851
    Int_c_2           1.000                               0.803    0.823
    Int_c_3           1.000                               0.803    0.786
    Int_c_4           1.000                               0.803    0.758
    Int_c_5           1.000                               0.803    0.717
    Int_c_6           1.000                               0.803    0.698
  p_s =~                                                                
    Int_c_0           0.000                               0.000    0.000
    Int_c_1           0.500                               0.309    0.327
    Int_c_2           1.000                               0.617    0.632
    Int_c_3           1.500                               0.926    0.907
    Int_c_4           2.000                               1.235    1.165
    Int_c_5           2.500                               1.544    1.377
    Int_c_6           3.000                               1.852    1.611
  p_q =~                                                                
    Int_c_0           0.000                               0.000    0.000
    Int_c_1           0.250                               0.046    0.049
    Int_c_2           1.000                               0.183    0.188
    Int_c_3           2.250                               0.413    0.404
    Int_c_4           4.000                               0.734    0.692
    Int_c_5           6.250                               1.147    1.023
    Int_c_6           9.000                               1.651    1.436

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_i ~                                                                 
    dummy_sex         0.031    0.016    1.924    0.054    0.040    0.020
  a_s ~                                                                 
    dummy_sex        -0.015    0.007   -1.987    0.047   -0.058   -0.029
  g_i ~                                                                 
    dummy_sex        -0.041    0.009   -4.416    0.000   -0.105   -0.053
  g_s ~                                                                 
    dummy_sex         0.004    0.003    1.132    0.258    0.076    0.038
  p_i ~                                                                 
    dummy_sex         0.011    0.014    0.754    0.451    0.013    0.007
  p_s ~                                                                 
    dummy_sex        -0.100    0.019   -5.236    0.000   -0.162   -0.081
  p_q ~                                                                 
    dummy_sex        -0.012    0.007   -1.811    0.070   -0.065   -0.032
  p_i ~                                                                 
    g_i              -0.028    0.022   -1.254    0.210   -0.013   -0.013
    a_i               0.673    0.011   59.763    0.000    0.658    0.658
  p_s ~                                                                 
    g_i               0.134    0.038    3.481    0.001    0.084    0.084
    g_s              -0.389    0.588   -0.662    0.508   -0.032   -0.032
    a_i               0.090    0.016    5.745    0.000    0.114    0.114
    a_s               1.596    0.084   19.084    0.000    0.649    0.649
  p_q ~                                                                 
    g_i              -0.044    0.014   -3.158    0.002   -0.094   -0.094
    g_s               0.244    0.218    1.119    0.263    0.069    0.069
    a_i              -0.019    0.005   -3.714    0.000   -0.082   -0.082
    a_s              -0.357    0.025  -14.322    0.000   -0.489   -0.489

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.166    0.005   34.770    0.000    0.166    0.540
   .asr_nxdp_cmp_4           0.151    0.005   30.763    0.000    0.151    0.483
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.185    0.005   35.265    0.000    0.185    0.565
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.223    0.006   36.498    0.000    0.223    0.467
   .asr_wthdp_cm_4           0.201    0.006   32.610    0.000    0.201    0.433
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.219    0.006   34.802    0.000    0.219    0.472
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.265    0.007   39.932    0.000    0.265    0.488
   .asr_soma_cmp_4           0.230    0.007   34.092    0.000    0.230    0.425
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.272    0.007   38.262    0.000    0.272    0.498
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.199    0.005   36.247    0.000    0.199    0.444
   .asr_thprb_cm_4           0.167    0.006   30.307    0.000    0.167    0.385
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.175    0.005   32.854    0.000    0.175    0.432
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.255    0.005   48.781    0.000    0.255    0.644
   .asr_ttprb_cm_4           0.248    0.006   45.085    0.000    0.248    0.599
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.267    0.006   47.836    0.000    0.267    0.666
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.313    0.007   42.057    0.000    0.313    0.488
   .asr_rlbrk_cm_4           0.269    0.007   36.519    0.000    0.269    0.434
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.291    0.007   39.453    0.000    0.291    0.493
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.252    0.006   44.253    0.000    0.252    0.558
   .asr_ggrss_cm_4           0.228    0.006   40.131    0.000    0.228    0.514
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.257    0.006   43.696    0.000    0.257    0.590
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.500    0.010   52.017    0.000    0.500    0.578
   .asr_intr_cmp_4           0.469    0.010   48.110    0.000    0.469    0.547
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.479    0.010   49.835    0.000    0.479    0.584
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.007    0.005    1.506    0.132    0.007    0.020
   .asr_soma_cmp_0           0.011    0.005    2.213    0.027    0.011    0.028
   .asr_wthdp_cm_2           0.010    0.005    2.087    0.037    0.010    0.027
   .asr_soma_cmp_2           0.020    0.005    3.902    0.000    0.020    0.049
   .asr_wthdp_cm_4           0.008    0.005    1.655    0.098    0.008    0.022
   .asr_soma_cmp_4           0.019    0.005    3.517    0.000    0.019    0.046
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2          -0.001    0.005   -0.147    0.883   -0.001   -0.002
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.012    0.005    2.458    0.014    0.012    0.030
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.024    0.005    4.738    0.000    0.024    0.062
   .asr_soma_cmp_2           0.031    0.005    5.837    0.000    0.031    0.074
   .asr_wthdp_cm_4           0.011    0.005    2.148    0.032    0.011    0.029
   .asr_soma_cmp_4           0.014    0.005    2.562    0.010    0.014    0.033
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4          -0.008    0.005   -1.523    0.128   -0.008   -0.020
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.012    0.005    2.315    0.021    0.012    0.029
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.006    0.005    1.223    0.221    0.006    0.016
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.029    0.006    5.263    0.000    0.029    0.068
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.027    0.005    5.056    0.000    0.027    0.071
   .asr_soma_cmp_4           0.043    0.006    7.385    0.000    0.043    0.100
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.043    0.006   -7.489    0.000   -0.043   -0.084
   .asr_soma_cmp_2          -0.028    0.006   -4.890    0.000   -0.028   -0.055
   .asr_soma_cmp_4          -0.043    0.006   -7.027    0.000   -0.043   -0.084
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.022    0.006   -3.841    0.000   -0.022   -0.043
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.025    0.006   -4.212    0.000   -0.025   -0.048
   .asr_soma_cmp_4          -0.031    0.006   -5.039    0.000   -0.031   -0.060
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.024    0.006   -4.125    0.000   -0.024   -0.049
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.030    0.006   -4.971    0.000   -0.030   -0.060
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.032    0.006   -5.320    0.000   -0.032   -0.065
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.140    0.007   20.616    0.000    0.140    0.218
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.084    0.006   13.883    0.000    0.084    0.151
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.091    0.007   13.940    0.000    0.091    0.148
   .asr_rlbrk_cm_2           0.033    0.006    5.640    0.000    0.033    0.061
   .asr_intr_cmp_4           0.100    0.007   14.777    0.000    0.100    0.163
   .asr_rlbrk_cm_4           0.040    0.006    6.754    0.000    0.040    0.078
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.100    0.007   14.951    0.000    0.100    0.158
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.059    0.006    9.850    0.000    0.059    0.108
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.144    0.007   21.595    0.000    0.144    0.237
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.054    0.006    9.271    0.000    0.054    0.104
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.115    0.007   16.879    0.000    0.115    0.191
   .asr_rlbrk_cm_4           0.052    0.006    8.719    0.000    0.052    0.103
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.102    0.007   14.878    0.000    0.102    0.165
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.064    0.006   10.440    0.000    0.064    0.120
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.109    0.007   16.288    0.000    0.109    0.184
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.055    0.006    9.146    0.000    0.055    0.108
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.146    0.007   21.181    0.000    0.146    0.248
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.075    0.006   12.426    0.000    0.075    0.151
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.128    0.008   16.408    0.000    0.128    0.164
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.074    0.008    9.802    0.000    0.074    0.099
   .asr_rlbrk_cm_4           0.079    0.008   10.233    0.000    0.079    0.110
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.078    0.008   10.274    0.000    0.078    0.105
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.119    0.007   15.979    0.000    0.119    0.167
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.078    0.007   10.387    0.000    0.078    0.113
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.092    0.008   11.685    0.000    0.092    0.124
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.085    0.008   11.076    0.000    0.085    0.121
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.118    0.008   15.573    0.000    0.118    0.174
 .a_i ~~                                                                       
   .a_s                     -0.079    0.005  -17.644    0.000   -0.403   -0.403
 .flanker_0 ~~                                                                 
   .flanker_2                0.139    0.007   18.887    0.000    0.139    0.246
   .flanker_4                0.100    0.008   13.256    0.000    0.100    0.182
   .flanker_6                0.088    0.009    9.470    0.000    0.088    0.164
 .flanker_2 ~~                                                                 
   .flanker_4                0.146    0.007   20.026    0.000    0.146    0.323
   .flanker_6                0.103    0.008   12.717    0.000    0.103    0.234
 .flanker_4 ~~                                                                 
   .flanker_6                0.154    0.009   16.952    0.000    0.154    0.360
 .pattern_0 ~~                                                                 
   .pattern_2                0.072    0.005   13.112    0.000    0.072    0.213
   .pattern_4                0.038    0.006    6.492    0.000    0.038    0.107
   .pattern_6                0.031    0.007    4.411    0.000    0.031    0.089
 .pattern_2 ~~                                                                 
   .pattern_4                0.103    0.007   15.051    0.000    0.103    0.286
   .pattern_6                0.072    0.008    9.611    0.000    0.072    0.206
 .pattern_4 ~~                                                                 
   .pattern_6                0.125    0.009   14.011    0.000    0.125    0.334
 .picture_0 ~~                                                                 
   .picture_2                0.253    0.007   33.979    0.000    0.253    0.365
   .picture_4                0.259    0.009   28.228    0.000    0.259    0.312
   .picture_6                0.284    0.012   23.698    0.000    0.284    0.345
 .picture_2 ~~                                                                 
   .picture_4                0.288    0.010   28.234    0.000    0.288    0.327
   .picture_6                0.269    0.013   20.038    0.000    0.269    0.308
 .picture_4 ~~                                                                 
   .picture_6                0.393    0.016   24.836    0.000    0.393    0.375
 .picvocab_0 ~~                                                                
   .picvocab_2               0.400    0.008   53.255    0.000    0.400    0.678
   .picvocab_4               0.403    0.008   50.717    0.000    0.403    0.649
   .picvocab_6               0.382    0.009   43.316    0.000    0.382    0.627
 .picvocab_2 ~~                                                                
   .picvocab_4               0.475    0.009   54.096    0.000    0.475    0.728
   .picvocab_6               0.462    0.010   47.499    0.000    0.462    0.721
 .picvocab_4 ~~                                                                
   .picvocab_6               0.511    0.011   48.400    0.000    0.511    0.757
 .reading_0 ~~                                                                 
   .reading_2                0.407    0.007   55.019    0.000    0.407    0.723
   .reading_4                0.410    0.008   50.854    0.000    0.410    0.663
   .reading_6                0.419    0.010   43.655    0.000    0.419    0.658
 .reading_2 ~~                                                                 
   .reading_4                0.419    0.008   51.351    0.000    0.419    0.694
   .reading_6                0.436    0.010   45.351    0.000    0.436    0.700
 .reading_4 ~~                                                                 
   .reading_6                0.459    0.011   42.962    0.000    0.459    0.670
 .picvocab_0 ~~                                                                
   .reading_0                0.235    0.007   36.081    0.000    0.235    0.414
   .reading_2                0.248    0.007   37.759    0.000    0.248    0.447
   .reading_4                0.266    0.007   36.301    0.000    0.266    0.436
   .reading_6                0.285    0.009   32.230    0.000    0.285    0.453
 .picvocab_2 ~~                                                                
   .reading_2                0.291    0.007   40.569    0.000    0.291    0.499
 .reading_0 ~~                                                                 
   .picvocab_2               0.270    0.007   38.446    0.000    0.270    0.452
 .picvocab_2 ~~                                                                
   .reading_4                0.316    0.008   39.624    0.000    0.316    0.493
   .reading_6                0.341    0.010   35.550    0.000    0.341    0.517
 .picvocab_4 ~~                                                                
   .reading_4                0.340    0.009   38.984    0.000    0.340    0.503
 .reading_0 ~~                                                                 
   .picvocab_4               0.278    0.008   36.888    0.000    0.278    0.442
 .reading_2 ~~                                                                 
   .picvocab_4               0.303    0.008   39.500    0.000    0.303    0.493
 .picvocab_4 ~~                                                                
   .reading_6                0.369    0.010   35.689    0.000    0.369    0.531
 .picvocab_6 ~~                                                                
   .reading_6                0.363    0.011   32.324    0.000    0.363    0.532
 .reading_0 ~~                                                                 
   .picvocab_6               0.259    0.009   30.027    0.000    0.259    0.419
 .reading_2 ~~                                                                 
   .picvocab_6               0.287    0.009   33.170    0.000    0.287    0.476
 .reading_4 ~~                                                                 
   .picvocab_6               0.325    0.010   33.455    0.000    0.325    0.490
 .g_i ~~                                                                       
   .g_s                      0.004    0.001    3.535    0.000    0.214    0.214
 .p_i ~~                                                                       
   .p_s                     -0.067    0.010   -6.668    0.000   -0.232   -0.232
   .p_q                      0.008    0.003    2.513    0.012    0.082    0.082
 .p_s ~~                                                                       
   .p_q                     -0.067    0.005  -12.482    0.000   -0.857   -0.857

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .asr___0 (t_AX)   -0.011    0.004   -2.362    0.018   -0.011   -0.010
   .asr___0 (t_AW)   -0.002    0.005   -0.412    0.681   -0.002   -0.002
   .asr___0 (t_AS)   -0.006    0.005   -1.118    0.263   -0.006   -0.006
   .asr___0 (t_AP)   -0.005    0.005   -0.987    0.323   -0.005   -0.005
   .asr___0 (t_AH)   -0.005    0.005   -0.927    0.354   -0.005   -0.005
   .asr___0 (t_AA)    0.002    0.006    0.418    0.676    0.002    0.002
   .asr___0 (t_AR)   -0.003    0.005   -0.705    0.481   -0.003   -0.003
   .asr___0 (t_AG)   -0.003    0.007   -0.405    0.686   -0.003   -0.003
   .asr___2 (t_AX)   -0.011    0.004   -2.362    0.018   -0.011   -0.010
   .asr___2 (t_AW)   -0.002    0.005   -0.412    0.681   -0.002   -0.002
   .asr___2 (t_AS)   -0.006    0.005   -1.118    0.263   -0.006   -0.006
   .asr___2 (t_AP)   -0.005    0.005   -0.987    0.323   -0.005   -0.005
   .asr___2 (t_AH)   -0.005    0.005   -0.927    0.354   -0.005   -0.005
   .asr___2 (t_AA)    0.002    0.006    0.418    0.676    0.002    0.002
   .asr___2 (t_AR)   -0.003    0.005   -0.705    0.481   -0.003   -0.003
   .asr___2 (t_AG)   -0.003    0.007   -0.405    0.686   -0.003   -0.003
   .asr___4 (t_AX)   -0.011    0.004   -2.362    0.018   -0.011   -0.011
   .asr___4 (t_AW)   -0.002    0.005   -0.412    0.681   -0.002   -0.002
   .asr___4 (t_AS)   -0.006    0.005   -1.118    0.263   -0.006   -0.006
   .asr___4 (t_AP)   -0.005    0.005   -0.987    0.323   -0.005   -0.005
   .asr___4 (t_AH)   -0.005    0.005   -0.927    0.354   -0.005   -0.005
   .asr___4 (t_AA)    0.002    0.006    0.418    0.676    0.002    0.002
   .asr___4 (t_AR)   -0.003    0.005   -0.705    0.481   -0.003   -0.004
   .asr___4 (t_AG)   -0.003    0.007   -0.405    0.686   -0.003   -0.003
   .a_i               0.014    0.011    1.214    0.225    0.017    0.017
   .a_s              -0.015    0.005   -2.877    0.004   -0.061   -0.061
   .a_etaB            0.000                               0.000    0.000
   .a_eta2            0.000                               0.000    0.000
   .a_eta4            0.000                               0.000    0.000
   .flnkr_0 (ta_S)    0.101    0.005   18.970    0.000    0.101    0.109
   .flnkr_2 (ta_S)    0.101    0.005   18.970    0.000    0.101    0.126
   .flnkr_4 (ta_S)    0.101    0.005   18.970    0.000    0.101    0.127
   .flnkr_6 (ta_S)    0.101    0.005   18.970    0.000    0.101    0.124
   .pttrn_0 (ta_R)    0.118    0.005   22.781    0.000    0.118    0.155
   .pttrn_2 (ta_R)    0.118    0.005   22.781    0.000    0.118    0.153
   .pttrn_4 (ta_R)    0.118    0.005   22.781    0.000    0.118    0.143
   .pttrn_6 (ta_R)    0.118    0.005   22.781    0.000    0.118    0.138
   .pictr_0 (ta_M)    0.053    0.007    8.087    0.000    0.053    0.062
   .pictr_2 (ta_M)    0.053    0.007    8.087    0.000    0.053    0.059
   .pictr_4 (ta_M)    0.053    0.007    8.087    0.000    0.053    0.050
   .pictr_6 (ta_M)    0.053    0.007    8.087    0.000    0.053    0.050
   .pcvcb_0 (ta_P)    0.049    0.006    8.731    0.000    0.049    0.058
   .pcvcb_2 (ta_P)    0.049    0.006    8.731    0.000    0.049    0.056
   .pcvcb_4 (ta_P)    0.049    0.006    8.731    0.000    0.049    0.053
   .pcvcb_6 (ta_P)    0.049    0.006    8.731    0.000    0.049    0.052
   .redng_0 (ta_V)    0.059    0.005   10.886    0.000    0.059    0.069
   .redng_2 (ta_V)    0.059    0.005   10.886    0.000    0.059    0.070
   .redng_4 (ta_V)    0.059    0.005   10.886    0.000    0.059    0.064
   .redng_6 (ta_V)    0.059    0.005   10.886    0.000    0.059    0.061
   .g_i              -0.632    0.008  -77.421    0.000   -1.632   -1.632
   .g_s               0.470    0.004  115.300    0.000    9.122    9.122
   .g_etaB            0.000                               0.000    0.000
   .g_eta2            0.000                               0.000    0.000
   .g_eta4            0.000                               0.000    0.000
   .g_eta6            0.000                               0.000    0.000
   .p_i              -0.089    0.017   -5.261    0.000   -0.111   -0.111
   .p_s               0.392    0.293    1.336    0.182    0.634    0.634
   .p_q              -0.143    0.109   -1.310    0.190   -0.777   -0.777
   .Int_c_0           0.000                               0.000    0.000
   .Int_c_1           0.000                               0.000    0.000
   .Int_c_2           0.000                               0.000    0.000
   .Int_c_3           0.000                               0.000    0.000
   .Int_c_4           0.000                               0.000    0.000
   .Int_c_5           0.000                               0.000    0.000
   .Int_c_6           0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .a_etaB            0.108    0.006   16.964    0.000    0.149    0.149
   .a_eta2            0.184    0.005   39.153    0.000    0.261    0.261
   .a_eta4            0.104    0.007   14.224    0.000    0.159    0.159
   .asr_nxdp_cmp_0    0.294    0.006   51.213    0.000    0.294    0.288
   .asr_wthdp_cm_0    0.479    0.008   62.301    0.000    0.479    0.456
   .asr_soma_cmp_0    0.538    0.008   65.695    0.000    0.538    0.538
   .asr_thprb_cm_0    0.481    0.007   65.768    0.000    0.481    0.443
   .asr_ttprb_cm_0    0.410    0.006   64.486    0.000    0.410    0.413
   .asr_rlbrk_cm_0    0.671    0.010   70.149    0.000    0.671    0.614
   .asr_ggrss_cm_0    0.459    0.007   65.211    0.000    0.459    0.436
   .asr_intr_cmp_0    0.904    0.012   75.005    0.000    0.904    0.846
   .asr_nxdp_cmp_2    0.323    0.006   51.810    0.000    0.323    0.314
   .asr_wthdp_cm_2    0.475    0.008   60.560    0.000    0.475    0.461
   .asr_soma_cmp_2    0.549    0.009   64.028    0.000    0.549    0.550
   .asr_thprb_cm_2    0.419    0.007   62.287    0.000    0.419    0.416
   .asr_ttprb_cm_2    0.384    0.006   61.451    0.000    0.384    0.404
   .asr_rlbrk_cm_2    0.612    0.009   67.051    0.000    0.612    0.599
   .asr_ggrss_cm_2    0.445    0.007   62.977    0.000    0.445    0.435
   .asr_intr_cmp_2    0.827    0.011   72.172    0.000    0.827    0.838
   .asr_nxdp_cmp_4    0.333    0.007   49.265    0.000    0.333    0.337
   .asr_wthdp_cm_4    0.452    0.008   56.612    0.000    0.452    0.467
   .asr_soma_cmp_4    0.543    0.009   59.868    0.000    0.543    0.565
   .asr_thprb_cm_4    0.393    0.007   57.779    0.000    0.393    0.418
   .asr_ttprb_cm_4    0.419    0.007   58.854    0.000    0.419    0.443
   .asr_rlbrk_cm_4    0.571    0.009   62.336    0.000    0.571    0.600
   .asr_ggrss_cm_4    0.428    0.007   58.944    0.000    0.428    0.444
   .asr_intr_cmp_4    0.813    0.012   67.937    0.000    0.813    0.846
   .a_i               0.617    0.012   49.410    0.000    1.000    1.000
   .a_s               0.063    0.003   19.556    0.000    0.999    0.999
   .g_etaB            0.012    0.002    5.346    0.000    0.075    0.075
   .g_eta2            0.008    0.002    5.216    0.000    0.048    0.048
   .g_eta4            0.017    0.002    8.206    0.000    0.088    0.088
   .g_eta6            0.045    0.004   11.354    0.000    0.184    0.184
   .flanker_0         0.686    0.010   68.063    0.000    0.686    0.809
   .flanker_2         0.467    0.009   54.453    0.000    0.467    0.734
   .flanker_4         0.436    0.009   49.484    0.000    0.436    0.691
   .flanker_6         0.418    0.011   38.717    0.000    0.418    0.631
   .pattern_0         0.336    0.006   52.203    0.000    0.336    0.581
   .pattern_2         0.338    0.008   44.906    0.000    0.338    0.572
   .pattern_4         0.385    0.009   42.618    0.000    0.385    0.570
   .pattern_6         0.366    0.011   32.821    0.000    0.366    0.502
   .picture_0         0.654    0.009   73.392    0.000    0.654    0.918
   .picture_2         0.734    0.011   69.178    0.000    0.734    0.924
   .picture_4         1.056    0.016   66.200    0.000    1.056    0.938
   .picture_6         1.036    0.022   47.855    0.000    1.036    0.922
   .picvocab_0        0.562    0.008   68.934    0.000    0.562    0.800
   .picvocab_2        0.619    0.009   66.205    0.000    0.619    0.809
   .picvocab_4        0.687    0.011   63.036    0.000    0.687    0.803
   .picvocab_6        0.662    0.013   49.264    0.000    0.662    0.758
   .reading_0         0.576    0.008   68.325    0.000    0.576    0.786
   .reading_2         0.550    0.008   64.901    0.000    0.550    0.771
   .reading_4         0.665    0.011   61.995    0.000    0.665    0.780
   .reading_6         0.705    0.015   47.899    0.000    0.705    0.750
   .g_i               0.150    0.004   35.905    0.000    0.997    0.997
   .g_s               0.003    0.001    4.112    0.000    0.999    0.999
   .p_i               0.366    0.009   39.484    0.000    0.567    0.567
   .p_s               0.232    0.017   13.505    0.000    0.608    0.608
   .p_q               0.026    0.002   14.464    0.000    0.776    0.776
   .Int_comp_0        0.180    0.007   26.067    0.000    0.180    0.218
   .Int_comp_1        0.280    0.005   58.337    0.000    0.280    0.315
   .Int_comp_2        0.287    0.005   56.500    0.000    0.287    0.301
   .Int_comp_3        0.306    0.006   53.803    0.000    0.306    0.293
   .Int_comp_4        0.320    0.006   52.464    0.000    0.320    0.285
   .Int_comp_5        0.366    0.008   47.002    0.000    0.366    0.292
   .Int_comp_6        0.247    0.013   18.772    0.000    0.247    0.187

R-Square:
                   Estimate
    a_etaB            0.851
    a_eta2            0.739
    a_eta4            0.841
    asr_nxdp_cmp_0    0.712
    asr_wthdp_cm_0    0.544
    asr_soma_cmp_0    0.462
    asr_thprb_cm_0    0.557
    asr_ttprb_cm_0    0.587
    asr_rlbrk_cm_0    0.386
    asr_ggrss_cm_0    0.564
    asr_intr_cmp_0    0.154
    asr_nxdp_cmp_2    0.686
    asr_wthdp_cm_2    0.539
    asr_soma_cmp_2    0.450
    asr_thprb_cm_2    0.584
    asr_ttprb_cm_2    0.596
    asr_rlbrk_cm_2    0.401
    asr_ggrss_cm_2    0.565
    asr_intr_cmp_2    0.162
    asr_nxdp_cmp_4    0.663
    asr_wthdp_cm_4    0.533
    asr_soma_cmp_4    0.435
    asr_thprb_cm_4    0.582
    asr_ttprb_cm_4    0.557
    asr_rlbrk_cm_4    0.400
    asr_ggrss_cm_4    0.556
    asr_intr_cmp_4    0.154
    a_i               0.000
    a_s               0.001
    g_etaB            0.925
    g_eta2            0.952
    g_eta4            0.912
    g_eta6            0.816
    flanker_0         0.191
    flanker_2         0.266
    flanker_4         0.309
    flanker_6         0.369
    pattern_0         0.419
    pattern_2         0.428
    pattern_4         0.430
    pattern_6         0.498
    picture_0         0.082
    picture_2         0.076
    picture_4         0.062
    picture_6         0.078
    picvocab_0        0.200
    picvocab_2        0.191
    picvocab_4        0.197
    picvocab_6        0.242
    reading_0         0.214
    reading_2         0.229
    reading_4         0.220
    reading_6         0.250
    g_i               0.003
    g_s               0.001
    p_i               0.433
    p_s               0.392
    p_q               0.224
    Int_comp_0        0.782
    Int_comp_1        0.685
    Int_comp_2        0.699
    Int_comp_3        0.707
    Int_comp_4        0.715
    Int_comp_5        0.708
    Int_comp_6        0.813

Result summary

Model fit indices

lapply(
  c(
    "pgcm_pga6_sex_result.rds",
    "pgcm_Ext_pga6_sex_result.rds",
    "pgcm_Int_pga6_sex_result.rds"
  ),
  function(f) {
    readRDS(f)$fit[c(
      "chisq", "df", "pvalue",
      "cfi.robust", "tli.robust",
      "rmsea.robust", "rmsea.ci.lower.robust",
      "rmsea.ci.upper.robust", "srmr"
    )]
  }
) %>%
  do.call(rbind, .) %>%
  round(3) %>%
  data.frame(model = c("pc", "Ext", "Int"), ., row.names = NULL) %>%
  knitr::kable()
model chisq df pvalue cfi.robust tli.robust rmsea.robust rmsea.ci.lower.robust rmsea.ci.upper.robust srmr
pc 41616.23 4573 0 0.952 0.947 0.030 0.030 0.030 0.056
Ext 14404.05 1186 0 0.954 0.949 0.037 0.036 0.037 0.049
Int 14826.96 1186 0 0.952 0.946 0.037 0.037 0.038 0.050

Result

model_list <- c(
  "pgcm_pga6_sex_model.rds",
  "pgcm_Ext_pga6_sex_model.rds",
  "pgcm_Int_pga6_sex_model.rds"
)

# combine all significant results

final.pga.sex.result <- data.frame()

for (a in 1:3) {
  final.pga.sex.result <- final.pga.sex.result %>%
    rbind(
      readRDS(paste0(model_list[a])) %>%
        standardizedSolution() %>%
        filter(op == "~") %>%
        filter(rhs != "dummy_sex") %>%
        mutate(label = str_sub(model_list[a], 6, 8))
    )
}

final.pga.sex.result %>%
  mutate(sig = case_when(
    pvalue < .001 ~ "***",
    pvalue < .01 ~ "**",
    pvalue < .05 ~ "*",
    pvalue >= .05 ~ ""
  )) %>%
  mutate(
    std.lv = round(est.std, 3),
    effsize = paste0(std.lv, " [", round(ci.lower, 3), ",", round(ci.upper, 3), "]")
  ) %>%
  select(lhs, op, rhs, label, effsize) %>%
  pivot_wider(
    names_from = label,
    values_from = effsize
  ) %>%
  select(lhs, op, rhs, Int, Ext, pga) %>%
  arrange(desc(rhs)) %>%
  knitr::kable()
lhs op rhs Int Ext pga
p_s ~ g_s -0.032 [-0.127,0.062] -0.225 [-0.356,-0.094] -0.103 [-0.2,-0.006]
p_q ~ g_s 0.069 [-0.047,0.184] 0.189 [0.047,0.33] 0.103 [-0.011,0.218]
p_i ~ g_i -0.013 [-0.034,0.008] -0.143 [-0.165,-0.122] -0.149 [-0.17,-0.128]
p_s ~ g_i 0.084 [0.037,0.131] 0.123 [0.042,0.203] 0.082 [0.031,0.132]
p_q ~ g_i -0.094 [-0.152,-0.036] -0.104 [-0.185,-0.023] -0.056 [-0.114,0.002]
p_s ~ a_s 0.649 [0.597,0.701] 0.625 [0.57,0.68] 0.76 [0.704,0.816]
p_q ~ a_s -0.489 [-0.548,-0.43] -0.525 [-0.586,-0.463] -0.65 [-0.712,-0.587]
p_i ~ a_i 0.658 [0.642,0.674] 0.555 [0.538,0.572] 0.692 [0.676,0.707]
p_s ~ a_i 0.114 [0.075,0.154] 0.002 [-0.038,0.042] 0.026 [-0.015,0.068]
p_q ~ a_i -0.082 [-0.125,-0.038] -0.061 [-0.105,-0.018] -0.115 [-0.161,-0.07]

Visualization

simple_slope_lgc <- function(
    fit,
    focal,
    time = seq(0, 3, by = 0.5),
    covariates = c("g_i", "g_s", "a_i", "a_s", "dummy_sex")) {
  pe <- lavaan::parameterEstimates(fit)

  get_pe <- function(lhs, op, rhs = "") {
    out <- pe[pe$lhs == lhs & pe$op == op & pe$rhs == rhs, "est"]
    if (length(out) != 1) {
      stop(sprintf(
        "Expected 1 estimate for %s %s %s, got %d",
        lhs, op, rhs, length(out)
      ))
    }
    out
  }

  get_mean <- function(var, sex_mean) {
    get_pe(var, "~1") +
      get_pe(var, "~", "dummy_sex") * sex_mean
  }

  get_sd <- function(var) {
    sqrt(get_pe(var, "~~", var))
  }

  latent_base <- function(lhs, means) {
    intercept <- get_pe(lhs, "~1")

    effects <- sapply(names(means), function(v) {
      idx <- pe$lhs == lhs & pe$op == "~" & pe$rhs == v
      if (!any(idx)) {
        return(0)
      } # path fixed to 0 or not specified
      pe$est[idx] * means[[v]]
    })

    intercept + sum(effects)
  }

  if (!"dummy_sex" %in% colnames(lavaan::lavInspect(fit, "data"))) {
    stop("dummy_sex not found in model data")
  }

  sex_mean <- mean(lavaan::lavInspect(fit, "data")[, "dummy_sex"])

  means <- setNames(
    lapply(covariates, function(v) {
      if (v == "dummy_sex") sex_mean else get_mean(v, sex_mean)
    }),
    covariates
  )

  if (!focal %in% names(means)) {
    stop("focal predictor not found in covariates")
  }

  sd_focal <- get_sd(focal)

  focal_levels <- list(
    Low  = means[[focal]] - sd_focal,
    Mid  = means[[focal]],
    High = means[[focal]] + sd_focal
  )

  ## Build trajectories

  out <- lapply(names(focal_levels), function(level) {
    means[[focal]] <- focal_levels[[level]]

    p_i <- latent_base("p_i", means)
    p_s <- latent_base("p_s", means)
    p_q <- latent_base("p_q", means)

    data.frame(
      time  = time,
      y     = p_i + p_s * time + p_q * time^2,
      level = level
    )
  })

  do.call(rbind, out) %>%
    ggplot(aes(time, y, color = level)) +
    geom_line(linewidth = 2) +
    theme_bw() + # changing style/background
    # setting the x-axis with breaks and labels
    scale_x_continuous(
      breaks = seq(0, 3, by = .5),
      labels = paste0(10:16)
    ) +
    scale_y_continuous(
      limits = c(-0.7, 0.7),
      breaks = c(-0.6, -0.3, 0, 0.3, .6),
      labels = signs::signs_format(trim_leading_zeros = TRUE)
    ) +
    scale_color_manual(
      values = c(
        "High" = "red",
        "Mid"  = "lightgreen",
        "Low"  = "blue"
      ),
      breaks = c("High", "Mid", "Low")
    ) +
    theme(
      axis.title.y = element_blank(),
      axis.title.x = element_blank(),
      plot.title = element_text(hjust = 0.5)
    )
}

p, int, ext result plots

ggpubr::annotate_figure(
  ggpubr::annotate_figure(
    ggpubr::ggarrange(
      simple_slope_lgc(readRDS("pgcm_pga6_sex_model.rds"), "g_i") +
        labs(color = "Level of EV"),
      simple_slope_lgc(readRDS("pgcm_pga6_sex_model.rds"), "g_s"),
      simple_slope_lgc(readRDS("pgcm_pga6_sex_model.rds"), "a_i"),
      simple_slope_lgc(readRDS("pgcm_pga6_sex_model.rds"), "a_s"),
      simple_slope_lgc(readRDS("pgcm_Int_pga6_sex_model.rds"), "g_i"),
      simple_slope_lgc(readRDS("pgcm_Int_pga6_sex_model.rds"), "g_s"),
      simple_slope_lgc(readRDS("pgcm_Int_pga6_sex_model.rds"), "a_i"),
      simple_slope_lgc(readRDS("pgcm_Int_pga6_sex_model.rds"), "a_s"),
      simple_slope_lgc(readRDS("pgcm_Ext_pga6_sex_model.rds"), "g_i"),
      simple_slope_lgc(readRDS("pgcm_Ext_pga6_sex_model.rds"), "g_s"),
      simple_slope_lgc(readRDS("pgcm_Ext_pga6_sex_model.rds"), "a_i"),
      simple_slope_lgc(readRDS("pgcm_Ext_pga6_sex_model.rds"), "a_s"),
      common.legend = TRUE,
      legend = "bottom",
      ncol = 4,
      nrow = 3
    ),
    top = ggpubr::text_grob("g intercept                    g slope                     pp intercept                   pp slope", hjust = .54, size = 10),
    bottom = ggpubr::text_grob("Age (Years Old)", size = 10),
    left = ggpubr::text_grob("Externalizing         Internalizing              p factor", size = 10, rot = 90)
  ),
  top = ggpubr::text_grob("Explanatory Variables (EV)", face = "bold", size = 10),
  left = ggpubr::text_grob("Response Variables (RV)", face = "bold", size = 10, rot = 90)
)

simple_slope_lgc(readRDS("pgcm_pga6_sex_model.rds"), "g_i") +
  theme(
    text = element_text(size = 60),
    legend.position = "none"
  ) +
  geom_line(linewidth = 3)

simple_slope_lgc(readRDS("pgcm_pga6_sex_model.rds"), "g_s") +
  theme(
    text = element_text(size = 60),
    legend.position = "none"
  ) +
  geom_line(linewidth = 3)

simple_slope_lgc(readRDS("pgcm_pga6_sex_model.rds"), "a_i") +
  theme(
    text = element_text(size = 60),
    legend.position = "none"
  ) +
  geom_line(linewidth = 3)

simple_slope_lgc(readRDS("pgcm_pga6_sex_model.rds"), "a_s") +
  theme(
    text = element_text(size = 60),
    legend.position = "none"
  ) +
  geom_line(linewidth = 3)

simple_slope_lgc(readRDS("pgcm_Int_pga6_sex_model.rds"), "g_i") +
  theme(
    text = element_text(size = 60),
    legend.position = "none"
  ) +
  geom_line(linewidth = 3)

simple_slope_lgc(readRDS("pgcm_Int_pga6_sex_model.rds"), "g_s") +
  theme(
    text = element_text(size = 60),
    legend.position = "none"
  ) +
  geom_line(linewidth = 3)

simple_slope_lgc(readRDS("pgcm_Int_pga6_sex_model.rds"), "a_i") +
  theme(
    text = element_text(size = 60),
    legend.position = "none"
  ) +
  geom_line(linewidth = 3)

simple_slope_lgc(readRDS("pgcm_Int_pga6_sex_model.rds"), "a_s") +
  theme(
    text = element_text(size = 60),
    legend.position = "none"
  ) +
  geom_line(linewidth = 3)

simple_slope_lgc(readRDS("pgcm_Ext_pga6_sex_model.rds"), "g_i") +
  theme(
    text = element_text(size = 60),
    legend.position = "none"
  ) +
  geom_line(linewidth = 3)

simple_slope_lgc(readRDS("pgcm_Ext_pga6_sex_model.rds"), "g_s") +
  theme(
    text = element_text(size = 60),
    legend.position = "none"
  ) +
  geom_line(linewidth = 3)

simple_slope_lgc(readRDS("pgcm_Ext_pga6_sex_model.rds"), "a_i") +
  theme(
    text = element_text(size = 60),
    legend.position = "none"
  ) +
  geom_line(linewidth = 3)

simple_slope_lgc(readRDS("pgcm_Ext_pga6_sex_model.rds"), "a_s") +
  theme(
    text = element_text(size = 60),
    legend.position = "none"
  ) +
  geom_line(linewidth = 3)

Commonality analysis

Our main models are models explained by pp and g

To determine how much variance in pc is uniquely explained by g, uniquely explained by pp, and jointly explained by both, we need two reduced models:

  1. model explained by g only and
  2. model explained by pp only

These models allow calculation of Unique g, Unique pp, and their Shared (Common) variance in explaining children’s psychopathology, externalizing and internalizing symptoms.

p factor model

pc ~ g model with sex

Children’s psychopathology (pc) was regressed on children’s cognitive functioning (g), with sex as a covariate.

model fit
pg6.sex.model <- "
               # second-order pc factor
               #factor loadings (with constraints)
               p_etaB =~ 1*anxdep_comp_0+
                       lambda_CW*withdep_comp_0+
                       lambda_CS*soma_comp_0+
                       lambda_CC*socprob_comp_0+
                       lambda_CH*thouprob_comp_0+
                       lambda_CA*attprob_comp_0+
                       lambda_CR*rulebreak_comp_0+
                       lambda_CG*aggress_comp_0
               p_eta1 =~ 1*anxdep_comp_1+
                       lambda_CW*withdep_comp_1+
                       lambda_CS*soma_comp_1+
                       lambda_CC*socprob_comp_1+
                       lambda_CH*thouprob_comp_1+
                       lambda_CA*attprob_comp_1+
                       lambda_CR*rulebreak_comp_1+
                       lambda_CG*aggress_comp_1
               p_eta2 =~ 1*anxdep_comp_2+
                       lambda_CW*withdep_comp_2+
                       lambda_CS*soma_comp_2+
                       lambda_CC*socprob_comp_2+
                       lambda_CH*thouprob_comp_2+
                       lambda_CA*attprob_comp_2+
                       lambda_CR*rulebreak_comp_2+
                       lambda_CG*aggress_comp_2
               p_eta3 =~ 1*anxdep_comp_3+
                       lambda_CW*withdep_comp_3+
                       lambda_CS*soma_comp_3+
                       lambda_CC*socprob_comp_3+
                       lambda_CH*thouprob_comp_3+
                       lambda_CA*attprob_comp_3+
                       lambda_CR*rulebreak_comp_3+
                       lambda_CG*aggress_comp_3
               p_eta4 =~ 1*anxdep_comp_4+
                       lambda_CW*withdep_comp_4+
                       lambda_CS*soma_comp_4+
                       lambda_CC*socprob_comp_4+
                       lambda_CH*thouprob_comp_4+
                       lambda_CA*attprob_comp_4+
                       lambda_CR*rulebreak_comp_4+
                       lambda_CG*aggress_comp_4
               p_eta5 =~ 1*anxdep_comp_5+
                       lambda_CW*withdep_comp_5+
                       lambda_CS*soma_comp_5+
                       lambda_CC*socprob_comp_5+
                       lambda_CH*thouprob_comp_5+
                       lambda_CA*attprob_comp_5+
                       lambda_CR*rulebreak_comp_5+
                       lambda_CG*aggress_comp_5
               p_eta6 =~ 1*anxdep_comp_6+
                       lambda_CW*withdep_comp_6+
                       lambda_CS*soma_comp_6+
                       lambda_CC*socprob_comp_6+
                       lambda_CH*thouprob_comp_6+
                       lambda_CA*attprob_comp_6+
                       lambda_CR*rulebreak_comp_6+
                       lambda_CG*aggress_comp_6

              #latent variable variances
                      p_etaB~~NA*p_etaB
                      p_eta1~~NA*p_eta1
                      p_eta2~~NA*p_eta2
                      p_eta3~~NA*p_eta3
                      p_eta4~~NA*p_eta4
                      p_eta5~~NA*p_eta5
                      p_eta6~~NA*p_eta6

              #unique variances # No need to constrict these
                      anxdep_comp_0~~anxdep_comp_0
                      withdep_comp_0~~withdep_comp_0
                      soma_comp_0~~soma_comp_0
                      socprob_comp_0~~socprob_comp_0
                      thouprob_comp_0~~thouprob_comp_0
                      attprob_comp_0~~attprob_comp_0
                      rulebreak_comp_0~~rulebreak_comp_0
                      aggress_comp_0~~aggress_comp_0
                      anxdep_comp_1~~anxdep_comp_1
                      withdep_comp_1~~withdep_comp_1
                      soma_comp_1~~soma_comp_1
                      socprob_comp_1~~socprob_comp_1
                      thouprob_comp_1~~thouprob_comp_1
                      attprob_comp_1~~attprob_comp_1
                      rulebreak_comp_1~~rulebreak_comp_1
                      aggress_comp_1~~aggress_comp_1

                      anxdep_comp_2~~anxdep_comp_2
                      withdep_comp_2~~withdep_comp_2
                      soma_comp_2~~soma_comp_2
                      socprob_comp_2~~socprob_comp_2
                      thouprob_comp_2~~thouprob_comp_2
                      attprob_comp_2~~attprob_comp_2
                      rulebreak_comp_2~~rulebreak_comp_2
                      aggress_comp_2~~aggress_comp_2

                      anxdep_comp_3~~anxdep_comp_3
                      withdep_comp_3~~withdep_comp_3
                      soma_comp_3~~soma_comp_3
                      socprob_comp_3~~socprob_comp_3
                      thouprob_comp_3~~thouprob_comp_3
                      attprob_comp_3~~attprob_comp_3
                      rulebreak_comp_3~~rulebreak_comp_3
                      aggress_comp_3~~aggress_comp_3

                      anxdep_comp_4~~anxdep_comp_4
                      withdep_comp_4~~withdep_comp_4
                      soma_comp_4~~soma_comp_4
                      socprob_comp_4~~socprob_comp_4
                      thouprob_comp_4~~thouprob_comp_4
                      attprob_comp_4~~attprob_comp_4
                      rulebreak_comp_4~~rulebreak_comp_4
                      aggress_comp_4~~aggress_comp_4

                      anxdep_comp_5~~anxdep_comp_5
                      withdep_comp_5~~withdep_comp_5
                      soma_comp_5~~soma_comp_5
                      socprob_comp_5~~socprob_comp_5
                      thouprob_comp_5~~thouprob_comp_5
                      attprob_comp_5~~attprob_comp_5
                      rulebreak_comp_5~~rulebreak_comp_5
                      aggress_comp_5~~aggress_comp_5

                      anxdep_comp_6~~anxdep_comp_6
                      withdep_comp_6~~withdep_comp_6
                      soma_comp_6~~soma_comp_6
                      socprob_comp_6~~socprob_comp_6
                      thouprob_comp_6~~thouprob_comp_6
                      attprob_comp_6~~attprob_comp_6
                      rulebreak_comp_6~~rulebreak_comp_6
                      aggress_comp_6~~aggress_comp_6

              #unique covariances
                      # Scores arcoss times
                      anxdep_comp_0~~anxdep_comp_1 + anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_1~~anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_2~~anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_3~~anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_4~~anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_5~~anxdep_comp_6

                      withdep_comp_0~~withdep_comp_1 + withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_1~~withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_2~~withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_3~~withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_4~~withdep_comp_5 + withdep_comp_6
                      withdep_comp_5~~withdep_comp_6

                      soma_comp_0~~soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_1~~soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_2~~soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_3~~soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_4~~soma_comp_5 + soma_comp_6
                      soma_comp_5~~soma_comp_6

                      socprob_comp_0~~socprob_comp_1 + socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_1~~socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_2~~socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_3~~socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_4~~socprob_comp_5 + socprob_comp_6
                      socprob_comp_5~~socprob_comp_6

                      thouprob_comp_0~~thouprob_comp_1 + thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_1~~thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_2~~thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_3~~thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_4~~thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_5~~thouprob_comp_6

                      attprob_comp_0~~attprob_comp_1 + attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_1~~attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_2~~attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_3~~attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_4~~attprob_comp_5 + attprob_comp_6
                      attprob_comp_5~~attprob_comp_6

                      rulebreak_comp_0~~rulebreak_comp_1 + rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_1~~rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_2~~rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_3~~rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_4~~rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_5~~rulebreak_comp_6

                      aggress_comp_0~~aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_1~~aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_2~~aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_3~~aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_4~~aggress_comp_5 + aggress_comp_6
                      aggress_comp_5~~aggress_comp_6

                      # Internalizeing subscale covariances
                      anxdep_comp_0~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_1~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_2~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_3~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_4~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_5~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_6~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6

                      withdep_comp_0~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_1~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_2~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_3~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_4~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_5~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_6~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6

                      # Externalizeing subscale covariances
                      rulebreak_comp_0~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_1~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_2~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_3~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_4~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_5~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_6~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6

              #observed variable intercepts
                      anxdep_comp_0~tau_CX*1
                      anxdep_comp_1~tau_CX*1
                      anxdep_comp_2~tau_CX*1
                      anxdep_comp_3~tau_CX*1
                      anxdep_comp_4~tau_CX*1
                      anxdep_comp_5~tau_CX*1
                      anxdep_comp_6~tau_CX*1
                      withdep_comp_0~tau_CW*1
                      withdep_comp_1~tau_CW*1
                      withdep_comp_2~tau_CW*1
                      withdep_comp_3~tau_CW*1
                      withdep_comp_4~tau_CW*1
                      withdep_comp_5~tau_CW*1
                      withdep_comp_6~tau_CW*1
                      soma_comp_0~tau_CS*1
                      soma_comp_1~tau_CS*1
                      soma_comp_2~tau_CS*1
                      soma_comp_3~tau_CS*1
                      soma_comp_4~tau_CS*1
                      soma_comp_5~tau_CS*1
                      soma_comp_6~tau_CS*1
                      socprob_comp_0~tau_CP*1
                      socprob_comp_1~tau_CP*1
                      socprob_comp_2~tau_CP*1
                      socprob_comp_3~tau_CP*1
                      socprob_comp_4~tau_CP*1
                      socprob_comp_5~tau_CP*1
                      socprob_comp_6~tau_CP*1
                      thouprob_comp_0~tau_CH*1
                      thouprob_comp_1~tau_CH*1
                      thouprob_comp_2~tau_CH*1
                      thouprob_comp_3~tau_CH*1
                      thouprob_comp_4~tau_CH*1
                      thouprob_comp_5~tau_CH*1
                      thouprob_comp_6~tau_CH*1
                      attprob_comp_0~tau_CA*1
                      attprob_comp_1~tau_CA*1
                      attprob_comp_2~tau_CA*1
                      attprob_comp_3~tau_CA*1
                      attprob_comp_4~tau_CA*1
                      attprob_comp_5~tau_CA*1
                      attprob_comp_6~tau_CA*1
                      rulebreak_comp_0~tau_CR*1
                      rulebreak_comp_1~tau_CR*1
                      rulebreak_comp_2~tau_CR*1
                      rulebreak_comp_3~tau_CR*1
                      rulebreak_comp_4~tau_CR*1
                      rulebreak_comp_5~tau_CR*1
                      rulebreak_comp_6~tau_CR*1
                      aggress_comp_0~tau_CG*1
                      aggress_comp_1~tau_CG*1
                      aggress_comp_2~tau_CG*1
                      aggress_comp_3~tau_CG*1
                      aggress_comp_4~tau_CG*1
                      aggress_comp_5~tau_CG*1
                      aggress_comp_6~tau_CG*1

                       #latent basis model
                      p_i =~ 1*p_etaB + 1*p_eta1 + 1*p_eta2 + 1*p_eta3 + 1*p_eta4 + 1*p_eta5 + 1*p_eta6
                      p_s =~ 0*p_etaB + .5*p_eta1 + 1*p_eta2 + 1.5*p_eta3 + 2*p_eta4 + 2.5*p_eta5 + 3*p_eta6
                      p_q =~ 0*p_etaB + .25*p_eta1 + 1*p_eta2 + 2.25*p_eta3 + 4*p_eta4 + 6.25*p_eta5 + 9*p_eta6

                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q

                      p_i~~p_s + p_q
                      p_s~~p_q
                      p_i~1 + dummy_sex
                      p_s~1 + dummy_sex
                      p_q~1 + dummy_sex
                      p_etaB ~ 0*1
                      p_eta1 ~ 0*1
                      p_eta2 ~ 0*1
                      p_eta3 ~ 0*1
                      p_eta4 ~ 0*1
                      p_eta5 ~ 0*1
                      p_eta6 ~ 0*1

               # second-order g factor
               #factor loadings # S & S2
               g_etaB =~ 1*flanker_0+
                       lambda_R*pattern_0+
                       lambda_M*picture_0+
                       lambda_P*picvocab_0+
                       lambda_V*reading_0
               g_eta2 =~ 1*flanker_2+
                       lambda_R*pattern_2+
                       lambda_M*picture_2+
                       lambda_P*picvocab_2+
                       lambda_V*reading_2
               g_eta4 =~ 1*flanker_4+
                       lambda_R*pattern_4+
                       lambda_M*picture_4+
                       lambda_P*picvocab_4+
                       lambda_V*reading_4
               g_eta6 =~ 1*flanker_6+
                       lambda_R*pattern_6+
                       lambda_M*picture_6+
                       lambda_P*picvocab_6+
                       lambda_V*reading_6

              #latent variable variances
                       g_etaB~~NA*g_etaB
                       g_eta2~~NA*g_eta2
                       g_eta4~~NA*g_eta4
                       g_eta6~~NA*g_eta6

              #unique variances
                      flanker_0~~flanker_0
                      flanker_2~~flanker_2
                      flanker_4~~flanker_4
                      flanker_6~~flanker_6

                      pattern_0~~pattern_0
                      pattern_2~~pattern_2
                      pattern_4~~pattern_4
                      pattern_6~~pattern_6

                      picture_0~~picture_0
                      picture_2~~picture_2
                      picture_4~~picture_4
                      picture_6~~picture_6

                      picvocab_0~~picvocab_0
                      picvocab_2~~picvocab_2
                      picvocab_4~~picvocab_4
                      picvocab_6~~picvocab_6

                      reading_0~~reading_0
                      reading_2~~reading_2
                      reading_4~~reading_4
                      reading_6~~reading_6

              #unique covariances
                      # Task across times
                      flanker_0~~flanker_2 + flanker_4 + flanker_6
                      flanker_2~~flanker_4 + flanker_6
                      flanker_4~~flanker_6

                      pattern_0~~pattern_2 + pattern_4 + pattern_6
                      pattern_2~~pattern_4 + pattern_6
                      pattern_4~~pattern_6

                      picture_0~~picture_2 + picture_4 + picture_6
                      picture_2~~picture_4 + picture_6
                      picture_4~~picture_6

                      picvocab_0~~picvocab_2 + picvocab_4 + picvocab_6
                      picvocab_2~~picvocab_4 + picvocab_6
                      picvocab_4~~picvocab_6

                      reading_0~~reading_2 + reading_4 + reading_6
                      reading_2~~reading_4 + reading_6
                      reading_4~~reading_6

                      #Language
                      picvocab_0~~reading_0 + reading_2 + reading_4 + reading_6
                      picvocab_2~~reading_2 + reading_0 + reading_4 + reading_6
                      picvocab_4~~reading_4 + reading_0 + reading_2 + reading_6
                      picvocab_6~~reading_6 + reading_0 + reading_2 + reading_4

              #observed variable intercepts # S & S2
                      flanker_0~tau_S*1
                      flanker_2~tau_S*1
                      flanker_4~tau_S*1
                      flanker_6~tau_S*1
                      pattern_0~tau_R*1
                      pattern_2~tau_R*1
                      pattern_4~tau_R*1
                      pattern_6~tau_R*1
                      picture_0~tau_M*1
                      picture_2~tau_M*1
                      picture_4~tau_M*1
                      picture_6~tau_M*1
                      picvocab_0~tau_P*1
                      picvocab_2~tau_P*1
                      picvocab_4~tau_P*1
                      picvocab_6~tau_P*1
                      reading_0~tau_V*1
                      reading_2~tau_V*1
                      reading_4~tau_V*1
                      reading_6~tau_V*1

                      #latent basis model
                      g_i =~    1*g_etaB + 1*g_eta2 + 1*g_eta4 + 1*g_eta6
                      g_s =~    0*g_etaB + 1*g_eta2 + 2*g_eta4 + 3*g_eta6

                      g_i~~NA*g_i
                      g_s~~NA*g_s

                      g_i~~g_s

                      g_i~1 + dummy_sex
                      g_s~1 + dummy_sex

                      g_etaB~0*1
                      g_eta2~0*1
                      g_eta4~0*1
                      g_eta6~0*1

                      # regression
                      p_i ~ g_i
                      p_s ~ g_i + g_s
                      p_q ~ g_i + g_s"

lavaan(pg6.sex.model,
  data = readRDS("pga6_all_data_sex.rds"),
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = T,
  std.lv = T
) %>%
  saveRDS("pgcm_pg6_sex_model.rds")
result
readRDS("pgcm_pg6_sex_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    fm.args = list(robust = F),
    rsq = T
  ) %>%
  saveRDS("pgcm_pg6_sex_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pgcm_pg6_sex_model.rds"), "cor.lv"))$value
 [1] 6.572334732 4.260763112 2.183223001 0.891955294 0.726138815 0.224626098
 [7] 0.220451884 0.212437158 0.188733315 0.155302836 0.144295553 0.081377921
[13] 0.058857642 0.056605325 0.016026348 0.006870966
readRDS("pgcm_pg6_sex_result.rds")
lavaan 0.6-19 ended normally after 342 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       662
  Number of equality constraints                   121

  Number of observations                         11867
  Number of missing patterns                       683

Model Test User Model:
                                                       
  Test statistic                              28183.800
  Degrees of freedom                               2537
  P-value (Chi-square)                            0.000

Model Test Baseline Model:

  Test statistic                            595803.794
  Degrees of freedom                              2926
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.957
  Tucker-Lewis Index (TLI)                       0.950
                                                      
  Robust Comparative Fit Index (CFI)             0.954
  Robust Tucker-Lewis Index (TLI)                0.947

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -692493.613
  Loglikelihood unrestricted model (H1)    -678401.713
                                                      
  Akaike (AIC)                             1386069.225
  Bayesian (BIC)                           1390062.626
  Sample-size adjusted Bayesian (SABIC)    1388343.390

Root Mean Square Error of Approximation:

  RMSEA                                          0.029
  90 Percent confidence interval - lower         0.029
  90 Percent confidence interval - upper         0.029
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.035
  90 Percent confidence interval - lower         0.034
  90 Percent confidence interval - upper         0.035
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.060

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_etaB =~                                                             
    anxd__0           1.000                               0.690    0.687
    wthd__0 (lm_W)    0.908    0.007  137.238    0.000    0.627    0.698
    sm_cm_0 (lm_S)    0.774    0.007  106.984    0.000    0.534    0.536
    scpr__0 (lm_C)    1.213    0.008  153.774    0.000    0.836    0.791
    thpr__0 (lm_H)    1.197    0.008  152.118    0.000    0.825    0.791
    attp__0 (lm_A)    1.088    0.008  144.369    0.000    0.750    0.749
    rlbr__0 (lm_R)    1.012    0.006  162.999    0.000    0.698    0.713
    aggr__0 (lm_G)    1.186    0.007  159.162    0.000    0.818    0.771
  p_eta1 =~                                                             
    anxd__1           1.000                               0.676    0.674
    wthd__1 (lm_W)    0.908    0.007  137.238    0.000    0.614    0.679
    sm_cm_1 (lm_S)    0.774    0.007  106.984    0.000    0.523    0.527
    scpr__1 (lm_C)    1.213    0.008  153.774    0.000    0.820    0.796
    thpr__1 (lm_H)    1.197    0.008  152.118    0.000    0.809    0.781
    attp__1 (lm_A)    1.088    0.008  144.369    0.000    0.736    0.745
    rlbr__1 (lm_R)    1.012    0.006  162.999    0.000    0.685    0.705
    aggr__1 (lm_G)    1.186    0.007  159.162    0.000    0.802    0.774
  p_eta2 =~                                                             
    anxd__2           1.000                               0.670    0.681
    wthd__2 (lm_W)    0.908    0.007  137.238    0.000    0.609    0.637
    sm_cm_2 (lm_S)    0.774    0.007  106.984    0.000    0.519    0.540
    scpr__2 (lm_C)    1.213    0.008  153.774    0.000    0.813    0.809
    thpr__2 (lm_H)    1.197    0.008  152.118    0.000    0.802    0.796
    attp__2 (lm_A)    1.088    0.008  144.369    0.000    0.729    0.751
    rlbr__2 (lm_R)    1.012    0.006  162.999    0.000    0.678    0.697
    aggr__2 (lm_G)    1.186    0.007  159.162    0.000    0.795    0.778
  p_eta3 =~                                                             
    anxd__3           1.000                               0.659    0.665
    wthd__3 (lm_W)    0.908    0.007  137.238    0.000    0.599    0.583
    sm_cm_3 (lm_S)    0.774    0.007  106.984    0.000    0.510    0.533
    scpr__3 (lm_C)    1.213    0.008  153.774    0.000    0.800    0.818
    thpr__3 (lm_H)    1.197    0.008  152.118    0.000    0.789    0.802
    attp__3 (lm_A)    1.088    0.008  144.369    0.000    0.717    0.747
    rlbr__3 (lm_R)    1.012    0.006  162.999    0.000    0.668    0.682
    aggr__3 (lm_G)    1.186    0.007  159.162    0.000    0.782    0.778
  p_eta4 =~                                                             
    anxd__4           1.000                               0.655    0.673
    wthd__4 (lm_W)    0.908    0.007  137.238    0.000    0.595    0.545
    sm_cm_4 (lm_S)    0.774    0.007  106.984    0.000    0.507    0.506
    scpr__4 (lm_C)    1.213    0.008  153.774    0.000    0.794    0.822
    thpr__4 (lm_H)    1.197    0.008  152.118    0.000    0.784    0.809
    attp__4 (lm_A)    1.088    0.008  144.369    0.000    0.713    0.759
    rlbr__4 (lm_R)    1.012    0.006  162.999    0.000    0.663    0.624
    aggr__4 (lm_G)    1.186    0.007  159.162    0.000    0.777    0.796
  p_eta5 =~                                                             
    anxd__5           1.000                               0.647    0.658
    wthd__5 (lm_W)    0.908    0.007  137.238    0.000    0.587    0.522
    sm_cm_5 (lm_S)    0.774    0.007  106.984    0.000    0.500    0.468
    scpr__5 (lm_C)    1.213    0.008  153.774    0.000    0.784    0.822
    thpr__5 (lm_H)    1.197    0.008  152.118    0.000    0.774    0.783
    attp__5 (lm_A)    1.088    0.008  144.369    0.000    0.703    0.747
    rlbr__5 (lm_R)    1.012    0.006  162.999    0.000    0.655    0.559
    aggr__5 (lm_G)    1.186    0.007  159.162    0.000    0.767    0.792
  p_eta6 =~                                                             
    anxd__6           1.000                               0.616    0.661
    wthd__6 (lm_W)    0.908    0.007  137.238    0.000    0.559    0.519
    sm_cm_6 (lm_S)    0.774    0.007  106.984    0.000    0.476    0.447
    scpr__6 (lm_C)    1.213    0.008  153.774    0.000    0.747    0.830
    thpr__6 (lm_H)    1.197    0.008  152.118    0.000    0.737    0.803
    attp__6 (lm_A)    1.088    0.008  144.369    0.000    0.670    0.742
    rlbr__6 (lm_R)    1.012    0.006  162.999    0.000    0.623    0.530
    aggr__6 (lm_G)    1.186    0.007  159.162    0.000    0.730    0.803
  p_i =~                                                                
    p_etaB            1.000                               0.918    0.918
    p_eta1            1.000                               0.936    0.936
    p_eta2            1.000                               0.945    0.945
    p_eta3            1.000                               0.960    0.960
    p_eta4            1.000                               0.967    0.967
    p_eta5            1.000                               0.979    0.979
    p_eta6            1.000                               1.028    1.028
  p_s =~                                                                
    p_etaB            0.000                               0.000    0.000
    p_eta1            0.500                               0.284    0.284
    p_eta2            1.000                               0.574    0.574
    p_eta3            1.500                               0.875    0.875
    p_eta4            2.000                               1.174    1.174
    p_eta5            2.500                               1.487    1.487
    p_eta6            3.000                               1.874    1.874
  p_q =~                                                                
    p_etaB            0.000                               0.000    0.000
    p_eta1            0.250                               0.041    0.041
    p_eta2            1.000                               0.166    0.166
    p_eta3            2.250                               0.379    0.379
    p_eta4            4.000                               0.678    0.678
    p_eta5            6.250                               1.073    1.073
    p_eta6            9.000                               1.623    1.623
  g_etaB =~                                                             
    flnkr_0           1.000                               0.459    0.495
    pttrn_0 (lm_R)    1.012    0.006  162.999    0.000    0.465    0.611
    pictr_0 (lm_M)    0.540    0.008   67.724    0.000    0.248    0.294
    pcvcb_0 (lm_P)    0.838    0.007  122.172    0.000    0.385    0.460
    redng_0 (lm_V)    0.885    0.007  128.145    0.000    0.407    0.476
  g_eta2 =~                                                             
    flnkr_2           1.000                               0.466    0.575
    pttrn_2 (lm_R)    1.012    0.006  162.999    0.000    0.472    0.617
    pictr_2 (lm_M)    0.540    0.008   67.724    0.000    0.252    0.282
    pcvcb_2 (lm_P)    0.838    0.007  122.172    0.000    0.391    0.448
    redng_2 (lm_V)    0.885    0.007  128.145    0.000    0.413    0.490
  g_eta4 =~                                                             
    flnkr_4           1.000                               0.498    0.616
    pttrn_4 (lm_R)    1.012    0.006  162.999    0.000    0.504    0.613
    pictr_4 (lm_M)    0.540    0.008   67.724    0.000    0.269    0.254
    pcvcb_4 (lm_P)    0.838    0.007  122.172    0.000    0.418    0.453
    redng_4 (lm_V)    0.885    0.007  128.145    0.000    0.441    0.479
  g_eta6 =~                                                             
    flnkr_6           1.000                               0.552    0.645
    pttrn_6 (lm_R)    1.012    0.006  162.999    0.000    0.559    0.659
    pictr_6 (lm_M)    0.540    0.008   67.724    0.000    0.298    0.281
    pcvcb_6 (lm_P)    0.838    0.007  122.172    0.000    0.463    0.498
    redng_6 (lm_V)    0.885    0.007  128.145    0.000    0.489    0.507
  g_i =~                                                                
    g_etaB            1.000                               0.960    0.960
    g_eta2            1.000                               0.945    0.945
    g_eta4            1.000                               0.885    0.885
    g_eta6            1.000                               0.799    0.799
  g_s =~                                                                
    g_etaB            0.000                               0.000    0.000
    g_eta2            1.000                               0.111    0.111
    g_eta4            2.000                               0.207    0.207
    g_eta6            3.000                               0.280    0.280

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_i ~                                                                 
    dummy_sex         0.140    0.013   10.675    0.000    0.222    0.111
  p_s ~                                                                 
    dummy_sex        -0.046    0.013   -3.525    0.000   -0.119   -0.060
  p_q ~                                                                 
    dummy_sex        -0.008    0.004   -1.989    0.047   -0.075   -0.037
  g_i ~                                                                 
    dummy_sex        -0.034    0.011   -3.252    0.001   -0.078   -0.039
  g_s ~                                                                 
    dummy_sex         0.006    0.004    1.650    0.099    0.123    0.061
  p_i ~                                                                 
    g_i              -0.315    0.018  -17.149    0.000   -0.220   -0.220
  p_s ~                                                                 
    g_i               0.119    0.028    4.337    0.000    0.137    0.137
    g_s              -0.849    0.520   -1.633    0.102   -0.114   -0.114
  p_q ~                                                                 
    g_i              -0.024    0.009   -2.728    0.006   -0.096   -0.096
    g_s               0.251    0.168    1.498    0.134    0.117    0.117

Covariances:
                      Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .anxdep_comp_0 ~~                                                         
   .anxdep_comp_1        0.329    0.007   49.734    0.000    0.329    0.608
   .anxdep_comp_2        0.289    0.006   45.818    0.000    0.289    0.549
   .anxdep_comp_3        0.262    0.006   40.904    0.000    0.262    0.485
   .anxdep_comp_4        0.235    0.006   37.425    0.000    0.235    0.447
   .anxdep_comp_5        0.218    0.007   33.095    0.000    0.218    0.403
   .anxdep_comp_6        0.192    0.007   26.065    0.000    0.192    0.376
 .anxdep_comp_1 ~~                                                         
   .anxdep_comp_2        0.320    0.007   48.486    0.000    0.320    0.598
   .anxdep_comp_3        0.287    0.007   43.179    0.000    0.287    0.523
   .anxdep_comp_4        0.247    0.006   38.228    0.000    0.247    0.462
   .anxdep_comp_5        0.242    0.007   35.644    0.000    0.242    0.442
   .anxdep_comp_6        0.208    0.008   27.336    0.000    0.208    0.401
 .anxdep_comp_2 ~~                                                         
   .anxdep_comp_3        0.332    0.007   49.191    0.000    0.332    0.621
   .anxdep_comp_4        0.284    0.006   43.810    0.000    0.284    0.546
   .anxdep_comp_5        0.266    0.007   39.699    0.000    0.266    0.499
   .anxdep_comp_6        0.230    0.007   31.196    0.000    0.230    0.457
 .anxdep_comp_3 ~~                                                         
   .anxdep_comp_4        0.322    0.007   46.772    0.000    0.322    0.603
   .anxdep_comp_5        0.303    0.007   42.528    0.000    0.303    0.554
   .anxdep_comp_6        0.256    0.008   33.786    0.000    0.256    0.494
 .anxdep_comp_4 ~~                                                         
   .anxdep_comp_5        0.353    0.007   48.044    0.000    0.353    0.661
   .anxdep_comp_6        0.284    0.008   36.889    0.000    0.284    0.563
 .anxdep_comp_5 ~~                                                         
   .anxdep_comp_6        0.324    0.008   39.790    0.000    0.324    0.626
 .withdep_comp_0 ~~                                                        
   .withdep_comp_1       0.241    0.005   45.743    0.000    0.241    0.565
   .withdep_comp_2       0.206    0.005   37.824    0.000    0.206    0.435
   .withdep_comp_3       0.172    0.006   28.604    0.000    0.172    0.321
   .withdep_comp_4       0.138    0.007   20.686    0.000    0.138    0.235
   .withdep_comp_5       0.119    0.007   16.425    0.000    0.119    0.193
   .withdep_comp_6       0.096    0.008   11.478    0.000    0.096    0.161
 .withdep_comp_1 ~~                                                        
   .withdep_comp_2       0.266    0.006   45.453    0.000    0.266    0.543
   .withdep_comp_3       0.246    0.006   38.099    0.000    0.246    0.444
   .withdep_comp_4       0.213    0.007   30.070    0.000    0.213    0.350
   .withdep_comp_5       0.195    0.008   25.469    0.000    0.195    0.306
   .withdep_comp_6       0.158    0.009   18.322    0.000    0.158    0.257
 .withdep_comp_2 ~~                                                        
   .withdep_comp_3       0.350    0.008   46.330    0.000    0.350    0.567
   .withdep_comp_4       0.325    0.008   39.460    0.000    0.325    0.481
   .withdep_comp_5       0.301    0.009   34.144    0.000    0.301    0.425
   .withdep_comp_6       0.252    0.010   25.174    0.000    0.252    0.371
 .withdep_comp_3 ~~                                                        
   .withdep_comp_4       0.458    0.010   46.509    0.000    0.458    0.599
   .withdep_comp_5       0.442    0.010   42.246    0.000    0.442    0.551
   .withdep_comp_6       0.368    0.011   32.447    0.000    0.368    0.478
 .withdep_comp_4 ~~                                                        
   .withdep_comp_5       0.579    0.012   47.832    0.000    0.579    0.659
   .withdep_comp_6       0.489    0.013   38.084    0.000    0.489    0.579
 .withdep_comp_5 ~~                                                        
   .withdep_comp_6       0.585    0.014   41.687    0.000    0.585    0.660
 .soma_comp_0 ~~                                                           
   .soma_comp_1          0.367    0.008   46.557    0.000    0.367    0.517
   .soma_comp_2          0.311    0.007   41.491    0.000    0.311    0.457
   .soma_comp_3          0.276    0.007   36.830    0.000    0.276    0.405
   .soma_comp_4          0.265    0.008   32.726    0.000    0.265    0.364
   .soma_comp_5          0.263    0.009   28.888    0.000    0.263    0.331
   .soma_comp_6          0.258    0.011   23.708    0.000    0.258    0.322
 .soma_comp_1 ~~                                                           
   .soma_comp_2          0.346    0.008   44.915    0.000    0.346    0.507
   .soma_comp_3          0.301    0.008   39.299    0.000    0.301    0.441
   .soma_comp_4          0.289    0.008   35.201    0.000    0.289    0.396
   .soma_comp_5          0.294    0.009   31.784    0.000    0.294    0.369
   .soma_comp_6          0.270    0.011   24.397    0.000    0.270    0.335
 .soma_comp_2 ~~                                                           
   .soma_comp_3          0.334    0.008   44.236    0.000    0.334    0.510
   .soma_comp_4          0.315    0.008   39.054    0.000    0.315    0.452
   .soma_comp_5          0.310    0.009   34.742    0.000    0.310    0.407
   .soma_comp_6          0.285    0.010   27.244    0.000    0.285    0.370
 .soma_comp_3 ~~                                                           
   .soma_comp_4          0.351    0.008   41.953    0.000    0.351    0.502
   .soma_comp_5          0.340    0.009   36.755    0.000    0.340    0.444
   .soma_comp_6          0.324    0.011   30.320    0.000    0.324    0.420
 .soma_comp_4 ~~                                                           
   .soma_comp_5          0.457    0.010   43.982    0.000    0.457    0.560
   .soma_comp_6          0.425    0.012   35.155    0.000    0.425    0.516
 .soma_comp_5 ~~                                                           
   .soma_comp_6          0.538    0.014   39.701    0.000    0.538    0.598
 .socprob_comp_0 ~~                                                        
   .socprob_comp_1       0.195    0.005   35.874    0.000    0.195    0.482
   .socprob_comp_2       0.159    0.005   31.366    0.000    0.159    0.415
   .socprob_comp_3       0.123    0.005   25.554    0.000    0.123    0.338
   .socprob_comp_4       0.099    0.005   20.888    0.000    0.099    0.279
   .socprob_comp_5       0.087    0.005   17.933    0.000    0.087    0.246
   .socprob_comp_6       0.071    0.005   13.034    0.000    0.071    0.217
 .socprob_comp_1 ~~                                                        
   .socprob_comp_2       0.175    0.005   34.693    0.000    0.175    0.474
   .socprob_comp_3       0.137    0.005   28.741    0.000    0.137    0.391
   .socprob_comp_4       0.108    0.005   23.184    0.000    0.108    0.316
   .socprob_comp_5       0.092    0.005   19.563    0.000    0.092    0.273
   .socprob_comp_6       0.085    0.005   16.049    0.000    0.085    0.271
 .socprob_comp_2 ~~                                                        
   .socprob_comp_3       0.157    0.005   33.199    0.000    0.157    0.472
   .socprob_comp_4       0.133    0.005   28.967    0.000    0.133    0.411
   .socprob_comp_5       0.110    0.005   23.724    0.000    0.110    0.343
   .socprob_comp_6       0.098    0.005   19.482    0.000    0.098    0.331
 .socprob_comp_3 ~~                                                        
   .socprob_comp_4       0.141    0.005   30.970    0.000    0.141    0.456
   .socprob_comp_5       0.125    0.005   27.045    0.000    0.125    0.411
   .socprob_comp_6       0.108    0.005   21.600    0.000    0.108    0.380
 .socprob_comp_4 ~~                                                        
   .socprob_comp_5       0.152    0.005   32.078    0.000    0.152    0.510
   .socprob_comp_6       0.130    0.005   25.267    0.000    0.130    0.469
 .socprob_comp_5 ~~                                                        
   .socprob_comp_6       0.147    0.005   27.762    0.000    0.147    0.539
 .thouprob_comp_0 ~~                                                       
   .thouprob_cmp_1       0.198    0.005   37.027    0.000    0.198    0.479
   .thouprob_cmp_2       0.159    0.005   31.820    0.000    0.159    0.409
   .thouprob_cmp_3       0.134    0.005   27.531    0.000    0.134    0.357
   .thouprob_cmp_4       0.117    0.005   24.271    0.000    0.117    0.323
   .thouprob_cmp_5       0.114    0.005   21.705    0.000    0.114    0.291
   .thouprob_cmp_6       0.085    0.006   14.562    0.000    0.085    0.243
 .thouprob_comp_1 ~~                                                       
   .thouprob_cmp_2       0.189    0.005   36.086    0.000    0.189    0.478
   .thouprob_cmp_3       0.154    0.005   30.525    0.000    0.154    0.406
   .thouprob_cmp_4       0.134    0.005   26.960    0.000    0.134    0.364
   .thouprob_cmp_5       0.143    0.005   26.331    0.000    0.143    0.358
   .thouprob_cmp_6       0.102    0.006   17.316    0.000    0.102    0.287
 .thouprob_comp_2 ~~                                                       
   .thouprob_cmp_3       0.160    0.005   32.628    0.000    0.160    0.448
   .thouprob_cmp_4       0.134    0.005   27.983    0.000    0.134    0.386
   .thouprob_cmp_5       0.134    0.005   25.823    0.000    0.134    0.358
   .thouprob_cmp_6       0.093    0.006   16.556    0.000    0.093    0.279
 .thouprob_comp_3 ~~                                                       
   .thouprob_cmp_4       0.140    0.005   29.385    0.000    0.140    0.419
   .thouprob_cmp_5       0.133    0.005   25.769    0.000    0.133    0.369
   .thouprob_cmp_6       0.092    0.005   16.826    0.000    0.092    0.287
 .thouprob_comp_4 ~~                                                       
   .thouprob_cmp_5       0.174    0.005   32.853    0.000    0.174    0.495
   .thouprob_cmp_6       0.126    0.006   22.778    0.000    0.126    0.406
 .thouprob_comp_5 ~~                                                       
   .thouprob_cmp_6       0.168    0.006   27.404    0.000    0.168    0.501
 .attprob_comp_0 ~~                                                        
   .attprob_comp_1       0.292    0.006   50.783    0.000    0.292    0.666
   .attprob_comp_2       0.259    0.005   47.260    0.000    0.259    0.609
   .attprob_comp_3       0.240    0.005   44.343    0.000    0.240    0.567
   .attprob_comp_4       0.210    0.005   40.247    0.000    0.210    0.517
   .attprob_comp_5       0.211    0.005   38.721    0.000    0.211    0.507
   .attprob_comp_6       0.186    0.006   30.834    0.000    0.186    0.462
 .attprob_comp_1 ~~                                                        
   .attprob_comp_2       0.281    0.006   50.015    0.000    0.281    0.665
   .attprob_comp_3       0.258    0.006   46.666    0.000    0.258    0.612
   .attprob_comp_4       0.220    0.005   41.721    0.000    0.220    0.546
   .attprob_comp_5       0.222    0.005   40.709    0.000    0.222    0.539
   .attprob_comp_6       0.198    0.006   32.841    0.000    0.198    0.497
 .attprob_comp_2 ~~                                                        
   .attprob_comp_3       0.270    0.006   48.919    0.000    0.270    0.660
   .attprob_comp_4       0.232    0.005   44.288    0.000    0.232    0.592
   .attprob_comp_5       0.235    0.005   43.135    0.000    0.235    0.586
   .attprob_comp_6       0.207    0.006   35.016    0.000    0.207    0.534
 .attprob_comp_3 ~~                                                        
   .attprob_comp_4       0.252    0.005   46.690    0.000    0.252    0.645
   .attprob_comp_5       0.246    0.006   44.375    0.000    0.246    0.615
   .attprob_comp_6       0.215    0.006   36.365    0.000    0.215    0.558
 .attprob_comp_4 ~~                                                        
   .attprob_comp_5       0.261    0.006   46.766    0.000    0.261    0.681
   .attprob_comp_6       0.230    0.006   38.761    0.000    0.230    0.620
 .attprob_comp_5 ~~                                                        
   .attprob_comp_6       0.260    0.006   41.421    0.000    0.260    0.687
 .rulebreak_comp_0 ~~                                                      
   .rulebrek_cmp_1       0.289    0.006   48.736    0.000    0.289    0.611
   .rulebrek_cmp_2       0.252    0.006   43.005    0.000    0.252    0.526
   .rulebrek_cmp_3       0.233    0.006   38.729    0.000    0.233    0.475
   .rulebrek_cmp_4       0.234    0.007   33.832    0.000    0.234    0.411
   .rulebrek_cmp_5       0.259    0.008   31.727    0.000    0.259    0.388
   .rulebrek_cmp_6       0.216    0.010   22.381    0.000    0.216    0.316
 .rulebreak_comp_1 ~~                                                      
   .rulebrek_cmp_2       0.277    0.006   45.871    0.000    0.277    0.576
   .rulebrek_cmp_3       0.262    0.006   42.294    0.000    0.262    0.532
   .rulebrek_cmp_4       0.273    0.007   38.416    0.000    0.273    0.478
   .rulebrek_cmp_5       0.270    0.008   32.804    0.000    0.270    0.405
   .rulebrek_cmp_6       0.244    0.010   24.784    0.000    0.244    0.356
 .rulebreak_comp_2 ~~                                                      
   .rulebrek_cmp_3       0.297    0.007   45.567    0.000    0.297    0.595
   .rulebrek_cmp_4       0.293    0.007   39.995    0.000    0.293    0.506
   .rulebrek_cmp_5       0.326    0.009   37.976    0.000    0.326    0.481
   .rulebrek_cmp_6       0.305    0.010   29.997    0.000    0.305    0.438
 .rulebreak_comp_3 ~~                                                      
   .rulebrek_cmp_4       0.338    0.008   43.287    0.000    0.338    0.568
   .rulebrek_cmp_5       0.355    0.009   39.098    0.000    0.355    0.510
   .rulebrek_cmp_6       0.345    0.010   33.205    0.000    0.345    0.482
 .rulebreak_comp_4 ~~                                                      
   .rulebrek_cmp_5       0.518    0.011   47.053    0.000    0.518    0.644
   .rulebrek_cmp_6       0.497    0.013   39.477    0.000    0.497    0.601
 .rulebreak_comp_5 ~~                                                      
   .rulebrek_cmp_6       0.694    0.015   45.726    0.000    0.694    0.718
 .aggress_comp_0 ~~                                                        
   .aggress_comp_1       0.291    0.006   48.790    0.000    0.291    0.655
   .aggress_comp_2       0.262    0.006   45.620    0.000    0.262    0.604
   .aggress_comp_3       0.225    0.006   40.258    0.000    0.225    0.528
   .aggress_comp_4       0.199    0.005   37.555    0.000    0.199    0.498
   .aggress_comp_5       0.191    0.005   35.341    0.000    0.191    0.479
   .aggress_comp_6       0.157    0.006   27.310    0.000    0.157    0.427
 .aggress_comp_1 ~~                                                        
   .aggress_comp_2       0.270    0.006   47.209    0.000    0.270    0.641
   .aggress_comp_3       0.240    0.006   43.003    0.000    0.240    0.578
   .aggress_comp_4       0.205    0.005   39.216    0.000    0.205    0.529
   .aggress_comp_5       0.192    0.005   35.991    0.000    0.192    0.494
   .aggress_comp_6       0.159    0.006   27.999    0.000    0.159    0.447
 .aggress_comp_2 ~~                                                        
   .aggress_comp_3       0.262    0.006   46.261    0.000    0.262    0.646
   .aggress_comp_4       0.216    0.005   41.165    0.000    0.216    0.570
   .aggress_comp_5       0.209    0.005   39.114    0.000    0.209    0.551
   .aggress_comp_6       0.179    0.006   31.890    0.000    0.179    0.515
 .aggress_comp_3 ~~                                                        
   .aggress_comp_4       0.237    0.005   43.974    0.000    0.237    0.635
   .aggress_comp_5       0.219    0.005   40.360    0.000    0.219    0.586
   .aggress_comp_6       0.189    0.006   33.823    0.000    0.189    0.552
 .aggress_comp_4 ~~                                                        
   .aggress_comp_5       0.234    0.005   43.739    0.000    0.234    0.669
   .aggress_comp_6       0.197    0.005   35.840    0.000    0.197    0.613
 .aggress_comp_5 ~~                                                        
   .aggress_comp_6       0.220    0.006   38.352    0.000    0.220    0.687
 .anxdep_comp_0 ~~                                                         
   .withdep_comp_0       0.105    0.005   20.478    0.000    0.105    0.225
   .soma_comp_0          0.130    0.006   20.377    0.000    0.130    0.212
   .withdep_comp_1       0.088    0.005   16.859    0.000    0.088    0.181
   .soma_comp_1          0.089    0.006   14.042    0.000    0.089    0.145
   .withdep_comp_2       0.095    0.006   16.447    0.000    0.095    0.176
   .soma_comp_2          0.083    0.006   13.466    0.000    0.083    0.141
   .withdep_comp_3       0.111    0.007   16.586    0.000    0.111    0.182
   .soma_comp_3          0.083    0.006   13.185    0.000    0.083    0.141
   .withdep_comp_4       0.099    0.007   13.206    0.000    0.099    0.148
   .soma_comp_4          0.095    0.007   13.749    0.000    0.095    0.150
   .withdep_comp_5       0.098    0.008   11.930    0.000    0.098    0.140
   .soma_comp_5          0.079    0.008   10.079    0.000    0.079    0.114
   .withdep_comp_6       0.084    0.009    8.954    0.000    0.084    0.125
   .soma_comp_6          0.085    0.010    8.836    0.000    0.085    0.122
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_1        0.070    0.005   13.649    0.000    0.070    0.148
 .soma_comp_0 ~~                                                           
   .anxdep_comp_1        0.105    0.006   16.219    0.000    0.105    0.168
 .anxdep_comp_1 ~~                                                         
   .withdep_comp_1       0.111    0.005   20.499    0.000    0.111    0.226
   .soma_comp_1          0.121    0.007   18.355    0.000    0.121    0.194
   .withdep_comp_2       0.100    0.006   16.954    0.000    0.100    0.183
   .soma_comp_2          0.089    0.006   14.048    0.000    0.089    0.148
   .withdep_comp_3       0.125    0.007   18.287    0.000    0.125    0.202
   .soma_comp_3          0.085    0.006   13.191    0.000    0.085    0.141
   .withdep_comp_4       0.116    0.008   15.071    0.000    0.116    0.170
   .soma_comp_4          0.101    0.007   14.313    0.000    0.101    0.157
   .withdep_comp_5       0.133    0.008   15.767    0.000    0.133    0.187
   .soma_comp_5          0.102    0.008   12.726    0.000    0.102    0.145
   .withdep_comp_6       0.108    0.010   11.177    0.000    0.108    0.157
   .soma_comp_6          0.090    0.010    9.136    0.000    0.090    0.127
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_2        0.077    0.005   15.141    0.000    0.077    0.166
 .soma_comp_0 ~~                                                           
   .anxdep_comp_2        0.102    0.006   15.981    0.000    0.102    0.168
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_2        0.096    0.005   18.284    0.000    0.096    0.200
 .soma_comp_1 ~~                                                           
   .anxdep_comp_2        0.092    0.006   14.349    0.000    0.092    0.151
 .anxdep_comp_2 ~~                                                         
   .withdep_comp_2       0.157    0.006   26.278    0.000    0.157    0.295
   .soma_comp_2          0.124    0.006   19.797    0.000    0.124    0.213
   .withdep_comp_3       0.147    0.007   21.911    0.000    0.147    0.244
   .soma_comp_3          0.103    0.006   16.303    0.000    0.103    0.177
   .withdep_comp_4       0.135    0.007   17.975    0.000    0.135    0.204
   .soma_comp_4          0.117    0.007   17.004    0.000    0.117    0.188
   .withdep_comp_5       0.125    0.008   15.401    0.000    0.125    0.181
   .soma_comp_5          0.104    0.008   13.403    0.000    0.104    0.152
   .withdep_comp_6       0.100    0.009   10.805    0.000    0.100    0.150
   .soma_comp_6          0.096    0.009   10.154    0.000    0.096    0.139
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_3        0.062    0.005   11.835    0.000    0.062    0.131
 .soma_comp_0 ~~                                                           
   .anxdep_comp_3        0.108    0.007   16.261    0.000    0.108    0.173
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_3        0.082    0.005   15.033    0.000    0.082    0.166
 .soma_comp_1 ~~                                                           
   .anxdep_comp_3        0.097    0.007   14.545    0.000    0.097    0.155
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_3        0.124    0.006   20.469    0.000    0.124    0.227
 .soma_comp_2 ~~                                                           
   .anxdep_comp_3        0.106    0.006   16.582    0.000    0.106    0.178
 .anxdep_comp_3 ~~                                                         
   .withdep_comp_3       0.206    0.007   28.665    0.000    0.206    0.333
   .soma_comp_3          0.141    0.007   21.169    0.000    0.141    0.235
   .withdep_comp_4       0.166    0.008   21.252    0.000    0.166    0.246
   .soma_comp_4          0.148    0.007   20.530    0.000    0.148    0.232
   .withdep_comp_5       0.165    0.009   19.321    0.000    0.165    0.232
   .soma_comp_5          0.142    0.008   17.436    0.000    0.142    0.203
   .withdep_comp_6       0.126    0.009   13.491    0.000    0.126    0.185
   .soma_comp_6          0.148    0.010   15.383    0.000    0.148    0.210
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_4        0.044    0.005    8.428    0.000    0.044    0.096
 .soma_comp_0 ~~                                                           
   .anxdep_comp_4        0.088    0.007   13.407    0.000    0.088    0.146
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_4        0.065    0.005   12.029    0.000    0.065    0.135
 .soma_comp_1 ~~                                                           
   .anxdep_comp_4        0.085    0.007   12.895    0.000    0.085    0.140
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_4        0.098    0.006   16.363    0.000    0.098    0.185
 .soma_comp_2 ~~                                                           
   .anxdep_comp_4        0.090    0.006   14.089    0.000    0.090    0.155
 .withdep_comp_3 ~~                                                        
   .anxdep_comp_4        0.147    0.007   21.126    0.000    0.147    0.244
 .soma_comp_3 ~~                                                           
   .anxdep_comp_4        0.110    0.007   16.730    0.000    0.110    0.188
 .anxdep_comp_4 ~~                                                         
   .withdep_comp_4       0.228    0.008   28.462    0.000    0.228    0.346
   .soma_comp_4          0.168    0.007   23.373    0.000    0.168    0.270
   .withdep_comp_5       0.188    0.009   22.094    0.000    0.188    0.272
   .soma_comp_5          0.157    0.008   19.484    0.000    0.157    0.231
   .withdep_comp_6       0.147    0.009   15.705    0.000    0.147    0.222
   .soma_comp_6          0.156    0.010   16.229    0.000    0.156    0.227
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_5        0.041    0.006    7.360    0.000    0.041    0.086
 .soma_comp_0 ~~                                                           
   .anxdep_comp_5        0.081    0.007   11.550    0.000    0.081    0.130
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_5        0.065    0.006   11.466    0.000    0.065    0.133
 .soma_comp_1 ~~                                                           
   .anxdep_comp_5        0.089    0.007   12.684    0.000    0.089    0.143
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_5        0.104    0.006   16.327    0.000    0.104    0.190
 .soma_comp_2 ~~                                                           
   .anxdep_comp_5        0.097    0.007   14.283    0.000    0.097    0.162
 .withdep_comp_3 ~~                                                        
   .anxdep_comp_5        0.155    0.007   21.139    0.000    0.155    0.251
 .soma_comp_3 ~~                                                           
   .anxdep_comp_5        0.106    0.007   15.249    0.000    0.106    0.176
 .withdep_comp_4 ~~                                                        
   .anxdep_comp_5        0.197    0.008   23.892    0.000    0.197    0.292
 .soma_comp_4 ~~                                                           
   .anxdep_comp_5        0.160    0.008   21.113    0.000    0.160    0.250
 .anxdep_comp_5 ~~                                                         
   .withdep_comp_5       0.273    0.009   29.735    0.000    0.273    0.384
   .soma_comp_5          0.202    0.008   23.743    0.000    0.202    0.288
   .withdep_comp_6       0.177    0.010   18.090    0.000    0.177    0.259
   .soma_comp_6          0.173    0.010   17.267    0.000    0.173    0.245
 .withdep_comp_0 ~~                                                        
   .anxdep_comp_6        0.046    0.006    7.163    0.000    0.046    0.103
 .soma_comp_0 ~~                                                           
   .anxdep_comp_6        0.072    0.008    9.123    0.000    0.072    0.123
 .withdep_comp_1 ~~                                                        
   .anxdep_comp_6        0.065    0.007   10.053    0.000    0.065    0.141
 .soma_comp_1 ~~                                                           
   .anxdep_comp_6        0.076    0.008    9.416    0.000    0.076    0.128
 .withdep_comp_2 ~~                                                        
   .anxdep_comp_6        0.097    0.007   12.971    0.000    0.097    0.187
 .soma_comp_2 ~~                                                           
   .anxdep_comp_6        0.093    0.008   12.206    0.000    0.093    0.164
 .withdep_comp_3 ~~                                                        
   .anxdep_comp_6        0.141    0.008   16.958    0.000    0.141    0.241
 .soma_comp_3 ~~                                                           
   .anxdep_comp_6        0.084    0.008   10.971    0.000    0.084    0.148
 .withdep_comp_4 ~~                                                        
   .anxdep_comp_6        0.171    0.009   18.649    0.000    0.171    0.268
 .soma_comp_4 ~~                                                           
   .anxdep_comp_6        0.123    0.009   14.516    0.000    0.123    0.204
 .withdep_comp_5 ~~                                                        
   .anxdep_comp_6        0.203    0.010   20.536    0.000    0.203    0.302
 .soma_comp_5 ~~                                                           
   .anxdep_comp_6        0.135    0.009   14.500    0.000    0.135    0.204
 .anxdep_comp_6 ~~                                                         
   .withdep_comp_6       0.245    0.010   23.762    0.000    0.245    0.380
   .soma_comp_6          0.185    0.010   18.414    0.000    0.185    0.278
 .withdep_comp_0 ~~                                                        
   .soma_comp_0          0.056    0.006   10.173    0.000    0.056    0.104
   .soma_comp_1          0.054    0.006    9.574    0.000    0.054    0.100
   .soma_comp_2          0.040    0.005    7.218    0.000    0.040    0.076
   .soma_comp_3          0.028    0.006    4.960    0.000    0.028    0.054
   .soma_comp_4          0.021    0.006    3.403    0.001    0.021    0.038
   .soma_comp_5         -0.005    0.007   -0.776    0.437   -0.005   -0.009
   .soma_comp_6         -0.004    0.009   -0.448    0.654   -0.004   -0.006
 .soma_comp_0 ~~                                                           
   .withdep_comp_1       0.039    0.006    6.890    0.000    0.039    0.071
 .withdep_comp_1 ~~                                                        
   .soma_comp_1          0.070    0.006   11.962    0.000    0.070    0.124
   .soma_comp_2          0.052    0.006    9.184    0.000    0.052    0.096
   .soma_comp_3          0.052    0.006    9.037    0.000    0.052    0.097
   .soma_comp_4          0.041    0.006    6.487    0.000    0.041    0.071
   .soma_comp_5          0.038    0.007    5.266    0.000    0.038    0.060
   .soma_comp_6          0.022    0.009    2.495    0.013    0.022    0.034
 .soma_comp_0 ~~                                                           
   .withdep_comp_2       0.055    0.006    8.650    0.000    0.055    0.089
 .soma_comp_1 ~~                                                           
   .withdep_comp_2       0.070    0.006   10.866    0.000    0.070    0.113
 .withdep_comp_2 ~~                                                        
   .soma_comp_2          0.087    0.006   13.859    0.000    0.087    0.145
   .soma_comp_3          0.066    0.006   10.277    0.000    0.066    0.110
   .soma_comp_4          0.083    0.007   11.884    0.000    0.083    0.130
   .soma_comp_5          0.076    0.008    9.656    0.000    0.076    0.110
   .soma_comp_6          0.059    0.010    5.940    0.000    0.059    0.084
 .soma_comp_0 ~~                                                           
   .withdep_comp_3       0.073    0.007    9.895    0.000    0.073    0.104
 .soma_comp_1 ~~                                                           
   .withdep_comp_3       0.067    0.007    8.945    0.000    0.067    0.094
 .soma_comp_2 ~~                                                           
   .withdep_comp_3       0.072    0.007   10.114    0.000    0.072    0.107
 .withdep_comp_3 ~~                                                        
   .soma_comp_3          0.096    0.007   13.202    0.000    0.096    0.142
   .soma_comp_4          0.122    0.008   15.216    0.000    0.122    0.170
   .soma_comp_5          0.135    0.009   14.902    0.000    0.135    0.171
   .soma_comp_6          0.135    0.011   12.300    0.000    0.135    0.170
 .soma_comp_0 ~~                                                           
   .withdep_comp_4       0.066    0.008    7.866    0.000    0.066    0.085
 .soma_comp_1 ~~                                                           
   .withdep_comp_4       0.079    0.008    9.408    0.000    0.079    0.102
 .soma_comp_2 ~~                                                           
   .withdep_comp_4       0.073    0.008    9.094    0.000    0.073    0.099
 .soma_comp_3 ~~                                                           
   .withdep_comp_4       0.096    0.008   11.666    0.000    0.096    0.130
 .withdep_comp_4 ~~                                                        
   .soma_comp_4          0.166    0.009   18.526    0.000    0.166    0.210
   .soma_comp_5          0.161    0.010   16.018    0.000    0.161    0.186
   .soma_comp_6          0.177    0.012   14.642    0.000    0.177    0.203
 .soma_comp_0 ~~                                                           
   .withdep_comp_5       0.060    0.009    6.522    0.000    0.060    0.074
 .soma_comp_1 ~~                                                           
   .withdep_comp_5       0.074    0.009    8.012    0.000    0.074    0.091
 .soma_comp_2 ~~                                                           
   .withdep_comp_5       0.068    0.009    7.733    0.000    0.068    0.088
 .soma_comp_3 ~~                                                           
   .withdep_comp_5       0.089    0.009    9.891    0.000    0.089    0.114
 .soma_comp_4 ~~                                                           
   .withdep_comp_5       0.154    0.010   15.775    0.000    0.154    0.185
 .withdep_comp_5 ~~                                                        
   .soma_comp_5          0.229    0.011   21.155    0.000    0.229    0.253
   .soma_comp_6          0.211    0.013   16.281    0.000    0.211    0.230
 .soma_comp_0 ~~                                                           
   .withdep_comp_6       0.065    0.010    6.271    0.000    0.065    0.084
 .soma_comp_1 ~~                                                           
   .withdep_comp_6       0.053    0.010    5.023    0.000    0.053    0.068
 .soma_comp_2 ~~                                                           
   .withdep_comp_6       0.052    0.010    5.326    0.000    0.052    0.070
 .soma_comp_3 ~~                                                           
   .withdep_comp_6       0.063    0.010    6.317    0.000    0.063    0.084
 .soma_comp_4 ~~                                                           
   .withdep_comp_6       0.108    0.011    9.828    0.000    0.108    0.135
 .soma_comp_5 ~~                                                           
   .withdep_comp_6       0.151    0.012   12.547    0.000    0.151    0.173
 .withdep_comp_6 ~~                                                        
   .soma_comp_6          0.222    0.013   16.995    0.000    0.222    0.252
 .rulebreak_comp_0 ~~                                                      
   .aggress_comp_0       0.206    0.006   36.334    0.000    0.206    0.444
   .aggress_comp_1       0.164    0.005   30.593    0.000    0.164    0.363
   .aggress_comp_2       0.154    0.005   29.292    0.000    0.154    0.351
   .aggress_comp_3       0.132    0.005   25.131    0.000    0.132    0.305
   .aggress_comp_4       0.127    0.005   25.025    0.000    0.127    0.314
   .aggress_comp_5       0.129    0.005   24.759    0.000    0.129    0.319
   .aggress_comp_6       0.110    0.006   19.353    0.000    0.110    0.296
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_1       0.170    0.005   31.087    0.000    0.170    0.366
 .rulebreak_comp_1 ~~                                                      
   .aggress_comp_1       0.203    0.006   35.819    0.000    0.203    0.450
   .aggress_comp_2       0.162    0.005   30.294    0.000    0.162    0.366
   .aggress_comp_3       0.145    0.005   27.106    0.000    0.145    0.333
   .aggress_comp_4       0.141    0.005   27.270    0.000    0.141    0.346
   .aggress_comp_5       0.131    0.005   24.944    0.000    0.131    0.323
   .aggress_comp_6       0.123    0.006   21.060    0.000    0.123    0.328
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_2       0.151    0.006   27.404    0.000    0.151    0.321
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_2       0.155    0.005   28.466    0.000    0.155    0.339
 .rulebreak_comp_2 ~~                                                      
   .aggress_comp_2       0.210    0.006   36.658    0.000    0.210    0.469
   .aggress_comp_3       0.160    0.006   28.930    0.000    0.160    0.362
   .aggress_comp_4       0.139    0.005   26.350    0.000    0.139    0.336
   .aggress_comp_5       0.138    0.005   25.761    0.000    0.138    0.335
   .aggress_comp_6       0.138    0.006   23.252    0.000    0.138    0.364
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_3       0.151    0.006   26.210    0.000    0.151    0.311
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_3       0.155    0.006   27.383    0.000    0.155    0.330
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_3       0.170    0.006   30.066    0.000    0.170    0.371
 .rulebreak_comp_3 ~~                                                      
   .aggress_comp_3       0.218    0.006   36.358    0.000    0.218    0.482
   .aggress_comp_4       0.161    0.005   29.287    0.000    0.161    0.379
   .aggress_comp_5       0.150    0.006   26.898    0.000    0.150    0.355
   .aggress_comp_6       0.151    0.006   25.285    0.000    0.151    0.389
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_4       0.174    0.007   25.909    0.000    0.174    0.310
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_4       0.182    0.007   27.605    0.000    0.182    0.334
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_4       0.181    0.007   27.853    0.000    0.181    0.341
 .aggress_comp_3 ~~                                                        
   .rulebrek_cmp_4       0.197    0.007   29.496    0.000    0.197    0.375
 .rulebreak_comp_4 ~~                                                      
   .aggress_comp_4       0.241    0.007   36.154    0.000    0.241    0.491
   .aggress_comp_5       0.202    0.007   30.525    0.000    0.202    0.411
   .aggress_comp_6       0.171    0.007   24.360    0.000    0.171    0.381
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_5       0.204    0.008   25.470    0.000    0.204    0.311
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_5       0.193    0.008   24.620    0.000    0.193    0.302
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_5       0.217    0.008   27.945    0.000    0.217    0.350
 .aggress_comp_3 ~~                                                        
   .rulebrek_cmp_5       0.216    0.008   27.413    0.000    0.216    0.353
 .aggress_comp_4 ~~                                                        
   .rulebrek_cmp_5       0.226    0.008   29.858    0.000    0.226    0.393
 .rulebreak_comp_5 ~~                                                      
   .aggress_comp_5       0.299    0.008   37.017    0.000    0.299    0.522
   .aggress_comp_6       0.232    0.008   28.162    0.000    0.232    0.442
 .aggress_comp_0 ~~                                                        
   .rulebrek_cmp_6       0.187    0.009   19.737    0.000    0.187    0.278
 .aggress_comp_1 ~~                                                        
   .rulebrek_cmp_6       0.171    0.009   18.351    0.000    0.171    0.262
 .aggress_comp_2 ~~                                                        
   .rulebrek_cmp_6       0.205    0.009   22.419    0.000    0.205    0.321
 .aggress_comp_3 ~~                                                        
   .rulebrek_cmp_6       0.214    0.009   23.475    0.000    0.214    0.339
 .aggress_comp_4 ~~                                                        
   .rulebrek_cmp_6       0.219    0.009   24.952    0.000    0.219    0.372
 .aggress_comp_5 ~~                                                        
   .rulebrek_cmp_6       0.244    0.009   26.854    0.000    0.244    0.413
 .rulebreak_comp_6 ~~                                                      
   .aggress_comp_6       0.267    0.009   28.714    0.000    0.267    0.494
 .p_i ~~                                                                   
   .p_s                 -0.069    0.006  -12.330    0.000   -0.295   -0.295
   .p_q                  0.007    0.002    4.211    0.000    0.104    0.104
 .p_s ~~                                                                   
   .p_q                 -0.037    0.002  -17.128    0.000   -0.900   -0.900
 .flanker_0 ~~                                                             
   .flanker_2            0.118    0.007   16.161    0.000    0.118    0.220
   .flanker_4            0.071    0.007    9.619    0.000    0.071    0.139
   .flanker_6            0.048    0.010    4.990    0.000    0.048    0.091
 .flanker_2 ~~                                                             
   .flanker_4            0.114    0.007   15.863    0.000    0.114    0.269
   .flanker_6            0.066    0.008    7.856    0.000    0.066    0.151
 .flanker_4 ~~                                                             
   .flanker_6            0.137    0.009   14.432    0.000    0.137    0.329
 .pattern_0 ~~                                                             
   .pattern_2            0.087    0.005   16.332    0.000    0.087    0.240
   .pattern_4            0.050    0.006    8.570    0.000    0.050    0.128
   .pattern_6            0.042    0.007    5.979    0.000    0.042    0.109
 .pattern_2 ~~                                                             
   .pattern_4            0.132    0.007   19.587    0.000    0.132    0.338
   .pattern_6            0.105    0.007   14.204    0.000    0.105    0.275
 .pattern_4 ~~                                                             
   .pattern_6            0.164    0.009   18.445    0.000    0.164    0.397
 .picture_0 ~~                                                             
   .picture_2            0.250    0.007   33.713    0.000    0.250    0.363
   .picture_4            0.256    0.009   27.967    0.000    0.256    0.309
   .picture_6            0.280    0.012   23.459    0.000    0.280    0.341
 .picture_2 ~~                                                             
   .picture_4            0.285    0.010   28.027    0.000    0.285    0.324
   .picture_6            0.265    0.013   19.813    0.000    0.265    0.305
 .picture_4 ~~                                                             
   .picture_6            0.390    0.016   24.708    0.000    0.390    0.373
 .picvocab_0 ~~                                                            
   .picvocab_2           0.390    0.007   52.989    0.000    0.390    0.673
   .picvocab_4           0.393    0.008   50.470    0.000    0.393    0.643
   .picvocab_6           0.373    0.009   43.002    0.000    0.373    0.622
 .picvocab_2 ~~                                                            
   .picvocab_4           0.464    0.009   53.987    0.000    0.464    0.724
   .picvocab_6           0.452    0.010   47.298    0.000    0.452    0.717
 .picvocab_4 ~~                                                            
   .picvocab_6           0.500    0.010   48.292    0.000    0.500    0.754
 .reading_0 ~~                                                             
   .reading_2            0.396    0.007   54.770    0.000    0.396    0.718
   .reading_4            0.399    0.008   50.616    0.000    0.399    0.657
   .reading_6            0.408    0.009   43.314    0.000    0.408    0.653
 .reading_2 ~~                                                             
   .reading_4            0.409    0.008   51.244    0.000    0.409    0.688
   .reading_6            0.424    0.009   45.108    0.000    0.424    0.695
 .reading_4 ~~                                                             
   .reading_6            0.447    0.010   42.747    0.000    0.447    0.665
 .picvocab_0 ~~                                                            
   .reading_0            0.225    0.006   35.252    0.000    0.225    0.403
   .reading_2            0.239    0.006   37.183    0.000    0.239    0.437
   .reading_4            0.257    0.007   35.782    0.000    0.257    0.427
   .reading_6            0.275    0.009   31.721    0.000    0.275    0.445
 .picvocab_2 ~~                                                            
   .reading_2            0.281    0.007   40.061    0.000    0.281    0.490
 .reading_0 ~~                                                             
   .picvocab_2           0.259    0.007   37.756    0.000    0.259    0.442
 .picvocab_2 ~~                                                            
   .reading_4            0.305    0.008   39.205    0.000    0.305    0.484
   .reading_6            0.331    0.009   35.124    0.000    0.331    0.510
 .picvocab_4 ~~                                                            
   .reading_4            0.328    0.008   38.626    0.000    0.328    0.494
 .reading_0 ~~                                                             
   .picvocab_4           0.266    0.007   36.221    0.000    0.266    0.432
 .reading_2 ~~                                                             
   .picvocab_4           0.292    0.007   39.037    0.000    0.292    0.484
 .picvocab_4 ~~                                                            
   .reading_6            0.358    0.010   35.315    0.000    0.358    0.524
 .picvocab_6 ~~                                                            
   .reading_6            0.351    0.011   31.936    0.000    0.351    0.523
 .reading_0 ~~                                                             
   .picvocab_6           0.248    0.008   29.371    0.000    0.248    0.409
 .reading_2 ~~                                                             
   .picvocab_6           0.276    0.008   32.638    0.000    0.276    0.466
 .reading_4 ~~                                                             
   .picvocab_6           0.314    0.010   33.010    0.000    0.314    0.482
 .g_i ~~                                                                   
   .g_s                  0.005    0.001    3.622    0.000    0.237    0.237

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .anxd__0 (ta_X)   -0.175    0.020   -8.874    0.000   -0.175   -0.175
   .anxd__1 (ta_X)   -0.175    0.020   -8.874    0.000   -0.175   -0.175
   .anxd__2 (ta_X)   -0.175    0.020   -8.874    0.000   -0.175   -0.178
   .anxd__3 (ta_X)   -0.175    0.020   -8.874    0.000   -0.175   -0.177
   .anxd__4 (ta_X)   -0.175    0.020   -8.874    0.000   -0.175   -0.180
   .anxd__5 (ta_X)   -0.175    0.020   -8.874    0.000   -0.175   -0.178
   .anxd__6 (ta_X)   -0.175    0.020   -8.874    0.000   -0.175   -0.188
   .wthd__0 (ta_W)   -0.219    0.018  -12.309    0.000   -0.219   -0.244
   .wthd__1 (ta_W)   -0.219    0.018  -12.309    0.000   -0.219   -0.242
   .wthd__2 (ta_W)   -0.219    0.018  -12.309    0.000   -0.219   -0.229
   .wthd__3 (ta_W)   -0.219    0.018  -12.309    0.000   -0.219   -0.213
   .wthd__4 (ta_W)   -0.219    0.018  -12.309    0.000   -0.219   -0.201
   .wthd__5 (ta_W)   -0.219    0.018  -12.309    0.000   -0.219   -0.195
   .wthd__6 (ta_W)   -0.219    0.018  -12.309    0.000   -0.219   -0.203
   .sm_cm_0 (ta_S)   -0.142    0.018   -7.998    0.000   -0.142   -0.143
   .sm_cm_1 (ta_S)   -0.142    0.018   -7.998    0.000   -0.142   -0.143
   .sm_cm_2 (ta_S)   -0.142    0.018   -7.998    0.000   -0.142   -0.148
   .sm_cm_3 (ta_S)   -0.142    0.018   -7.998    0.000   -0.142   -0.148
   .sm_cm_4 (ta_S)   -0.142    0.018   -7.998    0.000   -0.142   -0.142
   .sm_cm_5 (ta_S)   -0.142    0.018   -7.998    0.000   -0.142   -0.133
   .sm_cm_6 (ta_S)   -0.142    0.018   -7.998    0.000   -0.142   -0.133
   .scpr__0 (ta_P)   -0.157    0.021   -7.638    0.000   -0.157   -0.148
   .scpr__1 (ta_P)   -0.157    0.021   -7.638    0.000   -0.157   -0.152
   .scpr__2 (ta_P)   -0.157    0.021   -7.638    0.000   -0.157   -0.156
   .scpr__3 (ta_P)   -0.157    0.021   -7.638    0.000   -0.157   -0.161
   .scpr__4 (ta_P)   -0.157    0.021   -7.638    0.000   -0.157   -0.163
   .scpr__5 (ta_P)   -0.157    0.021   -7.638    0.000   -0.157   -0.165
   .scpr__6 (ta_P)   -0.157    0.021   -7.638    0.000   -0.157   -0.174
   .thpr__0 (ta_H)   -0.151    0.022   -6.900    0.000   -0.151   -0.145
   .thpr__1 (ta_H)   -0.151    0.022   -6.900    0.000   -0.151   -0.146
   .thpr__2 (ta_H)   -0.151    0.022   -6.900    0.000   -0.151   -0.150
   .thpr__3 (ta_H)   -0.151    0.022   -6.900    0.000   -0.151   -0.154
   .thpr__4 (ta_H)   -0.151    0.022   -6.900    0.000   -0.151   -0.156
   .thpr__5 (ta_H)   -0.151    0.022   -6.900    0.000   -0.151   -0.153
   .thpr__6 (ta_H)   -0.151    0.022   -6.900    0.000   -0.151   -0.165
   .attp__0 (ta_A)   -0.131    0.020   -6.501    0.000   -0.131   -0.131
   .attp__1 (ta_A)   -0.131    0.020   -6.501    0.000   -0.131   -0.133
   .attp__2 (ta_A)   -0.131    0.020   -6.501    0.000   -0.131   -0.135
   .attp__3 (ta_A)   -0.131    0.020   -6.501    0.000   -0.131   -0.137
   .attp__4 (ta_A)   -0.131    0.020   -6.501    0.000   -0.131   -0.140
   .attp__5 (ta_A)   -0.131    0.020   -6.501    0.000   -0.131   -0.140
   .attp__6 (ta_A)   -0.131    0.020   -6.501    0.000   -0.131   -0.146
   .rlbr__0 (ta_R)   -0.161    0.019   -8.321    0.000   -0.161   -0.164
   .rlbr__1 (ta_R)   -0.161    0.019   -8.321    0.000   -0.161   -0.166
   .rlbr__2 (ta_R)   -0.161    0.019   -8.321    0.000   -0.161   -0.165
   .rlbr__3 (ta_R)   -0.161    0.019   -8.321    0.000   -0.161   -0.164
   .rlbr__4 (ta_R)   -0.161    0.019   -8.321    0.000   -0.161   -0.151
   .rlbr__5 (ta_R)   -0.161    0.019   -8.321    0.000   -0.161   -0.137
   .rlbr__6 (ta_R)   -0.161    0.019   -8.321    0.000   -0.161   -0.137
   .aggr__0 (ta_G)   -0.175    0.022   -7.932    0.000   -0.175   -0.165
   .aggr__1 (ta_G)   -0.175    0.022   -7.932    0.000   -0.175   -0.169
   .aggr__2 (ta_G)   -0.175    0.022   -7.932    0.000   -0.175   -0.172
   .aggr__3 (ta_G)   -0.175    0.022   -7.932    0.000   -0.175   -0.174
   .aggr__4 (ta_G)   -0.175    0.022   -7.932    0.000   -0.175   -0.180
   .aggr__5 (ta_G)   -0.175    0.022   -7.932    0.000   -0.175   -0.181
   .aggr__6 (ta_G)   -0.175    0.022   -7.932    0.000   -0.175   -0.193
   .p_i              -0.027    0.027   -0.979    0.328   -0.042   -0.042
   .p_s               0.481    0.281    1.713    0.087    1.250    1.250
   .p_q              -0.142    0.090   -1.572    0.116   -1.279   -1.279
   .p_etaB            0.000                               0.000    0.000
   .p_eta1            0.000                               0.000    0.000
   .p_eta2            0.000                               0.000    0.000
   .p_eta3            0.000                               0.000    0.000
   .p_eta4            0.000                               0.000    0.000
   .p_eta5            0.000                               0.000    0.000
   .p_eta6            0.000                               0.000    0.000
   .flnkr_0 (ta_S)   -0.142    0.018   -7.998    0.000   -0.142   -0.153
   .flnkr_2 (ta_S)   -0.142    0.018   -7.998    0.000   -0.142   -0.175
   .flnkr_4 (ta_S)   -0.142    0.018   -7.998    0.000   -0.142   -0.176
   .flnkr_6 (ta_S)   -0.142    0.018   -7.998    0.000   -0.142   -0.166
   .pttrn_0 (ta_R)   -0.161    0.019   -8.321    0.000   -0.161   -0.211
   .pttrn_2 (ta_R)   -0.161    0.019   -8.321    0.000   -0.161   -0.210
   .pttrn_4 (ta_R)   -0.161    0.019   -8.321    0.000   -0.161   -0.196
   .pttrn_6 (ta_R)   -0.161    0.019   -8.321    0.000   -0.161   -0.190
   .pictr_0 (ta_M)   -0.083    0.012   -6.763    0.000   -0.083   -0.098
   .pictr_2 (ta_M)   -0.083    0.012   -6.763    0.000   -0.083   -0.093
   .pictr_4 (ta_M)   -0.083    0.012   -6.763    0.000   -0.083   -0.078
   .pictr_6 (ta_M)   -0.083    0.012   -6.763    0.000   -0.083   -0.078
   .pcvcb_0 (ta_P)   -0.157    0.021   -7.638    0.000   -0.157   -0.188
   .pcvcb_2 (ta_P)   -0.157    0.021   -7.638    0.000   -0.157   -0.180
   .pcvcb_4 (ta_P)   -0.157    0.021   -7.638    0.000   -0.157   -0.170
   .pcvcb_6 (ta_P)   -0.157    0.021   -7.638    0.000   -0.157   -0.169
   .redng_0 (ta_V)   -0.160    0.020   -7.944    0.000   -0.160   -0.188
   .redng_2 (ta_V)   -0.160    0.020   -7.944    0.000   -0.160   -0.190
   .redng_4 (ta_V)   -0.160    0.020   -7.944    0.000   -0.160   -0.174
   .redng_6 (ta_V)   -0.160    0.020   -7.944    0.000   -0.160   -0.166
   .g_i              -0.457    0.021  -21.630    0.000   -1.036   -1.036
   .g_s               0.520    0.004  132.570    0.000   10.095   10.095
   .g_etaB            0.000                               0.000    0.000
   .g_eta2            0.000                               0.000    0.000
   .g_eta4            0.000                               0.000    0.000
   .g_eta6            0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .p_etaB            0.075    0.004   20.790    0.000    0.157    0.157
   .p_eta1            0.101    0.002   41.322    0.000    0.221    0.221
   .p_eta2            0.102    0.002   42.158    0.000    0.227    0.227
   .p_eta3            0.092    0.002   38.493    0.000    0.211    0.211
   .p_eta4            0.095    0.002   38.858    0.000    0.222    0.222
   .p_eta5            0.092    0.003   34.990    0.000    0.221    0.221
   .p_eta6            0.034    0.004    8.870    0.000    0.089    0.089
   .anxdep_comp_0     0.532    0.008   68.301    0.000    0.532    0.528
   .withdep_comp_0    0.413    0.006   66.190    0.000    0.413    0.512
   .soma_comp_0       0.707    0.010   73.011    0.000    0.707    0.713
   .socprob_comp_0    0.420    0.007   60.394    0.000    0.420    0.375
   .thouprob_cmp_0    0.407    0.007   62.093    0.000    0.407    0.374
   .attprob_comp_0    0.441    0.007   65.074    0.000    0.441    0.439
   .rulebrek_cmp_0    0.471    0.007   67.276    0.000    0.471    0.491
   .aggress_comp_0    0.457    0.007   63.200    0.000    0.457    0.406
   .anxdep_comp_1     0.550    0.008   67.095    0.000    0.550    0.546
   .withdep_comp_1    0.442    0.007   67.003    0.000    0.442    0.539
   .soma_comp_1       0.713    0.010   71.368    0.000    0.713    0.723
   .socprob_comp_1    0.389    0.007   58.727    0.000    0.389    0.366
   .thouprob_cmp_1    0.420    0.007   61.020    0.000    0.420    0.391
   .attprob_comp_1    0.435    0.007   63.945    0.000    0.435    0.446
   .rulebrek_cmp_1    0.474    0.007   65.505    0.000    0.474    0.503
   .aggress_comp_1    0.431    0.007   61.834    0.000    0.431    0.401
   .anxdep_comp_2     0.520    0.008   66.459    0.000    0.520    0.537
   .withdep_comp_2    0.544    0.008   67.681    0.000    0.544    0.595
   .soma_comp_2       0.652    0.009   70.059    0.000    0.652    0.708
   .socprob_comp_2    0.348    0.006   57.319    0.000    0.348    0.345
   .thouprob_cmp_2    0.371    0.006   58.958    0.000    0.371    0.366
   .attprob_comp_2    0.410    0.007   63.011    0.000    0.410    0.435
   .rulebrek_cmp_2    0.487    0.008   64.879    0.000    0.487    0.514
   .aggress_comp_2    0.411    0.007   60.810    0.000    0.411    0.394
   .anxdep_comp_3     0.549    0.008   64.931    0.000    0.549    0.558
   .withdep_comp_3    0.698    0.011   65.903    0.000    0.698    0.660
   .soma_comp_3       0.657    0.010   67.951    0.000    0.657    0.716
   .socprob_comp_3    0.317    0.006   54.928    0.000    0.317    0.332
   .thouprob_cmp_3    0.345    0.006   56.408    0.000    0.345    0.356
   .attprob_comp_3    0.408    0.007   61.551    0.000    0.408    0.442
   .rulebrek_cmp_3    0.513    0.008   62.683    0.000    0.513    0.535
   .aggress_comp_3    0.400    0.007   58.943    0.000    0.400    0.395
   .anxdep_comp_4     0.519    0.008   62.641    0.000    0.519    0.547
   .withdep_comp_4    0.837    0.013   63.410    0.000    0.837    0.703
   .soma_comp_4       0.745    0.011   65.933    0.000    0.745    0.744
   .socprob_comp_4    0.302    0.006   52.963    0.000    0.302    0.324
   .thouprob_cmp_4    0.325    0.006   54.031    0.000    0.325    0.346
   .attprob_comp_4    0.374    0.006   59.095    0.000    0.374    0.424
   .rulebrek_cmp_4    0.689    0.011   62.460    0.000    0.689    0.610
   .aggress_comp_4    0.349    0.006   56.257    0.000    0.349    0.367
   .anxdep_comp_5     0.548    0.009   59.949    0.000    0.548    0.567
   .withdep_comp_5    0.922    0.015   60.637    0.000    0.922    0.728
   .soma_comp_5       0.892    0.014   63.006    0.000    0.892    0.781
   .socprob_comp_5    0.294    0.006   49.668    0.000    0.294    0.324
   .thouprob_cmp_5    0.379    0.007   53.053    0.000    0.379    0.388
   .attprob_comp_5    0.391    0.007   57.199    0.000    0.391    0.442
   .rulebrek_cmp_5    0.941    0.015   61.318    0.000    0.941    0.687
   .aggress_comp_5    0.350    0.006   53.911    0.000    0.350    0.373
   .anxdep_comp_6     0.490    0.010   47.831    0.000    0.490    0.564
   .withdep_comp_6    0.851    0.017   48.634    0.000    0.851    0.731
   .soma_comp_6       0.908    0.018   50.320    0.000    0.908    0.800
   .socprob_comp_6    0.253    0.007   38.425    0.000    0.253    0.312
   .thouprob_cmp_6    0.299    0.007   40.138    0.000    0.299    0.355
   .attprob_comp_6    0.366    0.008   46.326    0.000    0.366    0.449
   .rulebrek_cmp_6    0.994    0.020   49.814    0.000    0.994    0.719
   .aggress_comp_6    0.294    0.007   42.440    0.000    0.294    0.355
   .p_i               0.376    0.008   47.752    0.000    0.938    0.938
   .p_s               0.144    0.007   19.845    0.000    0.971    0.971
   .p_q               0.012    0.001   16.957    0.000    0.982    0.982
   .g_etaB            0.016    0.003    5.841    0.000    0.078    0.078
   .g_eta2            0.010    0.002    5.053    0.000    0.045    0.045
   .g_eta4            0.022    0.003    8.455    0.000    0.088    0.088
   .g_eta6            0.055    0.005   11.281    0.000    0.179    0.179
   .flanker_0         0.651    0.010   66.398    0.000    0.651    0.755
   .flanker_2         0.441    0.009   51.695    0.000    0.441    0.669
   .flanker_4         0.405    0.009   46.635    0.000    0.405    0.620
   .flanker_6         0.429    0.012   35.743    0.000    0.429    0.584
   .pattern_0         0.362    0.006   56.917    0.000    0.362    0.626
   .pattern_2         0.363    0.007   49.298    0.000    0.363    0.619
   .pattern_4         0.422    0.009   46.560    0.000    0.422    0.624
   .pattern_6         0.407    0.011   36.320    0.000    0.407    0.566
   .picture_0         0.650    0.009   73.269    0.000    0.650    0.914
   .picture_2         0.731    0.011   69.120    0.000    0.731    0.920
   .picture_4         1.053    0.016   66.178    0.000    1.053    0.936
   .picture_6         1.033    0.022   47.834    0.000    1.033    0.921
   .picvocab_0        0.553    0.008   68.821    0.000    0.553    0.789
   .picvocab_2        0.609    0.009   66.206    0.000    0.609    0.799
   .picvocab_4        0.675    0.011   63.176    0.000    0.675    0.795
   .picvocab_6        0.651    0.013   49.204    0.000    0.651    0.752
   .reading_0         0.564    0.008   68.136    0.000    0.564    0.773
   .reading_2         0.539    0.008   64.953    0.000    0.539    0.760
   .reading_4         0.654    0.011   62.154    0.000    0.654    0.771
   .reading_6         0.692    0.014   47.844    0.000    0.692    0.743
   .g_i               0.194    0.005   39.691    0.000    0.999    0.999
   .g_s               0.003    0.001    3.365    0.001    0.996    0.996

R-Square:
                   Estimate
    p_etaB            0.843
    p_eta1            0.779
    p_eta2            0.773
    p_eta3            0.789
    p_eta4            0.778
    p_eta5            0.779
    p_eta6            0.911
    anxdep_comp_0     0.472
    withdep_comp_0    0.488
    soma_comp_0       0.287
    socprob_comp_0    0.625
    thouprob_cmp_0    0.626
    attprob_comp_0    0.561
    rulebrek_cmp_0    0.509
    aggress_comp_0    0.594
    anxdep_comp_1     0.454
    withdep_comp_1    0.461
    soma_comp_1       0.277
    socprob_comp_1    0.634
    thouprob_cmp_1    0.609
    attprob_comp_1    0.554
    rulebrek_cmp_1    0.497
    aggress_comp_1    0.599
    anxdep_comp_2     0.463
    withdep_comp_2    0.405
    soma_comp_2       0.292
    socprob_comp_2    0.655
    thouprob_cmp_2    0.634
    attprob_comp_2    0.565
    rulebrek_cmp_2    0.486
    aggress_comp_2    0.606
    anxdep_comp_3     0.442
    withdep_comp_3    0.340
    soma_comp_3       0.284
    socprob_comp_3    0.668
    thouprob_cmp_3    0.644
    attprob_comp_3    0.558
    rulebrek_cmp_3    0.465
    aggress_comp_3    0.605
    anxdep_comp_4     0.453
    withdep_comp_4    0.297
    soma_comp_4       0.256
    socprob_comp_4    0.676
    thouprob_cmp_4    0.654
    attprob_comp_4    0.576
    rulebrek_cmp_4    0.390
    aggress_comp_4    0.633
    anxdep_comp_5     0.433
    withdep_comp_5    0.272
    soma_comp_5       0.219
    socprob_comp_5    0.676
    thouprob_cmp_5    0.612
    attprob_comp_5    0.558
    rulebrek_cmp_5    0.313
    aggress_comp_5    0.627
    anxdep_comp_6     0.436
    withdep_comp_6    0.269
    soma_comp_6       0.200
    socprob_comp_6    0.688
    thouprob_cmp_6    0.645
    attprob_comp_6    0.551
    rulebrek_cmp_6    0.281
    aggress_comp_6    0.645
    p_i               0.062
    p_s               0.029
    p_q               0.018
    g_etaB            0.922
    g_eta2            0.955
    g_eta4            0.912
    g_eta6            0.821
    flanker_0         0.245
    flanker_2         0.331
    flanker_4         0.380
    flanker_6         0.416
    pattern_0         0.374
    pattern_2         0.381
    pattern_4         0.376
    pattern_6         0.434
    picture_0         0.086
    picture_2         0.080
    picture_4         0.064
    picture_6         0.079
    picvocab_0        0.211
    picvocab_2        0.201
    picvocab_4        0.205
    picvocab_6        0.248
    reading_0         0.227
    reading_2         0.240
    reading_4         0.229
    reading_6         0.257
    g_i               0.001
    g_s               0.004

pc ~ pp model with sex

Children’s psychopathology (pc) was regressed on parental psychopathology (pp), with sex as a covariate.

model fit
pa6.sex.model <- "# second-order pp factor
               #factor loadings (with constraints)
               a_etaB =~ 1*asr_anxdep_comp_0+
                       lambda_AW*asr_withdep_comp_0+
                       lambda_AS*asr_soma_comp_0+
                       lambda_AC*asr_thouprob_comp_0+
                       lambda_AH*asr_attprob_comp_0+
                       lambda_AA*asr_rulebreak_comp_0+
                       lambda_AR*asr_aggress_comp_0+
                       lambda_AG*asr_intru_comp_0
               a_eta2 =~ 1*asr_anxdep_comp_2+
                       lambda_AW*asr_withdep_comp_2+
                       lambda_AS*asr_soma_comp_2+
                       lambda_AC*asr_thouprob_comp_2+
                       lambda_AH*asr_attprob_comp_2+
                       lambda_AA*asr_rulebreak_comp_2+
                       lambda_AR*asr_aggress_comp_2+
                       lambda_AG*asr_intru_comp_2
               a_eta4 =~ 1*asr_anxdep_comp_4+
                       lambda_AW*asr_withdep_comp_4+
                       lambda_AS*asr_soma_comp_4+
                       lambda_AC*asr_thouprob_comp_4+
                       lambda_AH*asr_attprob_comp_4+
                       lambda_AA*asr_rulebreak_comp_4+
                       lambda_AR*asr_aggress_comp_4+
                       lambda_AG*asr_intru_comp_4

              #latent variable variances
                      a_etaB~~NA*a_etaB
                      a_eta2~~NA*a_eta2
                      a_eta4~~NA*a_eta4

              #unique variances # No need to constrict these
                      asr_anxdep_comp_0~~asr_anxdep_comp_0
                      asr_withdep_comp_0~~asr_withdep_comp_0
                      asr_soma_comp_0~~asr_soma_comp_0
                      asr_thouprob_comp_0~~asr_thouprob_comp_0
                      asr_attprob_comp_0~~asr_attprob_comp_0
                      asr_rulebreak_comp_0~~asr_rulebreak_comp_0
                      asr_aggress_comp_0~~asr_aggress_comp_0
                      asr_intru_comp_0~~asr_intru_comp_0

                      asr_anxdep_comp_2~~asr_anxdep_comp_2
                      asr_withdep_comp_2~~asr_withdep_comp_2
                      asr_soma_comp_2~~asr_soma_comp_2
                      asr_thouprob_comp_2~~asr_thouprob_comp_2
                      asr_attprob_comp_2~~asr_attprob_comp_2
                      asr_rulebreak_comp_2~~asr_rulebreak_comp_2
                      asr_aggress_comp_2~~asr_aggress_comp_2
                      asr_intru_comp_2~~asr_intru_comp_2

                      asr_anxdep_comp_4~~asr_anxdep_comp_4
                      asr_withdep_comp_4~~asr_withdep_comp_4
                      asr_soma_comp_4~~asr_soma_comp_4
                      asr_thouprob_comp_4~~asr_thouprob_comp_4
                      asr_attprob_comp_4~~asr_attprob_comp_4
                      asr_rulebreak_comp_4~~asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_aggress_comp_4
                      asr_intru_comp_4~~asr_intru_comp_4

              #unique covariances
                      # Scores arcoss times
                      asr_anxdep_comp_0~~ asr_anxdep_comp_2 + asr_anxdep_comp_4
                      asr_anxdep_comp_2~~ asr_anxdep_comp_4

                      asr_withdep_comp_0 ~~ asr_withdep_comp_2 + asr_withdep_comp_4
                      asr_withdep_comp_2 ~~ asr_withdep_comp_4

                      asr_soma_comp_0~~ asr_soma_comp_2 + asr_soma_comp_4
                      asr_soma_comp_2~~ asr_soma_comp_4

                      asr_thouprob_comp_0~~ asr_thouprob_comp_2 + asr_thouprob_comp_4
                      asr_thouprob_comp_2~~ asr_thouprob_comp_4

                      asr_attprob_comp_0~~ asr_attprob_comp_2 + asr_attprob_comp_4
                      asr_attprob_comp_2~~ asr_attprob_comp_4

                      asr_rulebreak_comp_0~~ asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_rulebreak_comp_2~~ asr_rulebreak_comp_4

                      asr_aggress_comp_0~~ asr_aggress_comp_2 + asr_aggress_comp_4
                      asr_aggress_comp_2~~ asr_aggress_comp_4

                      asr_intru_comp_0~~ asr_intru_comp_2 + asr_intru_comp_4
                      asr_intru_comp_2~~ asr_intru_comp_4

                      # Internalizeing subscale covariances
                      asr_anxdep_comp_0~~asr_withdep_comp_0 + asr_soma_comp_0 + asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_2~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_4~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4

                      asr_withdep_comp_0~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_2~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_4~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4

                      # Externalizeing subscale covariances
                      asr_aggress_comp_0~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_2~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4

                      asr_intru_comp_0~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_2~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_4~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4

              #observed variable intercepts
                      asr_anxdep_comp_0~tau_AX*1
                      asr_withdep_comp_0~tau_AW*1
                      asr_soma_comp_0~tau_AS*1
                      asr_thouprob_comp_0~tau_AP*1
                      asr_attprob_comp_0~tau_AH*1
                      asr_rulebreak_comp_0~tau_AA*1
                      asr_aggress_comp_0~tau_AR*1
                      asr_intru_comp_0~tau_AG*1

                      asr_anxdep_comp_2~tau_AX*1
                      asr_withdep_comp_2~tau_AW*1
                      asr_soma_comp_2~tau_AS*1
                      asr_thouprob_comp_2~tau_AP*1
                      asr_attprob_comp_2~tau_AH*1
                      asr_rulebreak_comp_2~tau_AA*1
                      asr_aggress_comp_2~tau_AR*1
                      asr_intru_comp_2~tau_AG*1

                      asr_anxdep_comp_4~tau_AX*1
                      asr_withdep_comp_4~tau_AW*1
                      asr_soma_comp_4~tau_AS*1
                      asr_thouprob_comp_4~tau_AP*1
                      asr_attprob_comp_4~tau_AH*1
                      asr_rulebreak_comp_4~tau_AA*1
                      asr_aggress_comp_4~tau_AR*1
                      asr_intru_comp_4~tau_AG*1

                      #latent basis model
                      a_i =~ 1*a_etaB+1*a_eta2+1*a_eta4
                      a_s =~ 0*a_etaB+1*a_eta2+2*a_eta4
                      a_i~~NA*a_i
                      a_s~~NA*a_s
                      a_i~~a_s
                      a_i~1 + dummy_sex
                      a_s~1 + dummy_sex
                      a_etaB~0*1
                      a_eta2~0*1
                      a_eta4~0*1

               # second-order pc factor
               #factor loadings (with constraints)
               p_etaB =~ 1*anxdep_comp_0+
                       lambda_CW*withdep_comp_0+
                       lambda_CS*soma_comp_0+
                       lambda_CC*socprob_comp_0+
                       lambda_CH*thouprob_comp_0+
                       lambda_CA*attprob_comp_0+
                       lambda_CR*rulebreak_comp_0+
                       lambda_CG*aggress_comp_0
               p_eta1 =~ 1*anxdep_comp_1+
                       lambda_CW*withdep_comp_1+
                       lambda_CS*soma_comp_1+
                       lambda_CC*socprob_comp_1+
                       lambda_CH*thouprob_comp_1+
                       lambda_CA*attprob_comp_1+
                       lambda_CR*rulebreak_comp_1+
                       lambda_CG*aggress_comp_1
               p_eta2 =~ 1*anxdep_comp_2+
                       lambda_CW*withdep_comp_2+
                       lambda_CS*soma_comp_2+
                       lambda_CC*socprob_comp_2+
                       lambda_CH*thouprob_comp_2+
                       lambda_CA*attprob_comp_2+
                       lambda_CR*rulebreak_comp_2+
                       lambda_CG*aggress_comp_2
               p_eta3 =~ 1*anxdep_comp_3+
                       lambda_CW*withdep_comp_3+
                       lambda_CS*soma_comp_3+
                       lambda_CC*socprob_comp_3+
                       lambda_CH*thouprob_comp_3+
                       lambda_CA*attprob_comp_3+
                       lambda_CR*rulebreak_comp_3+
                       lambda_CG*aggress_comp_3
               p_eta4 =~ 1*anxdep_comp_4+
                       lambda_CW*withdep_comp_4+
                       lambda_CS*soma_comp_4+
                       lambda_CC*socprob_comp_4+
                       lambda_CH*thouprob_comp_4+
                       lambda_CA*attprob_comp_4+
                       lambda_CR*rulebreak_comp_4+
                       lambda_CG*aggress_comp_4
               p_eta5 =~ 1*anxdep_comp_5+
                       lambda_CW*withdep_comp_5+
                       lambda_CS*soma_comp_5+
                       lambda_CC*socprob_comp_5+
                       lambda_CH*thouprob_comp_5+
                       lambda_CA*attprob_comp_5+
                       lambda_CR*rulebreak_comp_5+
                       lambda_CG*aggress_comp_5
               p_eta6 =~ 1*anxdep_comp_6+
                       lambda_CW*withdep_comp_6+
                       lambda_CS*soma_comp_6+
                       lambda_CC*socprob_comp_6+
                       lambda_CH*thouprob_comp_6+
                       lambda_CA*attprob_comp_6+
                       lambda_CR*rulebreak_comp_6+
                       lambda_CG*aggress_comp_6

              #latent variable variances
                      p_etaB~~NA*p_etaB
                      p_eta1~~NA*p_eta1
                      p_eta2~~NA*p_eta2
                      p_eta3~~NA*p_eta3
                      p_eta4~~NA*p_eta4
                      p_eta5~~NA*p_eta5
                      p_eta6~~NA*p_eta6

              #unique variances # No need to constrict these
                      anxdep_comp_0~~anxdep_comp_0
                      withdep_comp_0~~withdep_comp_0
                      soma_comp_0~~soma_comp_0
                      socprob_comp_0~~socprob_comp_0
                      thouprob_comp_0~~thouprob_comp_0
                      attprob_comp_0~~attprob_comp_0
                      rulebreak_comp_0~~rulebreak_comp_0
                      aggress_comp_0~~aggress_comp_0
                      anxdep_comp_1~~anxdep_comp_1
                      withdep_comp_1~~withdep_comp_1
                      soma_comp_1~~soma_comp_1
                      socprob_comp_1~~socprob_comp_1
                      thouprob_comp_1~~thouprob_comp_1
                      attprob_comp_1~~attprob_comp_1
                      rulebreak_comp_1~~rulebreak_comp_1
                      aggress_comp_1~~aggress_comp_1

                      anxdep_comp_2~~anxdep_comp_2
                      withdep_comp_2~~withdep_comp_2
                      soma_comp_2~~soma_comp_2
                      socprob_comp_2~~socprob_comp_2
                      thouprob_comp_2~~thouprob_comp_2
                      attprob_comp_2~~attprob_comp_2
                      rulebreak_comp_2~~rulebreak_comp_2
                      aggress_comp_2~~aggress_comp_2

                      anxdep_comp_3~~anxdep_comp_3
                      withdep_comp_3~~withdep_comp_3
                      soma_comp_3~~soma_comp_3
                      socprob_comp_3~~socprob_comp_3
                      thouprob_comp_3~~thouprob_comp_3
                      attprob_comp_3~~attprob_comp_3
                      rulebreak_comp_3~~rulebreak_comp_3
                      aggress_comp_3~~aggress_comp_3

                      anxdep_comp_4~~anxdep_comp_4
                      withdep_comp_4~~withdep_comp_4
                      soma_comp_4~~soma_comp_4
                      socprob_comp_4~~socprob_comp_4
                      thouprob_comp_4~~thouprob_comp_4
                      attprob_comp_4~~attprob_comp_4
                      rulebreak_comp_4~~rulebreak_comp_4
                      aggress_comp_4~~aggress_comp_4

                      anxdep_comp_5~~anxdep_comp_5
                      withdep_comp_5~~withdep_comp_5
                      soma_comp_5~~soma_comp_5
                      socprob_comp_5~~socprob_comp_5
                      thouprob_comp_5~~thouprob_comp_5
                      attprob_comp_5~~attprob_comp_5
                      rulebreak_comp_5~~rulebreak_comp_5
                      aggress_comp_5~~aggress_comp_5

                      anxdep_comp_6~~anxdep_comp_6
                      withdep_comp_6~~withdep_comp_6
                      soma_comp_6~~soma_comp_6
                      socprob_comp_6~~socprob_comp_6
                      thouprob_comp_6~~thouprob_comp_6
                      attprob_comp_6~~attprob_comp_6
                      rulebreak_comp_6~~rulebreak_comp_6
                      aggress_comp_6~~aggress_comp_6

              #unique covariances
                      # Scores arcoss times
                      anxdep_comp_0~~anxdep_comp_1 + anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_1~~anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_2~~anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_3~~anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_4~~anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_5~~anxdep_comp_6

                      withdep_comp_0~~withdep_comp_1 + withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_1~~withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_2~~withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_3~~withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_4~~withdep_comp_5 + withdep_comp_6
                      withdep_comp_5~~withdep_comp_6

                      soma_comp_0~~soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_1~~soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_2~~soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_3~~soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_4~~soma_comp_5 + soma_comp_6
                      soma_comp_5~~soma_comp_6

                      socprob_comp_0~~socprob_comp_1 + socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_1~~socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_2~~socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_3~~socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_4~~socprob_comp_5 + socprob_comp_6
                      socprob_comp_5~~socprob_comp_6

                      thouprob_comp_0~~thouprob_comp_1 + thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_1~~thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_2~~thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_3~~thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_4~~thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_5~~thouprob_comp_6

                      attprob_comp_0~~attprob_comp_1 + attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_1~~attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_2~~attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_3~~attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_4~~attprob_comp_5 + attprob_comp_6
                      attprob_comp_5~~attprob_comp_6

                      rulebreak_comp_0~~rulebreak_comp_1 + rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_1~~rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_2~~rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_3~~rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_4~~rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_5~~rulebreak_comp_6

                      aggress_comp_0~~aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_1~~aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_2~~aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_3~~aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_4~~aggress_comp_5 + aggress_comp_6
                      aggress_comp_5~~aggress_comp_6

                      # Internalizeing subscale covariances
                      anxdep_comp_0~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_1~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_2~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_3~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_4~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_5~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_6~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6

                      withdep_comp_0~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_1~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_2~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_3~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_4~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_5~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_6~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6

                      # Externalizeing subscale covariances
                      rulebreak_comp_0~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_1~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_2~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_3~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_4~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_5~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_6~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6

              #observed variable intercepts
                      anxdep_comp_0~tau_CX*1
                      anxdep_comp_1~tau_CX*1
                      anxdep_comp_2~tau_CX*1
                      anxdep_comp_3~tau_CX*1
                      anxdep_comp_4~tau_CX*1
                      anxdep_comp_5~tau_CX*1
                      anxdep_comp_6~tau_CX*1
                      withdep_comp_0~tau_CW*1
                      withdep_comp_1~tau_CW*1
                      withdep_comp_2~tau_CW*1
                      withdep_comp_3~tau_CW*1
                      withdep_comp_4~tau_CW*1
                      withdep_comp_5~tau_CW*1
                      withdep_comp_6~tau_CW*1
                      soma_comp_0~tau_CS*1
                      soma_comp_1~tau_CS*1
                      soma_comp_2~tau_CS*1
                      soma_comp_3~tau_CS*1
                      soma_comp_4~tau_CS*1
                      soma_comp_5~tau_CS*1
                      soma_comp_6~tau_CS*1
                      socprob_comp_0~tau_CP*1
                      socprob_comp_1~tau_CP*1
                      socprob_comp_2~tau_CP*1
                      socprob_comp_3~tau_CP*1
                      socprob_comp_4~tau_CP*1
                      socprob_comp_5~tau_CP*1
                      socprob_comp_6~tau_CP*1
                      thouprob_comp_0~tau_CH*1
                      thouprob_comp_1~tau_CH*1
                      thouprob_comp_2~tau_CH*1
                      thouprob_comp_3~tau_CH*1
                      thouprob_comp_4~tau_CH*1
                      thouprob_comp_5~tau_CH*1
                      thouprob_comp_6~tau_CH*1
                      attprob_comp_0~tau_CA*1
                      attprob_comp_1~tau_CA*1
                      attprob_comp_2~tau_CA*1
                      attprob_comp_3~tau_CA*1
                      attprob_comp_4~tau_CA*1
                      attprob_comp_5~tau_CA*1
                      attprob_comp_6~tau_CA*1
                      rulebreak_comp_0~tau_CR*1
                      rulebreak_comp_1~tau_CR*1
                      rulebreak_comp_2~tau_CR*1
                      rulebreak_comp_3~tau_CR*1
                      rulebreak_comp_4~tau_CR*1
                      rulebreak_comp_5~tau_CR*1
                      rulebreak_comp_6~tau_CR*1
                      aggress_comp_0~tau_CG*1
                      aggress_comp_1~tau_CG*1
                      aggress_comp_2~tau_CG*1
                      aggress_comp_3~tau_CG*1
                      aggress_comp_4~tau_CG*1
                      aggress_comp_5~tau_CG*1
                      aggress_comp_6~tau_CG*1

                       #latent basis model
                      p_i =~ 1*p_etaB + 1*p_eta1 + 1*p_eta2 + 1*p_eta3 + 1*p_eta4 + 1*p_eta5 + 1*p_eta6
                      p_s =~ 0*p_etaB + .5*p_eta1 + 1*p_eta2 + 1.5*p_eta3 + 2*p_eta4 + 2.5*p_eta5 + 3*p_eta6
                      p_q =~ 0*p_etaB + .25*p_eta1 + 1*p_eta2 + 2.25*p_eta3 + 4*p_eta4 + 6.25*p_eta5 + 9*p_eta6

                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q

                      p_i~~p_s + p_q
                      p_s~~p_q
                      p_i~1 + dummy_sex
                      p_s~1 + dummy_sex
                      p_q~1 + dummy_sex
                      p_etaB ~ 0*1
                      p_eta1 ~ 0*1
                      p_eta2 ~ 0*1
                      p_eta3 ~ 0*1
                      p_eta4 ~ 0*1
                      p_eta5 ~ 0*1
                      p_eta6 ~ 0*1

                      # regression
                      p_i ~ a_i
                      p_s ~ a_i + a_s
                      p_q ~ a_i + a_s"

lavaan(pa6.sex.model,
  data = readRDS("pga6_all_data_sex.rds"),
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = T,
  std.lv = T
) %>%
  saveRDS("pgcm_pa6_sex_model.rds")
result
readRDS("pgcm_pa6_sex_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pgcm_pa6_sex_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pgcm_pa6_sex_model.rds"), "cor.lv"))$value
 [1] 7.835422799 3.203830370 1.385822675 0.761228822 0.390754358 0.228155034
 [7] 0.224917298 0.216672210 0.212016656 0.186180931 0.138384891 0.117829915
[13] 0.053056513 0.038984732 0.006742795
readRDS("pgcm_pa6_sex_result.rds")
lavaan 0.6-19 ended normally after 215 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       706
  Number of equality constraints                   120

  Number of observations                         11867
  Number of missing patterns                       109

Model Test User Model:
                                                       
  Test statistic                              31273.403
  Degrees of freedom                               2814
  P-value (Chi-square)                            0.000

Model Test Baseline Model:

  Test statistic                            714000.094
  Degrees of freedom                              3240
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.960
  Tucker-Lewis Index (TLI)                       0.954
                                                      
  Robust Comparative Fit Index (CFI)             0.960
  Robust Tucker-Lewis Index (TLI)                0.954

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -781349.432
  Loglikelihood unrestricted model (H1)    -765712.731
                                                      
  Akaike (AIC)                             1563870.865
  Bayesian (BIC)                           1568196.433
  Sample-size adjusted Bayesian (SABIC)    1566334.193

Root Mean Square Error of Approximation:

  RMSEA                                          0.029
  90 Percent confidence interval - lower         0.029
  90 Percent confidence interval - upper         0.029
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.033
  90 Percent confidence interval - lower         0.032
  90 Percent confidence interval - upper         0.033
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.055

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.841    0.833
    asr___0 (l_AW)    0.892    0.007  126.578    0.000    0.751    0.733
    asr___0 (l_AS)    0.800    0.007  112.101    0.000    0.673    0.672
    asr___0 (l_AC)    0.931    0.007  125.461    0.000    0.783    0.752
    asr___0 (l_AH)    0.907    0.007  131.013    0.000    0.763    0.767
    asr___0 (l_AA)    0.780    0.008   98.217    0.000    0.656    0.629
    asr___0 (l_AR)    0.922    0.007  125.079    0.000    0.775    0.757
    asr___0 (l_AG)    0.489    0.008   59.979    0.000    0.412    0.398
  a_eta2 =~                                                             
    asr___2           1.000                               0.832    0.819
    asr___2 (l_AW)    0.892    0.007  126.578    0.000    0.742    0.731
    asr___2 (l_AS)    0.800    0.007  112.101    0.000    0.665    0.664
    asr___2 (l_AC)    0.931    0.007  125.461    0.000    0.774    0.770
    asr___2 (l_AH)    0.907    0.007  131.013    0.000    0.755    0.773
    asr___2 (l_AA)    0.780    0.008   98.217    0.000    0.649    0.641
    asr___2 (l_AR)    0.922    0.007  125.079    0.000    0.767    0.758
    asr___2 (l_AG)    0.489    0.008   59.979    0.000    0.407    0.410
  a_eta4 =~                                                             
    asr___4           1.000                               0.800    0.802
    asr___4 (l_AW)    0.892    0.007  126.578    0.000    0.713    0.725
    asr___4 (l_AS)    0.800    0.007  112.101    0.000    0.639    0.651
    asr___4 (l_AC)    0.931    0.007  125.461    0.000    0.744    0.769
    asr___4 (l_AH)    0.907    0.007  131.013    0.000    0.725    0.745
    asr___4 (l_AA)    0.780    0.008   98.217    0.000    0.623    0.640
    asr___4 (l_AR)    0.922    0.007  125.079    0.000    0.737    0.752
    asr___4 (l_AG)    0.489    0.008   59.979    0.000    0.391    0.399
  a_i =~                                                                
    a_etaB            1.000                               0.927    0.927
    a_eta2            1.000                               0.938    0.938
    a_eta4            1.000                               0.976    0.976
  a_s =~                                                                
    a_etaB            0.000                               0.000    0.000
    a_eta2            1.000                               0.304    0.304
    a_eta4            2.000                               0.632    0.632
  p_etaB =~                                                             
    anxd__0           1.000                               0.746    0.723
    wthd__0 (lm_W)    0.863    0.006  141.124    0.000    0.643    0.711
    sm_cm_0 (lm_S)    0.739    0.007  111.000    0.000    0.551    0.553
    scpr__0 (lm_C)    1.115    0.007  153.887    0.000    0.832    0.787
    thpr__0 (lm_H)    1.104    0.007  152.724    0.000    0.823    0.791
    attp__0 (lm_A)    0.993    0.007  142.787    0.000    0.740    0.738
    rlbr__0 (lm_R)    0.856    0.007  120.371    0.000    0.638    0.678
    aggr__0 (lm_G)    1.064    0.007  147.191    0.000    0.794    0.757
  p_eta1 =~                                                             
    anxd__1           1.000                               0.739    0.714
    wthd__1 (lm_W)    0.863    0.006  141.124    0.000    0.638    0.697
    sm_cm_1 (lm_S)    0.739    0.007  111.000    0.000    0.546    0.547
    scpr__1 (lm_C)    1.115    0.007  153.887    0.000    0.824    0.796
    thpr__1 (lm_H)    1.104    0.007  152.724    0.000    0.816    0.784
    attp__1 (lm_A)    0.993    0.007  142.787    0.000    0.734    0.739
    rlbr__1 (lm_R)    0.856    0.007  120.371    0.000    0.633    0.674
    aggr__1 (lm_G)    1.064    0.007  147.191    0.000    0.787    0.764
  p_eta2 =~                                                             
    anxd__2           1.000                               0.730    0.719
    wthd__2 (lm_W)    0.863    0.006  141.124    0.000    0.630    0.655
    sm_cm_2 (lm_S)    0.739    0.007  111.000    0.000    0.539    0.559
    scpr__2 (lm_C)    1.115    0.007  153.887    0.000    0.814    0.808
    thpr__2 (lm_H)    1.104    0.007  152.724    0.000    0.806    0.799
    attp__2 (lm_A)    0.993    0.007  142.787    0.000    0.725    0.745
    rlbr__2 (lm_R)    0.856    0.007  120.371    0.000    0.625    0.662
    aggr__2 (lm_G)    1.064    0.007  147.191    0.000    0.777    0.767
  p_eta3 =~                                                             
    anxd__3           1.000                               0.723    0.706
    wthd__3 (lm_W)    0.863    0.006  141.124    0.000    0.623    0.604
    sm_cm_3 (lm_S)    0.739    0.007  111.000    0.000    0.534    0.554
    scpr__3 (lm_C)    1.115    0.007  153.887    0.000    0.806    0.818
    thpr__3 (lm_H)    1.104    0.007  152.724    0.000    0.798    0.806
    attp__3 (lm_A)    0.993    0.007  142.787    0.000    0.717    0.743
    rlbr__3 (lm_R)    0.856    0.007  120.371    0.000    0.618    0.648
    aggr__3 (lm_G)    1.064    0.007  147.191    0.000    0.769    0.769
  p_eta4 =~                                                             
    anxd__4           1.000                               0.710    0.711
    wthd__4 (lm_W)    0.863    0.006  141.124    0.000    0.613    0.562
    sm_cm_4 (lm_S)    0.739    0.007  111.000    0.000    0.524    0.523
    scpr__4 (lm_C)    1.115    0.007  153.887    0.000    0.792    0.820
    thpr__4 (lm_H)    1.104    0.007  152.724    0.000    0.784    0.809
    attp__4 (lm_A)    0.993    0.007  142.787    0.000    0.705    0.752
    rlbr__4 (lm_R)    0.856    0.007  120.371    0.000    0.608    0.586
    aggr__4 (lm_G)    1.064    0.007  147.191    0.000    0.756    0.785
  p_eta5 =~                                                             
    anxd__5           1.000                               0.707    0.701
    wthd__5 (lm_W)    0.863    0.006  141.124    0.000    0.610    0.541
    sm_cm_5 (lm_S)    0.739    0.007  111.000    0.000    0.522    0.488
    scpr__5 (lm_C)    1.115    0.007  153.887    0.000    0.788    0.821
    thpr__5 (lm_H)    1.104    0.007  152.724    0.000    0.780    0.787
    attp__5 (lm_A)    0.993    0.007  142.787    0.000    0.702    0.743
    rlbr__5 (lm_R)    0.856    0.007  120.371    0.000    0.605    0.524
    aggr__5 (lm_G)    1.064    0.007  147.191    0.000    0.752    0.783
  p_eta6 =~                                                             
    anxd__6           1.000                               0.672    0.701
    wthd__6 (lm_W)    0.863    0.006  141.124    0.000    0.580    0.536
    sm_cm_6 (lm_S)    0.739    0.007  111.000    0.000    0.496    0.465
    scpr__6 (lm_C)    1.115    0.007  153.887    0.000    0.749    0.828
    thpr__6 (lm_H)    1.104    0.007  152.724    0.000    0.742    0.806
    attp__6 (lm_A)    0.993    0.007  142.787    0.000    0.667    0.737
    rlbr__6 (lm_R)    0.856    0.007  120.371    0.000    0.575    0.495
    aggr__6 (lm_G)    1.064    0.007  147.191    0.000    0.715    0.795
  p_i =~                                                                
    p_etaB            1.000                               0.925    0.925
    p_eta1            1.000                               0.933    0.933
    p_eta2            1.000                               0.944    0.944
    p_eta3            1.000                               0.954    0.954
    p_eta4            1.000                               0.972    0.972
    p_eta5            1.000                               0.976    0.976
    p_eta6            1.000                               1.026    1.026
  p_s =~                                                                
    p_etaB            0.000                               0.000    0.000
    p_eta1            0.500                               0.288    0.288
    p_eta2            1.000                               0.583    0.583
    p_eta3            1.500                               0.884    0.884
    p_eta4            2.000                               1.199    1.199
    p_eta5            2.500                               1.506    1.506
    p_eta6            3.000                               1.900    1.900
  p_q =~                                                                
    p_etaB            0.000                               0.000    0.000
    p_eta1            0.250                               0.041    0.041
    p_eta2            1.000                               0.168    0.168
    p_eta3            2.250                               0.381    0.381
    p_eta4            4.000                               0.689    0.689
    p_eta5            6.250                               1.082    1.082
    p_eta6            9.000                               1.638    1.638

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_i ~                                                                 
    dummy_sex         0.031    0.016    1.931    0.053    0.040    0.020
  a_s ~                                                                 
    dummy_sex        -0.015    0.007   -2.035    0.042   -0.058   -0.029
  p_i ~                                                                 
    dummy_sex         0.140    0.012   11.486    0.000    0.203    0.101
  p_s ~                                                                 
    dummy_sex        -0.044    0.013   -3.280    0.001   -0.102   -0.051
  p_q ~                                                                 
    dummy_sex        -0.010    0.004   -2.377    0.017   -0.083   -0.041
  p_i ~                                                                 
    a_i               0.618    0.010   59.892    0.000    0.699    0.699
  p_s ~                                                                 
    a_i               0.012    0.011    1.040    0.298    0.022    0.022
    a_s               1.269    0.063   20.068    0.000    0.754    0.754
  p_q ~                                                                 
    a_i              -0.018    0.004   -4.935    0.000   -0.113   -0.113
    a_s              -0.312    0.018  -17.005    0.000   -0.645   -0.645

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.182    0.005   37.151    0.000    0.182    0.559
   .asr_nxdp_cmp_4           0.166    0.005   32.845    0.000    0.166    0.499
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.202    0.005   37.426    0.000    0.202    0.583
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.227    0.006   37.141    0.000    0.227    0.470
   .asr_wthdp_cm_4           0.206    0.006   33.192    0.000    0.206    0.436
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.225    0.006   35.538    0.000    0.225    0.478
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.275    0.007   40.924    0.000    0.275    0.495
   .asr_soma_cmp_4           0.240    0.007   35.104    0.000    0.240    0.434
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.282    0.007   39.225    0.000    0.282    0.506
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.191    0.005   35.355    0.000    0.191    0.435
   .asr_thprb_cm_4           0.159    0.005   29.360    0.000    0.159    0.375
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.167    0.005   31.770    0.000    0.167    0.421
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.255    0.005   48.707    0.000    0.255    0.644
   .asr_ttprb_cm_4           0.249    0.006   45.033    0.000    0.249    0.600
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.268    0.006   47.695    0.000    0.268    0.667
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.304    0.007   41.479    0.000    0.304    0.483
   .asr_rlbrk_cm_4           0.260    0.007   35.891    0.000    0.260    0.429
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.283    0.007   38.797    0.000    0.283    0.487
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.243    0.006   43.315    0.000    0.243    0.551
   .asr_ggrss_cm_4           0.220    0.006   39.248    0.000    0.220    0.508
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.248    0.006   42.703    0.000    0.248    0.582
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.495    0.010   51.824    0.000    0.495    0.576
   .asr_intr_cmp_4           0.464    0.010   47.902    0.000    0.464    0.546
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.473    0.010   49.576    0.000    0.473    0.582
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.019    0.005    3.866    0.000    0.019    0.049
   .asr_soma_cmp_0           0.026    0.005    5.164    0.000    0.026    0.063
   .asr_wthdp_cm_2           0.019    0.005    3.960    0.000    0.019    0.050
   .asr_soma_cmp_2           0.032    0.005    6.235    0.000    0.032    0.076
   .asr_wthdp_cm_4           0.017    0.005    3.420    0.001    0.017    0.045
   .asr_soma_cmp_4           0.031    0.005    5.752    0.000    0.031    0.074
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2           0.009    0.005    1.866    0.062    0.009    0.023
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.025    0.005    4.889    0.000    0.025    0.058
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.036    0.005    6.842    0.000    0.036    0.088
   .asr_soma_cmp_2           0.045    0.005    8.279    0.000    0.045    0.103
   .asr_wthdp_cm_4           0.022    0.005    4.305    0.000    0.022    0.056
   .asr_soma_cmp_4           0.027    0.006    4.931    0.000    0.027    0.063
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4           0.001    0.005    0.249    0.803    0.001    0.003
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.024    0.005    4.432    0.000    0.024    0.055
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.017    0.005    3.178    0.001    0.017    0.041
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.042    0.006    7.502    0.000    0.042    0.095
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.041    0.006    7.449    0.000    0.041    0.102
   .asr_soma_cmp_4           0.058    0.006    9.833    0.000    0.058    0.131
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.033    0.006   -5.819    0.000   -0.033   -0.064
   .asr_soma_cmp_2          -0.021    0.006   -3.586    0.000   -0.021   -0.040
   .asr_soma_cmp_4          -0.035    0.006   -5.728    0.000   -0.035   -0.068
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.015    0.006   -2.539    0.011   -0.015   -0.028
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.016    0.006   -2.754    0.006   -0.016   -0.031
   .asr_soma_cmp_4          -0.023    0.006   -3.682    0.000   -0.023   -0.044
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.017    0.006   -2.881    0.004   -0.017   -0.034
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.021    0.006   -3.507    0.000   -0.021   -0.042
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.022    0.006   -3.610    0.000   -0.022   -0.044
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.131    0.007   19.530    0.000    0.131    0.207
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.073    0.006   12.245    0.000    0.073    0.134
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.084    0.006   13.055    0.000    0.084    0.139
   .asr_rlbrk_cm_2           0.024    0.006    4.232    0.000    0.024    0.046
   .asr_intr_cmp_4           0.093    0.007   13.917    0.000    0.093    0.154
   .asr_rlbrk_cm_4           0.031    0.006    5.370    0.000    0.031    0.062
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.093    0.007   13.987    0.000    0.093    0.148
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.050    0.006    8.470    0.000    0.050    0.093
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.136    0.007   20.646    0.000    0.136    0.228
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.045    0.006    7.762    0.000    0.045    0.087
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.107    0.007   15.872    0.000    0.107    0.180
   .asr_rlbrk_cm_4           0.042    0.006    7.193    0.000    0.042    0.085
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.095    0.007   13.987    0.000    0.095    0.156
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.056    0.006    9.234    0.000    0.056    0.106
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.102    0.007   15.331    0.000    0.102    0.174
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.046    0.006    7.823    0.000    0.046    0.093
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.137    0.007   20.047    0.000    0.137    0.236
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.064    0.006   10.796    0.000    0.064    0.132
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.119    0.008   15.459    0.000    0.119    0.155
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.067    0.007    8.985    0.000    0.067    0.091
   .asr_rlbrk_cm_4           0.072    0.008    9.420    0.000    0.072    0.101
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.072    0.008    9.517    0.000    0.072    0.097
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.111    0.007   15.152    0.000    0.111    0.158
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.070    0.007    9.497    0.000    0.070    0.104
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.085    0.008   10.977    0.000    0.085    0.117
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.078    0.008   10.247    0.000    0.078    0.112
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.109    0.008   14.550    0.000    0.109    0.163
 .a_i ~~                                                                       
   .a_s                     -0.081    0.004  -18.577    0.000   -0.412   -0.412
 .anxdep_comp_0 ~~                                                             
   .anxdep_comp_1            0.312    0.006   48.459    0.000    0.312    0.603
   .anxdep_comp_2            0.274    0.006   44.555    0.000    0.274    0.544
   .anxdep_comp_3            0.248    0.006   39.783    0.000    0.248    0.481
   .anxdep_comp_4            0.222    0.006   36.390    0.000    0.222    0.443
   .anxdep_comp_5            0.202    0.006   31.760    0.000    0.202    0.394
   .anxdep_comp_6            0.181    0.007   25.093    0.000    0.181    0.370
 .anxdep_comp_1 ~~                                                             
   .anxdep_comp_2            0.303    0.006   47.215    0.000    0.303    0.593
   .anxdep_comp_3            0.271    0.006   41.945    0.000    0.271    0.517
   .anxdep_comp_4            0.232    0.006   37.005    0.000    0.232    0.455
   .anxdep_comp_5            0.225    0.007   34.215    0.000    0.225    0.432
   .anxdep_comp_6            0.195    0.007   26.352    0.000    0.195    0.394
 .anxdep_comp_2 ~~                                                             
   .anxdep_comp_3            0.315    0.007   47.977    0.000    0.315    0.617
   .anxdep_comp_4            0.269    0.006   42.665    0.000    0.269    0.541
   .anxdep_comp_5            0.250    0.007   38.406    0.000    0.250    0.491
   .anxdep_comp_6            0.219    0.007   30.294    0.000    0.219    0.453
 .anxdep_comp_3 ~~                                                             
   .anxdep_comp_4            0.304    0.007   45.560    0.000    0.304    0.597
   .anxdep_comp_5            0.284    0.007   41.226    0.000    0.284    0.546
   .anxdep_comp_6            0.243    0.007   32.817    0.000    0.243    0.490
 .anxdep_comp_4 ~~                                                             
   .anxdep_comp_5            0.331    0.007   46.751    0.000    0.331    0.654
   .anxdep_comp_6            0.269    0.007   35.880    0.000    0.269    0.558
 .anxdep_comp_5 ~~                                                             
   .anxdep_comp_6            0.306    0.008   38.725    0.000    0.306    0.621
 .withdep_comp_0 ~~                                                            
   .withdep_comp_1           0.234    0.005   44.765    0.000    0.234    0.560
   .withdep_comp_2           0.196    0.005   36.616    0.000    0.196    0.424
   .withdep_comp_3           0.161    0.006   27.208    0.000    0.161    0.307
   .withdep_comp_4           0.125    0.007   19.051    0.000    0.125    0.217
   .withdep_comp_5           0.104    0.007   14.564    0.000    0.104    0.172
   .withdep_comp_6           0.082    0.008    9.963    0.000    0.082    0.141
 .withdep_comp_1 ~~                                                            
   .withdep_comp_2           0.255    0.006   44.455    0.000    0.255    0.534
   .withdep_comp_3           0.234    0.006   36.966    0.000    0.234    0.432
   .withdep_comp_4           0.198    0.007   28.609    0.000    0.198    0.334
   .withdep_comp_5           0.179    0.008   23.872    0.000    0.179    0.288
   .withdep_comp_6           0.144    0.008   17.016    0.000    0.144    0.240
 .withdep_comp_2 ~~                                                            
   .withdep_comp_3           0.335    0.007   45.528    0.000    0.335    0.559
   .withdep_comp_4           0.308    0.008   38.418    0.000    0.308    0.470
   .withdep_comp_5           0.285    0.009   33.033    0.000    0.285    0.413
   .withdep_comp_6           0.239    0.010   24.269    0.000    0.239    0.359
 .withdep_comp_3 ~~                                                            
   .withdep_comp_4           0.439    0.010   45.729    0.000    0.439    0.591
   .withdep_comp_5           0.424    0.010   41.455    0.000    0.424    0.543
   .withdep_comp_6           0.354    0.011   31.791    0.000    0.354    0.471
 .withdep_comp_4 ~~                                                            
   .withdep_comp_5           0.558    0.012   47.209    0.000    0.558    0.653
   .withdep_comp_6           0.473    0.013   37.570    0.000    0.473    0.574
 .withdep_comp_5 ~~                                                            
   .withdep_comp_6           0.568    0.014   41.273    0.000    0.568    0.657
 .soma_comp_0 ~~                                                               
   .soma_comp_1              0.354    0.008   45.798    0.000    0.354    0.509
   .soma_comp_2              0.299    0.007   40.690    0.000    0.299    0.449
   .soma_comp_3              0.265    0.007   36.077    0.000    0.265    0.398
   .soma_comp_4              0.253    0.008   31.916    0.000    0.253    0.356
   .soma_comp_5              0.249    0.009   27.894    0.000    0.249    0.321
   .soma_comp_6              0.244    0.011   22.796    0.000    0.244    0.311
 .soma_comp_1 ~~                                                               
   .soma_comp_2              0.334    0.008   44.178    0.000    0.334    0.500
   .soma_comp_3              0.291    0.008   38.559    0.000    0.291    0.434
   .soma_comp_4              0.276    0.008   34.338    0.000    0.276    0.387
   .soma_comp_5              0.280    0.009   30.786    0.000    0.280    0.358
   .soma_comp_6              0.256    0.011   23.495    0.000    0.256    0.324
 .soma_comp_2 ~~                                                               
   .soma_comp_3              0.323    0.007   43.576    0.000    0.323    0.504
   .soma_comp_4              0.303    0.008   38.279    0.000    0.303    0.443
   .soma_comp_5              0.297    0.009   33.852    0.000    0.297    0.397
   .soma_comp_6              0.273    0.010   26.439    0.000    0.273    0.361
 .soma_comp_3 ~~                                                               
   .soma_comp_4              0.338    0.008   41.215    0.000    0.338    0.493
   .soma_comp_5              0.326    0.009   35.937    0.000    0.326    0.435
   .soma_comp_6              0.312    0.011   29.586    0.000    0.312    0.411
 .soma_comp_4 ~~                                                               
   .soma_comp_5              0.441    0.010   43.284    0.000    0.441    0.552
   .soma_comp_6              0.411    0.012   34.524    0.000    0.411    0.509
 .soma_comp_5 ~~                                                               
   .soma_comp_6              0.522    0.013   39.114    0.000    0.522    0.592
 .socprob_comp_0 ~~                                                            
   .socprob_comp_1           0.200    0.005   37.002    0.000    0.200    0.488
   .socprob_comp_2           0.163    0.005   32.453    0.000    0.163    0.422
   .socprob_comp_3           0.129    0.005   26.794    0.000    0.129    0.349
   .socprob_comp_4           0.105    0.005   22.108    0.000    0.105    0.290
   .socprob_comp_5           0.094    0.005   19.435    0.000    0.094    0.262
   .socprob_comp_6           0.077    0.005   14.247    0.000    0.077    0.233
 .socprob_comp_1 ~~                                                            
   .socprob_comp_2           0.180    0.005   35.886    0.000    0.180    0.483
   .socprob_comp_3           0.144    0.005   30.097    0.000    0.144    0.404
   .socprob_comp_4           0.115    0.005   24.575    0.000    0.115    0.330
   .socprob_comp_5           0.100    0.005   21.154    0.000    0.100    0.291
   .socprob_comp_6           0.092    0.005   17.410    0.000    0.092    0.290
 .socprob_comp_2 ~~                                                            
   .socprob_comp_3           0.162    0.005   34.357    0.000    0.162    0.481
   .socprob_comp_4           0.138    0.005   30.163    0.000    0.138    0.420
   .socprob_comp_5           0.116    0.005   25.134    0.000    0.116    0.357
   .socprob_comp_6           0.105    0.005   20.769    0.000    0.105    0.347
 .socprob_comp_3 ~~                                                            
   .socprob_comp_4           0.146    0.005   32.215    0.000    0.146    0.466
   .socprob_comp_5           0.132    0.005   28.419    0.000    0.132    0.424
   .socprob_comp_6           0.114    0.005   22.804    0.000    0.114    0.395
 .socprob_comp_4 ~~                                                            
   .socprob_comp_5           0.157    0.005   33.304    0.000    0.157    0.519
   .socprob_comp_6           0.135    0.005   26.305    0.000    0.135    0.480
 .socprob_comp_5 ~~                                                            
   .socprob_comp_6           0.153    0.005   28.887    0.000    0.153    0.551
 .thouprob_comp_0 ~~                                                           
   .thouprob_cmp_1           0.197    0.005   37.461    0.000    0.197    0.479
   .thouprob_cmp_2           0.157    0.005   32.009    0.000    0.157    0.407
   .thouprob_cmp_3           0.133    0.005   27.748    0.000    0.133    0.355
   .thouprob_cmp_4           0.116    0.005   24.439    0.000    0.116    0.321
   .thouprob_cmp_5           0.112    0.005   21.693    0.000    0.112    0.288
   .thouprob_cmp_6           0.083    0.006   14.543    0.000    0.083    0.240
 .thouprob_comp_1 ~~                                                           
   .thouprob_cmp_2           0.187    0.005   36.338    0.000    0.187    0.476
   .thouprob_cmp_3           0.153    0.005   30.800    0.000    0.153    0.405
   .thouprob_cmp_4           0.133    0.005   27.183    0.000    0.133    0.363
   .thouprob_cmp_5           0.140    0.005   26.381    0.000    0.140    0.355
   .thouprob_cmp_6           0.101    0.006   17.429    0.000    0.101    0.286
 .thouprob_comp_2 ~~                                                           
   .thouprob_cmp_3           0.159    0.005   32.942    0.000    0.159    0.447
   .thouprob_cmp_4           0.132    0.005   28.190    0.000    0.132    0.384
   .thouprob_cmp_5           0.132    0.005   25.920    0.000    0.132    0.356
   .thouprob_cmp_6           0.092    0.006   16.686    0.000    0.092    0.279
 .thouprob_comp_3 ~~                                                           
   .thouprob_cmp_4           0.140    0.005   29.715    0.000    0.140    0.419
   .thouprob_cmp_5           0.132    0.005   25.904    0.000    0.132    0.367
   .thouprob_cmp_6           0.092    0.005   17.004    0.000    0.092    0.288
 .thouprob_comp_4 ~~                                                           
   .thouprob_cmp_5           0.172    0.005   33.081    0.000    0.172    0.493
   .thouprob_cmp_6           0.126    0.005   22.987    0.000    0.126    0.406
 .thouprob_comp_5 ~~                                                           
   .thouprob_cmp_6           0.167    0.006   27.582    0.000    0.167    0.500
 .attprob_comp_0 ~~                                                            
   .attprob_comp_1           0.305    0.006   51.901    0.000    0.305    0.674
   .attprob_comp_2           0.271    0.006   48.353    0.000    0.271    0.617
   .attprob_comp_3           0.250    0.006   45.244    0.000    0.250    0.573
   .attprob_comp_4           0.219    0.005   41.182    0.000    0.219    0.524
   .attprob_comp_5           0.219    0.006   39.530    0.000    0.219    0.512
   .attprob_comp_6           0.193    0.006   31.593    0.000    0.193    0.468
 .attprob_comp_1 ~~                                                            
   .attprob_comp_2           0.292    0.006   50.975    0.000    0.292    0.672
   .attprob_comp_3           0.267    0.006   47.496    0.000    0.267    0.618
   .attprob_comp_4           0.229    0.005   42.612    0.000    0.229    0.552
   .attprob_comp_5           0.230    0.006   41.468    0.000    0.230    0.544
   .attprob_comp_6           0.205    0.006   33.526    0.000    0.205    0.502
 .attprob_comp_2 ~~                                                            
   .attprob_comp_3           0.280    0.006   49.769    0.000    0.280    0.666
   .attprob_comp_4           0.240    0.005   45.155    0.000    0.240    0.598
   .attprob_comp_5           0.243    0.006   43.931    0.000    0.243    0.591
   .attprob_comp_6           0.214    0.006   35.714    0.000    0.214    0.539
 .attprob_comp_3 ~~                                                            
   .attprob_comp_4           0.260    0.005   47.488    0.000    0.260    0.650
   .attprob_comp_5           0.253    0.006   45.129    0.000    0.253    0.620
   .attprob_comp_6           0.222    0.006   37.051    0.000    0.222    0.563
 .attprob_comp_4 ~~                                                            
   .attprob_comp_5           0.268    0.006   47.552    0.000    0.268    0.685
   .attprob_comp_6           0.236    0.006   39.474    0.000    0.236    0.625
 .attprob_comp_5 ~~                                                            
   .attprob_comp_6           0.267    0.006   42.105    0.000    0.267    0.691
 .rulebreak_comp_0 ~~                                                          
   .rulebrek_cmp_1           0.293    0.006   50.097    0.000    0.293    0.610
   .rulebrek_cmp_2           0.257    0.006   44.085    0.000    0.257    0.525
   .rulebrek_cmp_3           0.240    0.006   39.738    0.000    0.240    0.477
   .rulebrek_cmp_4           0.241    0.007   34.665    0.000    0.241    0.414
   .rulebrek_cmp_5           0.268    0.008   32.476    0.000    0.268    0.393
   .rulebrek_cmp_6           0.225    0.010   23.103    0.000    0.225    0.323
 .rulebreak_comp_1 ~~                                                          
   .rulebrek_cmp_2           0.283    0.006   47.042    0.000    0.283    0.576
   .rulebrek_cmp_3           0.268    0.006   43.241    0.000    0.268    0.532
   .rulebrek_cmp_4           0.279    0.007   39.161    0.000    0.279    0.479
   .rulebrek_cmp_5           0.280    0.008   33.594    0.000    0.280    0.410
   .rulebrek_cmp_6           0.253    0.010   25.419    0.000    0.253    0.362
 .rulebreak_comp_2 ~~                                                          
   .rulebrek_cmp_3           0.306    0.007   46.553    0.000    0.306    0.596
   .rulebrek_cmp_4           0.302    0.007   40.724    0.000    0.302    0.507
   .rulebrek_cmp_5           0.339    0.009   38.817    0.000    0.339    0.487
   .rulebrek_cmp_6           0.316    0.010   30.615    0.000    0.316    0.444
 .rulebreak_comp_3 ~~                                                          
   .rulebrek_cmp_4           0.348    0.008   44.011    0.000    0.348    0.570
   .rulebrek_cmp_5           0.369    0.009   39.796    0.000    0.369    0.515
   .rulebrek_cmp_6           0.356    0.011   33.664    0.000    0.356    0.486
 .rulebreak_comp_4 ~~                                                          
   .rulebrek_cmp_5           0.535    0.011   47.524    0.000    0.535    0.647
   .rulebrek_cmp_6           0.511    0.013   39.855    0.000    0.511    0.603
 .rulebreak_comp_5 ~~                                                          
   .rulebrek_cmp_6           0.713    0.016   45.944    0.000    0.713    0.719
 .aggress_comp_0 ~~                                                            
   .aggress_comp_1           0.299    0.006   49.847    0.000    0.299    0.657
   .aggress_comp_2           0.270    0.006   46.585    0.000    0.270    0.606
   .aggress_comp_3           0.233    0.006   41.164    0.000    0.233    0.530
   .aggress_comp_4           0.204    0.005   38.498    0.000    0.204    0.501
   .aggress_comp_5           0.197    0.005   36.237    0.000    0.197    0.482
   .aggress_comp_6           0.160    0.006   27.875    0.000    0.160    0.429
 .aggress_comp_1 ~~                                                            
   .aggress_comp_2           0.278    0.006   48.239    0.000    0.278    0.644
   .aggress_comp_3           0.247    0.006   43.920    0.000    0.247    0.581
   .aggress_comp_4           0.210    0.005   40.012    0.000    0.210    0.530
   .aggress_comp_5           0.197    0.005   36.802    0.000    0.197    0.496
   .aggress_comp_6           0.162    0.006   28.433    0.000    0.162    0.447
 .aggress_comp_2 ~~                                                            
   .aggress_comp_3           0.270    0.006   47.238    0.000    0.270    0.649
   .aggress_comp_4           0.221    0.005   42.024    0.000    0.221    0.571
   .aggress_comp_5           0.215    0.005   40.021    0.000    0.215    0.553
   .aggress_comp_6           0.182    0.006   32.419    0.000    0.182    0.514
 .aggress_comp_3 ~~                                                            
   .aggress_comp_4           0.242    0.005   44.802    0.000    0.242    0.635
   .aggress_comp_5           0.225    0.005   41.205    0.000    0.225    0.588
   .aggress_comp_6           0.192    0.006   34.342    0.000    0.192    0.551
 .aggress_comp_4 ~~                                                            
   .aggress_comp_5           0.238    0.005   44.629    0.000    0.238    0.670
   .aggress_comp_6           0.199    0.005   36.417    0.000    0.199    0.611
 .aggress_comp_5 ~~                                                            
   .aggress_comp_6           0.224    0.006   38.978    0.000    0.224    0.686
 .anxdep_comp_0 ~~                                                             
   .withdep_comp_0           0.095    0.005   18.748    0.000    0.095    0.210
   .soma_comp_0              0.111    0.006   17.825    0.000    0.111    0.187
   .withdep_comp_1           0.078    0.005   15.321    0.000    0.078    0.167
   .soma_comp_1              0.075    0.006   12.089    0.000    0.075    0.126
   .withdep_comp_2           0.079    0.006   14.171    0.000    0.079    0.153
   .soma_comp_2              0.070    0.006   11.549    0.000    0.070    0.122
   .withdep_comp_3           0.092    0.006   14.123    0.000    0.092    0.156
   .soma_comp_3              0.071    0.006   11.486    0.000    0.071    0.124
   .withdep_comp_4           0.076    0.007   10.393    0.000    0.076    0.118
   .soma_comp_4              0.080    0.007   11.839    0.000    0.080    0.131
   .withdep_comp_5           0.071    0.008    8.863    0.000    0.071    0.105
   .soma_comp_5              0.060    0.008    7.830    0.000    0.060    0.090
   .withdep_comp_6           0.060    0.009    6.497    0.000    0.060    0.092
   .soma_comp_6              0.065    0.009    6.899    0.000    0.065    0.096
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_1            0.063    0.005   12.438    0.000    0.063    0.137
 .soma_comp_0 ~~                                                               
   .anxdep_comp_1            0.090    0.006   14.299    0.000    0.090    0.150
 .anxdep_comp_1 ~~                                                             
   .withdep_comp_1           0.098    0.005   18.400    0.000    0.098    0.206
   .soma_comp_1              0.104    0.006   16.102    0.000    0.104    0.172
   .withdep_comp_2           0.085    0.006   14.674    0.000    0.085    0.161
   .soma_comp_2              0.076    0.006   12.263    0.000    0.076    0.131
   .withdep_comp_3           0.105    0.007   15.841    0.000    0.105    0.177
   .soma_comp_3              0.072    0.006   11.447    0.000    0.072    0.124
   .withdep_comp_4           0.091    0.007   12.154    0.000    0.091    0.139
   .soma_comp_4              0.085    0.007   12.312    0.000    0.085    0.137
   .withdep_comp_5           0.105    0.008   12.809    0.000    0.105    0.153
   .soma_comp_5              0.082    0.008   10.473    0.000    0.082    0.121
   .withdep_comp_6           0.084    0.009    8.905    0.000    0.084    0.127
   .soma_comp_6              0.070    0.010    7.263    0.000    0.070    0.102
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_2            0.071    0.005   14.078    0.000    0.071    0.157
 .soma_comp_0 ~~                                                               
   .anxdep_comp_2            0.088    0.006   14.216    0.000    0.088    0.151
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_2            0.087    0.005   16.894    0.000    0.087    0.188
 .soma_comp_1 ~~                                                               
   .anxdep_comp_2            0.079    0.006   12.516    0.000    0.079    0.133
 .anxdep_comp_2 ~~                                                             
   .withdep_comp_2           0.138    0.006   23.713    0.000    0.138    0.269
   .soma_comp_2              0.108    0.006   17.596    0.000    0.108    0.191
   .withdep_comp_3           0.128    0.007   19.617    0.000    0.128    0.221
   .soma_comp_3              0.090    0.006   14.459    0.000    0.090    0.158
   .withdep_comp_4           0.111    0.007   15.181    0.000    0.111    0.174
   .soma_comp_4              0.101    0.007   15.021    0.000    0.101    0.168
   .withdep_comp_5           0.101    0.008   12.648    0.000    0.101    0.151
   .soma_comp_5              0.085    0.008   11.247    0.000    0.085    0.129
   .withdep_comp_6           0.078    0.009    8.659    0.000    0.078    0.122
   .soma_comp_6              0.078    0.009    8.410    0.000    0.078    0.117
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_3            0.057    0.005   11.023    0.000    0.057    0.125
 .soma_comp_0 ~~                                                               
   .anxdep_comp_3            0.095    0.006   14.689    0.000    0.095    0.158
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_3            0.074    0.005   13.845    0.000    0.074    0.155
 .soma_comp_1 ~~                                                               
   .anxdep_comp_3            0.085    0.007   12.941    0.000    0.085    0.140
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_3            0.110    0.006   18.629    0.000    0.110    0.209
 .soma_comp_2 ~~                                                               
   .anxdep_comp_3            0.094    0.006   14.927    0.000    0.094    0.162
 .anxdep_comp_3 ~~                                                             
   .withdep_comp_3           0.182    0.007   26.085    0.000    0.182    0.305
   .soma_comp_3              0.123    0.006   18.978    0.000    0.123    0.212
   .withdep_comp_4           0.142    0.008   18.590    0.000    0.142    0.217
   .soma_comp_4              0.130    0.007   18.546    0.000    0.130    0.211
   .withdep_comp_5           0.140    0.008   16.816    0.000    0.140    0.204
   .soma_comp_5              0.122    0.008   15.356    0.000    0.122    0.181
   .withdep_comp_6           0.105    0.009   11.431    0.000    0.105    0.159
   .soma_comp_6              0.129    0.009   13.687    0.000    0.129    0.189
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_4            0.040    0.005    7.655    0.000    0.040    0.089
 .soma_comp_0 ~~                                                               
   .anxdep_comp_4            0.077    0.006   12.042    0.000    0.077    0.132
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_4            0.058    0.005   10.969    0.000    0.058    0.125
 .soma_comp_1 ~~                                                               
   .anxdep_comp_4            0.073    0.006   11.371    0.000    0.073    0.125
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_4            0.086    0.006   14.740    0.000    0.086    0.168
 .soma_comp_2 ~~                                                               
   .anxdep_comp_4            0.078    0.006   12.556    0.000    0.078    0.140
 .withdep_comp_3 ~~                                                            
   .anxdep_comp_4            0.129    0.007   19.168    0.000    0.129    0.224
 .soma_comp_3 ~~                                                               
   .anxdep_comp_4            0.096    0.006   14.999    0.000    0.096    0.170
 .anxdep_comp_4 ~~                                                             
   .withdep_comp_4           0.200    0.008   25.761    0.000    0.200    0.315
   .soma_comp_4              0.147    0.007   21.141    0.000    0.147    0.246
   .withdep_comp_5           0.164    0.008   19.746    0.000    0.164    0.246
   .soma_comp_5              0.136    0.008   17.391    0.000    0.136    0.208
   .withdep_comp_6           0.127    0.009   13.831    0.000    0.127    0.198
   .soma_comp_6              0.137    0.009   14.577    0.000    0.137    0.207
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_5            0.035    0.005    6.350    0.000    0.035    0.076
 .soma_comp_0 ~~                                                               
   .anxdep_comp_5            0.068    0.007    9.994    0.000    0.068    0.114
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_5            0.057    0.006   10.231    0.000    0.057    0.121
 .soma_comp_1 ~~                                                               
   .anxdep_comp_5            0.076    0.007   11.089    0.000    0.076    0.127
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_5            0.091    0.006   14.729    0.000    0.091    0.174
 .soma_comp_2 ~~                                                               
   .anxdep_comp_5            0.083    0.007   12.662    0.000    0.083    0.145
 .withdep_comp_3 ~~                                                            
   .anxdep_comp_5            0.137    0.007   19.281    0.000    0.137    0.232
 .soma_comp_3 ~~                                                               
   .anxdep_comp_5            0.091    0.007   13.535    0.000    0.091    0.158
 .withdep_comp_4 ~~                                                            
   .anxdep_comp_5            0.173    0.008   21.591    0.000    0.173    0.266
 .soma_comp_4 ~~                                                               
   .anxdep_comp_5            0.141    0.007   19.173    0.000    0.141    0.229
 .anxdep_comp_5 ~~                                                             
   .withdep_comp_5           0.241    0.009   27.174    0.000    0.241    0.354
   .soma_comp_5              0.175    0.008   21.270    0.000    0.175    0.260
   .withdep_comp_6           0.154    0.010   16.200    0.000    0.154    0.235
   .soma_comp_6              0.151    0.010   15.513    0.000    0.151    0.222
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_6            0.041    0.006    6.391    0.000    0.041    0.093
 .soma_comp_0 ~~                                                               
   .anxdep_comp_6            0.062    0.008    7.969    0.000    0.062    0.109
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_6            0.059    0.006    9.218    0.000    0.059    0.131
 .soma_comp_1 ~~                                                               
   .anxdep_comp_6            0.065    0.008    8.293    0.000    0.065    0.114
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_6            0.088    0.007   12.014    0.000    0.088    0.176
 .soma_comp_2 ~~                                                               
   .anxdep_comp_6            0.083    0.007   11.135    0.000    0.083    0.151
 .withdep_comp_3 ~~                                                            
   .anxdep_comp_6            0.128    0.008   15.815    0.000    0.128    0.227
 .soma_comp_3 ~~                                                               
   .anxdep_comp_6            0.073    0.008    9.755    0.000    0.073    0.133
 .withdep_comp_4 ~~                                                            
   .anxdep_comp_6            0.154    0.009   17.171    0.000    0.154    0.249
 .soma_comp_4 ~~                                                               
   .anxdep_comp_6            0.109    0.008   13.129    0.000    0.109    0.187
 .withdep_comp_5 ~~                                                            
   .anxdep_comp_6            0.184    0.010   19.034    0.000    0.184    0.284
 .soma_comp_5 ~~                                                               
   .anxdep_comp_6            0.118    0.009   12.922    0.000    0.118    0.184
 .anxdep_comp_6 ~~                                                             
   .withdep_comp_6           0.222    0.010   22.005    0.000    0.222    0.355
   .soma_comp_6              0.164    0.010   16.650    0.000    0.164    0.253
 .withdep_comp_0 ~~                                                            
   .soma_comp_0              0.044    0.005    8.064    0.000    0.044    0.084
   .soma_comp_1              0.045    0.006    8.048    0.000    0.045    0.085
   .soma_comp_2              0.031    0.005    5.752    0.000    0.031    0.061
   .soma_comp_3              0.021    0.006    3.764    0.000    0.021    0.041
   .soma_comp_4              0.012    0.006    2.009    0.045    0.012    0.022
   .soma_comp_5             -0.016    0.007   -2.354    0.019   -0.016   -0.027
   .soma_comp_6             -0.015    0.009   -1.736    0.083   -0.015   -0.025
 .soma_comp_0 ~~                                                               
   .withdep_comp_1           0.029    0.006    5.060    0.000    0.029    0.052
 .withdep_comp_1 ~~                                                            
   .soma_comp_1              0.058    0.006   10.058    0.000    0.058    0.105
   .soma_comp_2              0.043    0.006    7.648    0.000    0.043    0.081
   .soma_comp_3              0.044    0.006    7.705    0.000    0.044    0.083
   .soma_comp_4              0.031    0.006    4.951    0.000    0.031    0.055
   .soma_comp_5              0.026    0.007    3.664    0.000    0.026    0.042
   .soma_comp_6              0.010    0.009    1.208    0.227    0.010    0.017
 .soma_comp_0 ~~                                                               
   .withdep_comp_2           0.042    0.006    6.656    0.000    0.042    0.069
 .soma_comp_1 ~~                                                               
   .withdep_comp_2           0.057    0.006    8.986    0.000    0.057    0.094
 .withdep_comp_2 ~~                                                            
   .soma_comp_2              0.072    0.006   11.776    0.000    0.072    0.124
   .soma_comp_3              0.054    0.006    8.609    0.000    0.054    0.092
   .soma_comp_4              0.070    0.007   10.249    0.000    0.070    0.113
   .soma_comp_5              0.062    0.008    8.072    0.000    0.062    0.092
   .soma_comp_6              0.047    0.010    4.774    0.000    0.047    0.068
 .soma_comp_0 ~~                                                               
   .withdep_comp_3           0.057    0.007    7.931    0.000    0.057    0.084
 .soma_comp_1 ~~                                                               
   .withdep_comp_3           0.051    0.007    7.008    0.000    0.051    0.075
 .soma_comp_2 ~~                                                               
   .withdep_comp_3           0.057    0.007    8.200    0.000    0.057    0.087
 .withdep_comp_3 ~~                                                            
   .soma_comp_3              0.080    0.007   11.110    0.000    0.080    0.120
   .soma_comp_4              0.106    0.008   13.491    0.000    0.106    0.151
   .soma_comp_5              0.118    0.009   13.337    0.000    0.118    0.154
   .soma_comp_6              0.121    0.011   11.198    0.000    0.121    0.155
 .soma_comp_0 ~~                                                               
   .withdep_comp_4           0.049    0.008    5.924    0.000    0.049    0.065
 .soma_comp_1 ~~                                                               
   .withdep_comp_4           0.061    0.008    7.390    0.000    0.061    0.081
 .soma_comp_2 ~~                                                               
   .withdep_comp_4           0.056    0.008    7.058    0.000    0.056    0.078
 .soma_comp_3 ~~                                                               
   .withdep_comp_4           0.079    0.008    9.688    0.000    0.079    0.108
 .withdep_comp_4 ~~                                                            
   .soma_comp_4              0.145    0.009   16.542    0.000    0.145    0.188
   .soma_comp_5              0.141    0.010   14.335    0.000    0.141    0.168
   .soma_comp_6              0.161    0.012   13.506    0.000    0.161    0.189
 .soma_comp_0 ~~                                                               
   .withdep_comp_5           0.040    0.009    4.447    0.000    0.040    0.051
 .soma_comp_1 ~~                                                               
   .withdep_comp_5           0.054    0.009    5.956    0.000    0.054    0.068
 .soma_comp_2 ~~                                                               
   .withdep_comp_5           0.050    0.009    5.749    0.000    0.050    0.066
 .soma_comp_3 ~~                                                               
   .withdep_comp_5           0.071    0.009    8.036    0.000    0.071    0.094
 .soma_comp_4 ~~                                                               
   .withdep_comp_5           0.134    0.010   14.006    0.000    0.134    0.166
 .withdep_comp_5 ~~                                                            
   .soma_comp_5              0.206    0.011   19.371    0.000    0.206    0.233
   .soma_comp_6              0.193    0.013   15.140    0.000    0.193    0.216
 .soma_comp_0 ~~                                                               
   .withdep_comp_6           0.048    0.010    4.665    0.000    0.048    0.063
 .soma_comp_1 ~~                                                               
   .withdep_comp_6           0.036    0.010    3.474    0.001    0.036    0.047
 .soma_comp_2 ~~                                                               
   .withdep_comp_6           0.037    0.010    3.838    0.000    0.037    0.051
 .soma_comp_3 ~~                                                               
   .withdep_comp_6           0.048    0.010    4.887    0.000    0.048    0.066
 .soma_comp_4 ~~                                                               
   .withdep_comp_6           0.092    0.011    8.501    0.000    0.092    0.118
 .soma_comp_5 ~~                                                               
   .withdep_comp_6           0.134    0.012   11.295    0.000    0.134    0.157
 .withdep_comp_6 ~~                                                            
   .soma_comp_6              0.204    0.013   15.863    0.000    0.204    0.237
 .rulebreak_comp_0 ~~                                                          
   .aggress_comp_0           0.222    0.006   38.844    0.000    0.222    0.467
   .aggress_comp_1           0.173    0.005   32.296    0.000    0.173    0.376
   .aggress_comp_2           0.162    0.005   30.764    0.000    0.162    0.360
   .aggress_comp_3           0.139    0.005   26.400    0.000    0.139    0.315
   .aggress_comp_4           0.131    0.005   25.963    0.000    0.131    0.319
   .aggress_comp_5           0.134    0.005   25.734    0.000    0.134    0.324
   .aggress_comp_6           0.112    0.006   19.810    0.000    0.112    0.298
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_1           0.182    0.005   33.047    0.000    0.182    0.382
 .rulebreak_comp_1 ~~                                                          
   .aggress_comp_1           0.216    0.006   38.071    0.000    0.216    0.470
   .aggress_comp_2           0.170    0.005   31.916    0.000    0.170    0.378
   .aggress_comp_3           0.152    0.005   28.473    0.000    0.152    0.343
   .aggress_comp_4           0.144    0.005   28.155    0.000    0.144    0.349
   .aggress_comp_5           0.136    0.005   25.879    0.000    0.136    0.328
   .aggress_comp_6           0.124    0.006   21.453    0.000    0.124    0.328
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_2           0.161    0.006   28.941    0.000    0.161    0.333
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_2           0.165    0.005   30.008    0.000    0.165    0.351
 .rulebreak_comp_2 ~~                                                          
   .aggress_comp_2           0.223    0.006   38.652    0.000    0.223    0.487
   .aggress_comp_3           0.169    0.006   30.330    0.000    0.169    0.374
   .aggress_comp_4           0.143    0.005   27.242    0.000    0.143    0.340
   .aggress_comp_5           0.144    0.005   26.830    0.000    0.144    0.341
   .aggress_comp_6           0.141    0.006   23.742    0.000    0.141    0.365
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_3           0.161    0.006   27.721    0.000    0.161    0.323
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_3           0.164    0.006   28.727    0.000    0.164    0.340
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_3           0.180    0.006   31.522    0.000    0.180    0.382
 .rulebreak_comp_3 ~~                                                          
   .aggress_comp_3           0.232    0.006   38.095    0.000    0.232    0.499
   .aggress_comp_4           0.166    0.005   30.249    0.000    0.166    0.384
   .aggress_comp_5           0.157    0.006   27.905    0.000    0.157    0.362
   .aggress_comp_6           0.154    0.006   25.720    0.000    0.154    0.389
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_4           0.183    0.007   26.888    0.000    0.183    0.317
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_4           0.189    0.007   28.361    0.000    0.189    0.338
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_4           0.189    0.007   28.671    0.000    0.189    0.346
 .aggress_comp_3 ~~                                                            
   .rulebrek_cmp_4           0.205    0.007   30.338    0.000    0.205    0.381
 .rulebreak_comp_4 ~~                                                          
   .aggress_comp_4           0.250    0.007   37.346    0.000    0.250    0.499
   .aggress_comp_5           0.208    0.007   31.322    0.000    0.208    0.415
   .aggress_comp_6           0.175    0.007   24.756    0.000    0.175    0.381
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_5           0.214    0.008   26.203    0.000    0.214    0.317
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_5           0.201    0.008   25.323    0.000    0.201    0.308
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_5           0.227    0.008   28.754    0.000    0.227    0.356
 .aggress_comp_3 ~~                                                            
   .rulebrek_cmp_5           0.226    0.008   28.207    0.000    0.226    0.359
 .aggress_comp_4 ~~                                                            
   .rulebrek_cmp_5           0.234    0.008   30.630    0.000    0.234    0.399
 .rulebreak_comp_5 ~~                                                          
   .aggress_comp_5           0.312    0.008   38.050    0.000    0.312    0.530
   .aggress_comp_6           0.239    0.008   28.637    0.000    0.239    0.444
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_6           0.195    0.010   20.251    0.000    0.195    0.282
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_6           0.178    0.009   18.768    0.000    0.178    0.265
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_6           0.212    0.009   22.875    0.000    0.212    0.324
 .aggress_comp_3 ~~                                                            
   .rulebrek_cmp_6           0.221    0.009   23.902    0.000    0.221    0.342
 .aggress_comp_4 ~~                                                            
   .rulebrek_cmp_6           0.225    0.009   25.448    0.000    0.225    0.375
 .aggress_comp_5 ~~                                                            
   .rulebrek_cmp_6           0.251    0.009   27.354    0.000    0.251    0.416
 .rulebreak_comp_6 ~~                                                          
   .aggress_comp_6           0.275    0.009   29.319    0.000    0.275    0.500
 .p_i ~~                                                                       
   .p_s                     -0.031    0.006   -5.454    0.000   -0.224   -0.224
   .p_q                      0.001    0.002    0.665    0.506    0.024    0.024
 .p_s ~~                                                                       
   .p_q                     -0.024    0.003   -9.068    0.000   -0.864   -0.864

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .asr___0 (t_AX)    0.014    0.004    3.334    0.001    0.014    0.014
   .asr___0 (t_AW)    0.020    0.005    3.983    0.000    0.020    0.019
   .asr___0 (t_AS)    0.014    0.005    2.556    0.011    0.014    0.014
   .asr___0 (t_AP)    0.018    0.005    3.998    0.000    0.018    0.018
   .asr___0 (t_AH)    0.018    0.005    3.579    0.000    0.018    0.018
   .asr___0 (t_AA)    0.022    0.005    3.967    0.000    0.022    0.021
   .asr___0 (t_AR)    0.019    0.005    4.101    0.000    0.019    0.019
   .asr___0 (t_AG)    0.009    0.007    1.295    0.195    0.009    0.009
   .asr___2 (t_AX)    0.014    0.004    3.334    0.001    0.014    0.014
   .asr___2 (t_AW)    0.020    0.005    3.983    0.000    0.020    0.019
   .asr___2 (t_AS)    0.014    0.005    2.556    0.011    0.014    0.014
   .asr___2 (t_AP)    0.018    0.005    3.998    0.000    0.018    0.018
   .asr___2 (t_AH)    0.018    0.005    3.579    0.000    0.018    0.018
   .asr___2 (t_AA)    0.022    0.005    3.967    0.000    0.022    0.021
   .asr___2 (t_AR)    0.019    0.005    4.101    0.000    0.019    0.019
   .asr___2 (t_AG)    0.009    0.007    1.295    0.195    0.009    0.009
   .asr___4 (t_AX)    0.014    0.004    3.334    0.001    0.014    0.014
   .asr___4 (t_AW)    0.020    0.005    3.983    0.000    0.020    0.020
   .asr___4 (t_AS)    0.014    0.005    2.556    0.011    0.014    0.014
   .asr___4 (t_AP)    0.018    0.005    3.998    0.000    0.018    0.019
   .asr___4 (t_AH)    0.018    0.005    3.579    0.000    0.018    0.018
   .asr___4 (t_AA)    0.022    0.005    3.967    0.000    0.022    0.022
   .asr___4 (t_AR)    0.019    0.005    4.101    0.000    0.019    0.020
   .asr___4 (t_AG)    0.009    0.007    1.295    0.195    0.009    0.009
   .a_i              -0.010    0.011   -0.940    0.347   -0.013   -0.013
   .a_s              -0.016    0.005   -2.967    0.003   -0.062   -0.062
   .a_etaB            0.000                               0.000    0.000
   .a_eta2            0.000                               0.000    0.000
   .a_eta4            0.000                               0.000    0.000
   .anxd__0 (ta_X)   -0.010    0.005   -1.964    0.049   -0.010   -0.010
   .anxd__1 (ta_X)   -0.010    0.005   -1.964    0.049   -0.010   -0.010
   .anxd__2 (ta_X)   -0.010    0.005   -1.964    0.049   -0.010   -0.010
   .anxd__3 (ta_X)   -0.010    0.005   -1.964    0.049   -0.010   -0.010
   .anxd__4 (ta_X)   -0.010    0.005   -1.964    0.049   -0.010   -0.010
   .anxd__5 (ta_X)   -0.010    0.005   -1.964    0.049   -0.010   -0.010
   .anxd__6 (ta_X)   -0.010    0.005   -1.964    0.049   -0.010   -0.010
   .wthd__0 (ta_W)   -0.076    0.005  -15.136    0.000   -0.076   -0.084
   .wthd__1 (ta_W)   -0.076    0.005  -15.136    0.000   -0.076   -0.083
   .wthd__2 (ta_W)   -0.076    0.005  -15.136    0.000   -0.076   -0.079
   .wthd__3 (ta_W)   -0.076    0.005  -15.136    0.000   -0.076   -0.074
   .wthd__4 (ta_W)   -0.076    0.005  -15.136    0.000   -0.076   -0.070
   .wthd__5 (ta_W)   -0.076    0.005  -15.136    0.000   -0.076   -0.068
   .wthd__6 (ta_W)   -0.076    0.005  -15.136    0.000   -0.076   -0.071
   .sm_cm_0 (ta_S)   -0.014    0.006   -2.306    0.021   -0.014   -0.014
   .sm_cm_1 (ta_S)   -0.014    0.006   -2.306    0.021   -0.014   -0.014
   .sm_cm_2 (ta_S)   -0.014    0.006   -2.306    0.021   -0.014   -0.014
   .sm_cm_3 (ta_S)   -0.014    0.006   -2.306    0.021   -0.014   -0.014
   .sm_cm_4 (ta_S)   -0.014    0.006   -2.306    0.021   -0.014   -0.014
   .sm_cm_5 (ta_S)   -0.014    0.006   -2.306    0.021   -0.014   -0.013
   .sm_cm_6 (ta_S)   -0.014    0.006   -2.306    0.021   -0.014   -0.013
   .scpr__0 (ta_P)    0.029    0.004    7.258    0.000    0.029    0.028
   .scpr__1 (ta_P)    0.029    0.004    7.258    0.000    0.029    0.028
   .scpr__2 (ta_P)    0.029    0.004    7.258    0.000    0.029    0.029
   .scpr__3 (ta_P)    0.029    0.004    7.258    0.000    0.029    0.030
   .scpr__4 (ta_P)    0.029    0.004    7.258    0.000    0.029    0.030
   .scpr__5 (ta_P)    0.029    0.004    7.258    0.000    0.029    0.030
   .scpr__6 (ta_P)    0.029    0.004    7.258    0.000    0.029    0.032
   .thpr__0 (ta_H)    0.031    0.004    7.786    0.000    0.031    0.030
   .thpr__1 (ta_H)    0.031    0.004    7.786    0.000    0.031    0.030
   .thpr__2 (ta_H)    0.031    0.004    7.786    0.000    0.031    0.031
   .thpr__3 (ta_H)    0.031    0.004    7.786    0.000    0.031    0.031
   .thpr__4 (ta_H)    0.031    0.004    7.786    0.000    0.031    0.032
   .thpr__5 (ta_H)    0.031    0.004    7.786    0.000    0.031    0.031
   .thpr__6 (ta_H)    0.031    0.004    7.786    0.000    0.031    0.034
   .attp__0 (ta_A)    0.034    0.005    7.289    0.000    0.034    0.034
   .attp__1 (ta_A)    0.034    0.005    7.289    0.000    0.034    0.035
   .attp__2 (ta_A)    0.034    0.005    7.289    0.000    0.034    0.035
   .attp__3 (ta_A)    0.034    0.005    7.289    0.000    0.034    0.036
   .attp__4 (ta_A)    0.034    0.005    7.289    0.000    0.034    0.037
   .attp__5 (ta_A)    0.034    0.005    7.289    0.000    0.034    0.036
   .attp__6 (ta_A)    0.034    0.005    7.289    0.000    0.034    0.038
   .rlbr__0 (ta_R)   -0.017    0.005   -3.430    0.001   -0.017   -0.018
   .rlbr__1 (ta_R)   -0.017    0.005   -3.430    0.001   -0.017   -0.018
   .rlbr__2 (ta_R)   -0.017    0.005   -3.430    0.001   -0.017   -0.018
   .rlbr__3 (ta_R)   -0.017    0.005   -3.430    0.001   -0.017   -0.018
   .rlbr__4 (ta_R)   -0.017    0.005   -3.430    0.001   -0.017   -0.016
   .rlbr__5 (ta_R)   -0.017    0.005   -3.430    0.001   -0.017   -0.015
   .rlbr__6 (ta_R)   -0.017    0.005   -3.430    0.001   -0.017   -0.015
   .aggr__0 (ta_G)    0.001    0.004    0.125    0.900    0.001    0.001
   .aggr__1 (ta_G)    0.001    0.004    0.125    0.900    0.001    0.001
   .aggr__2 (ta_G)    0.001    0.004    0.125    0.900    0.001    0.001
   .aggr__3 (ta_G)    0.001    0.004    0.125    0.900    0.001    0.001
   .aggr__4 (ta_G)    0.001    0.004    0.125    0.900    0.001    0.001
   .aggr__5 (ta_G)    0.001    0.004    0.125    0.900    0.001    0.001
   .aggr__6 (ta_G)    0.001    0.004    0.125    0.900    0.001    0.001
   .p_i              -0.029    0.008   -3.367    0.001   -0.041   -0.041
   .p_s               0.003    0.010    0.354    0.724    0.008    0.008
   .p_q              -0.006    0.003   -1.869    0.062   -0.048   -0.048
   .p_etaB            0.000                               0.000    0.000
   .p_eta1            0.000                               0.000    0.000
   .p_eta2            0.000                               0.000    0.000
   .p_eta3            0.000                               0.000    0.000
   .p_eta4            0.000                               0.000    0.000
   .p_eta5            0.000                               0.000    0.000
   .p_eta6            0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .a_etaB            0.099    0.006   16.441    0.000    0.140    0.140
   .a_eta2            0.182    0.005   39.421    0.000    0.263    0.263
   .a_eta4            0.100    0.007   14.011    0.000    0.157    0.157
   .asr_nxdp_cmp_0    0.313    0.006   53.529    0.000    0.313    0.306
   .asr_wthdp_cm_0    0.485    0.008   63.090    0.000    0.485    0.463
   .asr_soma_cmp_0    0.550    0.008   66.564    0.000    0.550    0.549
   .asr_thprb_cm_0    0.470    0.007   65.243    0.000    0.470    0.434
   .asr_ttprb_cm_0    0.409    0.006   64.500    0.000    0.409    0.412
   .asr_rlbrk_cm_0    0.659    0.009   69.893    0.000    0.659    0.605
   .asr_ggrss_cm_0    0.448    0.007   64.494    0.000    0.448    0.427
   .asr_intr_cmp_0    0.898    0.012   74.908    0.000    0.898    0.841
   .asr_nxdp_cmp_2    0.341    0.006   53.537    0.000    0.341    0.330
   .asr_wthdp_cm_2    0.481    0.008   61.123    0.000    0.481    0.466
   .asr_soma_cmp_2    0.560    0.009   64.624    0.000    0.560    0.558
   .asr_thprb_cm_2    0.411    0.007   61.725    0.000    0.411    0.407
   .asr_ttprb_cm_2    0.384    0.006   61.261    0.000    0.384    0.403
   .asr_rlbrk_cm_2    0.603    0.009   66.752    0.000    0.603    0.589
   .asr_ggrss_cm_2    0.435    0.007   62.267    0.000    0.435    0.425
   .asr_intr_cmp_2    0.821    0.011   72.052    0.000    0.821    0.832
   .asr_nxdp_cmp_4    0.354    0.007   50.917    0.000    0.354    0.356
   .asr_wthdp_cm_4    0.460    0.008   57.255    0.000    0.460    0.475
   .asr_soma_cmp_4    0.555    0.009   60.447    0.000    0.555    0.576
   .asr_thprb_cm_4    0.383    0.007   57.176    0.000    0.383    0.409
   .asr_ttprb_cm_4    0.421    0.007   58.631    0.000    0.421    0.445
   .asr_rlbrk_cm_4    0.561    0.009   61.992    0.000    0.561    0.591
   .asr_ggrss_cm_4    0.417    0.007   58.221    0.000    0.417    0.434
   .asr_intr_cmp_4    0.806    0.012   67.778    0.000    0.806    0.840
   .a_i               0.609    0.012   49.323    0.000    1.000    1.000
   .a_s               0.064    0.003   20.469    0.000    0.999    0.999
   .p_etaB            0.080    0.004   20.603    0.000    0.145    0.145
   .p_eta1            0.124    0.003   42.700    0.000    0.226    0.226
   .p_eta2            0.120    0.003   42.405    0.000    0.226    0.226
   .p_eta3            0.112    0.003   39.414    0.000    0.215    0.215
   .p_eta4            0.105    0.003   38.366    0.000    0.209    0.209
   .p_eta5            0.111    0.003   35.570    0.000    0.222    0.222
   .p_eta6            0.042    0.005    9.294    0.000    0.093    0.093
   .anxdep_comp_0     0.508    0.008   66.927    0.000    0.508    0.478
   .withdep_comp_0    0.405    0.006   65.312    0.000    0.405    0.494
   .soma_comp_0       0.690    0.009   72.692    0.000    0.690    0.695
   .socprob_comp_0    0.425    0.007   61.489    0.000    0.425    0.380
   .thouprob_cmp_0    0.405    0.006   62.837    0.000    0.405    0.374
   .attprob_comp_0    0.457    0.007   66.007    0.000    0.457    0.455
   .rulebrek_cmp_0    0.480    0.007   69.169    0.000    0.480    0.541
   .aggress_comp_0    0.470    0.007   64.416    0.000    0.470    0.427
   .anxdep_comp_1     0.525    0.008   65.724    0.000    0.525    0.490
   .withdep_comp_1    0.432    0.007   66.209    0.000    0.432    0.515
   .soma_comp_1       0.699    0.010   71.016    0.000    0.699    0.701
   .socprob_comp_1    0.394    0.007   59.659    0.000    0.394    0.367
   .thouprob_cmp_1    0.417    0.007   61.513    0.000    0.417    0.385
   .attprob_comp_1    0.449    0.007   64.616    0.000    0.449    0.454
   .rulebrek_cmp_1    0.481    0.007   67.222    0.000    0.481    0.546
   .aggress_comp_1    0.441    0.007   62.954    0.000    0.441    0.416
   .anxdep_comp_2     0.498    0.008   65.064    0.000    0.498    0.483
   .withdep_comp_2    0.529    0.008   67.188    0.000    0.529    0.571
   .soma_comp_2       0.639    0.009   69.716    0.000    0.639    0.687
   .socprob_comp_2    0.352    0.006   58.211    0.000    0.352    0.347
   .thouprob_cmp_2    0.368    0.006   59.449    0.000    0.368    0.361
   .attprob_comp_2    0.422    0.007   63.721    0.000    0.422    0.446
   .rulebrek_cmp_2    0.500    0.008   66.263    0.000    0.500    0.561
   .aggress_comp_2    0.422    0.007   61.939    0.000    0.422    0.411
   .anxdep_comp_3     0.524    0.008   63.674    0.000    0.524    0.501
   .withdep_comp_3    0.678    0.010   65.519    0.000    0.678    0.636
   .soma_comp_3       0.644    0.010   67.674    0.000    0.644    0.693
   .socprob_comp_3    0.322    0.006   55.854    0.000    0.322    0.332
   .thouprob_cmp_3    0.343    0.006   56.900    0.000    0.343    0.350
   .attprob_comp_3    0.417    0.007   62.129    0.000    0.417    0.448
   .rulebrek_cmp_3    0.528    0.008   63.727    0.000    0.528    0.580
   .aggress_comp_3    0.410    0.007   59.891    0.000    0.410    0.409
   .anxdep_comp_4     0.494    0.008   61.464    0.000    0.494    0.495
   .withdep_comp_4    0.814    0.013   63.065    0.000    0.814    0.684
   .soma_comp_4       0.729    0.011   65.713    0.000    0.729    0.726
   .socprob_comp_4    0.306    0.006   53.981    0.000    0.306    0.328
   .thouprob_cmp_4    0.323    0.006   54.638    0.000    0.323    0.345
   .attprob_comp_4    0.383    0.006   59.814    0.000    0.383    0.435
   .rulebrek_cmp_4    0.707    0.011   63.078    0.000    0.707    0.657
   .aggress_comp_4    0.355    0.006   57.394    0.000    0.355    0.383
   .anxdep_comp_5     0.518    0.009   58.670    0.000    0.518    0.509
   .withdep_comp_5    0.898    0.015   60.289    0.000    0.898    0.707
   .soma_comp_5       0.872    0.014   62.687    0.000    0.872    0.762
   .socprob_comp_5    0.300    0.006   50.615    0.000    0.300    0.326
   .thouprob_cmp_5    0.375    0.007   53.389    0.000    0.375    0.381
   .attprob_comp_5    0.399    0.007   57.819    0.000    0.399    0.448
   .rulebrek_cmp_5    0.968    0.016   61.583    0.000    0.968    0.726
   .aggress_comp_5    0.357    0.007   54.947    0.000    0.357    0.387
   .anxdep_comp_6     0.468    0.010   46.851    0.000    0.468    0.509
   .withdep_comp_6    0.834    0.017   48.410    0.000    0.834    0.713
   .soma_comp_6       0.891    0.018   50.055    0.000    0.891    0.783
   .socprob_comp_6    0.257    0.007   39.047    0.000    0.257    0.314
   .thouprob_cmp_6    0.297    0.007   40.434    0.000    0.297    0.351
   .attprob_comp_6    0.373    0.008   46.813    0.000    0.373    0.456
   .rulebrek_cmp_6    1.016    0.020   49.995    0.000    1.016    0.755
   .aggress_comp_6    0.298    0.007   43.087    0.000    0.298    0.368
   .p_i               0.237    0.007   35.752    0.000    0.498    0.498
   .p_s               0.080    0.009    9.043    0.000    0.440    0.440
   .p_q               0.009    0.001   11.289    0.000    0.631    0.631

R-Square:
                   Estimate
    a_etaB            0.860
    a_eta2            0.737
    a_eta4            0.843
    asr_nxdp_cmp_0    0.694
    asr_wthdp_cm_0    0.537
    asr_soma_cmp_0    0.451
    asr_thprb_cm_0    0.566
    asr_ttprb_cm_0    0.588
    asr_rlbrk_cm_0    0.395
    asr_ggrss_cm_0    0.573
    asr_intr_cmp_0    0.159
    asr_nxdp_cmp_2    0.670
    asr_wthdp_cm_2    0.534
    asr_soma_cmp_2    0.442
    asr_thprb_cm_2    0.593
    asr_ttprb_cm_2    0.597
    asr_rlbrk_cm_2    0.411
    asr_ggrss_cm_2    0.575
    asr_intr_cmp_2    0.168
    asr_nxdp_cmp_4    0.644
    asr_wthdp_cm_4    0.525
    asr_soma_cmp_4    0.424
    asr_thprb_cm_4    0.591
    asr_ttprb_cm_4    0.555
    asr_rlbrk_cm_4    0.409
    asr_ggrss_cm_4    0.566
    asr_intr_cmp_4    0.160
    a_i               0.000
    a_s               0.001
    p_etaB            0.855
    p_eta1            0.774
    p_eta2            0.774
    p_eta3            0.785
    p_eta4            0.791
    p_eta5            0.778
    p_eta6            0.907
    anxdep_comp_0     0.522
    withdep_comp_0    0.506
    soma_comp_0       0.305
    socprob_comp_0    0.620
    thouprob_cmp_0    0.626
    attprob_comp_0    0.545
    rulebrek_cmp_0    0.459
    aggress_comp_0    0.573
    anxdep_comp_1     0.510
    withdep_comp_1    0.485
    soma_comp_1       0.299
    socprob_comp_1    0.633
    thouprob_cmp_1    0.615
    attprob_comp_1    0.546
    rulebrek_cmp_1    0.454
    aggress_comp_1    0.584
    anxdep_comp_2     0.517
    withdep_comp_2    0.429
    soma_comp_2       0.313
    socprob_comp_2    0.653
    thouprob_cmp_2    0.639
    attprob_comp_2    0.554
    rulebrek_cmp_2    0.439
    aggress_comp_2    0.589
    anxdep_comp_3     0.499
    withdep_comp_3    0.364
    soma_comp_3       0.307
    socprob_comp_3    0.668
    thouprob_cmp_3    0.650
    attprob_comp_3    0.552
    rulebrek_cmp_3    0.420
    aggress_comp_3    0.591
    anxdep_comp_4     0.505
    withdep_comp_4    0.316
    soma_comp_4       0.274
    socprob_comp_4    0.672
    thouprob_cmp_4    0.655
    attprob_comp_4    0.565
    rulebrek_cmp_4    0.343
    aggress_comp_4    0.617
    anxdep_comp_5     0.491
    withdep_comp_5    0.293
    soma_comp_5       0.238
    socprob_comp_5    0.674
    thouprob_cmp_5    0.619
    attprob_comp_5    0.552
    rulebrek_cmp_5    0.274
    aggress_comp_5    0.613
    anxdep_comp_6     0.491
    withdep_comp_6    0.287
    soma_comp_6       0.217
    socprob_comp_6    0.686
    thouprob_cmp_6    0.649
    attprob_comp_6    0.544
    rulebrek_cmp_6    0.245
    aggress_comp_6    0.632
    p_i               0.502
    p_s               0.560
    p_q               0.369

Symptom model

Externalizing Symptoms

Ext ~ g model with sex

Children’s Externalizing symptoms (Ext) was regressed on children’s cognitive functioning (g), with sex as a covariate.

Ext.pg6.sex.model <- "#
               # second-order g factor
               #factor loadings # S & S2
               g_etaB =~ 1*flanker_0+
                       lambda_R*pattern_0+
                       lambda_M*picture_0+
                       lambda_P*picvocab_0+
                       lambda_V*reading_0
               g_eta2 =~ 1*flanker_2+
                       lambda_R*pattern_2+
                       lambda_M*picture_2+
                       lambda_P*picvocab_2+
                       lambda_V*reading_2
               g_eta4 =~ 1*flanker_4+
                       lambda_R*pattern_4+
                       lambda_M*picture_4+
                       lambda_P*picvocab_4+
                       lambda_V*reading_4
               g_eta6 =~ 1*flanker_6+
                       lambda_R*pattern_6+
                       lambda_M*picture_6+
                       lambda_P*picvocab_6+
                       lambda_V*reading_6

              #latent variable variances
                       g_etaB~~NA*g_etaB
                       g_eta2~~NA*g_eta2
                       g_eta4~~NA*g_eta4
                       g_eta6~~NA*g_eta6

              #unique variances
                      flanker_0~~flanker_0
                      flanker_2~~flanker_2
                      flanker_4~~flanker_4
                      flanker_6~~flanker_6

                      pattern_0~~pattern_0
                      pattern_2~~pattern_2
                      pattern_4~~pattern_4
                      pattern_6~~pattern_6

                      picture_0~~picture_0
                      picture_2~~picture_2
                      picture_4~~picture_4
                      picture_6~~picture_6

                      picvocab_0~~picvocab_0
                      picvocab_2~~picvocab_2
                      picvocab_4~~picvocab_4
                      picvocab_6~~picvocab_6

                      reading_0~~reading_0
                      reading_2~~reading_2
                      reading_4~~reading_4
                      reading_6~~reading_6

              #unique covariances
                      # Task across times
                      flanker_0~~flanker_2 + flanker_4 + flanker_6
                      flanker_2~~flanker_4 + flanker_6
                      flanker_4~~flanker_6

                      pattern_0~~pattern_2 + pattern_4 + pattern_6
                      pattern_2~~pattern_4 + pattern_6
                      pattern_4~~pattern_6

                      picture_0~~picture_2 + picture_4 + picture_6
                      picture_2~~picture_4 + picture_6
                      picture_4~~picture_6

                      picvocab_0~~picvocab_2 + picvocab_4 + picvocab_6
                      picvocab_2~~picvocab_4 + picvocab_6
                      picvocab_4~~picvocab_6

                      reading_0~~reading_2 + reading_4 + reading_6
                      reading_2~~reading_4 + reading_6
                      reading_4~~reading_6

                      #Language
                      picvocab_0~~reading_0 + reading_2 + reading_4 + reading_6
                      picvocab_2~~reading_2 + reading_0 + reading_4 + reading_6
                      picvocab_4~~reading_4 + reading_0 + reading_2 + reading_6
                      picvocab_6~~reading_6 + reading_0 + reading_2 + reading_4

              #observed variable intercepts # S & S2
                      flanker_0~tau_S*1
                      flanker_2~tau_S*1
                      flanker_4~tau_S*1
                      flanker_6~tau_S*1
                      pattern_0~tau_R*1
                      pattern_2~tau_R*1
                      pattern_4~tau_R*1
                      pattern_6~tau_R*1
                      picture_0~tau_M*1
                      picture_2~tau_M*1
                      picture_4~tau_M*1
                      picture_6~tau_M*1
                      picvocab_0~tau_P*1
                      picvocab_2~tau_P*1
                      picvocab_4~tau_P*1
                      picvocab_6~tau_P*1
                      reading_0~tau_V*1
                      reading_2~tau_V*1
                      reading_4~tau_V*1
                      reading_6~tau_V*1

                      #latent basis model
                      g_i =~    1*g_etaB + 1*g_eta2 + 1*g_eta4 + 1*g_eta6
                      g_s =~    0*g_etaB + 1*g_eta2 + 2*g_eta4 + 3*g_eta6

                      g_i~~NA*g_i
                      g_s~~NA*g_s

                      g_i~~g_s

                      g_i~1 + dummy_sex
                      g_s~1 + dummy_sex

                      g_etaB~0*1
                      g_eta2~0*1
                      g_eta4~0*1
                      g_eta6~0*1

                      # Externalizing model
                      p_i =~ 1*Ext_comp_0 + 1*Ext_comp_1 + 1*Ext_comp_2 + 1*Ext_comp_3 + 1*Ext_comp_4 + 1*Ext_comp_5 + 1*Ext_comp_6
                      p_s =~ 0*Ext_comp_0 + .5*Ext_comp_1 + 1*Ext_comp_2 + 1.5*Ext_comp_3 + 2*Ext_comp_4 + 2.5*Ext_comp_5 + 3*Ext_comp_6
                      p_q =~ 0*Ext_comp_0 + .25*Ext_comp_1 + 1*Ext_comp_2 + 2.25*Ext_comp_3 + 4*Ext_comp_4 + 6.25*Ext_comp_5 + 9*Ext_comp_6

                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q

                      p_i~~p_s + p_q
                      p_s~~p_q

                      p_i~1 + dummy_sex
                      p_s~1 + dummy_sex
                      p_q~1 + dummy_sex

                      Ext_comp_0 ~~ NA*Ext_comp_0
                      Ext_comp_1 ~~ NA*Ext_comp_1
                      Ext_comp_2 ~~ NA*Ext_comp_2
                      Ext_comp_3 ~~ NA*Ext_comp_3
                      Ext_comp_4 ~~ NA*Ext_comp_4
                      Ext_comp_5 ~~ NA*Ext_comp_5
                      Ext_comp_6 ~~ NA*Ext_comp_6

                      Ext_comp_0 ~ 0*1
                      Ext_comp_1 ~ 0*1
                      Ext_comp_2 ~ 0*1
                      Ext_comp_3 ~ 0*1
                      Ext_comp_4 ~ 0*1
                      Ext_comp_5 ~ 0*1
                      Ext_comp_6 ~ 0*1

                      # regression
                      p_i ~ g_i
                      p_s ~ g_i + g_s
                      p_q ~ g_i + g_s"

lavaan(Ext.pg6.sex.model,
  data = readRDS("pga6_all_data_sex.rds"),
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = T,
  std.lv = T
) %>%
  saveRDS("pgcm_Ext_pg6_sex_model.rds")
result
readRDS("pgcm_Ext_pg6_sex_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pgcm_Ext_pg6_sex_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pgcm_Ext_pg6_sex_model.rds"), "cor.lv"))$value
[1] 4.85763038 2.03302398 0.89381349 0.80194917 0.16150900 0.09063789 0.08344945
[8] 0.06122750 0.01675914
readRDS("pgcm_Ext_pg6_sex_result.rds")
lavaan 0.6-19 ended normally after 136 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       137
  Number of equality constraints                    27

  Number of observations                         11867
  Number of missing patterns                       674

Model Test User Model:
                                                      
  Test statistic                              6812.431
  Degrees of freedom                               322
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                            128461.908
  Degrees of freedom                               378
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.949
  Tucker-Lewis Index (TLI)                       0.941
                                                      
  Robust Comparative Fit Index (CFI)             0.942
  Robust Tucker-Lewis Index (TLI)                0.932

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -252581.678
  Loglikelihood unrestricted model (H1)    -249175.463
                                                      
  Akaike (AIC)                              505383.356
  Bayesian (BIC)                            506195.323
  Sample-size adjusted Bayesian (SABIC)     505845.755

Root Mean Square Error of Approximation:

  RMSEA                                          0.041
  90 Percent confidence interval - lower         0.040
  90 Percent confidence interval - upper         0.042
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.054
  90 Percent confidence interval - lower         0.053
  90 Percent confidence interval - upper         0.056
  P-value H_0: Robust RMSEA <= 0.050             0.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.066

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  g_etaB =~                                                             
    flnkr_0           1.000                               0.404    0.438
    pttrn_0 (lm_R)    1.216    0.011  112.800    0.000    0.491    0.644
    pictr_0 (lm_M)    0.601    0.009   64.882    0.000    0.243    0.288
    pcvcb_0 (lm_P)    0.930    0.009  107.774    0.000    0.375    0.448
    redng_0 (lm_V)    0.981    0.009  111.454    0.000    0.396    0.464
  g_eta2 =~                                                             
    flnkr_2           1.000                               0.412    0.517
    pttrn_2 (lm_R)    1.216    0.011  112.800    0.000    0.501    0.650
    pictr_2 (lm_M)    0.601    0.009   64.882    0.000    0.248    0.278
    pcvcb_2 (lm_P)    0.930    0.009  107.774    0.000    0.383    0.439
    redng_2 (lm_V)    0.981    0.009  111.454    0.000    0.405    0.480
  g_eta4 =~                                                             
    flnkr_4           1.000                               0.443    0.558
    pttrn_4 (lm_R)    1.216    0.011  112.800    0.000    0.539    0.654
    pictr_4 (lm_M)    0.601    0.009   64.882    0.000    0.266    0.251
    pcvcb_4 (lm_P)    0.930    0.009  107.774    0.000    0.412    0.446
    redng_4 (lm_V)    0.981    0.009  111.454    0.000    0.435    0.472
  g_eta6 =~                                                             
    flnkr_6           1.000                               0.497    0.610
    pttrn_6 (lm_R)    1.216    0.011  112.800    0.000    0.604    0.705
    pictr_6 (lm_M)    0.601    0.009   64.882    0.000    0.299    0.282
    pcvcb_6 (lm_P)    0.930    0.009  107.774    0.000    0.462    0.495
    redng_6 (lm_V)    0.981    0.009  111.454    0.000    0.488    0.503
  g_i =~                                                                
    g_etaB            1.000                               0.957    0.957
    g_eta2            1.000                               0.937    0.937
    g_eta4            1.000                               0.872    0.872
    g_eta6            1.000                               0.777    0.777
  g_s =~                                                                
    g_etaB            0.000                               0.000    0.000
    g_eta2            1.000                               0.115    0.115
    g_eta4            2.000                               0.214    0.214
    g_eta6            3.000                               0.286    0.286
  p_i =~                                                                
    Ext_c_0           1.000                               0.938    0.894
    Ext_c_1           1.000                               0.938    0.917
    Ext_c_2           1.000                               0.938    0.926
    Ext_c_3           1.000                               0.938    0.933
    Ext_c_4           1.000                               0.938    0.944
    Ext_c_5           1.000                               0.938    0.943
    Ext_c_6           1.000                               0.938    0.984
  p_s =~                                                                
    Ext_c_0           0.000                               0.000    0.000
    Ext_c_1           0.500                               0.280    0.274
    Ext_c_2           1.000                               0.560    0.553
    Ext_c_3           1.500                               0.840    0.836
    Ext_c_4           2.000                               1.120    1.128
    Ext_c_5           2.500                               1.400    1.408
    Ext_c_6           3.000                               1.680    1.764
  p_q =~                                                                
    Ext_c_0           0.000                               0.000    0.000
    Ext_c_1           0.250                               0.041    0.040
    Ext_c_2           1.000                               0.163    0.161
    Ext_c_3           2.250                               0.368    0.366
    Ext_c_4           4.000                               0.653    0.658
    Ext_c_5           6.250                               1.021    1.027
    Ext_c_6           9.000                               1.470    1.543

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  g_i ~                                                                 
    dummy_sex        -0.040    0.009   -4.346    0.000   -0.104   -0.052
  g_s ~                                                                 
    dummy_sex         0.004    0.003    1.205    0.228    0.088    0.044
  p_i ~                                                                 
    dummy_sex         0.231    0.019   12.309    0.000    0.246    0.123
  p_s ~                                                                 
    dummy_sex        -0.027    0.021   -1.295    0.195   -0.048   -0.024
  p_q ~                                                                 
    dummy_sex        -0.009    0.006   -1.400    0.161   -0.054   -0.027
  p_i ~                                                                 
    g_i              -0.473    0.030  -15.584    0.000   -0.195   -0.195
  p_s ~                                                                 
    g_i               0.232    0.064    3.618    0.000    0.160    0.160
    g_s              -2.572    1.079   -2.384    0.017   -0.218   -0.218
  p_q ~                                                                 
    g_i              -0.055    0.019   -2.954    0.003   -0.130   -0.130
    g_s               0.628    0.310    2.025    0.043    0.182    0.182

Covariances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .flanker_0 ~~                                                          
   .flanker_2         0.138    0.007   18.832    0.000    0.138    0.245
   .flanker_4         0.098    0.007   13.054    0.000    0.098    0.179
   .flanker_6         0.086    0.009    9.317    0.000    0.086    0.162
 .flanker_2 ~~                                                          
   .flanker_4         0.144    0.007   19.794    0.000    0.144    0.319
   .flanker_6         0.102    0.008   12.547    0.000    0.102    0.230
 .flanker_4 ~~                                                          
   .flanker_6         0.152    0.009   16.823    0.000    0.152    0.358
 .pattern_0 ~~                                                          
   .pattern_2         0.077    0.005   14.052    0.000    0.077    0.225
   .pattern_4         0.042    0.006    7.078    0.000    0.042    0.115
   .pattern_6         0.034    0.007    4.844    0.000    0.034    0.097
 .pattern_2 ~~                                                          
   .pattern_4         0.108    0.007   15.689    0.000    0.108    0.294
   .pattern_6         0.076    0.008   10.125    0.000    0.076    0.214
 .pattern_4 ~~                                                          
   .pattern_6         0.129    0.009   14.469    0.000    0.129    0.341
 .picture_0 ~~                                                          
   .picture_2         0.251    0.007   33.833    0.000    0.251    0.364
   .picture_4         0.257    0.009   28.056    0.000    0.257    0.310
   .picture_6         0.281    0.012   23.493    0.000    0.281    0.342
 .picture_2 ~~                                                          
   .picture_4         0.285    0.010   28.034    0.000    0.285    0.324
   .picture_6         0.265    0.013   19.807    0.000    0.265    0.305
 .picture_4 ~~                                                          
   .picture_6         0.390    0.016   24.706    0.000    0.390    0.374
 .picvocab_0 ~~                                                         
   .picvocab_2        0.397    0.007   53.239    0.000    0.397    0.677
   .picvocab_4        0.400    0.008   50.649    0.000    0.400    0.647
   .picvocab_6        0.380    0.009   43.200    0.000    0.380    0.625
 .picvocab_2 ~~                                                         
   .picvocab_4        0.471    0.009   54.017    0.000    0.471    0.727
   .picvocab_6        0.459    0.010   47.393    0.000    0.459    0.720
 .picvocab_4 ~~                                                         
   .picvocab_6        0.508    0.010   48.378    0.000    0.508    0.756
 .reading_0 ~~                                                          
   .reading_2         0.404    0.007   55.000    0.000    0.404    0.722
   .reading_4         0.407    0.008   50.785    0.000    0.407    0.661
   .reading_6         0.416    0.010   43.539    0.000    0.416    0.656
 .reading_2 ~~                                                          
   .reading_4         0.416    0.008   51.288    0.000    0.416    0.692
   .reading_6         0.432    0.010   45.266    0.000    0.432    0.698
 .reading_4 ~~                                                          
   .reading_6         0.456    0.011   42.932    0.000    0.456    0.669
 .picvocab_0 ~~                                                         
   .reading_0         0.232    0.006   35.893    0.000    0.232    0.411
   .reading_2         0.246    0.007   37.653    0.000    0.246    0.445
   .reading_4         0.264    0.007   36.177    0.000    0.264    0.434
   .reading_6         0.282    0.009   32.088    0.000    0.282    0.451
 .picvocab_2 ~~                                                         
   .reading_2         0.288    0.007   40.412    0.000    0.288    0.497
 .reading_0 ~~                                                          
   .picvocab_2        0.267    0.007   38.289    0.000    0.267    0.450
 .picvocab_2 ~~                                                         
   .reading_4         0.313    0.008   39.472    0.000    0.313    0.490
   .reading_6         0.338    0.010   35.410    0.000    0.338    0.515
 .picvocab_4 ~~                                                         
   .reading_4         0.336    0.009   38.875    0.000    0.336    0.500
 .reading_0 ~~                                                          
   .picvocab_4        0.275    0.007   36.680    0.000    0.275    0.439
 .reading_2 ~~                                                          
   .picvocab_4        0.299    0.008   39.309    0.000    0.299    0.490
 .picvocab_4 ~~                                                         
   .reading_6         0.367    0.010   35.622    0.000    0.367    0.529
 .picvocab_6 ~~                                                         
   .reading_6         0.360    0.011   32.233    0.000    0.360    0.530
 .reading_0 ~~                                                          
   .picvocab_6        0.256    0.009   29.808    0.000    0.256    0.416
 .reading_2 ~~                                                          
   .picvocab_6        0.284    0.009   32.976    0.000    0.284    0.473
 .reading_4 ~~                                                          
   .picvocab_6        0.322    0.010   33.335    0.000    0.322    0.488
 .g_i ~~                                                                
   .g_s               0.005    0.001    4.478    0.000    0.290    0.290
 .p_i ~~                                                                
   .p_s              -0.162    0.012  -13.864    0.000   -0.325   -0.325
   .p_q               0.018    0.004    5.071    0.000    0.122    0.122
 .p_s ~~                                                                
   .p_q              -0.077    0.005  -15.443    0.000   -0.881   -0.881

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .flnkr_0 (ta_S)    0.077    0.008    9.252    0.000    0.077    0.083
   .flnkr_2 (ta_S)    0.077    0.008    9.252    0.000    0.077    0.096
   .flnkr_4 (ta_S)    0.077    0.008    9.252    0.000    0.077    0.097
   .flnkr_6 (ta_S)    0.077    0.008    9.252    0.000    0.077    0.094
   .pttrn_0 (ta_R)    0.087    0.009    9.373    0.000    0.087    0.115
   .pttrn_2 (ta_R)    0.087    0.009    9.373    0.000    0.087    0.113
   .pttrn_4 (ta_R)    0.087    0.009    9.373    0.000    0.087    0.106
   .pttrn_6 (ta_R)    0.087    0.009    9.373    0.000    0.087    0.102
   .pictr_0 (ta_M)    0.039    0.007    5.193    0.000    0.039    0.046
   .pictr_2 (ta_M)    0.039    0.007    5.193    0.000    0.039    0.044
   .pictr_4 (ta_M)    0.039    0.007    5.193    0.000    0.039    0.037
   .pictr_6 (ta_M)    0.039    0.007    5.193    0.000    0.039    0.037
   .pcvcb_0 (ta_P)    0.027    0.008    3.318    0.001    0.027    0.032
   .pcvcb_2 (ta_P)    0.027    0.008    3.318    0.001    0.027    0.031
   .pcvcb_4 (ta_P)    0.027    0.008    3.318    0.001    0.027    0.029
   .pcvcb_6 (ta_P)    0.027    0.008    3.318    0.001    0.027    0.029
   .redng_0 (ta_V)    0.036    0.008    4.361    0.000    0.036    0.042
   .redng_2 (ta_V)    0.036    0.008    4.361    0.000    0.036    0.043
   .redng_4 (ta_V)    0.036    0.008    4.361    0.000    0.036    0.039
   .redng_6 (ta_V)    0.036    0.008    4.361    0.000    0.036    0.037
   .g_i              -0.609    0.010  -58.350    0.000   -1.575   -1.575
   .g_s               0.470    0.004  115.496    0.000    9.903    9.903
   .g_etaB            0.000                               0.000    0.000
   .g_eta2            0.000                               0.000    0.000
   .g_eta4            0.000                               0.000    0.000
   .g_eta6            0.000                               0.000    0.000
   .p_i              -0.330    0.023  -14.607    0.000   -0.352   -0.352
   .p_s               1.318    0.539    2.445    0.014    2.354    2.354
   .p_q              -0.327    0.155   -2.113    0.035   -2.003   -2.003
   .Ext_c_0           0.000                               0.000    0.000
   .Ext_c_1           0.000                               0.000    0.000
   .Ext_c_2           0.000                               0.000    0.000
   .Ext_c_3           0.000                               0.000    0.000
   .Ext_c_4           0.000                               0.000    0.000
   .Ext_c_5           0.000                               0.000    0.000
   .Ext_c_6           0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .g_etaB            0.014    0.002    6.088    0.000    0.084    0.084
   .g_eta2            0.008    0.002    5.041    0.000    0.046    0.046
   .g_eta4            0.017    0.002    8.215    0.000    0.088    0.088
   .g_eta6            0.046    0.004   11.624    0.000    0.186    0.186
   .flanker_0         0.685    0.010   68.058    0.000    0.685    0.808
   .flanker_2         0.466    0.009   54.421    0.000    0.466    0.733
   .flanker_4         0.434    0.009   49.432    0.000    0.434    0.688
   .flanker_6         0.417    0.011   38.665    0.000    0.417    0.628
   .pattern_0         0.341    0.006   52.838    0.000    0.341    0.586
   .pattern_2         0.343    0.008   45.474    0.000    0.343    0.578
   .pattern_4         0.389    0.009   43.060    0.000    0.389    0.573
   .pattern_6         0.370    0.011   33.131    0.000    0.370    0.503
   .picture_0         0.652    0.009   73.348    0.000    0.652    0.917
   .picture_2         0.732    0.011   69.137    0.000    0.732    0.923
   .picture_4         1.053    0.016   66.180    0.000    1.053    0.937
   .picture_6         1.033    0.022   47.820    0.000    1.033    0.920
   .picvocab_0        0.560    0.008   68.970    0.000    0.560    0.799
   .picvocab_2        0.616    0.009   66.215    0.000    0.616    0.807
   .picvocab_4        0.684    0.011   63.057    0.000    0.684    0.801
   .picvocab_6        0.659    0.013   49.238    0.000    0.659    0.755
   .reading_0         0.573    0.008   68.321    0.000    0.573    0.785
   .reading_2         0.546    0.008   64.928    0.000    0.546    0.769
   .reading_4         0.662    0.011   62.049    0.000    0.662    0.778
   .reading_6         0.702    0.015   47.889    0.000    0.702    0.747
   .g_i               0.149    0.004   35.764    0.000    0.997    0.997
   .g_s               0.002    0.001    3.552    0.000    0.998    0.998
   .p_i               0.830    0.014   57.777    0.000    0.944    0.944
   .p_s               0.297    0.017   17.785    0.000    0.945    0.945
   .p_q               0.026    0.002   16.149    0.000    0.964    0.964
   .Ext_comp_0        0.220    0.008   28.740    0.000    0.220    0.200
   .Ext_comp_1        0.272    0.005   55.820    0.000    0.272    0.260
   .Ext_comp_2        0.276    0.005   56.755    0.000    0.276    0.269
   .Ext_comp_3        0.269    0.005   53.341    0.000    0.269    0.266
   .Ext_comp_4        0.258    0.005   52.105    0.000    0.258    0.262
   .Ext_comp_5        0.257    0.006   46.550    0.000    0.257    0.260
   .Ext_comp_6        0.099    0.008   12.071    0.000    0.099    0.109

R-Square:
                   Estimate
    g_etaB            0.916
    g_eta2            0.954
    g_eta4            0.912
    g_eta6            0.814
    flanker_0         0.192
    flanker_2         0.267
    flanker_4         0.312
    flanker_6         0.372
    pattern_0         0.414
    pattern_2         0.422
    pattern_4         0.427
    pattern_6         0.497
    picture_0         0.083
    picture_2         0.077
    picture_4         0.063
    picture_6         0.080
    picvocab_0        0.201
    picvocab_2        0.193
    picvocab_4        0.199
    picvocab_6        0.245
    reading_0         0.215
    reading_2         0.231
    reading_4         0.222
    reading_6         0.253
    g_i               0.003
    g_s               0.002
    p_i               0.056
    p_s               0.055
    p_q               0.036
    Ext_comp_0        0.800
    Ext_comp_1        0.740
    Ext_comp_2        0.731
    Ext_comp_3        0.734
    Ext_comp_4        0.738
    Ext_comp_5        0.740
    Ext_comp_6        0.891
Ext ~ pp model with sex

Children’s Externalizing symptoms (Ext) was regressed on parental psychopathology (pp), with sex as a covariate.

Ext.pa6.sex.model <- "# second-order pp factor
               #factor loadings (with constraints)
               a_etaB =~ 1*asr_anxdep_comp_0+
                       lambda_AW*asr_withdep_comp_0+
                       lambda_AS*asr_soma_comp_0+
                       lambda_AC*asr_thouprob_comp_0+
                       lambda_AH*asr_attprob_comp_0+
                       lambda_AA*asr_rulebreak_comp_0+
                       lambda_AR*asr_aggress_comp_0+
                       lambda_AG*asr_intru_comp_0
               a_eta2 =~ 1*asr_anxdep_comp_2+
                       lambda_AW*asr_withdep_comp_2+
                       lambda_AS*asr_soma_comp_2+
                       lambda_AC*asr_thouprob_comp_2+
                       lambda_AH*asr_attprob_comp_2+
                       lambda_AA*asr_rulebreak_comp_2+
                       lambda_AR*asr_aggress_comp_2+
                       lambda_AG*asr_intru_comp_2
               a_eta4 =~ 1*asr_anxdep_comp_4+
                       lambda_AW*asr_withdep_comp_4+
                       lambda_AS*asr_soma_comp_4+
                       lambda_AC*asr_thouprob_comp_4+
                       lambda_AH*asr_attprob_comp_4+
                       lambda_AA*asr_rulebreak_comp_4+
                       lambda_AR*asr_aggress_comp_4+
                       lambda_AG*asr_intru_comp_4

              #latent variable variances
                      a_etaB~~NA*a_etaB
                      a_eta2~~NA*a_eta2
                      a_eta4~~NA*a_eta4

              #unique variances # No need to constrict these
                      asr_anxdep_comp_0~~asr_anxdep_comp_0
                      asr_withdep_comp_0~~asr_withdep_comp_0
                      asr_soma_comp_0~~asr_soma_comp_0
                      asr_thouprob_comp_0~~asr_thouprob_comp_0
                      asr_attprob_comp_0~~asr_attprob_comp_0
                      asr_rulebreak_comp_0~~asr_rulebreak_comp_0
                      asr_aggress_comp_0~~asr_aggress_comp_0
                      asr_intru_comp_0~~asr_intru_comp_0

                      asr_anxdep_comp_2~~asr_anxdep_comp_2
                      asr_withdep_comp_2~~asr_withdep_comp_2
                      asr_soma_comp_2~~asr_soma_comp_2
                      asr_thouprob_comp_2~~asr_thouprob_comp_2
                      asr_attprob_comp_2~~asr_attprob_comp_2
                      asr_rulebreak_comp_2~~asr_rulebreak_comp_2
                      asr_aggress_comp_2~~asr_aggress_comp_2
                      asr_intru_comp_2~~asr_intru_comp_2

                      asr_anxdep_comp_4~~asr_anxdep_comp_4
                      asr_withdep_comp_4~~asr_withdep_comp_4
                      asr_soma_comp_4~~asr_soma_comp_4
                      asr_thouprob_comp_4~~asr_thouprob_comp_4
                      asr_attprob_comp_4~~asr_attprob_comp_4
                      asr_rulebreak_comp_4~~asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_aggress_comp_4
                      asr_intru_comp_4~~asr_intru_comp_4

              #unique covariances
                      # Scores arcoss times
                      asr_anxdep_comp_0~~ asr_anxdep_comp_2 + asr_anxdep_comp_4
                      asr_anxdep_comp_2~~ asr_anxdep_comp_4

                      asr_withdep_comp_0 ~~ asr_withdep_comp_2 + asr_withdep_comp_4
                      asr_withdep_comp_2 ~~ asr_withdep_comp_4

                      asr_soma_comp_0~~ asr_soma_comp_2 + asr_soma_comp_4
                      asr_soma_comp_2~~ asr_soma_comp_4

                      asr_thouprob_comp_0~~ asr_thouprob_comp_2 + asr_thouprob_comp_4
                      asr_thouprob_comp_2~~ asr_thouprob_comp_4

                      asr_attprob_comp_0~~ asr_attprob_comp_2 + asr_attprob_comp_4
                      asr_attprob_comp_2~~ asr_attprob_comp_4

                      asr_rulebreak_comp_0~~ asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_rulebreak_comp_2~~ asr_rulebreak_comp_4

                      asr_aggress_comp_0~~ asr_aggress_comp_2 + asr_aggress_comp_4
                      asr_aggress_comp_2~~ asr_aggress_comp_4

                      asr_intru_comp_0~~ asr_intru_comp_2 + asr_intru_comp_4
                      asr_intru_comp_2~~ asr_intru_comp_4

                      # Internalizeing subscale covariances
                      asr_anxdep_comp_0~~asr_withdep_comp_0 + asr_soma_comp_0 + asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_2~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_4~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4

                      asr_withdep_comp_0~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_2~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_4~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4

                      # Externalizeing subscale covariances
                      asr_aggress_comp_0~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_2~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4

                      asr_intru_comp_0~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_2~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_4~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4

              #observed variable intercepts
                      asr_anxdep_comp_0~tau_AX*1
                      asr_withdep_comp_0~tau_AW*1
                      asr_soma_comp_0~tau_AS*1
                      asr_thouprob_comp_0~tau_AP*1
                      asr_attprob_comp_0~tau_AH*1
                      asr_rulebreak_comp_0~tau_AA*1
                      asr_aggress_comp_0~tau_AR*1
                      asr_intru_comp_0~tau_AG*1

                      asr_anxdep_comp_2~tau_AX*1
                      asr_withdep_comp_2~tau_AW*1
                      asr_soma_comp_2~tau_AS*1
                      asr_thouprob_comp_2~tau_AP*1
                      asr_attprob_comp_2~tau_AH*1
                      asr_rulebreak_comp_2~tau_AA*1
                      asr_aggress_comp_2~tau_AR*1
                      asr_intru_comp_2~tau_AG*1

                      asr_anxdep_comp_4~tau_AX*1
                      asr_withdep_comp_4~tau_AW*1
                      asr_soma_comp_4~tau_AS*1
                      asr_thouprob_comp_4~tau_AP*1
                      asr_attprob_comp_4~tau_AH*1
                      asr_rulebreak_comp_4~tau_AA*1
                      asr_aggress_comp_4~tau_AR*1
                      asr_intru_comp_4~tau_AG*1

                      #latent basis model
                      a_i =~ 1*a_etaB+1*a_eta2+1*a_eta4
                      a_s =~ 0*a_etaB+1*a_eta2+2*a_eta4
                      a_i~~NA*a_i
                      a_s~~NA*a_s
                      a_i~~a_s
                      a_i~1 + dummy_sex
                      a_s~1 + dummy_sex
                      a_etaB~0*1
                      a_eta2~0*1
                      a_eta4~0*1

                      # Externalizing model
                      p_i =~ 1*Ext_comp_0 + 1*Ext_comp_1 + 1*Ext_comp_2 + 1*Ext_comp_3 + 1*Ext_comp_4 + 1*Ext_comp_5 + 1*Ext_comp_6
                      p_s =~ 0*Ext_comp_0 + .5*Ext_comp_1 + 1*Ext_comp_2 + 1.5*Ext_comp_3 + 2*Ext_comp_4 + 2.5*Ext_comp_5 + 3*Ext_comp_6
                      p_q =~ 0*Ext_comp_0 + .25*Ext_comp_1 + 1*Ext_comp_2 + 2.25*Ext_comp_3 + 4*Ext_comp_4 + 6.25*Ext_comp_5 + 9*Ext_comp_6

                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q

                      p_i~~p_s + p_q
                      p_s~~p_q

                      p_i~1 + dummy_sex
                      p_s~1 + dummy_sex
                      p_q~1 + dummy_sex

                      Ext_comp_0 ~~ NA*Ext_comp_0
                      Ext_comp_1 ~~ NA*Ext_comp_1
                      Ext_comp_2 ~~ NA*Ext_comp_2
                      Ext_comp_3 ~~ NA*Ext_comp_3
                      Ext_comp_4 ~~ NA*Ext_comp_4
                      Ext_comp_5 ~~ NA*Ext_comp_5
                      Ext_comp_6 ~~ NA*Ext_comp_6

                      Ext_comp_0 ~ 0*1
                      Ext_comp_1 ~ 0*1
                      Ext_comp_2 ~ 0*1
                      Ext_comp_3 ~ 0*1
                      Ext_comp_4 ~ 0*1
                      Ext_comp_5 ~ 0*1
                      Ext_comp_6 ~ 0*1

                      # regression
                      p_i ~ a_i
                      p_s ~ a_i + a_s
                      p_q ~ a_i + a_s"

lavaan(Ext.pa6.sex.model,
  data = readRDS("pga6_all_data_sex.rds"),
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = T,
  std.lv = T
) %>%
  saveRDS("pgcm_Ext_pa6_sex_model.rds")
result
readRDS("pgcm_Ext_pa6_sex_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pgcm_Ext_pa6_sex_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pgcm_Ext_pa6_sex_model.rds"), "cor.lv"))$value
[1] 3.83980044 2.40506465 0.66628986 0.60970991 0.22936435 0.13017402 0.07848206
[8] 0.04111472
readRDS("pgcm_Ext_pa6_sex_result.rds")
lavaan 0.6-19 ended normally after 108 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       181
  Number of equality constraints                    30

  Number of observations                         11867
  Number of missing patterns                       102

Model Test User Model:
                                                      
  Test statistic                              6720.595
  Degrees of freedom                               407
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                            240489.260
  Degrees of freedom                               496
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.974
  Tucker-Lewis Index (TLI)                       0.968
                                                      
  Robust Comparative Fit Index (CFI)             0.974
  Robust Tucker-Lewis Index (TLI)                0.968

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -342931.252
  Loglikelihood unrestricted model (H1)    -339570.955
                                                      
  Akaike (AIC)                              686164.505
  Bayesian (BIC)                            687279.114
  Sample-size adjusted Bayesian (SABIC)     686799.253

Root Mean Square Error of Approximation:

  RMSEA                                          0.036
  90 Percent confidence interval - lower         0.035
  90 Percent confidence interval - upper         0.037
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.039
  90 Percent confidence interval - lower         0.039
  90 Percent confidence interval - upper         0.040
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.034

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.839    0.830
    asr___0 (l_AW)    0.895    0.007  126.216    0.000    0.751    0.733
    asr___0 (l_AS)    0.797    0.007  111.255    0.000    0.669    0.667
    asr___0 (l_AC)    0.934    0.007  124.649    0.000    0.784    0.752
    asr___0 (l_AH)    0.908    0.007  130.040    0.000    0.762    0.765
    asr___0 (l_AA)    0.789    0.008   98.216    0.000    0.662    0.634
    asr___0 (l_AR)    0.931    0.007  124.704    0.000    0.781    0.763
    asr___0 (l_AG)    0.491    0.008   59.690    0.000    0.412    0.399
  a_eta2 =~                                                             
    asr___2           1.000                               0.828    0.815
    asr___2 (l_AW)    0.895    0.007  126.216    0.000    0.740    0.730
    asr___2 (l_AS)    0.797    0.007  111.255    0.000    0.659    0.659
    asr___2 (l_AC)    0.934    0.007  124.649    0.000    0.773    0.770
    asr___2 (l_AH)    0.908    0.007  130.040    0.000    0.751    0.770
    asr___2 (l_AA)    0.789    0.008   98.216    0.000    0.653    0.646
    asr___2 (l_AR)    0.931    0.007  124.704    0.000    0.770    0.763
    asr___2 (l_AG)    0.491    0.008   59.690    0.000    0.406    0.409
  a_eta4 =~                                                             
    asr___4           1.000                               0.796    0.798
    asr___4 (l_AW)    0.895    0.007  126.216    0.000    0.712    0.724
    asr___4 (l_AS)    0.797    0.007  111.255    0.000    0.634    0.646
    asr___4 (l_AC)    0.934    0.007  124.649    0.000    0.743    0.768
    asr___4 (l_AH)    0.908    0.007  130.040    0.000    0.722    0.742
    asr___4 (l_AA)    0.789    0.008   98.216    0.000    0.628    0.645
    asr___4 (l_AR)    0.931    0.007  124.704    0.000    0.741    0.758
    asr___4 (l_AG)    0.491    0.008   59.690    0.000    0.391    0.399
  a_i =~                                                                
    a_etaB            1.000                               0.919    0.919
    a_eta2            1.000                               0.933    0.933
    a_eta4            1.000                               0.970    0.970
  a_s =~                                                                
    a_etaB            0.000                               0.000    0.000
    a_eta2            1.000                               0.296    0.296
    a_eta4            2.000                               0.617    0.617
  p_i =~                                                                
    Ext_c_0           1.000                               0.943    0.900
    Ext_c_1           1.000                               0.943    0.915
    Ext_c_2           1.000                               0.943    0.926
    Ext_c_3           1.000                               0.943    0.931
    Ext_c_4           1.000                               0.943    0.948
    Ext_c_5           1.000                               0.943    0.942
    Ext_c_6           1.000                               0.943    0.985
  p_s =~                                                                
    Ext_c_0           0.000                               0.000    0.000
    Ext_c_1           0.500                               0.283    0.275
    Ext_c_2           1.000                               0.567    0.557
    Ext_c_3           1.500                               0.850    0.840
    Ext_c_4           2.000                               1.134    1.140
    Ext_c_5           2.500                               1.417    1.416
    Ext_c_6           3.000                               1.701    1.778
  p_q =~                                                                
    Ext_c_0           0.000                               0.000    0.000
    Ext_c_1           0.250                               0.041    0.040
    Ext_c_2           1.000                               0.165    0.162
    Ext_c_3           2.250                               0.371    0.366
    Ext_c_4           4.000                               0.659    0.663
    Ext_c_5           6.250                               1.030    1.030
    Ext_c_6           9.000                               1.484    1.551

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_i ~                                                                 
    dummy_sex         0.031    0.016    1.928    0.054    0.040    0.020
  a_s ~                                                                 
    dummy_sex        -0.014    0.007   -1.928    0.054   -0.057   -0.028
  p_i ~                                                                 
    dummy_sex         0.229    0.017   13.529    0.000    0.243    0.121
  p_s ~                                                                 
    dummy_sex        -0.028    0.018   -1.588    0.112   -0.049   -0.025
  p_q ~                                                                 
    dummy_sex        -0.008    0.006   -1.436    0.151   -0.050   -0.025
  p_i ~                                                                 
    a_i               0.688    0.014   50.926    0.000    0.563    0.563
  p_s ~                                                                 
    a_i              -0.001    0.015   -0.093    0.926   -0.002   -0.002
    a_s               1.427    0.085   16.780    0.000    0.618    0.618
  p_q ~                                                                 
    a_i              -0.012    0.005   -2.631    0.009   -0.058   -0.058
    a_s              -0.349    0.025  -14.012    0.000   -0.520   -0.520

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.187    0.005   37.401    0.000    0.187    0.565
   .asr_nxdp_cmp_4           0.171    0.005   33.217    0.000    0.171    0.506
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.209    0.006   37.772    0.000    0.209    0.590
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.227    0.006   36.983    0.000    0.227    0.470
   .asr_wthdp_cm_4           0.206    0.006   33.022    0.000    0.206    0.435
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.225    0.006   35.385    0.000    0.225    0.477
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.281    0.007   41.280    0.000    0.281    0.500
   .asr_soma_cmp_4           0.245    0.007   35.405    0.000    0.245    0.438
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.289    0.007   39.571    0.000    0.289    0.511
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.192    0.005   35.270    0.000    0.192    0.436
   .asr_thprb_cm_4           0.159    0.005   29.188    0.000    0.159    0.375
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.167    0.005   31.651    0.000    0.167    0.421
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.259    0.005   48.812    0.000    0.259    0.647
   .asr_ttprb_cm_4           0.253    0.006   45.205    0.000    0.253    0.604
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.273    0.006   47.848    0.000    0.273    0.670
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.297    0.007   40.797    0.000    0.297    0.478
   .asr_rlbrk_cm_4           0.254    0.007   35.212    0.000    0.254    0.424
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.276    0.007   38.039    0.000    0.276    0.480
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.236    0.006   42.233    0.000    0.236    0.544
   .asr_ggrss_cm_4           0.212    0.006   38.188    0.000    0.212    0.502
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.239    0.006   41.576    0.000    0.239    0.574
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.495    0.010   51.755    0.000    0.495    0.576
   .asr_intr_cmp_4           0.464    0.010   47.815    0.000    0.464    0.545
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.473    0.010   49.501    0.000    0.473    0.582
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.021    0.005    4.247    0.000    0.021    0.054
   .asr_soma_cmp_0           0.032    0.005    6.261    0.000    0.032    0.077
   .asr_wthdp_cm_2           0.021    0.005    4.347    0.000    0.021    0.055
   .asr_soma_cmp_2           0.038    0.005    7.360    0.000    0.038    0.090
   .asr_wthdp_cm_4           0.020    0.005    3.847    0.000    0.020    0.051
   .asr_soma_cmp_4           0.036    0.005    6.661    0.000    0.036    0.086
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2           0.012    0.005    2.315    0.021    0.012    0.028
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.031    0.005    5.886    0.000    0.031    0.070
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.039    0.005    7.290    0.000    0.039    0.094
   .asr_soma_cmp_2           0.053    0.006    9.447    0.000    0.053    0.118
   .asr_wthdp_cm_4           0.026    0.005    4.862    0.000    0.026    0.064
   .asr_soma_cmp_4           0.034    0.006    5.977    0.000    0.034    0.076
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4           0.004    0.005    0.691    0.489    0.004    0.009
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.030    0.006    5.348    0.000    0.030    0.066
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.019    0.005    3.572    0.000    0.019    0.046
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.049    0.006    8.574    0.000    0.049    0.109
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.045    0.006    8.035    0.000    0.045    0.110
   .asr_soma_cmp_4           0.066    0.006   10.892    0.000    0.066    0.145
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.029    0.006   -5.054    0.000   -0.029   -0.056
   .asr_soma_cmp_2          -0.017    0.006   -2.874    0.004   -0.017   -0.032
   .asr_soma_cmp_4          -0.032    0.006   -5.228    0.000   -0.032   -0.062
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.011    0.006   -1.966    0.049   -0.011   -0.022
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.012    0.006   -2.029    0.042   -0.012   -0.023
   .asr_soma_cmp_4          -0.020    0.006   -3.188    0.001   -0.020   -0.038
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.014    0.006   -2.358    0.018   -0.014   -0.028
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.017    0.006   -2.798    0.005   -0.017   -0.034
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.018    0.006   -2.889    0.004   -0.018   -0.035
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.129    0.007   19.233    0.000    0.129    0.205
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.064    0.006   10.804    0.000    0.064    0.119
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.082    0.006   12.751    0.000    0.082    0.137
   .asr_rlbrk_cm_2           0.017    0.006    2.955    0.003    0.017    0.033
   .asr_intr_cmp_4           0.090    0.007   13.577    0.000    0.090    0.152
   .asr_rlbrk_cm_4           0.024    0.006    4.217    0.000    0.024    0.049
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.091    0.007   13.723    0.000    0.091    0.146
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.043    0.006    7.298    0.000    0.043    0.081
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.133    0.007   20.298    0.000    0.133    0.225
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.037    0.006    6.364    0.000    0.037    0.073
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.104    0.007   15.517    0.000    0.104    0.177
   .asr_rlbrk_cm_4           0.035    0.006    5.940    0.000    0.035    0.071
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.093    0.007   13.730    0.000    0.093    0.154
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.049    0.006    8.098    0.000    0.049    0.094
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.099    0.007   15.028    0.000    0.099    0.172
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.038    0.006    6.482    0.000    0.038    0.078
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.134    0.007   19.668    0.000    0.134    0.233
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.055    0.006    9.374    0.000    0.055    0.116
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.117    0.008   15.179    0.000    0.117    0.153
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.065    0.007    8.714    0.000    0.065    0.089
   .asr_rlbrk_cm_4           0.070    0.008    9.180    0.000    0.070    0.099
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.069    0.008    9.241    0.000    0.069    0.095
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.109    0.007   14.808    0.000    0.109    0.155
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.068    0.007    9.217    0.000    0.068    0.101
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.083    0.008   10.666    0.000    0.083    0.114
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.075    0.008    9.888    0.000    0.075    0.109
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.106    0.007   14.201    0.000    0.106    0.160
 .a_i ~~                                                                       
   .a_s                     -0.075    0.005  -16.225    0.000   -0.398   -0.398
 .p_i ~~                                                                       
   .p_s                     -0.099    0.011   -9.383    0.000   -0.290   -0.290
   .p_q                      0.008    0.003    2.450    0.014    0.072    0.072
 .p_s ~~                                                                       
   .p_q                     -0.054    0.005  -11.733    0.000   -0.854   -0.854

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .asr___0 (t_AX)   -0.006    0.004   -1.475    0.140   -0.006   -0.006
   .asr___0 (t_AW)    0.002    0.005    0.339    0.735    0.002    0.002
   .asr___0 (t_AS)   -0.003    0.005   -0.463    0.643   -0.003   -0.002
   .asr___0 (t_AP)   -0.000    0.005   -0.060    0.952   -0.000   -0.000
   .asr___0 (t_AH)   -0.001    0.005   -0.173    0.863   -0.001   -0.001
   .asr___0 (t_AA)    0.006    0.005    1.072    0.284    0.006    0.006
   .asr___0 (t_AR)    0.000    0.005    0.103    0.918    0.000    0.000
   .asr___0 (t_AG)   -0.001    0.007   -0.127    0.899   -0.001   -0.001
   .asr___2 (t_AX)   -0.006    0.004   -1.475    0.140   -0.006   -0.006
   .asr___2 (t_AW)    0.002    0.005    0.339    0.735    0.002    0.002
   .asr___2 (t_AS)   -0.003    0.005   -0.463    0.643   -0.003   -0.003
   .asr___2 (t_AP)   -0.000    0.005   -0.060    0.952   -0.000   -0.000
   .asr___2 (t_AH)   -0.001    0.005   -0.173    0.863   -0.001   -0.001
   .asr___2 (t_AA)    0.006    0.005    1.072    0.284    0.006    0.006
   .asr___2 (t_AR)    0.000    0.005    0.103    0.918    0.000    0.000
   .asr___2 (t_AG)   -0.001    0.007   -0.127    0.899   -0.001   -0.001
   .asr___4 (t_AX)   -0.006    0.004   -1.475    0.140   -0.006   -0.006
   .asr___4 (t_AW)    0.002    0.005    0.339    0.735    0.002    0.002
   .asr___4 (t_AS)   -0.003    0.005   -0.463    0.643   -0.003   -0.003
   .asr___4 (t_AP)   -0.000    0.005   -0.060    0.952   -0.000   -0.000
   .asr___4 (t_AH)   -0.001    0.005   -0.173    0.863   -0.001   -0.001
   .asr___4 (t_AA)    0.006    0.005    1.072    0.284    0.006    0.006
   .asr___4 (t_AR)    0.000    0.005    0.103    0.918    0.000    0.000
   .asr___4 (t_AG)   -0.001    0.007   -0.127    0.899   -0.001   -0.001
   .a_i               0.010    0.011    0.911    0.362    0.013    0.013
   .a_s              -0.016    0.005   -3.053    0.002   -0.065   -0.065
   .a_etaB            0.000                               0.000    0.000
   .a_eta2            0.000                               0.000    0.000
   .a_eta4            0.000                               0.000    0.000
   .p_i              -0.048    0.012   -4.080    0.000   -0.051   -0.051
   .p_s              -0.008    0.013   -0.613    0.540   -0.014   -0.014
   .p_q              -0.005    0.004   -1.131    0.258   -0.028   -0.028
   .Ext_c_0           0.000                               0.000    0.000
   .Ext_c_1           0.000                               0.000    0.000
   .Ext_c_2           0.000                               0.000    0.000
   .Ext_c_3           0.000                               0.000    0.000
   .Ext_c_4           0.000                               0.000    0.000
   .Ext_c_5           0.000                               0.000    0.000
   .Ext_c_6           0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .a_etaB            0.109    0.007   16.006    0.000    0.155    0.155
   .a_eta2            0.180    0.005   37.671    0.000    0.262    0.262
   .a_eta4            0.098    0.008   13.016    0.000    0.155    0.155
   .asr_nxdp_cmp_0    0.317    0.006   53.310    0.000    0.317    0.310
   .asr_wthdp_cm_0    0.485    0.008   62.807    0.000    0.485    0.462
   .asr_soma_cmp_0    0.558    0.008   66.538    0.000    0.558    0.555
   .asr_thprb_cm_0    0.471    0.007   65.011    0.000    0.471    0.434
   .asr_ttprb_cm_0    0.413    0.006   64.411    0.000    0.413    0.415
   .asr_rlbrk_cm_0    0.651    0.009   69.306    0.000    0.651    0.598
   .asr_ggrss_cm_0    0.439    0.007   63.469    0.000    0.439    0.418
   .asr_intr_cmp_0    0.898    0.012   74.822    0.000    0.898    0.841
   .asr_nxdp_cmp_2    0.347    0.006   53.595    0.000    0.347    0.336
   .asr_wthdp_cm_2    0.481    0.008   60.954    0.000    0.481    0.467
   .asr_soma_cmp_2    0.567    0.009   64.690    0.000    0.567    0.566
   .asr_thprb_cm_2    0.411    0.007   61.530    0.000    0.411    0.408
   .asr_ttprb_cm_2    0.388    0.006   61.255    0.000    0.388    0.407
   .asr_rlbrk_cm_2    0.595    0.009   66.255    0.000    0.595    0.583
   .asr_ggrss_cm_2    0.427    0.007   61.378    0.000    0.427    0.418
   .asr_intr_cmp_2    0.821    0.011   71.973    0.000    0.821    0.833
   .asr_nxdp_cmp_4    0.361    0.007   50.974    0.000    0.361    0.363
   .asr_wthdp_cm_4    0.461    0.008   57.088    0.000    0.461    0.476
   .asr_soma_cmp_4    0.562    0.009   60.460    0.000    0.562    0.583
   .asr_thprb_cm_4    0.383    0.007   56.943    0.000    0.383    0.410
   .asr_ttprb_cm_4    0.426    0.007   58.551    0.000    0.426    0.450
   .asr_rlbrk_cm_4    0.553    0.009   61.465    0.000    0.553    0.584
   .asr_ggrss_cm_4    0.407    0.007   57.269    0.000    0.407    0.426
   .asr_intr_cmp_4    0.805    0.012   67.680    0.000    0.805    0.841
   .a_i               0.596    0.013   47.600    0.000    1.000    1.000
   .a_s               0.060    0.003   17.537    0.000    0.999    0.999
   .p_i               0.591    0.012   49.318    0.000    0.665    0.665
   .p_s               0.198    0.015   12.869    0.000    0.616    0.616
   .p_q               0.020    0.002   13.594    0.000    0.751    0.751
   .Ext_comp_0        0.207    0.007   28.666    0.000    0.207    0.189
   .Ext_comp_1        0.277    0.005   57.115    0.000    0.277    0.261
   .Ext_comp_2        0.277    0.005   57.091    0.000    0.277    0.267
   .Ext_comp_3        0.273    0.005   53.972    0.000    0.273    0.266
   .Ext_comp_4        0.249    0.005   52.063    0.000    0.249    0.252
   .Ext_comp_5        0.260    0.006   47.038    0.000    0.260    0.260
   .Ext_comp_6        0.100    0.008   12.205    0.000    0.100    0.110

R-Square:
                   Estimate
    a_etaB            0.845
    a_eta2            0.738
    a_eta4            0.845
    asr_nxdp_cmp_0    0.690
    asr_wthdp_cm_0    0.538
    asr_soma_cmp_0    0.445
    asr_thprb_cm_0    0.566
    asr_ttprb_cm_0    0.585
    asr_rlbrk_cm_0    0.402
    asr_ggrss_cm_0    0.582
    asr_intr_cmp_0    0.159
    asr_nxdp_cmp_2    0.664
    asr_wthdp_cm_2    0.533
    asr_soma_cmp_2    0.434
    asr_thprb_cm_2    0.592
    asr_ttprb_cm_2    0.593
    asr_rlbrk_cm_2    0.417
    asr_ggrss_cm_2    0.582
    asr_intr_cmp_2    0.167
    asr_nxdp_cmp_4    0.637
    asr_wthdp_cm_4    0.524
    asr_soma_cmp_4    0.417
    asr_thprb_cm_4    0.590
    asr_ttprb_cm_4    0.550
    asr_rlbrk_cm_4    0.416
    asr_ggrss_cm_4    0.574
    asr_intr_cmp_4    0.159
    a_i               0.000
    a_s               0.001
    p_i               0.335
    p_s               0.384
    p_q               0.249
    Ext_comp_0        0.811
    Ext_comp_1        0.739
    Ext_comp_2        0.733
    Ext_comp_3        0.734
    Ext_comp_4        0.748
    Ext_comp_5        0.740
    Ext_comp_6        0.890

Internalizing Symptoms

Int ~ g model with sex

Children’s Internalizing symptoms (Int) was regressed on children’s cognitive functioning (g), with sex as a covariate.

Int.pg6.sex.model <- "#
               # second-order g factor
               #factor loadings # S & S2
               g_etaB =~ 1*flanker_0+
                       lambda_R*pattern_0+
                       lambda_M*picture_0+
                       lambda_P*picvocab_0+
                       lambda_V*reading_0
               g_eta2 =~ 1*flanker_2+
                       lambda_R*pattern_2+
                       lambda_M*picture_2+
                       lambda_P*picvocab_2+
                       lambda_V*reading_2
               g_eta4 =~ 1*flanker_4+
                       lambda_R*pattern_4+
                       lambda_M*picture_4+
                       lambda_P*picvocab_4+
                       lambda_V*reading_4
               g_eta6 =~ 1*flanker_6+
                       lambda_R*pattern_6+
                       lambda_M*picture_6+
                       lambda_P*picvocab_6+
                       lambda_V*reading_6

              #latent variable variances
                       g_etaB~~NA*g_etaB
                       g_eta2~~NA*g_eta2
                       g_eta4~~NA*g_eta4
                       g_eta6~~NA*g_eta6

              #unique variances
                      flanker_0~~flanker_0
                      flanker_2~~flanker_2
                      flanker_4~~flanker_4
                      flanker_6~~flanker_6

                      pattern_0~~pattern_0
                      pattern_2~~pattern_2
                      pattern_4~~pattern_4
                      pattern_6~~pattern_6

                      picture_0~~picture_0
                      picture_2~~picture_2
                      picture_4~~picture_4
                      picture_6~~picture_6

                      picvocab_0~~picvocab_0
                      picvocab_2~~picvocab_2
                      picvocab_4~~picvocab_4
                      picvocab_6~~picvocab_6

                      reading_0~~reading_0
                      reading_2~~reading_2
                      reading_4~~reading_4
                      reading_6~~reading_6

              #unique covariances
                      # Task across times
                      flanker_0~~flanker_2 + flanker_4 + flanker_6
                      flanker_2~~flanker_4 + flanker_6
                      flanker_4~~flanker_6

                      pattern_0~~pattern_2 + pattern_4 + pattern_6
                      pattern_2~~pattern_4 + pattern_6
                      pattern_4~~pattern_6

                      picture_0~~picture_2 + picture_4 + picture_6
                      picture_2~~picture_4 + picture_6
                      picture_4~~picture_6

                      picvocab_0~~picvocab_2 + picvocab_4 + picvocab_6
                      picvocab_2~~picvocab_4 + picvocab_6
                      picvocab_4~~picvocab_6

                      reading_0~~reading_2 + reading_4 + reading_6
                      reading_2~~reading_4 + reading_6
                      reading_4~~reading_6

                      #Language
                      picvocab_0~~reading_0 + reading_2 + reading_4 + reading_6
                      picvocab_2~~reading_2 + reading_0 + reading_4 + reading_6
                      picvocab_4~~reading_4 + reading_0 + reading_2 + reading_6
                      picvocab_6~~reading_6 + reading_0 + reading_2 + reading_4

              #observed variable intercepts # S & S2
                      flanker_0~tau_S*1
                      flanker_2~tau_S*1
                      flanker_4~tau_S*1
                      flanker_6~tau_S*1
                      pattern_0~tau_R*1
                      pattern_2~tau_R*1
                      pattern_4~tau_R*1
                      pattern_6~tau_R*1
                      picture_0~tau_M*1
                      picture_2~tau_M*1
                      picture_4~tau_M*1
                      picture_6~tau_M*1
                      picvocab_0~tau_P*1
                      picvocab_2~tau_P*1
                      picvocab_4~tau_P*1
                      picvocab_6~tau_P*1
                      reading_0~tau_V*1
                      reading_2~tau_V*1
                      reading_4~tau_V*1
                      reading_6~tau_V*1

                      #latent basis model
                      g_i =~    1*g_etaB + 1*g_eta2 + 1*g_eta4 + 1*g_eta6
                      g_s =~    0*g_etaB + 1*g_eta2 + 2*g_eta4 + 3*g_eta6

                      g_i~~NA*g_i
                      g_s~~NA*g_s

                      g_i~~g_s

                      g_i~1 + dummy_sex
                      g_s~1 + dummy_sex

                      g_etaB~0*1
                      g_eta2~0*1
                      g_eta4~0*1
                      g_eta6~0*1

                      # Internalizing model
                      p_i =~ 1*Int_comp_0 + 1*Int_comp_1 + 1*Int_comp_2 + 1*Int_comp_3 + 1*Int_comp_4 + 1*Int_comp_5 + 1*Int_comp_6
                      p_s =~ 0*Int_comp_0 + .5*Int_comp_1 + 1*Int_comp_2 + 1.5*Int_comp_3 + 2*Int_comp_4 + 2.5*Int_comp_5 + 3*Int_comp_6
                      p_q =~ 0*Int_comp_0 + .25*Int_comp_1 + 1*Int_comp_2 + 2.25*Int_comp_3 + 4*Int_comp_4 + 6.25*Int_comp_5 + 9*Int_comp_6
                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q
                      p_i~~p_s + p_q
                      p_s~~p_q
                      p_i~1 + dummy_sex
                      p_s~1 + dummy_sex
                      p_q~1 + dummy_sex
                      Int_comp_0 ~~ NA*Int_comp_0
                      Int_comp_1 ~~ NA*Int_comp_1
                      Int_comp_2 ~~ NA*Int_comp_2
                      Int_comp_3 ~~ NA*Int_comp_3
                      Int_comp_4 ~~ NA*Int_comp_4
                      Int_comp_5 ~~ NA*Int_comp_5
                      Int_comp_6 ~~ NA*Int_comp_6
                      Int_comp_0 ~ 0*1
                      Int_comp_1 ~ 0*1
                      Int_comp_2 ~ 0*1
                      Int_comp_3 ~ 0*1
                      Int_comp_4 ~ 0*1
                      Int_comp_5 ~ 0*1
                      Int_comp_6 ~ 0*1

                      # regression
                      p_i ~ g_i
                      p_s ~ g_i + g_s
                      p_q ~ g_i + g_s"

lavaan(Int.pg6.sex.model,
  data = readRDS("pga6_all_data_sex.rds"),
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = T,
  std.lv = T
) %>%
  saveRDS("pgcm_Int_pg6_sex_model.rds")
result
readRDS("pgcm_Int_pg6_sex_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    fm.args = list(robust = F),
    rsq = T
  ) %>%
  saveRDS("pgcm_Int_pg6_sex_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pgcm_Int_pg6_sex_model.rds"), "cor.lv"))$value
[1] 4.78030619 1.92577964 0.94161872 0.92283519 0.15852881 0.11409023 0.08035634
[8] 0.05989009 0.01659480
readRDS("pgcm_Int_pg6_sex_result.rds")
lavaan 0.6-19 ended normally after 133 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       137
  Number of equality constraints                    27

  Number of observations                         11867
  Number of missing patterns                       674

Model Test User Model:
                                                      
  Test statistic                              6968.321
  Degrees of freedom                               322
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                            121338.757
  Degrees of freedom                               378
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.945
  Tucker-Lewis Index (TLI)                       0.935

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -256014.271
  Loglikelihood unrestricted model (H1)    -252530.110
                                                      
  Akaike (AIC)                              512248.542
  Bayesian (BIC)                            513060.509
  Sample-size adjusted Bayesian (SABIC)     512710.941

Root Mean Square Error of Approximation:

  RMSEA                                          0.042
  90 Percent confidence interval - lower         0.041
  90 Percent confidence interval - upper         0.043
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.066

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  g_etaB =~                                                             
    flnkr_0           1.000                               0.403    0.438
    pttrn_0 (lm_R)    1.220    0.011  112.490    0.000    0.492    0.647
    pictr_0 (lm_M)    0.599    0.009   64.699    0.000    0.241    0.286
    pcvcb_0 (lm_P)    0.930    0.009  107.670    0.000    0.375    0.447
    redng_0 (lm_V)    0.982    0.009  111.357    0.000    0.395    0.462
  g_eta2 =~                                                             
    flnkr_2           1.000                               0.412    0.516
    pttrn_2 (lm_R)    1.220    0.011  112.490    0.000    0.502    0.654
    pictr_2 (lm_M)    0.599    0.009   64.699    0.000    0.246    0.276
    pcvcb_2 (lm_P)    0.930    0.009  107.670    0.000    0.383    0.437
    redng_2 (lm_V)    0.982    0.009  111.357    0.000    0.404    0.478
  g_eta4 =~                                                             
    flnkr_4           1.000                               0.441    0.556
    pttrn_4 (lm_R)    1.220    0.011  112.490    0.000    0.539    0.656
    pictr_4 (lm_M)    0.599    0.009   64.699    0.000    0.264    0.249
    pcvcb_4 (lm_P)    0.930    0.009  107.670    0.000    0.410    0.444
    redng_4 (lm_V)    0.982    0.009  111.357    0.000    0.433    0.469
  g_eta6 =~                                                             
    flnkr_6           1.000                               0.494    0.608
    pttrn_6 (lm_R)    1.220    0.011  112.490    0.000    0.603    0.706
    pictr_6 (lm_M)    0.599    0.009   64.699    0.000    0.296    0.279
    pcvcb_6 (lm_P)    0.930    0.009  107.670    0.000    0.460    0.492
    redng_6 (lm_V)    0.982    0.009  111.357    0.000    0.485    0.500
  g_i =~                                                                
    g_etaB            1.000                               0.961    0.961
    g_eta2            1.000                               0.941    0.941
    g_eta4            1.000                               0.877    0.877
    g_eta6            1.000                               0.784    0.784
  g_s =~                                                                
    g_etaB            0.000                               0.000    0.000
    g_eta2            1.000                               0.124    0.124
    g_eta4            2.000                               0.232    0.232
    g_eta6            3.000                               0.311    0.311
  p_i =~                                                                
    Int_c_0           1.000                               0.800    0.880
    Int_c_1           1.000                               0.800    0.853
    Int_c_2           1.000                               0.800    0.824
    Int_c_3           1.000                               0.800    0.791
    Int_c_4           1.000                               0.800    0.755
    Int_c_5           1.000                               0.800    0.719
    Int_c_6           1.000                               0.800    0.701
  p_s =~                                                                
    Int_c_0           0.000                               0.000    0.000
    Int_c_1           0.500                               0.309    0.330
    Int_c_2           1.000                               0.619    0.637
    Int_c_3           1.500                               0.928    0.917
    Int_c_4           2.000                               1.238    1.167
    Int_c_5           2.500                               1.547    1.389
    Int_c_6           3.000                               1.856    1.627
  p_q =~                                                                
    Int_c_0           0.000                               0.000    0.000
    Int_c_1           0.250                               0.046    0.049
    Int_c_2           1.000                               0.185    0.190
    Int_c_3           2.250                               0.415    0.410
    Int_c_4           4.000                               0.738    0.696
    Int_c_5           6.250                               1.153    1.036
    Int_c_6           9.000                               1.661    1.455

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  g_i ~                                                                 
    dummy_sex        -0.041    0.009   -4.414    0.000   -0.105   -0.053
  g_s ~                                                                 
    dummy_sex         0.004    0.003    1.138    0.255    0.077    0.038
  p_i ~                                                                 
    dummy_sex         0.027    0.016    1.632    0.103    0.034    0.017
  p_s ~                                                                 
    dummy_sex        -0.119    0.019   -6.374    0.000   -0.193   -0.096
  p_q ~                                                                 
    dummy_sex        -0.008    0.006   -1.167    0.243   -0.041   -0.020
  p_i ~                                                                 
    g_i              -0.151    0.026   -5.810    0.000   -0.073   -0.073
  p_s ~                                                                 
    g_i               0.177    0.041    4.367    0.000    0.111    0.111
    g_s              -0.288    0.632   -0.456    0.648   -0.024   -0.024
  p_q ~                                                                 
    g_i              -0.054    0.014   -3.750    0.000   -0.113   -0.113
    g_s               0.221    0.225    0.985    0.325    0.061    0.061

Covariances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .flanker_0 ~~                                                          
   .flanker_2         0.139    0.007   18.883    0.000    0.139    0.246
   .flanker_4         0.100    0.008   13.241    0.000    0.100    0.182
   .flanker_6         0.088    0.009    9.441    0.000    0.088    0.164
 .flanker_2 ~~                                                          
   .flanker_4         0.146    0.007   20.010    0.000    0.146    0.323
   .flanker_6         0.103    0.008   12.688    0.000    0.103    0.233
 .flanker_4 ~~                                                          
   .flanker_6         0.153    0.009   16.930    0.000    0.153    0.360
 .pattern_0 ~~                                                          
   .pattern_2         0.072    0.005   13.159    0.000    0.072    0.213
   .pattern_4         0.038    0.006    6.486    0.000    0.038    0.107
   .pattern_6         0.031    0.007    4.418    0.000    0.031    0.090
 .pattern_2 ~~                                                          
   .pattern_4         0.103    0.007   15.037    0.000    0.103    0.286
   .pattern_6         0.072    0.008    9.607    0.000    0.072    0.206
 .pattern_4 ~~                                                          
   .pattern_6         0.125    0.009   13.991    0.000    0.125    0.333
 .picture_0 ~~                                                          
   .picture_2         0.253    0.007   33.968    0.000    0.253    0.365
   .picture_4         0.259    0.009   28.215    0.000    0.259    0.312
   .picture_6         0.283    0.012   23.677    0.000    0.283    0.344
 .picture_2 ~~                                                          
   .picture_4         0.288    0.010   28.223    0.000    0.288    0.327
   .picture_6         0.269    0.013   20.019    0.000    0.269    0.308
 .picture_4 ~~                                                          
   .picture_6         0.392    0.016   24.828    0.000    0.392    0.375
 .picvocab_0 ~~                                                         
   .picvocab_2        0.400    0.008   53.284    0.000    0.400    0.678
   .picvocab_4        0.403    0.008   50.746    0.000    0.403    0.649
   .picvocab_6        0.383    0.009   43.343    0.000    0.383    0.627
 .picvocab_2 ~~                                                         
   .picvocab_4        0.475    0.009   54.121    0.000    0.475    0.728
   .picvocab_6        0.462    0.010   47.522    0.000    0.462    0.721
 .picvocab_4 ~~                                                         
   .picvocab_6        0.511    0.011   48.424    0.000    0.511    0.757
 .reading_0 ~~                                                          
   .reading_2         0.407    0.007   55.051    0.000    0.407    0.723
   .reading_4         0.410    0.008   50.889    0.000    0.410    0.663
   .reading_6         0.419    0.010   43.687    0.000    0.419    0.658
 .reading_2 ~~                                                          
   .reading_4         0.419    0.008   51.388    0.000    0.419    0.694
   .reading_6         0.436    0.010   45.383    0.000    0.436    0.700
 .reading_4 ~~                                                          
   .reading_6         0.459    0.011   43.000    0.000    0.459    0.670
 .picvocab_0 ~~                                                         
   .reading_0         0.235    0.007   36.115    0.000    0.235    0.414
   .reading_2         0.249    0.007   37.800    0.000    0.249    0.447
   .reading_4         0.267    0.007   36.341    0.000    0.267    0.436
   .reading_6         0.285    0.009   32.264    0.000    0.285    0.453
 .picvocab_2 ~~                                                         
   .reading_2         0.291    0.007   40.601    0.000    0.291    0.500
 .reading_0 ~~                                                          
   .picvocab_2        0.270    0.007   38.478    0.000    0.270    0.452
 .picvocab_2 ~~                                                         
   .reading_4         0.316    0.008   39.659    0.000    0.316    0.493
   .reading_6         0.342    0.010   35.580    0.000    0.342    0.517
 .picvocab_4 ~~                                                         
   .reading_4         0.340    0.009   39.021    0.000    0.340    0.503
 .reading_0 ~~                                                          
   .picvocab_4        0.278    0.008   36.920    0.000    0.278    0.442
 .reading_2 ~~                                                          
   .picvocab_4        0.303    0.008   39.535    0.000    0.303    0.493
 .picvocab_4 ~~                                                         
   .reading_6         0.370    0.010   35.722    0.000    0.370    0.531
 .picvocab_6 ~~                                                         
   .reading_6         0.364    0.011   32.352    0.000    0.364    0.532
 .reading_0 ~~                                                          
   .picvocab_6        0.259    0.009   30.058    0.000    0.259    0.419
 .reading_2 ~~                                                          
   .picvocab_6        0.287    0.009   33.201    0.000    0.287    0.476
 .reading_4 ~~                                                          
   .picvocab_6        0.326    0.010   33.491    0.000    0.326    0.491
 .g_i ~~                                                                
   .g_s               0.004    0.001    3.593    0.000    0.218    0.218
 .p_i ~~                                                                
   .p_s              -0.115    0.011  -10.072    0.000   -0.236   -0.236
   .p_q               0.019    0.004    5.191    0.000    0.127    0.127
 .p_s ~~                                                                
   .p_q              -0.099    0.005  -19.165    0.000   -0.884   -0.884

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .flnkr_0 (ta_S)    0.096    0.006   16.784    0.000    0.096    0.104
   .flnkr_2 (ta_S)    0.096    0.006   16.784    0.000    0.096    0.120
   .flnkr_4 (ta_S)    0.096    0.006   16.784    0.000    0.096    0.121
   .flnkr_6 (ta_S)    0.096    0.006   16.784    0.000    0.096    0.118
   .pttrn_0 (ta_R)    0.112    0.006   19.366    0.000    0.112    0.147
   .pttrn_2 (ta_R)    0.112    0.006   19.366    0.000    0.112    0.146
   .pttrn_4 (ta_R)    0.112    0.006   19.366    0.000    0.112    0.136
   .pttrn_6 (ta_R)    0.112    0.006   19.366    0.000    0.112    0.131
   .pictr_0 (ta_M)    0.050    0.007    7.551    0.000    0.050    0.059
   .pictr_2 (ta_M)    0.050    0.007    7.551    0.000    0.050    0.056
   .pictr_4 (ta_M)    0.050    0.007    7.551    0.000    0.050    0.047
   .pictr_6 (ta_M)    0.050    0.007    7.551    0.000    0.050    0.047
   .pcvcb_0 (ta_P)    0.044    0.006    7.504    0.000    0.044    0.053
   .pcvcb_2 (ta_P)    0.044    0.006    7.504    0.000    0.044    0.051
   .pcvcb_4 (ta_P)    0.044    0.006    7.504    0.000    0.044    0.048
   .pcvcb_6 (ta_P)    0.044    0.006    7.504    0.000    0.044    0.048
   .redng_0 (ta_V)    0.055    0.006    9.382    0.000    0.055    0.064
   .redng_2 (ta_V)    0.055    0.006    9.382    0.000    0.055    0.065
   .redng_4 (ta_V)    0.055    0.006    9.382    0.000    0.055    0.059
   .redng_6 (ta_V)    0.055    0.006    9.382    0.000    0.055    0.057
   .g_i              -0.628    0.008  -74.495    0.000   -1.621   -1.621
   .g_s               0.470    0.004  115.319    0.000    9.174    9.174
   .g_etaB            0.000                               0.000    0.000
   .g_eta2            0.000                               0.000    0.000
   .g_eta4            0.000                               0.000    0.000
   .g_eta6            0.000                               0.000    0.000
   .p_i              -0.158    0.020   -7.821    0.000   -0.197   -0.197
   .p_s               0.347    0.315    1.101    0.271    0.560    0.560
   .p_q              -0.132    0.112   -1.181    0.237   -0.717   -0.717
   .Int_c_0           0.000                               0.000    0.000
   .Int_c_1           0.000                               0.000    0.000
   .Int_c_2           0.000                               0.000    0.000
   .Int_c_3           0.000                               0.000    0.000
   .Int_c_4           0.000                               0.000    0.000
   .Int_c_5           0.000                               0.000    0.000
   .Int_c_6           0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .g_etaB            0.012    0.002    5.407    0.000    0.076    0.076
   .g_eta2            0.008    0.002    5.200    0.000    0.048    0.048
   .g_eta4            0.017    0.002    8.218    0.000    0.088    0.088
   .g_eta6            0.045    0.004   11.375    0.000    0.184    0.184
   .flanker_0         0.686    0.010   68.071    0.000    0.686    0.809
   .flanker_2         0.467    0.009   54.458    0.000    0.467    0.734
   .flanker_4         0.436    0.009   49.489    0.000    0.436    0.691
   .flanker_6         0.417    0.011   38.713    0.000    0.417    0.631
   .pattern_0         0.336    0.006   52.247    0.000    0.336    0.582
   .pattern_2         0.338    0.008   44.940    0.000    0.338    0.572
   .pattern_4         0.385    0.009   42.624    0.000    0.385    0.570
   .pattern_6         0.366    0.011   32.832    0.000    0.366    0.501
   .picture_0         0.653    0.009   73.390    0.000    0.653    0.918
   .picture_2         0.734    0.011   69.178    0.000    0.734    0.924
   .picture_4         1.056    0.016   66.201    0.000    1.056    0.938
   .picture_6         1.035    0.022   47.853    0.000    1.035    0.922
   .picvocab_0        0.562    0.008   68.950    0.000    0.562    0.800
   .picvocab_2        0.619    0.009   66.224    0.000    0.619    0.809
   .picvocab_4        0.688    0.011   63.054    0.000    0.688    0.803
   .picvocab_6        0.662    0.013   49.277    0.000    0.662    0.758
   .reading_0         0.576    0.008   68.347    0.000    0.576    0.786
   .reading_2         0.550    0.008   64.927    0.000    0.550    0.771
   .reading_4         0.665    0.011   62.027    0.000    0.665    0.780
   .reading_6         0.705    0.015   47.920    0.000    0.705    0.750
   .g_i               0.150    0.004   35.914    0.000    0.997    0.997
   .g_s               0.003    0.001    4.076    0.000    0.999    0.999
   .p_i               0.637    0.012   53.762    0.000    0.994    0.994
   .p_s               0.374    0.016   23.103    0.000    0.978    0.978
   .p_q               0.034    0.002   18.882    0.000    0.986    0.986
   .Int_comp_0        0.187    0.007   25.224    0.000    0.187    0.226
   .Int_comp_1        0.276    0.005   56.720    0.000    0.276    0.314
   .Int_comp_2        0.287    0.005   55.988    0.000    0.287    0.305
   .Int_comp_3        0.298    0.006   52.814    0.000    0.298    0.291
   .Int_comp_4        0.335    0.006   52.366    0.000    0.335    0.298
   .Int_comp_5        0.365    0.008   46.523    0.000    0.365    0.294
   .Int_comp_6        0.239    0.013   18.256    0.000    0.239    0.184

R-Square:
                   Estimate
    g_etaB            0.924
    g_eta2            0.952
    g_eta4            0.912
    g_eta6            0.816
    flanker_0         0.191
    flanker_2         0.266
    flanker_4         0.309
    flanker_6         0.369
    pattern_0         0.418
    pattern_2         0.428
    pattern_4         0.430
    pattern_6         0.499
    picture_0         0.082
    picture_2         0.076
    picture_4         0.062
    picture_6         0.078
    picvocab_0        0.200
    picvocab_2        0.191
    picvocab_4        0.197
    picvocab_6        0.242
    reading_0         0.214
    reading_2         0.229
    reading_4         0.220
    reading_6         0.250
    g_i               0.003
    g_s               0.001
    p_i               0.006
    p_s               0.022
    p_q               0.014
    Int_comp_0        0.774
    Int_comp_1        0.686
    Int_comp_2        0.695
    Int_comp_3        0.709
    Int_comp_4        0.702
    Int_comp_5        0.706
    Int_comp_6        0.816
Int ~ pp model with sex

Children’s Internalizing symptoms (Int) was regressed on parental psychopathology (pp), with sex as a covariate.

Int.pa6.sex.model <- "# second-order pp factor
               #factor loadings (with constraints)
               a_etaB =~ 1*asr_anxdep_comp_0+
                       lambda_AW*asr_withdep_comp_0+
                       lambda_AS*asr_soma_comp_0+
                       lambda_AC*asr_thouprob_comp_0+
                       lambda_AH*asr_attprob_comp_0+
                       lambda_AA*asr_rulebreak_comp_0+
                       lambda_AR*asr_aggress_comp_0+
                       lambda_AG*asr_intru_comp_0
               a_eta2 =~ 1*asr_anxdep_comp_2+
                       lambda_AW*asr_withdep_comp_2+
                       lambda_AS*asr_soma_comp_2+
                       lambda_AC*asr_thouprob_comp_2+
                       lambda_AH*asr_attprob_comp_2+
                       lambda_AA*asr_rulebreak_comp_2+
                       lambda_AR*asr_aggress_comp_2+
                       lambda_AG*asr_intru_comp_2
               a_eta4 =~ 1*asr_anxdep_comp_4+
                       lambda_AW*asr_withdep_comp_4+
                       lambda_AS*asr_soma_comp_4+
                       lambda_AC*asr_thouprob_comp_4+
                       lambda_AH*asr_attprob_comp_4+
                       lambda_AA*asr_rulebreak_comp_4+
                       lambda_AR*asr_aggress_comp_4+
                       lambda_AG*asr_intru_comp_4

              #latent variable variances
                      a_etaB~~NA*a_etaB
                      a_eta2~~NA*a_eta2
                      a_eta4~~NA*a_eta4

              #unique variances # No need to constrict these
                      asr_anxdep_comp_0~~asr_anxdep_comp_0
                      asr_withdep_comp_0~~asr_withdep_comp_0
                      asr_soma_comp_0~~asr_soma_comp_0
                      asr_thouprob_comp_0~~asr_thouprob_comp_0
                      asr_attprob_comp_0~~asr_attprob_comp_0
                      asr_rulebreak_comp_0~~asr_rulebreak_comp_0
                      asr_aggress_comp_0~~asr_aggress_comp_0
                      asr_intru_comp_0~~asr_intru_comp_0

                      asr_anxdep_comp_2~~asr_anxdep_comp_2
                      asr_withdep_comp_2~~asr_withdep_comp_2
                      asr_soma_comp_2~~asr_soma_comp_2
                      asr_thouprob_comp_2~~asr_thouprob_comp_2
                      asr_attprob_comp_2~~asr_attprob_comp_2
                      asr_rulebreak_comp_2~~asr_rulebreak_comp_2
                      asr_aggress_comp_2~~asr_aggress_comp_2
                      asr_intru_comp_2~~asr_intru_comp_2

                      asr_anxdep_comp_4~~asr_anxdep_comp_4
                      asr_withdep_comp_4~~asr_withdep_comp_4
                      asr_soma_comp_4~~asr_soma_comp_4
                      asr_thouprob_comp_4~~asr_thouprob_comp_4
                      asr_attprob_comp_4~~asr_attprob_comp_4
                      asr_rulebreak_comp_4~~asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_aggress_comp_4
                      asr_intru_comp_4~~asr_intru_comp_4

              #unique covariances
                      # Scores arcoss times
                      asr_anxdep_comp_0~~ asr_anxdep_comp_2 + asr_anxdep_comp_4
                      asr_anxdep_comp_2~~ asr_anxdep_comp_4

                      asr_withdep_comp_0 ~~ asr_withdep_comp_2 + asr_withdep_comp_4
                      asr_withdep_comp_2 ~~ asr_withdep_comp_4

                      asr_soma_comp_0~~ asr_soma_comp_2 + asr_soma_comp_4
                      asr_soma_comp_2~~ asr_soma_comp_4

                      asr_thouprob_comp_0~~ asr_thouprob_comp_2 + asr_thouprob_comp_4
                      asr_thouprob_comp_2~~ asr_thouprob_comp_4

                      asr_attprob_comp_0~~ asr_attprob_comp_2 + asr_attprob_comp_4
                      asr_attprob_comp_2~~ asr_attprob_comp_4

                      asr_rulebreak_comp_0~~ asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_rulebreak_comp_2~~ asr_rulebreak_comp_4

                      asr_aggress_comp_0~~ asr_aggress_comp_2 + asr_aggress_comp_4
                      asr_aggress_comp_2~~ asr_aggress_comp_4

                      asr_intru_comp_0~~ asr_intru_comp_2 + asr_intru_comp_4
                      asr_intru_comp_2~~ asr_intru_comp_4

                      # Internalizeing subscale covariances
                      asr_anxdep_comp_0~~asr_withdep_comp_0 + asr_soma_comp_0 + asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_2~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_4~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4

                      asr_withdep_comp_0~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_2~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_4~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4

                      # Externalizeing subscale covariances
                      asr_aggress_comp_0~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_2~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4

                      asr_intru_comp_0~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_2~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_4~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4

              #observed variable intercepts
                      asr_anxdep_comp_0~tau_AX*1
                      asr_withdep_comp_0~tau_AW*1
                      asr_soma_comp_0~tau_AS*1
                      asr_thouprob_comp_0~tau_AP*1
                      asr_attprob_comp_0~tau_AH*1
                      asr_rulebreak_comp_0~tau_AA*1
                      asr_aggress_comp_0~tau_AR*1
                      asr_intru_comp_0~tau_AG*1

                      asr_anxdep_comp_2~tau_AX*1
                      asr_withdep_comp_2~tau_AW*1
                      asr_soma_comp_2~tau_AS*1
                      asr_thouprob_comp_2~tau_AP*1
                      asr_attprob_comp_2~tau_AH*1
                      asr_rulebreak_comp_2~tau_AA*1
                      asr_aggress_comp_2~tau_AR*1
                      asr_intru_comp_2~tau_AG*1

                      asr_anxdep_comp_4~tau_AX*1
                      asr_withdep_comp_4~tau_AW*1
                      asr_soma_comp_4~tau_AS*1
                      asr_thouprob_comp_4~tau_AP*1
                      asr_attprob_comp_4~tau_AH*1
                      asr_rulebreak_comp_4~tau_AA*1
                      asr_aggress_comp_4~tau_AR*1
                      asr_intru_comp_4~tau_AG*1

                      #latent basis model
                      a_i =~ 1*a_etaB+1*a_eta2+1*a_eta4
                      a_s =~ 0*a_etaB+1*a_eta2+2*a_eta4
                      a_i~~NA*a_i
                      a_s~~NA*a_s
                      a_i~~a_s
                      a_i~1 + dummy_sex
                      a_s~1 + dummy_sex
                      a_etaB~0*1
                      a_eta2~0*1
                      a_eta4~0*1

                      # Internalizing model
                      p_i =~ 1*Int_comp_0 + 1*Int_comp_1 + 1*Int_comp_2 + 1*Int_comp_3 + 1*Int_comp_4 + 1*Int_comp_5 + 1*Int_comp_6
                      p_s =~ 0*Int_comp_0 + .5*Int_comp_1 + 1*Int_comp_2 + 1.5*Int_comp_3 + 2*Int_comp_4 + 2.5*Int_comp_5 + 3*Int_comp_6
                      p_q =~ 0*Int_comp_0 + .25*Int_comp_1 + 1*Int_comp_2 + 2.25*Int_comp_3 + 4*Int_comp_4 + 6.25*Int_comp_5 + 9*Int_comp_6

                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q

                      p_i~~p_s + p_q
                      p_s~~p_q

                      p_i~1 + dummy_sex
                      p_s~1 + dummy_sex
                      p_q~1 + dummy_sex

                      Int_comp_0 ~~ NA*Int_comp_0
                      Int_comp_1 ~~ NA*Int_comp_1
                      Int_comp_2 ~~ NA*Int_comp_2
                      Int_comp_3 ~~ NA*Int_comp_3
                      Int_comp_4 ~~ NA*Int_comp_4
                      Int_comp_5 ~~ NA*Int_comp_5
                      Int_comp_6 ~~ NA*Int_comp_6

                      Int_comp_0 ~ 0*1
                      Int_comp_1 ~ 0*1
                      Int_comp_2 ~ 0*1
                      Int_comp_3 ~ 0*1
                      Int_comp_4 ~ 0*1
                      Int_comp_5 ~ 0*1
                      Int_comp_6 ~ 0*1

                      # regression
                      p_i ~ a_i
                      p_s ~ a_i + a_s
                      p_q ~ a_i + a_s"

lavaan(Int.pa6.sex.model,
  data = readRDS("pga6_all_data_sex.rds"),
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = T,
  std.lv = T
) %>%
  saveRDS("pgcm_Int_pa6_sex_model.rds")
result
readRDS("pgcm_Int_pa6_sex_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pgcm_Int_pa6_sex_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pgcm_Int_pa6_sex_model.rds"), "cor.lv"))$value
[1] 3.88447716 2.44370671 0.67843742 0.50438073 0.22762676 0.12856249 0.09281111
[8] 0.03999760
readRDS("pgcm_Int_pa6_sex_result.rds")
lavaan 0.6-19 ended normally after 116 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       181
  Number of equality constraints                    30

  Number of observations                         11867
  Number of missing patterns                        99

Model Test User Model:
                                                      
  Test statistic                              7158.071
  Degrees of freedom                               407
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                            235719.239
  Degrees of freedom                               496
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.971
  Tucker-Lewis Index (TLI)                       0.965
                                                      
  Robust Comparative Fit Index (CFI)             0.971
  Robust Tucker-Lewis Index (TLI)                0.964

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -345328.073
  Loglikelihood unrestricted model (H1)    -341749.037
                                                      
  Akaike (AIC)                              690958.145
  Bayesian (BIC)                            692072.754
  Sample-size adjusted Bayesian (SABIC)     691592.894

Root Mean Square Error of Approximation:

  RMSEA                                          0.037
  90 Percent confidence interval - lower         0.037
  90 Percent confidence interval - upper         0.038
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.041
  90 Percent confidence interval - lower         0.040
  90 Percent confidence interval - upper         0.042
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.038

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.851    0.844
    asr___0 (l_AW)    0.887    0.007  127.149    0.000    0.755    0.737
    asr___0 (l_AS)    0.799    0.007  112.996    0.000    0.680    0.680
    asr___0 (l_AC)    0.913    0.007  125.334    0.000    0.778    0.746
    asr___0 (l_AH)    0.897    0.007  131.639    0.000    0.764    0.766
    asr___0 (l_AA)    0.762    0.008   97.369    0.000    0.649    0.621
    asr___0 (l_AR)    0.905    0.007  125.132    0.000    0.770    0.751
    asr___0 (l_AG)    0.476    0.008   59.068    0.000    0.405    0.392
  a_eta2 =~                                                             
    asr___2           1.000                               0.840    0.828
    asr___2 (l_AW)    0.887    0.007  127.149    0.000    0.745    0.734
    asr___2 (l_AS)    0.799    0.007  112.996    0.000    0.671    0.671
    asr___2 (l_AC)    0.913    0.007  125.334    0.000    0.767    0.764
    asr___2 (l_AH)    0.897    0.007  131.639    0.000    0.753    0.772
    asr___2 (l_AA)    0.762    0.008   97.369    0.000    0.640    0.633
    asr___2 (l_AR)    0.905    0.007  125.132    0.000    0.760    0.751
    asr___2 (l_AG)    0.476    0.008   59.068    0.000    0.399    0.402
  a_eta4 =~                                                             
    asr___4           1.000                               0.810    0.814
    asr___4 (l_AW)    0.887    0.007  127.149    0.000    0.718    0.730
    asr___4 (l_AS)    0.799    0.007  112.996    0.000    0.647    0.660
    asr___4 (l_AC)    0.913    0.007  125.334    0.000    0.740    0.763
    asr___4 (l_AH)    0.897    0.007  131.639    0.000    0.726    0.746
    asr___4 (l_AA)    0.762    0.008   97.369    0.000    0.617    0.633
    asr___4 (l_AR)    0.905    0.007  125.132    0.000    0.732    0.746
    asr___4 (l_AG)    0.476    0.008   59.068    0.000    0.385    0.393
  a_i =~                                                                
    a_etaB            1.000                               0.923    0.923
    a_eta2            1.000                               0.936    0.936
    a_eta4            1.000                               0.971    0.971
  a_s =~                                                                
    a_etaB            0.000                               0.000    0.000
    a_eta2            1.000                               0.300    0.300
    a_eta4            2.000                               0.621    0.621
  p_i =~                                                                
    Int_c_0           1.000                               0.804    0.884
    Int_c_1           1.000                               0.804    0.852
    Int_c_2           1.000                               0.804    0.823
    Int_c_3           1.000                               0.804    0.787
    Int_c_4           1.000                               0.804    0.759
    Int_c_5           1.000                               0.804    0.717
    Int_c_6           1.000                               0.804    0.699
  p_s =~                                                                
    Int_c_0           0.000                               0.000    0.000
    Int_c_1           0.500                               0.309    0.327
    Int_c_2           1.000                               0.618    0.633
    Int_c_3           1.500                               0.927    0.908
    Int_c_4           2.000                               1.236    1.166
    Int_c_5           2.500                               1.545    1.378
    Int_c_6           3.000                               1.853    1.612
  p_q =~                                                                
    Int_c_0           0.000                               0.000    0.000
    Int_c_1           0.250                               0.046    0.049
    Int_c_2           1.000                               0.183    0.188
    Int_c_3           2.250                               0.413    0.404
    Int_c_4           4.000                               0.734    0.693
    Int_c_5           6.250                               1.147    1.023
    Int_c_6           9.000                               1.651    1.436

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_i ~                                                                 
    dummy_sex         0.031    0.016    1.924    0.054    0.040    0.020
  a_s ~                                                                 
    dummy_sex        -0.015    0.007   -1.986    0.047   -0.058   -0.029
  p_i ~                                                                 
    dummy_sex         0.012    0.014    0.838    0.402    0.015    0.007
  p_s ~                                                                 
    dummy_sex        -0.107    0.019   -5.722    0.000   -0.174   -0.087
  p_q ~                                                                 
    dummy_sex        -0.009    0.006   -1.423    0.155   -0.049   -0.025
  p_i ~                                                                 
    a_i               0.673    0.011   59.944    0.000    0.659    0.659
  p_s ~                                                                 
    a_i               0.087    0.016    5.544    0.000    0.110    0.110
    a_s               1.605    0.084   19.161    0.000    0.653    0.653
  p_q ~                                                                 
    a_i              -0.018    0.005   -3.545    0.000   -0.078   -0.078
    a_s              -0.360    0.025  -14.429    0.000   -0.493   -0.493

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.166    0.005   34.766    0.000    0.166    0.540
   .asr_nxdp_cmp_4           0.151    0.005   30.758    0.000    0.151    0.483
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.185    0.005   35.248    0.000    0.185    0.565
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.223    0.006   36.498    0.000    0.223    0.467
   .asr_wthdp_cm_4           0.201    0.006   32.614    0.000    0.201    0.433
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.219    0.006   34.804    0.000    0.219    0.472
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.265    0.007   39.932    0.000    0.265    0.488
   .asr_soma_cmp_4           0.230    0.007   34.094    0.000    0.230    0.425
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.272    0.007   38.263    0.000    0.272    0.498
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.199    0.005   36.250    0.000    0.199    0.444
   .asr_thprb_cm_4           0.167    0.006   30.314    0.000    0.167    0.385
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.175    0.005   32.870    0.000    0.175    0.432
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.255    0.005   48.781    0.000    0.255    0.644
   .asr_ttprb_cm_4           0.248    0.006   45.081    0.000    0.248    0.599
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.267    0.006   47.830    0.000    0.267    0.666
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.313    0.007   42.059    0.000    0.313    0.488
   .asr_rlbrk_cm_4           0.269    0.007   36.524    0.000    0.269    0.434
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.292    0.007   39.458    0.000    0.292    0.493
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.252    0.006   44.252    0.000    0.252    0.558
   .asr_ggrss_cm_4           0.228    0.006   40.132    0.000    0.228    0.514
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.257    0.006   43.696    0.000    0.257    0.590
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.500    0.010   52.017    0.000    0.500    0.578
   .asr_intr_cmp_4           0.469    0.010   48.110    0.000    0.469    0.547
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.479    0.010   49.834    0.000    0.479    0.584
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.007    0.005    1.501    0.133    0.007    0.020
   .asr_soma_cmp_0           0.011    0.005    2.208    0.027    0.011    0.028
   .asr_wthdp_cm_2           0.010    0.005    2.076    0.038    0.010    0.027
   .asr_soma_cmp_2           0.020    0.005    3.896    0.000    0.020    0.049
   .asr_wthdp_cm_4           0.008    0.005    1.639    0.101    0.008    0.022
   .asr_soma_cmp_4           0.018    0.005    3.504    0.000    0.018    0.046
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2          -0.001    0.005   -0.142    0.887   -0.001   -0.002
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.012    0.005    2.459    0.014    0.012    0.030
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.024    0.005    4.729    0.000    0.024    0.062
   .asr_soma_cmp_2           0.031    0.005    5.829    0.000    0.031    0.074
   .asr_wthdp_cm_4           0.011    0.005    2.133    0.033    0.011    0.029
   .asr_soma_cmp_4           0.014    0.005    2.545    0.011    0.014    0.033
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4          -0.008    0.005   -1.511    0.131   -0.008   -0.020
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.012    0.005    2.320    0.020    0.012    0.029
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.006    0.005    1.218    0.223    0.006    0.016
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.029    0.006    5.261    0.000    0.029    0.068
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.027    0.005    5.044    0.000    0.027    0.070
   .asr_soma_cmp_4           0.042    0.006    7.366    0.000    0.042    0.100
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.043    0.006   -7.495    0.000   -0.043   -0.084
   .asr_soma_cmp_2          -0.028    0.006   -4.887    0.000   -0.028   -0.055
   .asr_soma_cmp_4          -0.043    0.006   -7.020    0.000   -0.043   -0.084
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.022    0.006   -3.842    0.000   -0.022   -0.043
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.025    0.006   -4.211    0.000   -0.025   -0.048
   .asr_soma_cmp_4          -0.031    0.006   -5.037    0.000   -0.031   -0.060
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.024    0.006   -4.122    0.000   -0.024   -0.049
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.030    0.006   -4.963    0.000   -0.030   -0.060
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.032    0.006   -5.314    0.000   -0.032   -0.065
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.140    0.007   20.618    0.000    0.140    0.218
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.084    0.006   13.886    0.000    0.084    0.151
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.091    0.007   13.942    0.000    0.091    0.148
   .asr_rlbrk_cm_2           0.033    0.006    5.639    0.000    0.033    0.061
   .asr_intr_cmp_4           0.100    0.007   14.780    0.000    0.100    0.163
   .asr_rlbrk_cm_4           0.040    0.006    6.753    0.000    0.040    0.077
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.100    0.007   14.950    0.000    0.100    0.158
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.059    0.006    9.856    0.000    0.059    0.108
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.144    0.007   21.595    0.000    0.144    0.237
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.054    0.006    9.277    0.000    0.054    0.104
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.115    0.007   16.880    0.000    0.115    0.191
   .asr_rlbrk_cm_4           0.052    0.006    8.726    0.000    0.052    0.103
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.102    0.007   14.875    0.000    0.102    0.165
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.064    0.006   10.454    0.000    0.064    0.120
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.109    0.007   16.284    0.000    0.109    0.184
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.055    0.006    9.155    0.000    0.055    0.108
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.146    0.007   21.181    0.000    0.146    0.248
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.075    0.006   12.444    0.000    0.075    0.151
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.128    0.008   16.409    0.000    0.128    0.164
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.074    0.008    9.801    0.000    0.074    0.099
   .asr_rlbrk_cm_4           0.079    0.008   10.229    0.000    0.079    0.109
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.078    0.008   10.279    0.000    0.078    0.105
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.119    0.007   15.981    0.000    0.119    0.167
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.078    0.007   10.386    0.000    0.078    0.113
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.092    0.008   11.693    0.000    0.092    0.124
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.085    0.008   11.080    0.000    0.085    0.121
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.118    0.008   15.578    0.000    0.118    0.174
 .a_i ~~                                                                       
   .a_s                     -0.080    0.005  -17.699    0.000   -0.404   -0.404
 .p_i ~~                                                                       
   .p_s                     -0.067    0.010   -6.641    0.000   -0.230   -0.230
   .p_q                      0.008    0.003    2.499    0.012    0.081    0.081
 .p_s ~~                                                                       
   .p_q                     -0.067    0.005  -12.603    0.000   -0.857   -0.857

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .asr___0 (t_AX)    0.002    0.004    0.539    0.590    0.002    0.002
   .asr___0 (t_AW)    0.009    0.005    1.858    0.063    0.009    0.009
   .asr___0 (t_AS)    0.004    0.005    0.765    0.444    0.004    0.004
   .asr___0 (t_AP)    0.007    0.005    1.473    0.141    0.007    0.007
   .asr___0 (t_AH)    0.007    0.005    1.379    0.168    0.007    0.007
   .asr___0 (t_AA)    0.012    0.006    2.201    0.028    0.012    0.012
   .asr___0 (t_AR)    0.008    0.005    1.713    0.087    0.008    0.008
   .asr___0 (t_AG)    0.003    0.007    0.462    0.644    0.003    0.003
   .asr___2 (t_AX)    0.002    0.004    0.539    0.590    0.002    0.002
   .asr___2 (t_AW)    0.009    0.005    1.858    0.063    0.009    0.009
   .asr___2 (t_AS)    0.004    0.005    0.765    0.444    0.004    0.004
   .asr___2 (t_AP)    0.007    0.005    1.473    0.141    0.007    0.007
   .asr___2 (t_AH)    0.007    0.005    1.379    0.168    0.007    0.007
   .asr___2 (t_AA)    0.012    0.006    2.201    0.028    0.012    0.012
   .asr___2 (t_AR)    0.008    0.005    1.713    0.087    0.008    0.008
   .asr___2 (t_AG)    0.003    0.007    0.462    0.644    0.003    0.003
   .asr___4 (t_AX)    0.002    0.004    0.539    0.590    0.002    0.002
   .asr___4 (t_AW)    0.009    0.005    1.858    0.063    0.009    0.009
   .asr___4 (t_AS)    0.004    0.005    0.765    0.444    0.004    0.004
   .asr___4 (t_AP)    0.007    0.005    1.473    0.141    0.007    0.007
   .asr___4 (t_AH)    0.007    0.005    1.379    0.168    0.007    0.007
   .asr___4 (t_AA)    0.012    0.006    2.201    0.028    0.012    0.012
   .asr___4 (t_AR)    0.008    0.005    1.713    0.087    0.008    0.008
   .asr___4 (t_AG)    0.003    0.007    0.462    0.644    0.003    0.003
   .a_i               0.001    0.011    0.080    0.936    0.001    0.001
   .a_s              -0.015    0.005   -2.889    0.004   -0.061   -0.061
   .a_etaB            0.000                               0.000    0.000
   .a_eta2            0.000                               0.000    0.000
   .a_eta4            0.000                               0.000    0.000
   .p_i              -0.063    0.010   -6.322    0.000   -0.079   -0.079
   .p_s               0.127    0.014    9.287    0.000    0.206    0.206
   .p_q              -0.001    0.005   -0.178    0.859   -0.005   -0.005
   .Int_c_0           0.000                               0.000    0.000
   .Int_c_1           0.000                               0.000    0.000
   .Int_c_2           0.000                               0.000    0.000
   .Int_c_3           0.000                               0.000    0.000
   .Int_c_4           0.000                               0.000    0.000
   .Int_c_5           0.000                               0.000    0.000
   .Int_c_6           0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .a_etaB            0.107    0.006   16.916    0.000    0.148    0.148
   .a_eta2            0.184    0.005   39.175    0.000    0.261    0.261
   .a_eta4            0.104    0.007   14.222    0.000    0.159    0.159
   .asr_nxdp_cmp_0    0.294    0.006   51.213    0.000    0.294    0.288
   .asr_wthdp_cm_0    0.479    0.008   62.302    0.000    0.479    0.456
   .asr_soma_cmp_0    0.538    0.008   65.694    0.000    0.538    0.538
   .asr_thprb_cm_0    0.481    0.007   65.771    0.000    0.481    0.443
   .asr_ttprb_cm_0    0.410    0.006   64.492    0.000    0.410    0.413
   .asr_rlbrk_cm_0    0.671    0.010   70.151    0.000    0.671    0.614
   .asr_ggrss_cm_0    0.459    0.007   65.212    0.000    0.459    0.436
   .asr_intr_cmp_0    0.904    0.012   75.006    0.000    0.904    0.846
   .asr_nxdp_cmp_2    0.322    0.006   51.800    0.000    0.322    0.314
   .asr_wthdp_cm_2    0.475    0.008   60.557    0.000    0.475    0.461
   .asr_soma_cmp_2    0.549    0.009   64.026    0.000    0.549    0.550
   .asr_thprb_cm_2    0.419    0.007   62.292    0.000    0.419    0.416
   .asr_ttprb_cm_2    0.384    0.006   61.448    0.000    0.384    0.403
   .asr_rlbrk_cm_2    0.612    0.009   67.052    0.000    0.612    0.599
   .asr_ggrss_cm_2    0.445    0.007   62.977    0.000    0.445    0.435
   .asr_intr_cmp_2    0.827    0.011   72.172    0.000    0.827    0.838
   .asr_nxdp_cmp_4    0.333    0.007   49.254    0.000    0.333    0.337
   .asr_wthdp_cm_4    0.452    0.008   56.613    0.000    0.452    0.467
   .asr_soma_cmp_4    0.543    0.009   59.866    0.000    0.543    0.565
   .asr_thprb_cm_4    0.393    0.007   57.789    0.000    0.393    0.418
   .asr_ttprb_cm_4    0.419    0.007   58.851    0.000    0.419    0.443
   .asr_rlbrk_cm_4    0.571    0.009   62.342    0.000    0.571    0.600
   .asr_ggrss_cm_4    0.428    0.007   58.946    0.000    0.428    0.444
   .asr_intr_cmp_4    0.813    0.012   67.938    0.000    0.813    0.846
   .a_i               0.617    0.012   49.434    0.000    1.000    1.000
   .a_s               0.063    0.003   19.615    0.000    0.999    0.999
   .p_i               0.366    0.009   39.469    0.000    0.566    0.566
   .p_s               0.232    0.017   13.546    0.000    0.609    0.609
   .p_q               0.026    0.002   14.712    0.000    0.782    0.782
   .Int_comp_0        0.180    0.007   26.090    0.000    0.180    0.218
   .Int_comp_1        0.280    0.005   58.333    0.000    0.280    0.315
   .Int_comp_2        0.287    0.005   56.499    0.000    0.287    0.302
   .Int_comp_3        0.306    0.006   53.801    0.000    0.306    0.293
   .Int_comp_4        0.320    0.006   52.452    0.000    0.320    0.285
   .Int_comp_5        0.366    0.008   47.004    0.000    0.366    0.292
   .Int_comp_6        0.247    0.013   18.765    0.000    0.247    0.187

R-Square:
                   Estimate
    a_etaB            0.852
    a_eta2            0.739
    a_eta4            0.841
    asr_nxdp_cmp_0    0.712
    asr_wthdp_cm_0    0.544
    asr_soma_cmp_0    0.462
    asr_thprb_cm_0    0.557
    asr_ttprb_cm_0    0.587
    asr_rlbrk_cm_0    0.386
    asr_ggrss_cm_0    0.564
    asr_intr_cmp_0    0.154
    asr_nxdp_cmp_2    0.686
    asr_wthdp_cm_2    0.539
    asr_soma_cmp_2    0.450
    asr_thprb_cm_2    0.584
    asr_ttprb_cm_2    0.597
    asr_rlbrk_cm_2    0.401
    asr_ggrss_cm_2    0.565
    asr_intr_cmp_2    0.162
    asr_nxdp_cmp_4    0.663
    asr_wthdp_cm_4    0.533
    asr_soma_cmp_4    0.435
    asr_thprb_cm_4    0.582
    asr_ttprb_cm_4    0.557
    asr_rlbrk_cm_4    0.400
    asr_ggrss_cm_4    0.556
    asr_intr_cmp_4    0.154
    a_i               0.000
    a_s               0.001
    p_i               0.434
    p_s               0.391
    p_q               0.218
    Int_comp_0        0.782
    Int_comp_1        0.685
    Int_comp_2        0.698
    Int_comp_3        0.707
    Int_comp_4        0.715
    Int_comp_5        0.708
    Int_comp_6        0.813

Commonality result

General p factor

lapply(
  c(
    "pgcm_pga6_sex_model.rds",
    "pgcm_pg6_sex_model.rds",
    "pgcm_pa6_sex_model.rds"
  ),
  function(f) {
    inspect(readRDS(f), "r2")[c("p_i", "p_s", "p_q")]
  }
) %>%
  do.call(rbind, .) %>%
  round(4) %>%
  data.frame(., row.names = c(
    "pc_pp.g", # pc explained by pp and g
    "pc_g", # pc explained by g
    "pc_pp" # pc explained by pp
  )) %>%
  t() %>%
  data.frame() %>%
  mutate(
    Unique_g = .[[1]] - .[[3]], # main model (pc ~ pp + g) minus pc ~ pp
    Unique_pp = .[[1]] - .[[2]], # main model (pc ~ pp + g) minus pc ~ g
    Common = .[[1]] - Unique_g - Unique_pp
  ) %>%
  saveRDS("p_com_result.rds")
readRDS("p_com_result.rds") %>%
  knitr::kable()
pc_pp.g pc_g pc_pp Unique_g Unique_pp Common
p_i 0.5139 0.0624 0.5018 0.0121 0.4515 0.0503
p_s 0.5803 0.0295 0.5602 0.0201 0.5508 0.0094
p_q 0.3859 0.0182 0.3688 0.0171 0.3677 0.0011

Externalizing

lapply(
  c(
    "pgcm_Ext_pga6_sex_model.rds",
    "pgcm_Ext_pg6_sex_model.rds",
    "pgcm_Ext_pa6_sex_model.rds"
  ),
  function(f) {
    inspect(readRDS(f), "r2")[c("p_i", "p_s", "p_q")]
  }
) %>%
  do.call(rbind, .) %>%
  round(4) %>%
  data.frame(., row.names = c(
    "Ext_pp.g", # Ext explained by pp and g
    "Ext_g", # Ext explained by g
    "Ext_pp" # Ext explained by pp
  )) %>%
  t() %>%
  data.frame(., row.names = c(
    "Ext_i", # Int explained by pp and g
    "Ext_s", # Int explained by g
    "Ext_q" # Int explained by pp
  )) %>%
  mutate(
    Unique_g = .[[1]] - .[[3]], # main model (pc ~ pp + g) minus pc ~ pp
    Unique_pp = .[[1]] - .[[2]], # main model (pc ~ pp + g) minus pc ~ g
    Common = .[[1]] - Unique_g - Unique_pp
  ) %>%
  saveRDS("Ext_com_result.rds")
readRDS("Ext_com_result.rds") %>%
  knitr::kable()
Ext_pp.g Ext_g Ext_pp Unique_g Unique_pp Common
Ext_i 0.3462 0.0556 0.3347 0.0115 0.2906 0.0441
Ext_s 0.4418 0.0545 0.3841 0.0577 0.3873 -0.0032
Ext_q 0.2892 0.0365 0.2494 0.0398 0.2527 -0.0033

Internalizing

lapply(
  c(
    "pgcm_Int_pga6_sex_model.rds",
    "pgcm_Int_pg6_sex_model.rds",
    "pgcm_Int_pa6_sex_model.rds"
  ),
  function(f) {
    inspect(readRDS(f), "r2")[c("p_i", "p_s", "p_q")]
  }
) %>%
  do.call(rbind, .) %>%
  round(4) %>%
  data.frame(., row.names = c(
    "Int_pp.g", # Int explained by pp and g
    "Int_g", # Int explained by g
    "Int_pp" # Int explained by pp
  )) %>%
  t() %>%
  data.frame(., row.names = c(
    "Int_i", # Int explained by pp and g
    "Int_s", # Int explained by g
    "Int_q" # Int explained by pp
  )) %>%
  mutate(
    Unique_g = .[[1]] - .[[3]], # main model (pc ~ pp + g) minus pc ~ pp
    Unique_pp = .[[1]] - .[[2]], # main model (pc ~ pp + g) minus pc ~ g
    Common = .[[1]] - Unique_g - Unique_pp
  ) %>%
  saveRDS("Int_com_result.rds")
readRDS("Int_com_result.rds") %>%
  knitr::kable()
Int_pp.g Int_g Int_pp Unique_g Unique_pp Common
Int_i 0.4332 0.0058 0.4339 -7e-04 0.4274 0.0065
Int_s 0.3920 0.0223 0.3911 9e-04 0.3697 0.0214
Int_q 0.2244 0.0137 0.2184 6e-03 0.2107 0.0077

Result summary

p, Ext, Int Table

rbind(
  readRDS("p_com_result.rds")   %>% select(4:6),
  readRDS("Ext_com_result.rds") %>% select(4:6),
  readRDS("Int_com_result.rds") %>% select(4:6)
) %>% 
  rownames_to_column() %>% 
  separate(rowname, into = c("Factor", "Parameter"), sep = "_") %>% 
  mutate( 
    Parameter = factor(Parameter, 
                       levels = c("q","s","i"),
                       labels = c("Quadratic", "Slope", "Intercept")),
    Factor = factor(Factor, 
                    levels = c("p","Int","Ext"),
                    labels = c("General\np factor", "Internalizing", "Externalizing")),
    # Treat negative variances explained as zero
    Unique_g = ifelse(Unique_g < 0,0,Unique_g*100),
    Unique_pp = ifelse(Unique_pp < 0,0,Unique_pp*100),
    Common = ifelse(Common < 0,0,Common*100)
  ) %>% 
  saveRDS("Commonality_all_table.rds")
readRDS("Commonality_all_table.rds") %>%
  knitr::kable()
Factor Parameter Unique_g Unique_pp Common
General
p factor Intercept 1.21 45.15 5.03
General
p factor Slope 2.01 55.08 0.94
General
p factor Quadratic 1.71 36.77 0.11
Externalizing Intercept 1.15 29.06 4.41
Externalizing Slope 5.77 38.73 0.00
Externalizing Quadratic 3.98 25.27 0.00
Internalizing Intercept 0.00 42.74 0.65
Internalizing Slope 0.09 36.97 2.14
Internalizing Quadratic 0.60 21.07 0.77

p, Ext, Int plot

readRDS("Commonality_all_table.rds") %>%
  pivot_longer(cols = c(Unique_pp, Common, Unique_g), names_to = "Component", values_to = "Variance") %>%
  mutate(
    Component = factor(Component, 
                       levels = c("Unique_g", "Common", "Unique_pp"),
                       labels = c("Unique_g", "Common", "Unique_pp"))
  ) %>% 
  ggplot(aes(x = Variance, y = Parameter, fill = Component)) +
  geom_bar(stat = "identity", position = "stack", width = 0.7) +
  scale_x_continuous(limits = c(0, 60), breaks = seq(0, 60, 10)) +
  facet_wrap(~ Factor, ncol = 1, strip.position = "left") +
  scale_fill_manual(
    values = c("Unique_g" = "#A9D18E",
      "Common" = "#A6A6A6",
      "Unique_pp" = "#5B9BD5"),
    labels = c("Unique effects of children's cognitive functioning (g factor)",
               "Common effects between parental psychopathology and children's cognitive\nfunctioning (p_p & g factors)",
               "Unique effects of parental psychopathology (p_p factor)")
  ) +
  labs(x = "Variance explained (%)", y = NULL, title = "Children psychopathology") +
  theme_minimal() +
  theme(
    strip.text.y.left = element_text(angle = 0, hjust = 1, size = 11),
    strip.placement = "outside",
    legend.position = "bottom",
    legend.title = element_blank(),
    panel.grid.major.y = element_blank(),
    panel.grid.minor = element_blank(),
    plot.title = element_text(hjust = 0.5, size = 16, face = "bold")
  ) +
  guides(fill = guide_legend(nrow = 3))

Additional analysis with puberty

Measurement invariance test

Puberty (Parent-report)

Configural invariance model

model fit
pu.config.invar <- "#factor loadings #
               pu_etaB =~ lambda_S*ph_p_pds_001_0+
                          lambda_R*ph_p_pds_002_0+
                          lambda_M*ph_p_pds_003_0
               pu_eta1 =~ lambda_S1*ph_p_pds_001_1+
                          lambda_R1*ph_p_pds_002_1+
                          lambda_M1*ph_p_pds_003_1
               pu_eta2 =~ lambda_S2*ph_p_pds_001_2+
                          lambda_R2*ph_p_pds_002_2+
                          lambda_M2*ph_p_pds_003_2
               pu_eta3 =~ lambda_S3*ph_p_pds_001_3+
                          lambda_R3*ph_p_pds_002_3+
                          lambda_M3*ph_p_pds_003_3
               pu_eta4 =~ lambda_S4*ph_p_pds_001_4+
                          lambda_R4*ph_p_pds_002_4+
                          lambda_M4*ph_p_pds_003_4
               pu_eta5 =~ lambda_S5*ph_p_pds_001_5+
                          lambda_R5*ph_p_pds_002_5+
                          lambda_M5*ph_p_pds_003_5
               pu_eta6 =~ lambda_S6*ph_p_pds_001_6+
                          lambda_R6*ph_p_pds_002_6+
                          lambda_M6*ph_p_pds_003_6

              #latent variable variances #
                      pu_etaB~~1*pu_etaB
                      pu_eta1~~1*pu_eta1
                      pu_eta2~~1*pu_eta2
                      pu_eta3~~1*pu_eta3
                      pu_eta4~~1*pu_eta4
                      pu_eta5~~1*pu_eta5
                      pu_eta6~~1*pu_eta6

              #latent variable covariances
                      pu_etaB~~pu_eta1 + pu_eta2 + pu_eta3 + pu_eta4 + pu_eta5 + pu_eta6
                      pu_eta1~~pu_eta2 + pu_eta3 + pu_eta4 + pu_eta5 + pu_eta6
                      pu_eta2~~pu_eta3 + pu_eta4 + pu_eta5 + pu_eta6
                      pu_eta3~~pu_eta4 + pu_eta5 + pu_eta6
                      pu_eta4~~pu_eta5 + pu_eta6
                      pu_eta5~~pu_eta6

              #unique variances
                      ph_p_pds_001_0~~ph_p_pds_001_0
                      ph_p_pds_002_0~~ph_p_pds_002_0
                      ph_p_pds_003_0~~ph_p_pds_003_0
                      ph_p_pds_001_1~~ph_p_pds_001_1
                      ph_p_pds_002_1~~ph_p_pds_002_1
                      ph_p_pds_003_1~~ph_p_pds_003_1
                      ph_p_pds_001_2~~ph_p_pds_001_2
                      ph_p_pds_002_2~~ph_p_pds_002_2
                      ph_p_pds_003_2~~ph_p_pds_003_2
                      ph_p_pds_001_3~~ph_p_pds_001_3
                      ph_p_pds_002_3~~ph_p_pds_002_3
                      ph_p_pds_003_3~~ph_p_pds_003_3
                      ph_p_pds_001_4~~ph_p_pds_001_4
                      ph_p_pds_002_4~~ph_p_pds_002_4
                      ph_p_pds_003_4~~ph_p_pds_003_4
                      ph_p_pds_001_5~~ph_p_pds_001_5
                      ph_p_pds_002_5~~ph_p_pds_002_5
                      ph_p_pds_003_5~~ph_p_pds_003_5
                      ph_p_pds_001_6~~ph_p_pds_001_6
                      ph_p_pds_002_6~~ph_p_pds_002_6
                      ph_p_pds_003_6~~ph_p_pds_003_6

              #unique covariances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_1 + ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_1 ~~ ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_2 ~~ ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_3 ~~ ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_4 ~~ ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_5 ~~ ph_p_pds_001_6

                      ph_p_pds_002_0 ~~ ph_p_pds_002_1 + ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_1 ~~ ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_2 ~~ ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_3 ~~ ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_4 ~~ ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_5 ~~ ph_p_pds_002_6

                      ph_p_pds_003_0 ~~ ph_p_pds_003_1 + ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_1 ~~ ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_2 ~~ ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_3 ~~ ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_4 ~~ ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_5 ~~ ph_p_pds_003_6

              #latent variable intercepts # 0*1
                      pu_etaB~0*1
                      pu_eta1~0*1
                      pu_eta2~0*1
                      pu_eta3~0*1
                      pu_eta4~0*1
                      pu_eta5~0*1
                      pu_eta6~0*1

              #observed variable intercepts # S & S2
                      ph_p_pds_001_0~tau_S*1
                      ph_p_pds_002_0~tau_R*1
                      ph_p_pds_003_0~tau_M*1
                      ph_p_pds_001_1~tau_S1*1
                      ph_p_pds_002_1~tau_R1*1
                      ph_p_pds_003_1~tau_M1*1
                      ph_p_pds_001_2~tau_S2*1
                      ph_p_pds_002_2~tau_R2*1
                      ph_p_pds_003_2~tau_M2*1
                      ph_p_pds_001_3~tau_S3*1
                      ph_p_pds_002_3~tau_R3*1
                      ph_p_pds_003_3~tau_M3*1
                      ph_p_pds_001_4~tau_S4*1
                      ph_p_pds_002_4~tau_R4*1
                      ph_p_pds_003_4~tau_M4*1
                      ph_p_pds_001_5~tau_S5*1
                      ph_p_pds_002_5~tau_R5*1
                      ph_p_pds_003_5~tau_M5*1
                      ph_p_pds_001_6~tau_S6*1
                      ph_p_pds_002_6~tau_R6*1
                      ph_p_pds_003_6~tau_M6*1"

lavaan(pu.config.invar,
  data = pub_yp_mean_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("p_pub_config.rds")
result
readRDS("p_pub_config.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("p_pub_config_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("p_pub_config.rds"), "cor.lv"))$value
[1] 4.7432770 1.1710810 0.3957256 0.2577420 0.1679615 0.1460402 0.1181727
readRDS("p_pub_config_result.rds")
lavaan 0.6-19 ended normally after 83 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       147

                                                  Used       Total
  Number of observations                         11855       11867
  Number of missing patterns                      1045            

Model Test User Model:
                                                      
  Test statistic                               433.417
  Degrees of freedom                               105
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                             95074.177
  Degrees of freedom                               210
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.997
  Tucker-Lewis Index (TLI)                       0.993
                                                      
  Robust Comparative Fit Index (CFI)             0.996
  Robust Tucker-Lewis Index (TLI)                0.993

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -190817.305
  Loglikelihood unrestricted model (H1)    -190600.597
                                                      
  Akaike (AIC)                              381928.611
  Bayesian (BIC)                            383013.545
  Sample-size adjusted Bayesian (SABIC)     382546.396

Root Mean Square Error of Approximation:

  RMSEA                                          0.016
  90 Percent confidence interval - lower         0.015
  90 Percent confidence interval - upper         0.018
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.019
  90 Percent confidence interval - lower         0.017
  90 Percent confidence interval - upper         0.021
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.013

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  pu_etaB =~                                                            
    p___001 (lm_S)    0.491    0.011   44.096    0.000    0.491    0.445
    p___002 (lm_R)    0.621    0.009   69.441    0.000    0.621    0.766
    p___003 (lm_M)    0.487    0.008   62.017    0.000    0.487    0.632
  pu_eta1 =~                                                            
    p___001 (l_S1)    0.507    0.010   50.542    0.000    0.507    0.491
    p___002 (l_R1)    0.720    0.009   81.568    0.000    0.720    0.818
    p___003 (l_M1)    0.577    0.008   68.588    0.000    0.577    0.661
  pu_eta2 =~                                                            
    p___001 (l_S2)    0.525    0.009   59.142    0.000    0.525    0.558
    p___002 (l_R2)    0.771    0.008   91.712    0.000    0.771    0.858
    p___003 (l_M2)    0.618    0.008   73.418    0.000    0.618    0.683
  pu_eta3 =~                                                            
    p___001 (l_S3)    0.527    0.008   64.359    0.000    0.527    0.617
    p___002 (l_R3)    0.738    0.008   95.287    0.000    0.738    0.882
    p___003 (l_M3)    0.568    0.008   71.693    0.000    0.568    0.674
  pu_eta4 =~                                                            
    p___001 (l_S4)    0.512    0.008   66.433    0.000    0.512    0.663
    p___002 (l_R4)    0.602    0.007   87.977    0.000    0.602    0.860
    p___003 (l_M4)    0.449    0.007   63.642    0.000    0.449    0.633
  pu_eta5 =~                                                            
    p___001 (l_S5)    0.518    0.008   67.304    0.000    0.518    0.695
    p___002 (l_R5)    0.529    0.006   83.008    0.000    0.529    0.853
    p___003 (l_M5)    0.391    0.007   57.671    0.000    0.391    0.607
  pu_eta6 =~                                                            
    p___001 (l_S6)    0.532    0.010   53.522    0.000    0.532    0.719
    p___002 (l_R6)    0.472    0.008   61.755    0.000    0.472    0.835
    p___003 (l_M6)    0.378    0.009   43.554    0.000    0.378    0.604

Covariances:
                    Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  pu_etaB ~~                                                             
    pu_eta1            0.803    0.007  113.284    0.000    0.803    0.803
    pu_eta2            0.651    0.009   69.782    0.000    0.651    0.651
    pu_eta3            0.540    0.011   49.542    0.000    0.540    0.540
    pu_eta4            0.438    0.012   35.318    0.000    0.438    0.438
    pu_eta5            0.356    0.013   26.424    0.000    0.356    0.356
    pu_eta6            0.261    0.017   15.105    0.000    0.261    0.261
  pu_eta1 ~~                                                             
    pu_eta2            0.804    0.006  126.204    0.000    0.804    0.804
    pu_eta3            0.681    0.009   79.414    0.000    0.681    0.681
    pu_eta4            0.566    0.011   53.632    0.000    0.566    0.566
    pu_eta5            0.494    0.012   42.121    0.000    0.494    0.494
    pu_eta6            0.407    0.015   26.663    0.000    0.407    0.407
  pu_eta2 ~~                                                             
    pu_eta3            0.837    0.006  150.388    0.000    0.837    0.837
    pu_eta4            0.676    0.009   79.334    0.000    0.676    0.676
    pu_eta5            0.596    0.010   59.079    0.000    0.596    0.596
    pu_eta6            0.516    0.013   38.408    0.000    0.516    0.516
  pu_eta3 ~~                                                             
    pu_eta4            0.771    0.007  112.000    0.000    0.771    0.771
    pu_eta5            0.681    0.009   77.629    0.000    0.681    0.681
    pu_eta6            0.589    0.012   48.354    0.000    0.589    0.589
  pu_eta4 ~~                                                             
    pu_eta5            0.806    0.007  117.938    0.000    0.806    0.806
    pu_eta6            0.699    0.011   62.805    0.000    0.699    0.699
  pu_eta5 ~~                                                             
    pu_eta6            0.818    0.009   92.723    0.000    0.818    0.818
 .ph_p_pds_001_0 ~~                                                      
   .ph_p_pds_001_1     0.405    0.010   39.854    0.000    0.405    0.456
   .ph_p_pds_001_2     0.270    0.009   31.380    0.000    0.270    0.351
   .ph_p_pds_001_3     0.159    0.007   21.305    0.000    0.159    0.240
   .ph_p_pds_001_4     0.059    0.007    8.799    0.000    0.059    0.103
   .ph_p_pds_001_5     0.025    0.007    3.808    0.000    0.025    0.047
   .ph_p_pds_001_6     0.010    0.008    1.271    0.204    0.010    0.021
 .ph_p_pds_001_1 ~~                                                      
   .ph_p_pds_001_2     0.295    0.008   36.262    0.000    0.295    0.420
   .ph_p_pds_001_3     0.171    0.007   24.477    0.000    0.171    0.283
   .ph_p_pds_001_4     0.074    0.006   11.897    0.000    0.074    0.142
   .ph_p_pds_001_5     0.034    0.006    5.694    0.000    0.034    0.071
   .ph_p_pds_001_6     0.010    0.008    1.297    0.195    0.010    0.021
 .ph_p_pds_001_2 ~~                                                      
   .ph_p_pds_001_3     0.203    0.006   31.727    0.000    0.203    0.387
   .ph_p_pds_001_4     0.092    0.006   16.755    0.000    0.092    0.205
   .ph_p_pds_001_5     0.041    0.005    7.766    0.000    0.041    0.098
   .ph_p_pds_001_6     0.024    0.007    3.668    0.000    0.024    0.061
 .ph_p_pds_001_3 ~~                                                      
   .ph_p_pds_001_4     0.113    0.005   22.254    0.000    0.113    0.291
   .ph_p_pds_001_5     0.057    0.005   11.884    0.000    0.057    0.158
   .ph_p_pds_001_6     0.032    0.006    5.395    0.000    0.032    0.091
 .ph_p_pds_001_4 ~~                                                      
   .ph_p_pds_001_5     0.114    0.005   24.533    0.000    0.114    0.367
   .ph_p_pds_001_6     0.062    0.006   11.131    0.000    0.062    0.207
 .ph_p_pds_001_5 ~~                                                      
   .ph_p_pds_001_6     0.101    0.005   18.489    0.000    0.101    0.365
 .ph_p_pds_002_0 ~~                                                      
   .ph_p_pds_002_1     0.081    0.007   12.439    0.000    0.081    0.307
   .ph_p_pds_002_2     0.029    0.006    5.261    0.000    0.029    0.121
   .ph_p_pds_002_3     0.006    0.005    1.253    0.210    0.006    0.029
   .ph_p_pds_002_4    -0.002    0.004   -0.507    0.612   -0.002   -0.011
   .ph_p_pds_002_5    -0.006    0.004   -1.588    0.112   -0.006   -0.034
   .ph_p_pds_002_6    -0.002    0.004   -0.579    0.563   -0.002   -0.015
 .ph_p_pds_002_1 ~~                                                      
   .ph_p_pds_002_2     0.058    0.006    9.251    0.000    0.058    0.250
   .ph_p_pds_002_3     0.024    0.005    4.637    0.000    0.024    0.121
   .ph_p_pds_002_4     0.013    0.004    2.960    0.003    0.013    0.069
   .ph_p_pds_002_5     0.002    0.004    0.628    0.530    0.002    0.015
   .ph_p_pds_002_6     0.006    0.004    1.437    0.151    0.006    0.041
 .ph_p_pds_002_2 ~~                                                      
   .ph_p_pds_002_3     0.038    0.006    6.628    0.000    0.038    0.207
   .ph_p_pds_002_4     0.024    0.004    5.434    0.000    0.024    0.143
   .ph_p_pds_002_5     0.006    0.004    1.687    0.092    0.006    0.043
   .ph_p_pds_002_6     0.010    0.004    2.329    0.020    0.010    0.069
 .ph_p_pds_002_3 ~~                                                      
   .ph_p_pds_002_4     0.028    0.004    6.584    0.000    0.028    0.197
   .ph_p_pds_002_5     0.013    0.004    3.714    0.000    0.013    0.104
   .ph_p_pds_002_6     0.016    0.004    4.207    0.000    0.016    0.133
 .ph_p_pds_002_4 ~~                                                      
   .ph_p_pds_002_5     0.023    0.003    6.897    0.000    0.023    0.202
   .ph_p_pds_002_6     0.019    0.004    5.370    0.000    0.019    0.174
 .ph_p_pds_002_5 ~~                                                      
   .ph_p_pds_002_6     0.022    0.003    6.376    0.000    0.022    0.215
 .ph_p_pds_003_0 ~~                                                      
   .ph_p_pds_003_1     0.154    0.005   28.088    0.000    0.154    0.394
   .ph_p_pds_003_2     0.105    0.005   20.523    0.000    0.105    0.266
   .ph_p_pds_003_3     0.064    0.005   13.616    0.000    0.064    0.171
   .ph_p_pds_003_4     0.028    0.004    6.771    0.000    0.028    0.085
   .ph_p_pds_003_5     0.024    0.004    5.961    0.000    0.024    0.077
   .ph_p_pds_003_6     0.010    0.005    1.973    0.049    0.010    0.033
 .ph_p_pds_003_1 ~~                                                      
   .ph_p_pds_003_2     0.178    0.006   29.833    0.000    0.178    0.412
   .ph_p_pds_003_3     0.108    0.005   20.428    0.000    0.108    0.265
   .ph_p_pds_003_4     0.049    0.005   10.673    0.000    0.049    0.135
   .ph_p_pds_003_5     0.028    0.004    6.545    0.000    0.028    0.085
   .ph_p_pds_003_6     0.012    0.005    2.210    0.027    0.012    0.037
 .ph_p_pds_003_2 ~~                                                      
   .ph_p_pds_003_3     0.173    0.006   30.317    0.000    0.173    0.420
   .ph_p_pds_003_4     0.085    0.005   18.063    0.000    0.085    0.234
   .ph_p_pds_003_5     0.053    0.004   12.066    0.000    0.053    0.157
   .ph_p_pds_003_6     0.020    0.005    3.616    0.000    0.020    0.060
 .ph_p_pds_003_3 ~~                                                      
   .ph_p_pds_003_4     0.119    0.005   26.292    0.000    0.119    0.349
   .ph_p_pds_003_5     0.067    0.004   16.167    0.000    0.067    0.211
   .ph_p_pds_003_6     0.044    0.005    8.726    0.000    0.044    0.143
 .ph_p_pds_003_4 ~~                                                      
   .ph_p_pds_003_5     0.087    0.004   22.589    0.000    0.087    0.309
   .ph_p_pds_003_6     0.069    0.005   14.801    0.000    0.069    0.253
 .ph_p_pds_003_5 ~~                                                      
   .ph_p_pds_003_6     0.082    0.004   18.695    0.000    0.082    0.323

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    pu_etaB           0.000                               0.000    0.000
    pu_eta1           0.000                               0.000    0.000
    pu_eta2           0.000                               0.000    0.000
    pu_eta3           0.000                               0.000    0.000
    pu_eta4           0.000                               0.000    0.000
    pu_eta5           0.000                               0.000    0.000
    pu_eta6           0.000                               0.000    0.000
   .p___001 (ta_S)   -0.440    0.010  -42.833    0.000   -0.440   -0.399
   .p___002 (ta_R)   -0.835    0.008 -111.172    0.000   -0.835   -1.030
   .p___003 (ta_M)   -0.863    0.007 -120.968    0.000   -0.863   -1.118
   .p___001 (t_S1)   -0.362    0.010  -37.126    0.000   -0.362   -0.350
   .p___002 (t_R1)   -0.578    0.008  -69.825    0.000   -0.578   -0.657
   .p___003 (t_M1)   -0.568    0.008  -69.374    0.000   -0.568   -0.651
   .p___001 (t_S2)   -0.204    0.009  -22.816    0.000   -0.204   -0.217
   .p___002 (t_R2)   -0.163    0.009  -19.047    0.000   -0.163   -0.181
   .p___003 (t_M2)   -0.145    0.009  -16.947    0.000   -0.145   -0.161
   .p___001 (t_S3)    0.014    0.008    1.696    0.090    0.014    0.017
   .p___002 (t_R3)    0.194    0.008   23.898    0.000    0.194    0.232
   .p___003 (t_M3)    0.197    0.008   24.140    0.000    0.197    0.234
   .p___001 (t_S4)    0.339    0.008   43.711    0.000    0.339    0.439
   .p___002 (t_R4)    0.578    0.007   82.692    0.000    0.578    0.826
   .p___003 (t_M4)    0.570    0.007   79.942    0.000    0.570    0.803
   .p___001 (t_S5)    0.553    0.008   71.484    0.000    0.553    0.741
   .p___002 (t_R5)    0.775    0.006  121.027    0.000    0.775    1.249
   .p___003 (t_M5)    0.761    0.007  113.242    0.000    0.761    1.182
   .p___001 (t_S6)    0.754    0.009   79.593    0.000    0.754    1.019
   .p___002 (t_R6)    0.933    0.007  130.578    0.000    0.933    1.649
   .p___003 (t_M6)    0.916    0.008  111.565    0.000    0.916    1.463

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    pu_etaB           1.000                               1.000    1.000
    pu_eta1           1.000                               1.000    1.000
    pu_eta2           1.000                               1.000    1.000
    pu_eta3           1.000                               1.000    1.000
    pu_eta4           1.000                               1.000    1.000
    pu_eta5           1.000                               1.000    1.000
    pu_eta6           1.000                               1.000    1.000
   .ph_p_pds_001_0    0.974    0.014   68.591    0.000    0.974    0.802
   .ph_p_pds_002_0    0.272    0.009   31.136    0.000    0.272    0.413
   .ph_p_pds_003_0    0.358    0.007   53.491    0.000    0.358    0.601
   .ph_p_pds_001_1    0.809    0.012   67.424    0.000    0.809    0.759
   .ph_p_pds_002_1    0.257    0.009   28.669    0.000    0.257    0.332
   .ph_p_pds_003_1    0.429    0.008   54.645    0.000    0.429    0.563
   .ph_p_pds_001_2    0.609    0.009   65.247    0.000    0.609    0.689
   .ph_p_pds_002_2    0.213    0.008   25.601    0.000    0.213    0.263
   .ph_p_pds_003_2    0.436    0.008   55.546    0.000    0.436    0.533
   .ph_p_pds_001_3    0.453    0.007   60.844    0.000    0.453    0.620
   .ph_p_pds_002_3    0.155    0.007   22.449    0.000    0.155    0.222
   .ph_p_pds_003_3    0.387    0.007   56.764    0.000    0.387    0.545
   .ph_p_pds_001_4    0.334    0.006   54.274    0.000    0.334    0.560
   .ph_p_pds_002_4    0.127    0.005   25.079    0.000    0.127    0.260
   .ph_p_pds_003_4    0.301    0.005   57.036    0.000    0.301    0.599
   .ph_p_pds_001_5    0.288    0.006   49.335    0.000    0.288    0.517
   .ph_p_pds_002_5    0.105    0.004   25.176    0.000    0.105    0.273
   .ph_p_pds_003_5    0.262    0.005   56.231    0.000    0.262    0.632
   .ph_p_pds_001_6    0.265    0.008   35.255    0.000    0.265    0.483
   .ph_p_pds_002_6    0.097    0.005   21.267    0.000    0.097    0.303
   .ph_p_pds_003_6    0.249    0.006   42.681    0.000    0.249    0.635

R-Square:
                   Estimate
    ph_p_pds_001_0    0.198
    ph_p_pds_002_0    0.587
    ph_p_pds_003_0    0.399
    ph_p_pds_001_1    0.241
    ph_p_pds_002_1    0.668
    ph_p_pds_003_1    0.437
    ph_p_pds_001_2    0.311
    ph_p_pds_002_2    0.737
    ph_p_pds_003_2    0.467
    ph_p_pds_001_3    0.380
    ph_p_pds_002_3    0.778
    ph_p_pds_003_3    0.455
    ph_p_pds_001_4    0.440
    ph_p_pds_002_4    0.740
    ph_p_pds_003_4    0.401
    ph_p_pds_001_5    0.483
    ph_p_pds_002_5    0.727
    ph_p_pds_003_5    0.368
    ph_p_pds_001_6    0.517
    ph_p_pds_002_6    0.697
    ph_p_pds_003_6    0.365

Weak invariance model

model fit
pu.weak.invar <- "#factor loadings - MARKER VARIABLE METHOD
               # First indicator (S) fixed to 1 at all time points for identification
               pu_etaB =~ 1*ph_p_pds_001_0+
                          lambda_R*ph_p_pds_002_0+
                          lambda_M*ph_p_pds_003_0
               pu_eta1 =~ 1*ph_p_pds_001_1+
                          lambda_R*ph_p_pds_002_1+
                          lambda_M*ph_p_pds_003_1
               pu_eta2 =~ 1*ph_p_pds_001_2+
                          lambda_R*ph_p_pds_002_2+
                          lambda_M*ph_p_pds_003_2
               pu_eta3 =~ 1*ph_p_pds_001_3+
                          lambda_R*ph_p_pds_002_3+
                          lambda_M*ph_p_pds_003_3
               pu_eta4 =~ 1*ph_p_pds_001_4+
                          lambda_R*ph_p_pds_002_4+
                          lambda_M*ph_p_pds_003_4
               pu_eta5 =~ 1*ph_p_pds_001_5+
                          lambda_R*ph_p_pds_002_5+
                          lambda_M*ph_p_pds_003_5
               pu_eta6 =~ 1*ph_p_pds_001_6+
                          lambda_R*ph_p_pds_002_6+
                          lambda_M*ph_p_pds_003_6

              #latent variable variances - FREE TO VARY ACROSS TIME
                      pu_etaB~~NA*pu_etaB
                      pu_eta1~~NA*pu_eta1
                      pu_eta2~~NA*pu_eta2
                      pu_eta3~~NA*pu_eta3
                      pu_eta4~~NA*pu_eta4
                      pu_eta5~~NA*pu_eta5
                      pu_eta6~~NA*pu_eta6

              #latent variable covariances
                      pu_etaB~~pu_eta1 + pu_eta2 + pu_eta3 + pu_eta4 + pu_eta5 + pu_eta6
                      pu_eta1~~pu_eta2 + pu_eta3 + pu_eta4 + pu_eta5 + pu_eta6
                      pu_eta2~~pu_eta3 + pu_eta4 + pu_eta5 + pu_eta6
                      pu_eta3~~pu_eta4 + pu_eta5 + pu_eta6
                      pu_eta4~~pu_eta5 + pu_eta6
                      pu_eta5~~pu_eta6

              #unique variances
                      ph_p_pds_001_0~~ph_p_pds_001_0
                      ph_p_pds_002_0~~ph_p_pds_002_0
                      ph_p_pds_003_0~~ph_p_pds_003_0
                      ph_p_pds_001_1~~ph_p_pds_001_1
                      ph_p_pds_002_1~~ph_p_pds_002_1
                      ph_p_pds_003_1~~ph_p_pds_003_1
                      ph_p_pds_001_2~~ph_p_pds_001_2
                      ph_p_pds_002_2~~ph_p_pds_002_2
                      ph_p_pds_003_2~~ph_p_pds_003_2
                      ph_p_pds_001_3~~ph_p_pds_001_3
                      ph_p_pds_002_3~~ph_p_pds_002_3
                      ph_p_pds_003_3~~ph_p_pds_003_3
                      ph_p_pds_001_4~~ph_p_pds_001_4
                      ph_p_pds_002_4~~ph_p_pds_002_4
                      ph_p_pds_003_4~~ph_p_pds_003_4
                      ph_p_pds_001_5~~ph_p_pds_001_5
                      ph_p_pds_002_5~~ph_p_pds_002_5
                      ph_p_pds_003_5~~ph_p_pds_003_5
                      ph_p_pds_001_6~~ph_p_pds_001_6
                      ph_p_pds_002_6~~ph_p_pds_002_6
                      ph_p_pds_003_6~~ph_p_pds_003_6

              #unique covariances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_1 + ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_1 ~~ ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_2 ~~ ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_3 ~~ ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_4 ~~ ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_5 ~~ ph_p_pds_001_6

                      ph_p_pds_002_0 ~~ ph_p_pds_002_1 + ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_1 ~~ ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_2 ~~ ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_3 ~~ ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_4 ~~ ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_5 ~~ ph_p_pds_002_6

                      ph_p_pds_003_0 ~~ ph_p_pds_003_1 + ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_1 ~~ ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_2 ~~ ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_3 ~~ ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_4 ~~ ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_5 ~~ ph_p_pds_003_6

              #latent variable intercepts
                      pu_etaB~0*1
                      pu_eta1~0*1
                      pu_eta2~0*1
                      pu_eta3~0*1
                      pu_eta4~0*1
                      pu_eta5~0*1
                      pu_eta6~0*1

              #observed variable intercepts - FREE TO VARY ACROSS TIME
                      ph_p_pds_001_0~tau_S0*1
                      ph_p_pds_002_0~tau_R0*1
                      ph_p_pds_003_0~tau_M0*1
                      ph_p_pds_001_1~tau_S1*1
                      ph_p_pds_002_1~tau_R1*1
                      ph_p_pds_003_1~tau_M1*1
                      ph_p_pds_001_2~tau_S2*1
                      ph_p_pds_002_2~tau_R2*1
                      ph_p_pds_003_2~tau_M2*1
                      ph_p_pds_001_3~tau_S3*1
                      ph_p_pds_002_3~tau_R3*1
                      ph_p_pds_003_3~tau_M3*1
                      ph_p_pds_001_4~tau_S4*1
                      ph_p_pds_002_4~tau_R4*1
                      ph_p_pds_003_4~tau_M4*1
                      ph_p_pds_001_5~tau_S5*1
                      ph_p_pds_002_5~tau_R5*1
                      ph_p_pds_003_5~tau_M5*1
                      ph_p_pds_001_6~tau_S6*1
                      ph_p_pds_002_6~tau_R6*1
                      ph_p_pds_003_6~tau_M6*1"

lavaan(pu.weak.invar,
  data = pub_yp_mean_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("p_pub_weak.rds")
result
readRDS("p_pub_weak.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("p_pub_weak_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("p_pub_weak.rds"), "cor.lv"))$value
[1] 4.7335129 1.1736374 0.3953769 0.2608258 0.1687505 0.1511783 0.1167183
readRDS("p_pub_weak_result.rds")
lavaan 0.6-19 ended normally after 115 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       147
  Number of equality constraints                    12

                                                  Used       Total
  Number of observations                         11855       11867
  Number of missing patterns                      1045            

Model Test User Model:
                                                      
  Test statistic                               989.340
  Degrees of freedom                               117
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                             95074.177
  Degrees of freedom                               210
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.991
  Tucker-Lewis Index (TLI)                       0.983
                                                      
  Robust Comparative Fit Index (CFI)             0.990
  Robust Tucker-Lewis Index (TLI)                0.981

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -191095.267
  Loglikelihood unrestricted model (H1)    -190600.597
                                                      
  Akaike (AIC)                              382460.534
  Bayesian (BIC)                            383456.902
  Sample-size adjusted Bayesian (SABIC)     383027.888

Root Mean Square Error of Approximation:

  RMSEA                                          0.025
  90 Percent confidence interval - lower         0.024
  90 Percent confidence interval - upper         0.027
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.031
  90 Percent confidence interval - lower         0.029
  90 Percent confidence interval - upper         0.033
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.038

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  pu_etaB =~                                                            
    p___001           1.000                               0.501    0.453
    p___002 (lm_R)    1.244    0.014   90.255    0.000    0.623    0.767
    p___003 (lm_M)    0.962    0.010   92.528    0.000    0.482    0.627
  pu_eta1 =~                                                            
    p___001           1.000                               0.571    0.539
    p___002 (lm_R)    1.244    0.014   90.255    0.000    0.710    0.809
    p___003 (lm_M)    0.962    0.010   92.528    0.000    0.549    0.639
  pu_eta2 =~                                                            
    p___001           1.000                               0.605    0.619
    p___002 (lm_R)    1.244    0.014   90.255    0.000    0.753    0.844
    p___003 (lm_M)    0.962    0.010   92.528    0.000    0.582    0.658
  pu_eta3 =~                                                            
    p___001           1.000                               0.579    0.657
    p___002 (lm_R)    1.244    0.014   90.255    0.000    0.720    0.868
    p___003 (lm_M)    0.962    0.010   92.528    0.000    0.557    0.667
  pu_eta4 =~                                                            
    p___001           1.000                               0.485    0.638
    p___002 (lm_R)    1.244    0.014   90.255    0.000    0.603    0.863
    p___003 (lm_M)    0.962    0.010   92.528    0.000    0.466    0.649
  pu_eta5 =~                                                            
    p___001           1.000                               0.437    0.615
    p___002 (lm_R)    1.244    0.014   90.255    0.000    0.544    0.872
    p___003 (lm_M)    0.962    0.010   92.528    0.000    0.421    0.636
  pu_eta6 =~                                                            
    p___001           1.000                               0.410    0.591
    p___002 (lm_R)    1.244    0.014   90.255    0.000    0.510    0.884
    p___003 (lm_M)    0.962    0.010   92.528    0.000    0.395    0.617

Covariances:
                    Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  pu_etaB ~~                                                             
    pu_eta1            0.230    0.006   38.304    0.000    0.803    0.803
    pu_eta2            0.198    0.006   35.260    0.000    0.653    0.653
    pu_eta3            0.157    0.005   31.495    0.000    0.543    0.543
    pu_eta4            0.106    0.004   26.627    0.000    0.439    0.439
    pu_eta5            0.077    0.004   21.764    0.000    0.352    0.352
    pu_eta6            0.053    0.004   13.814    0.000    0.258    0.258
  pu_eta1 ~~                                                             
    pu_eta2            0.278    0.007   40.280    0.000    0.805    0.805
    pu_eta3            0.226    0.006   37.250    0.000    0.684    0.684
    pu_eta4            0.157    0.005   32.717    0.000    0.567    0.567
    pu_eta5            0.122    0.004   29.009    0.000    0.490    0.490
    pu_eta6            0.094    0.004   21.514    0.000    0.401    0.401
  pu_eta2 ~~                                                             
    pu_eta3            0.294    0.007   41.941    0.000    0.839    0.839
    pu_eta4            0.199    0.005   37.207    0.000    0.678    0.678
    pu_eta5            0.157    0.005   33.704    0.000    0.593    0.593
    pu_eta6            0.126    0.005   26.861    0.000    0.509    0.509
  pu_eta3 ~~                                                             
    pu_eta4            0.217    0.005   39.631    0.000    0.774    0.774
    pu_eta5            0.172    0.005   36.499    0.000    0.681    0.681
    pu_eta6            0.139    0.005   29.883    0.000    0.584    0.584
  pu_eta4 ~~                                                             
    pu_eta5            0.170    0.004   38.370    0.000    0.802    0.802
    pu_eta6            0.137    0.004   31.967    0.000    0.689    0.689
  pu_eta5 ~~                                                             
    pu_eta6            0.145    0.004   34.276    0.000    0.807    0.807
 .ph_p_pds_001_0 ~~                                                      
   .ph_p_pds_001_1     0.398    0.010   39.296    0.000    0.398    0.453
   .ph_p_pds_001_2     0.263    0.009   30.492    0.000    0.263    0.348
   .ph_p_pds_001_3     0.155    0.007   20.753    0.000    0.155    0.238
   .ph_p_pds_001_4     0.059    0.007    8.867    0.000    0.059    0.103
   .ph_p_pds_001_5     0.025    0.007    3.800    0.000    0.025    0.045
   .ph_p_pds_001_6     0.009    0.008    1.076    0.282    0.009    0.016
 .ph_p_pds_001_1 ~~                                                      
   .ph_p_pds_001_2     0.286    0.008   34.906    0.000    0.286    0.418
   .ph_p_pds_001_3     0.167    0.007   23.646    0.000    0.167    0.282
   .ph_p_pds_001_4     0.072    0.006   11.528    0.000    0.072    0.138
   .ph_p_pds_001_5     0.032    0.006    5.234    0.000    0.032    0.063
   .ph_p_pds_001_6     0.007    0.008    0.920    0.358    0.007    0.014
 .ph_p_pds_001_2 ~~                                                      
   .ph_p_pds_001_3     0.195    0.006   30.093    0.000    0.195    0.382
   .ph_p_pds_001_4     0.089    0.006   16.017    0.000    0.089    0.197
   .ph_p_pds_001_5     0.038    0.005    7.045    0.000    0.038    0.087
   .ph_p_pds_001_6     0.022    0.007    3.185    0.001    0.022    0.050
 .ph_p_pds_001_3 ~~                                                      
   .ph_p_pds_001_4     0.111    0.005   21.872    0.000    0.111    0.286
   .ph_p_pds_001_5     0.056    0.005   11.716    0.000    0.056    0.151
   .ph_p_pds_001_6     0.032    0.006    5.362    0.000    0.032    0.085
 .ph_p_pds_001_4 ~~                                                      
   .ph_p_pds_001_5     0.124    0.005   27.252    0.000    0.124    0.380
   .ph_p_pds_001_6     0.076    0.006   13.654    0.000    0.076    0.232
 .ph_p_pds_001_5 ~~                                                      
   .ph_p_pds_001_6     0.126    0.005   23.346    0.000    0.126    0.403
 .ph_p_pds_002_0 ~~                                                      
   .ph_p_pds_002_1     0.084    0.006   14.423    0.000    0.084    0.314
   .ph_p_pds_002_2     0.033    0.005    6.268    0.000    0.033    0.131
   .ph_p_pds_002_3     0.008    0.005    1.708    0.088    0.008    0.037
   .ph_p_pds_002_4    -0.002    0.004   -0.529    0.597   -0.002   -0.012
   .ph_p_pds_002_5    -0.006    0.004   -1.558    0.119   -0.006   -0.036
   .ph_p_pds_002_6    -0.003    0.004   -0.709    0.478   -0.003   -0.023
 .ph_p_pds_002_1 ~~                                                      
   .ph_p_pds_002_2     0.068    0.006   11.500    0.000    0.068    0.274
   .ph_p_pds_002_3     0.030    0.005    5.996    0.000    0.030    0.142
   .ph_p_pds_002_4     0.014    0.004    3.204    0.001    0.014    0.074
   .ph_p_pds_002_5     0.003    0.004    0.781    0.435    0.003    0.019
   .ph_p_pds_002_6     0.005    0.005    1.063    0.288    0.005    0.036
 .ph_p_pds_002_2 ~~                                                      
   .ph_p_pds_002_3     0.048    0.005    9.066    0.000    0.048    0.246
   .ph_p_pds_002_4     0.025    0.004    5.971    0.000    0.025    0.151
   .ph_p_pds_002_5     0.007    0.004    1.726    0.084    0.007    0.045
   .ph_p_pds_002_6     0.007    0.004    1.627    0.104    0.007    0.055
 .ph_p_pds_002_3 ~~                                                      
   .ph_p_pds_002_4     0.029    0.004    7.149    0.000    0.029    0.201
   .ph_p_pds_002_5     0.012    0.004    3.310    0.001    0.012    0.095
   .ph_p_pds_002_6     0.012    0.004    2.924    0.003    0.012    0.105
 .ph_p_pds_002_4 ~~                                                      
   .ph_p_pds_002_5     0.018    0.003    5.450    0.000    0.018    0.170
   .ph_p_pds_002_6     0.011    0.004    3.116    0.002    0.011    0.121
 .ph_p_pds_002_5 ~~                                                      
   .ph_p_pds_002_6     0.010    0.003    2.951    0.003    0.010    0.126
 .ph_p_pds_003_0 ~~                                                      
   .ph_p_pds_003_1     0.157    0.005   30.250    0.000    0.157    0.395
   .ph_p_pds_003_2     0.106    0.005   21.261    0.000    0.106    0.265
   .ph_p_pds_003_3     0.063    0.005   13.580    0.000    0.063    0.168
   .ph_p_pds_003_4     0.028    0.004    6.681    0.000    0.028    0.085
   .ph_p_pds_003_5     0.024    0.004    5.906    0.000    0.024    0.077
   .ph_p_pds_003_6     0.010    0.005    1.985    0.047    0.010    0.033
 .ph_p_pds_003_1 ~~                                                      
   .ph_p_pds_003_2     0.182    0.006   31.817    0.000    0.182    0.413
   .ph_p_pds_003_3     0.108    0.005   20.881    0.000    0.108    0.263
   .ph_p_pds_003_4     0.048    0.005   10.585    0.000    0.048    0.133
   .ph_p_pds_003_5     0.027    0.004    6.262    0.000    0.027    0.081
   .ph_p_pds_003_6     0.012    0.005    2.236    0.025    0.012    0.037
 .ph_p_pds_003_2 ~~                                                      
   .ph_p_pds_003_3     0.173    0.006   31.453    0.000    0.173    0.418
   .ph_p_pds_003_4     0.085    0.005   18.082    0.000    0.085    0.232
   .ph_p_pds_003_5     0.053    0.004   11.855    0.000    0.053    0.155
   .ph_p_pds_003_6     0.021    0.006    3.787    0.000    0.021    0.063
 .ph_p_pds_003_3 ~~                                                      
   .ph_p_pds_003_4     0.118    0.005   26.141    0.000    0.118    0.348
   .ph_p_pds_003_5     0.067    0.004   15.908    0.000    0.067    0.211
   .ph_p_pds_003_6     0.046    0.005    8.842    0.000    0.046    0.146
 .ph_p_pds_003_4 ~~                                                      
   .ph_p_pds_003_5     0.088    0.004   22.336    0.000    0.088    0.315
   .ph_p_pds_003_6     0.072    0.005   15.118    0.000    0.072    0.263
 .ph_p_pds_003_5 ~~                                                      
   .ph_p_pds_003_6     0.086    0.005   18.932    0.000    0.086    0.336

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    pu_etaB           0.000                               0.000    0.000
    pu_eta1           0.000                               0.000    0.000
    pu_eta2           0.000                               0.000    0.000
    pu_eta3           0.000                               0.000    0.000
    pu_eta4           0.000                               0.000    0.000
    pu_eta5           0.000                               0.000    0.000
    pu_eta6           0.000                               0.000    0.000
   .p___001 (t_S0)   -0.440    0.010  -42.740    0.000   -0.440   -0.398
   .p___002 (t_R0)   -0.835    0.008 -111.006    0.000   -0.835   -1.028
   .p___003 (t_M0)   -0.863    0.007 -121.304    0.000   -0.863   -1.121
   .p___001 (t_S1)   -0.361    0.010  -36.210    0.000   -0.361   -0.341
   .p___002 (t_R1)   -0.578    0.008  -70.028    0.000   -0.578   -0.659
   .p___003 (t_M1)   -0.569    0.008  -70.455    0.000   -0.569   -0.661
   .p___001 (t_S2)   -0.203    0.009  -21.871    0.000   -0.203   -0.208
   .p___002 (t_R2)   -0.163    0.008  -19.154    0.000   -0.163   -0.182
   .p___003 (t_M2)   -0.146    0.008  -17.351    0.000   -0.146   -0.165
   .p___001 (t_S3)    0.015    0.009    1.737    0.082    0.015    0.017
   .p___002 (t_R3)    0.194    0.008   24.100    0.000    0.194    0.234
   .p___003 (t_M3)    0.197    0.008   24.359    0.000    0.197    0.236
   .p___001 (t_S4)    0.338    0.008   44.287    0.000    0.338    0.445
   .p___002 (t_R4)    0.578    0.007   82.838    0.000    0.578    0.827
   .p___003 (t_M4)    0.570    0.007   79.020    0.000    0.570    0.793
   .p___001 (t_S5)    0.551    0.007   74.286    0.000    0.551    0.774
   .p___002 (t_R5)    0.774    0.006  120.358    0.000    0.774    1.241
   .p___003 (t_M5)    0.761    0.007  110.516    0.000    0.761    1.151
   .p___001 (t_S6)    0.754    0.009   83.130    0.000    0.754    1.087
   .p___002 (t_R6)    0.932    0.007  128.479    0.000    0.932    1.615
   .p___003 (t_M6)    0.916    0.008  109.548    0.000    0.916    1.432

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    pu_etaB           0.251    0.006   38.709    0.000    1.000    1.000
    pu_eta1           0.326    0.008   41.038    0.000    1.000    1.000
    pu_eta2           0.366    0.009   43.040    0.000    1.000    1.000
    pu_eta3           0.335    0.008   43.197    0.000    1.000    1.000
    pu_eta4           0.235    0.006   41.130    0.000    1.000    1.000
    pu_eta5           0.191    0.005   39.320    0.000    1.000    1.000
    pu_eta6           0.168    0.005   33.293    0.000    1.000    1.000
   .ph_p_pds_001_0    0.971    0.014   69.746    0.000    0.971    0.795
   .ph_p_pds_002_0    0.271    0.007   37.629    0.000    0.271    0.411
   .ph_p_pds_003_0    0.359    0.006   59.455    0.000    0.359    0.607
   .ph_p_pds_001_1    0.794    0.012   66.528    0.000    0.794    0.709
   .ph_p_pds_002_1    0.267    0.008   34.061    0.000    0.267    0.346
   .ph_p_pds_003_1    0.437    0.007   59.834    0.000    0.437    0.592
   .ph_p_pds_001_2    0.590    0.009   63.235    0.000    0.590    0.617
   .ph_p_pds_002_2    0.230    0.007   30.821    0.000    0.230    0.288
   .ph_p_pds_003_2    0.444    0.007   59.708    0.000    0.444    0.567
   .ph_p_pds_001_3    0.440    0.007   59.631    0.000    0.440    0.568
   .ph_p_pds_002_3    0.170    0.006   27.095    0.000    0.170    0.247
   .ph_p_pds_003_3    0.387    0.007   58.825    0.000    0.387    0.555
   .ph_p_pds_001_4    0.341    0.006   57.529    0.000    0.341    0.592
   .ph_p_pds_002_4    0.124    0.005   26.619    0.000    0.124    0.255
   .ph_p_pds_003_4    0.299    0.005   57.007    0.000    0.299    0.579
   .ph_p_pds_001_5    0.315    0.006   56.113    0.000    0.315    0.622
   .ph_p_pds_002_5    0.093    0.004   23.473    0.000    0.093    0.239
   .ph_p_pds_003_5    0.261    0.005   55.170    0.000    0.261    0.595
   .ph_p_pds_001_6    0.313    0.007   43.807    0.000    0.313    0.650
   .ph_p_pds_002_6    0.073    0.004   16.482    0.000    0.073    0.218
   .ph_p_pds_003_6    0.253    0.006   42.647    0.000    0.253    0.619

R-Square:
                   Estimate
    ph_p_pds_001_0    0.205
    ph_p_pds_002_0    0.589
    ph_p_pds_003_0    0.393
    ph_p_pds_001_1    0.291
    ph_p_pds_002_1    0.654
    ph_p_pds_003_1    0.408
    ph_p_pds_001_2    0.383
    ph_p_pds_002_2    0.712
    ph_p_pds_003_2    0.433
    ph_p_pds_001_3    0.432
    ph_p_pds_002_3    0.753
    ph_p_pds_003_3    0.445
    ph_p_pds_001_4    0.408
    ph_p_pds_002_4    0.745
    ph_p_pds_003_4    0.421
    ph_p_pds_001_5    0.378
    ph_p_pds_002_5    0.761
    ph_p_pds_003_5    0.405
    ph_p_pds_001_6    0.350
    ph_p_pds_002_6    0.782
    ph_p_pds_003_6    0.381

Strong invariance model

model fit
pu.strong.invar <- "#factor loadings - MARKER VARIABLE METHOD
               # First indicator (S) fixed to 1 at all time points for identification
               pu_etaB =~ 1*ph_p_pds_001_0+
                          lambda_R*ph_p_pds_002_0+
                          lambda_M*ph_p_pds_003_0
               pu_eta1 =~ 1*ph_p_pds_001_1+
                          lambda_R*ph_p_pds_002_1+
                          lambda_M*ph_p_pds_003_1
               pu_eta2 =~ 1*ph_p_pds_001_2+
                          lambda_R*ph_p_pds_002_2+
                          lambda_M*ph_p_pds_003_2
               pu_eta3 =~ 1*ph_p_pds_001_3+
                          lambda_R*ph_p_pds_002_3+
                          lambda_M*ph_p_pds_003_3
               pu_eta4 =~ 1*ph_p_pds_001_4+
                          lambda_R*ph_p_pds_002_4+
                          lambda_M*ph_p_pds_003_4
               pu_eta5 =~ 1*ph_p_pds_001_5+
                          lambda_R*ph_p_pds_002_5+
                          lambda_M*ph_p_pds_003_5
               pu_eta6 =~ 1*ph_p_pds_001_6+
                          lambda_R*ph_p_pds_002_6+
                          lambda_M*ph_p_pds_003_6

              #latent variable variances - FREE TO VARY ACROSS TIME
                      pu_etaB~~NA*pu_etaB
                      pu_eta1~~NA*pu_eta1
                      pu_eta2~~NA*pu_eta2
                      pu_eta3~~NA*pu_eta3
                      pu_eta4~~NA*pu_eta4
                      pu_eta5~~NA*pu_eta5
                      pu_eta6~~NA*pu_eta6

              #latent variable covariances
                      pu_etaB~~pu_eta1 + pu_eta2 + pu_eta3 + pu_eta4 + pu_eta5 + pu_eta6
                      pu_eta1~~pu_eta2 + pu_eta3 + pu_eta4 + pu_eta5 + pu_eta6
                      pu_eta2~~pu_eta3 + pu_eta4 + pu_eta5 + pu_eta6
                      pu_eta3~~pu_eta4 + pu_eta5 + pu_eta6
                      pu_eta4~~pu_eta5 + pu_eta6
                      pu_eta5~~pu_eta6

              #unique variances
                      ph_p_pds_001_0~~ph_p_pds_001_0
                      ph_p_pds_002_0~~ph_p_pds_002_0
                      ph_p_pds_003_0~~ph_p_pds_003_0
                      ph_p_pds_001_1~~ph_p_pds_001_1
                      ph_p_pds_002_1~~ph_p_pds_002_1
                      ph_p_pds_003_1~~ph_p_pds_003_1
                      ph_p_pds_001_2~~ph_p_pds_001_2
                      ph_p_pds_002_2~~ph_p_pds_002_2
                      ph_p_pds_003_2~~ph_p_pds_003_2
                      ph_p_pds_001_3~~ph_p_pds_001_3
                      ph_p_pds_002_3~~ph_p_pds_002_3
                      ph_p_pds_003_3~~ph_p_pds_003_3
                      ph_p_pds_001_4~~ph_p_pds_001_4
                      ph_p_pds_002_4~~ph_p_pds_002_4
                      ph_p_pds_003_4~~ph_p_pds_003_4
                      ph_p_pds_001_5~~ph_p_pds_001_5
                      ph_p_pds_002_5~~ph_p_pds_002_5
                      ph_p_pds_003_5~~ph_p_pds_003_5
                      ph_p_pds_001_6~~ph_p_pds_001_6
                      ph_p_pds_002_6~~ph_p_pds_002_6
                      ph_p_pds_003_6~~ph_p_pds_003_6

              #unique covariances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_1 + ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_1 ~~ ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_2 ~~ ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_3 ~~ ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_4 ~~ ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_5 ~~ ph_p_pds_001_6

                      ph_p_pds_002_0 ~~ ph_p_pds_002_1 + ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_1 ~~ ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_2 ~~ ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_3 ~~ ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_4 ~~ ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_5 ~~ ph_p_pds_002_6

                      ph_p_pds_003_0 ~~ ph_p_pds_003_1 + ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_1 ~~ ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_2 ~~ ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_3 ~~ ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_4 ~~ ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_5 ~~ ph_p_pds_003_6

              #latent variable intercepts - FREE TO VARY ACROSS TIME
                      pu_etaB~0*1
                      pu_eta1~alpha1*1
                      pu_eta2~alpha2*1
                      pu_eta3~alpha3*1
                      pu_eta4~alpha4*1
                      pu_eta5~alpha5*1
                      pu_eta6~alpha6*1

              #observed variable intercepts - CONSTRAINED TO BE EQUAL ACROSS TIME
                      ph_p_pds_001_0~tau_S*1
                      ph_p_pds_002_0~tau_R*1
                      ph_p_pds_003_0~tau_M*1
                      ph_p_pds_001_1~tau_S*1
                      ph_p_pds_002_1~tau_R*1
                      ph_p_pds_003_1~tau_M*1
                      ph_p_pds_001_2~tau_S*1
                      ph_p_pds_002_2~tau_R*1
                      ph_p_pds_003_2~tau_M*1
                      ph_p_pds_001_3~tau_S*1
                      ph_p_pds_002_3~tau_R*1
                      ph_p_pds_003_3~tau_M*1
                      ph_p_pds_001_4~tau_S*1
                      ph_p_pds_002_4~tau_R*1
                      ph_p_pds_003_4~tau_M*1
                      ph_p_pds_001_5~tau_S*1
                      ph_p_pds_002_5~tau_R*1
                      ph_p_pds_003_5~tau_M*1
                      ph_p_pds_001_6~tau_S*1
                      ph_p_pds_002_6~tau_R*1
                      ph_p_pds_003_6~tau_M*1"

lavaan(pu.strong.invar,
  data = pub_yp_mean_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("p_pub_strong.rds")
result
readRDS("p_pub_strong.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("p_pub_strong_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("p_pub_strong.rds"), "cor.lv"))$value
[1] 4.7591998 1.1530461 0.3925566 0.2602978 0.1679434 0.1514014 0.1155548
readRDS("p_pub_strong_result.rds")
lavaan 0.6-19 ended normally after 139 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       153
  Number of equality constraints                    30

                                                  Used       Total
  Number of observations                         11855       11867
  Number of missing patterns                      1045            

Model Test User Model:
                                                      
  Test statistic                              3171.142
  Degrees of freedom                               129
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                             95074.177
  Degrees of freedom                               210
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.968
  Tucker-Lewis Index (TLI)                       0.948
                                                      
  Robust Comparative Fit Index (CFI)             0.967
  Robust Tucker-Lewis Index (TLI)                0.947

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -192186.168
  Loglikelihood unrestricted model (H1)    -190600.597
                                                      
  Akaike (AIC)                              384618.336
  Bayesian (BIC)                            385526.138
  Sample-size adjusted Bayesian (SABIC)     385135.258

Root Mean Square Error of Approximation:

  RMSEA                                          0.045
  90 Percent confidence interval - lower         0.043
  90 Percent confidence interval - upper         0.046
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.053
  90 Percent confidence interval - lower         0.051
  90 Percent confidence interval - upper         0.054
  P-value H_0: Robust RMSEA <= 0.050             0.009
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.063

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  pu_etaB =~                                                            
    p___001           1.000                               0.427    0.386
    p___002 (lm_R)    1.347    0.009  142.377    0.000    0.576    0.716
    p___003 (lm_M)    1.276    0.009  136.324    0.000    0.545    0.691
  pu_eta1 =~                                                            
    p___001           1.000                               0.496    0.481
    p___002 (lm_R)    1.347    0.009  142.377    0.000    0.668    0.768
    p___003 (lm_M)    1.276    0.009  136.324    0.000    0.632    0.711
  pu_eta2 =~                                                            
    p___001           1.000                               0.533    0.566
    p___002 (lm_R)    1.347    0.009  142.377    0.000    0.718    0.812
    p___003 (lm_M)    1.276    0.009  136.324    0.000    0.680    0.733
  pu_eta3 =~                                                            
    p___001           1.000                               0.510    0.600
    p___002 (lm_R)    1.347    0.009  142.377    0.000    0.687    0.836
    p___003 (lm_M)    1.276    0.009  136.324    0.000    0.651    0.738
  pu_eta4 =~                                                            
    p___001           1.000                               0.424    0.577
    p___002 (lm_R)    1.347    0.009  142.377    0.000    0.571    0.828
    p___003 (lm_M)    1.276    0.009  136.324    0.000    0.541    0.716
  pu_eta5 =~                                                            
    p___001           1.000                               0.380    0.549
    p___002 (lm_R)    1.347    0.009  142.377    0.000    0.512    0.831
    p___003 (lm_M)    1.276    0.009  136.324    0.000    0.484    0.700
  pu_eta6 =~                                                            
    p___001           1.000                               0.355    0.521
    p___002 (lm_R)    1.347    0.009  142.377    0.000    0.479    0.839
    p___003 (lm_M)    1.276    0.009  136.324    0.000    0.454    0.683

Covariances:
                    Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  pu_etaB ~~                                                             
    pu_eta1            0.170    0.004   41.612    0.000    0.802    0.802
    pu_eta2            0.148    0.004   37.824    0.000    0.651    0.651
    pu_eta3            0.118    0.004   33.364    0.000    0.544    0.544
    pu_eta4            0.081    0.003   27.859    0.000    0.446    0.446
    pu_eta5            0.058    0.003   22.483    0.000    0.360    0.360
    pu_eta6            0.040    0.003   14.080    0.000    0.266    0.266
  pu_eta1 ~~                                                             
    pu_eta2            0.213    0.005   43.769    0.000    0.806    0.806
    pu_eta3            0.174    0.004   40.115    0.000    0.687    0.687
    pu_eta4            0.120    0.003   34.702    0.000    0.573    0.573
    pu_eta5            0.094    0.003   30.412    0.000    0.497    0.497
    pu_eta6            0.072    0.003   22.178    0.000    0.411    0.411
  pu_eta2 ~~                                                             
    pu_eta3            0.229    0.005   45.636    0.000    0.842    0.842
    pu_eta4            0.154    0.004   39.821    0.000    0.681    0.681
    pu_eta5            0.121    0.003   35.737    0.000    0.599    0.599
    pu_eta6            0.098    0.004   27.722    0.000    0.516    0.516
  pu_eta3 ~~                                                             
    pu_eta4            0.168    0.004   42.631    0.000    0.776    0.776
    pu_eta5            0.133    0.003   38.914    0.000    0.686    0.686
    pu_eta6            0.108    0.003   31.034    0.000    0.594    0.594
  pu_eta4 ~~                                                             
    pu_eta5            0.129    0.003   41.076    0.000    0.804    0.804
    pu_eta6            0.105    0.003   33.100    0.000    0.693    0.693
  pu_eta5 ~~                                                             
    pu_eta6            0.109    0.003   35.479    0.000    0.808    0.808
 .ph_p_pds_001_0 ~~                                                      
   .ph_p_pds_001_1     0.431    0.011   40.754    0.000    0.431    0.466
   .ph_p_pds_001_2     0.257    0.009   29.166    0.000    0.257    0.324
   .ph_p_pds_001_3     0.138    0.008   17.787    0.000    0.138    0.199
   .ph_p_pds_001_4     0.049    0.007    6.903    0.000    0.049    0.080
   .ph_p_pds_001_5     0.028    0.007    3.962    0.000    0.028    0.047
   .ph_p_pds_001_6     0.024    0.009    2.727    0.006    0.024    0.041
 .ph_p_pds_001_1 ~~                                                      
   .ph_p_pds_001_2     0.286    0.008   35.242    0.000    0.286    0.407
   .ph_p_pds_001_3     0.160    0.007   22.585    0.000    0.160    0.260
   .ph_p_pds_001_4     0.069    0.006   10.894    0.000    0.069    0.127
   .ph_p_pds_001_5     0.035    0.006    5.669    0.000    0.035    0.067
   .ph_p_pds_001_6     0.019    0.008    2.325    0.020    0.019    0.036
 .ph_p_pds_001_2 ~~                                                      
   .ph_p_pds_001_3     0.204    0.006   31.843    0.000    0.204    0.387
   .ph_p_pds_001_4     0.097    0.006   17.387    0.000    0.097    0.207
   .ph_p_pds_001_5     0.043    0.005    8.005    0.000    0.043    0.096
   .ph_p_pds_001_6     0.020    0.007    2.951    0.003    0.020    0.045
 .ph_p_pds_001_3 ~~                                                      
   .ph_p_pds_001_4     0.124    0.005   24.276    0.000    0.124    0.304
   .ph_p_pds_001_5     0.064    0.005   13.062    0.000    0.064    0.162
   .ph_p_pds_001_6     0.029    0.006    4.811    0.000    0.029    0.074
 .ph_p_pds_001_4 ~~                                                      
   .ph_p_pds_001_5     0.137    0.005   29.472    0.000    0.137    0.393
   .ph_p_pds_001_6     0.081    0.006   14.146    0.000    0.081    0.232
 .ph_p_pds_001_5 ~~                                                      
   .ph_p_pds_001_6     0.142    0.006   24.838    0.000    0.142    0.421
 .ph_p_pds_002_0 ~~                                                      
   .ph_p_pds_002_1     0.118    0.005   22.000    0.000    0.118    0.378
   .ph_p_pds_002_2     0.060    0.005   12.097    0.000    0.060    0.205
   .ph_p_pds_002_3     0.028    0.005    6.160    0.000    0.028    0.110
   .ph_p_pds_002_4     0.009    0.004    2.207    0.027    0.009    0.040
   .ph_p_pds_002_5     0.001    0.004    0.175    0.861    0.001    0.003
   .ph_p_pds_002_6     0.000    0.005    0.028    0.978    0.000    0.001
 .ph_p_pds_002_1 ~~                                                      
   .ph_p_pds_002_2     0.098    0.005   18.365    0.000    0.098    0.342
   .ph_p_pds_002_3     0.053    0.005   11.112    0.000    0.053    0.210
   .ph_p_pds_002_4     0.028    0.004    6.768    0.000    0.028    0.129
   .ph_p_pds_002_5     0.013    0.004    3.443    0.001    0.013    0.070
   .ph_p_pds_002_6     0.011    0.005    2.451    0.014    0.011    0.066
 .ph_p_pds_002_2 ~~                                                      
   .ph_p_pds_002_3     0.076    0.005   15.526    0.000    0.076    0.324
   .ph_p_pds_002_4     0.043    0.004   10.415    0.000    0.043    0.213
   .ph_p_pds_002_5     0.019    0.004    5.057    0.000    0.019    0.108
   .ph_p_pds_002_6     0.017    0.004    3.940    0.000    0.017    0.108
 .ph_p_pds_002_3 ~~                                                      
   .ph_p_pds_002_4     0.049    0.004   12.617    0.000    0.049    0.282
   .ph_p_pds_002_5     0.027    0.004    7.476    0.000    0.027    0.172
   .ph_p_pds_002_6     0.022    0.004    5.555    0.000    0.022    0.159
 .ph_p_pds_002_4 ~~                                                      
   .ph_p_pds_002_5     0.036    0.003   11.070    0.000    0.036    0.274
   .ph_p_pds_002_6     0.025    0.004    6.697    0.000    0.025    0.208
 .ph_p_pds_002_5 ~~                                                      
   .ph_p_pds_002_6     0.028    0.004    8.033    0.000    0.028    0.265
 .ph_p_pds_003_0 ~~                                                      
   .ph_p_pds_003_1     0.129    0.005   24.267    0.000    0.129    0.361
   .ph_p_pds_003_2     0.083    0.005   16.413    0.000    0.083    0.230
   .ph_p_pds_003_3     0.047    0.005    9.927    0.000    0.047    0.139
   .ph_p_pds_003_4     0.018    0.004    4.113    0.000    0.018    0.059
   .ph_p_pds_003_5     0.018    0.004    4.311    0.000    0.018    0.063
   .ph_p_pds_003_6     0.007    0.005    1.280    0.201    0.007    0.024
 .ph_p_pds_003_1 ~~                                                      
   .ph_p_pds_003_2     0.150    0.006   26.190    0.000    0.150    0.380
   .ph_p_pds_003_3     0.087    0.005   16.534    0.000    0.087    0.233
   .ph_p_pds_003_4     0.036    0.005    7.720    0.000    0.036    0.109
   .ph_p_pds_003_5     0.020    0.005    4.395    0.000    0.020    0.064
   .ph_p_pds_003_6     0.006    0.006    1.130    0.258    0.006    0.021
 .ph_p_pds_003_2 ~~                                                      
   .ph_p_pds_003_3     0.146    0.006   26.204    0.000    0.146    0.390
   .ph_p_pds_003_4     0.072    0.005   14.906    0.000    0.072    0.217
   .ph_p_pds_003_5     0.046    0.005    9.909    0.000    0.046    0.147
   .ph_p_pds_003_6     0.015    0.006    2.729    0.006    0.015    0.051
 .ph_p_pds_003_3 ~~                                                      
   .ph_p_pds_003_4     0.105    0.005   22.247    0.000    0.105    0.336
   .ph_p_pds_003_5     0.060    0.004   13.496    0.000    0.060    0.203
   .ph_p_pds_003_6     0.040    0.005    7.543    0.000    0.040    0.140
 .ph_p_pds_003_4 ~~                                                      
   .ph_p_pds_003_5     0.079    0.004   18.922    0.000    0.079    0.303
   .ph_p_pds_003_6     0.066    0.005   13.266    0.000    0.066    0.259
 .ph_p_pds_003_5 ~~                                                      
   .ph_p_pds_003_6     0.077    0.005   16.162    0.000    0.077    0.321

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    pu_etaB           0.000                               0.000    0.000
    pu_eta1 (alp1)    0.198    0.004   44.716    0.000    0.400    0.400
    pu_eta2 (alp2)    0.497    0.006   82.470    0.000    0.932    0.932
    pu_eta3 (alp3)    0.757    0.007  105.190    0.000    1.485    1.485
    pu_eta4 (alp4)    1.051    0.008  124.296    0.000    2.478    2.478
    pu_eta5 (alp5)    1.207    0.009  129.996    0.000    3.179    3.179
    pu_eta6 (alp6)    1.334    0.010  128.315    0.000    3.753    3.753
   .p___001 (ta_S)   -0.653    0.008  -78.943    0.000   -0.653   -0.590
   .p___002 (ta_R)   -0.846    0.007 -119.371    0.000   -0.846   -1.051
   .p___003 (ta_M)   -0.801    0.007 -112.690    0.000   -0.801   -1.015
   .p___001 (ta_S)   -0.653    0.008  -78.943    0.000   -0.653   -0.633
   .p___002 (ta_R)   -0.846    0.007 -119.371    0.000   -0.846   -0.973
   .p___003 (ta_M)   -0.801    0.007 -112.690    0.000   -0.801   -0.901
   .p___001 (ta_S)   -0.653    0.008  -78.943    0.000   -0.653   -0.693
   .p___002 (ta_R)   -0.846    0.007 -119.371    0.000   -0.846   -0.955
   .p___003 (ta_M)   -0.801    0.007 -112.690    0.000   -0.801   -0.864
   .p___001 (ta_S)   -0.653    0.008  -78.943    0.000   -0.653   -0.768
   .p___002 (ta_R)   -0.846    0.007 -119.371    0.000   -0.846   -1.029
   .p___003 (ta_M)   -0.801    0.007 -112.690    0.000   -0.801   -0.909
   .p___001 (ta_S)   -0.653    0.008  -78.943    0.000   -0.653   -0.888
   .p___002 (ta_R)   -0.846    0.007 -119.371    0.000   -0.846   -1.225
   .p___003 (ta_M)   -0.801    0.007 -112.690    0.000   -0.801   -1.060
   .p___001 (ta_S)   -0.653    0.008  -78.943    0.000   -0.653   -0.944
   .p___002 (ta_R)   -0.846    0.007 -119.371    0.000   -0.846   -1.373
   .p___003 (ta_M)   -0.801    0.007 -112.690    0.000   -0.801   -1.158
   .p___001 (ta_S)   -0.653    0.008  -78.943    0.000   -0.653   -0.957
   .p___002 (ta_R)   -0.846    0.007 -119.371    0.000   -0.846   -1.481
   .p___003 (ta_M)   -0.801    0.007 -112.690    0.000   -0.801   -1.205

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
    pu_etaB           0.183    0.004   42.191    0.000    1.000    1.000
    pu_eta1           0.246    0.005   44.712    0.000    1.000    1.000
    pu_eta2           0.284    0.006   46.896    0.000    1.000    1.000
    pu_eta3           0.260    0.006   46.823    0.000    1.000    1.000
    pu_eta4           0.180    0.004   44.301    0.000    1.000    1.000
    pu_eta5           0.144    0.003   41.792    0.000    1.000    1.000
    pu_eta6           0.126    0.004   33.865    0.000    1.000    1.000
   .ph_p_pds_001_0    1.044    0.015   70.364    0.000    1.044    0.851
   .ph_p_pds_002_0    0.315    0.007   48.153    0.000    0.315    0.487
   .ph_p_pds_003_0    0.325    0.006   51.882    0.000    0.325    0.523
   .ph_p_pds_001_1    0.819    0.012   68.399    0.000    0.819    0.769
   .ph_p_pds_002_1    0.310    0.007   43.977    0.000    0.310    0.410
   .ph_p_pds_003_1    0.391    0.007   53.580    0.000    0.391    0.494
   .ph_p_pds_001_2    0.604    0.009   65.747    0.000    0.604    0.680
   .ph_p_pds_002_2    0.267    0.007   40.285    0.000    0.267    0.341
   .ph_p_pds_003_2    0.398    0.007   53.956    0.000    0.398    0.462
   .ph_p_pds_001_3    0.462    0.007   62.441    0.000    0.462    0.640
   .ph_p_pds_002_3    0.203    0.006   35.981    0.000    0.203    0.301
   .ph_p_pds_003_3    0.353    0.007   52.775    0.000    0.353    0.455
   .ph_p_pds_001_4    0.361    0.006   60.505    0.000    0.361    0.668
   .ph_p_pds_002_4    0.150    0.004   34.321    0.000    0.150    0.315
   .ph_p_pds_003_4    0.278    0.005   50.864    0.000    0.278    0.487
   .ph_p_pds_001_5    0.334    0.006   58.233    0.000    0.334    0.699
   .ph_p_pds_002_5    0.118    0.004   30.982    0.000    0.118    0.310
   .ph_p_pds_003_5    0.244    0.005   49.316    0.000    0.244    0.510
   .ph_p_pds_001_6    0.339    0.008   44.085    0.000    0.339    0.729
   .ph_p_pds_002_6    0.096    0.004   22.085    0.000    0.096    0.296
   .ph_p_pds_003_6    0.236    0.006   38.428    0.000    0.236    0.534

R-Square:
                   Estimate
    ph_p_pds_001_0    0.149
    ph_p_pds_002_0    0.513
    ph_p_pds_003_0    0.477
    ph_p_pds_001_1    0.231
    ph_p_pds_002_1    0.590
    ph_p_pds_003_1    0.506
    ph_p_pds_001_2    0.320
    ph_p_pds_002_2    0.659
    ph_p_pds_003_2    0.538
    ph_p_pds_001_3    0.360
    ph_p_pds_002_3    0.699
    ph_p_pds_003_3    0.545
    ph_p_pds_001_4    0.332
    ph_p_pds_002_4    0.685
    ph_p_pds_003_4    0.513
    ph_p_pds_001_5    0.301
    ph_p_pds_002_5    0.690
    ph_p_pds_003_5    0.490
    ph_p_pds_001_6    0.271
    ph_p_pds_002_6    0.704
    ph_p_pds_003_6    0.466

Latent growth curve model

model fit (with intercept & slope)
lg.pub.strong.invar <- "#factor loadings
               pu_etaB =~ 1*ph_p_pds_001_0 +
                          lambda_R*ph_p_pds_002_0 +
                          lambda_M*ph_p_pds_003_0

               pu_eta1 =~ 1*ph_p_pds_001_1 +
                          lambda_R*ph_p_pds_002_1 +
                          lambda_M*ph_p_pds_003_1

               pu_eta2 =~ 1*ph_p_pds_001_2 +
                          lambda_R*ph_p_pds_002_2 +
                          lambda_M*ph_p_pds_003_2

               pu_eta3 =~ 1*ph_p_pds_001_3 +
                          lambda_R*ph_p_pds_002_3 +
                          lambda_M*ph_p_pds_003_3

               pu_eta4 =~ 1*ph_p_pds_001_4 +
                          lambda_R*ph_p_pds_002_4 +
                          lambda_M*ph_p_pds_003_4

               pu_eta5 =~ 1*ph_p_pds_001_5 +
                          lambda_R*ph_p_pds_002_5 +
                          lambda_M*ph_p_pds_003_5

               pu_eta6 =~ 1*ph_p_pds_001_6 +
                          lambda_R*ph_p_pds_002_6 +
                          lambda_M*ph_p_pds_003_6

              #latent variable variances
                      pu_etaB~~NA*pu_etaB
                      pu_eta1~~NA*pu_eta1
                      pu_eta2~~NA*pu_eta2
                      pu_eta3~~NA*pu_eta3
                      pu_eta4~~NA*pu_eta4
                      pu_eta5~~NA*pu_eta5
                      pu_eta6~~NA*pu_eta6

              #unique variances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_0
                      ph_p_pds_002_0 ~~ ph_p_pds_002_0
                      ph_p_pds_003_0 ~~ ph_p_pds_003_0

                      ph_p_pds_001_1 ~~ ph_p_pds_001_1
                      ph_p_pds_002_1 ~~ ph_p_pds_002_1
                      ph_p_pds_003_1 ~~ ph_p_pds_003_1

                      ph_p_pds_001_2 ~~ ph_p_pds_001_2
                      ph_p_pds_002_2 ~~ ph_p_pds_002_2
                      ph_p_pds_003_2 ~~ ph_p_pds_003_2

                      ph_p_pds_001_3 ~~ ph_p_pds_001_3
                      ph_p_pds_002_3 ~~ ph_p_pds_002_3
                      ph_p_pds_003_3 ~~ ph_p_pds_003_3

                      ph_p_pds_001_4 ~~ ph_p_pds_001_4
                      ph_p_pds_002_4 ~~ ph_p_pds_002_4
                      ph_p_pds_003_4 ~~ ph_p_pds_003_4

                      ph_p_pds_001_5 ~~ ph_p_pds_001_5
                      ph_p_pds_002_5 ~~ ph_p_pds_002_5
                      ph_p_pds_003_5 ~~ ph_p_pds_003_5

                      ph_p_pds_001_6 ~~ ph_p_pds_001_6
                      ph_p_pds_002_6 ~~ ph_p_pds_002_6
                      ph_p_pds_003_6 ~~ ph_p_pds_003_6

              #unique covariances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_1 + ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_1 ~~ ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_2 ~~ ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_3 ~~ ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_4 ~~ ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_5 ~~ ph_p_pds_001_6

                      ph_p_pds_002_0 ~~ ph_p_pds_002_1 + ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_1 ~~ ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_2 ~~ ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_3 ~~ ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_4 ~~ ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_5 ~~ ph_p_pds_002_6

                      ph_p_pds_003_0 ~~ ph_p_pds_003_1 + ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_1 ~~ ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_2 ~~ ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_3 ~~ ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_4 ~~ ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_5 ~~ ph_p_pds_003_6

              #observed variable intercepts
                      ph_p_pds_001_0 ~ tau_S*1
                      ph_p_pds_001_1 ~ tau_S*1
                      ph_p_pds_001_2 ~ tau_S*1
                      ph_p_pds_001_3 ~ tau_S*1
                      ph_p_pds_001_4 ~ tau_S*1
                      ph_p_pds_001_5 ~ tau_S*1
                      ph_p_pds_001_6 ~ tau_S*1

                      ph_p_pds_002_0 ~ tau_R*1
                      ph_p_pds_002_1 ~ tau_R*1
                      ph_p_pds_002_2 ~ tau_R*1
                      ph_p_pds_002_3 ~ tau_R*1
                      ph_p_pds_002_4 ~ tau_R*1
                      ph_p_pds_002_5 ~ tau_R*1
                      ph_p_pds_002_6 ~ tau_R*1

                      ph_p_pds_003_0 ~ tau_M*1
                      ph_p_pds_003_1 ~ tau_M*1
                      ph_p_pds_003_2 ~ tau_M*1
                      ph_p_pds_003_3 ~ tau_M*1
                      ph_p_pds_003_4 ~ tau_M*1
                      ph_p_pds_003_5 ~ tau_M*1
                      ph_p_pds_003_6 ~ tau_M*1

              #latent basis model
                      pu_i =~ 1*pu_etaB + 1*pu_eta1 + 1*pu_eta2 + 1*pu_eta3 + 1*pu_eta4 + 1*pu_eta5 + 1*pu_eta6
                      pu_s =~ 0*pu_etaB + 0.5*pu_eta1 + 1*pu_eta2 + 1.5*pu_eta3 + 2*pu_eta4 + 2.5*pu_eta5 + 3*pu_eta6

                      pu_i~~NA*pu_i
                      pu_s~~NA*pu_s

                      pu_i~~pu_s

                      pu_i~1
                      pu_s~1

                      pu_etaB~0*1
                      pu_eta1~0*1
                      pu_eta2~0*1
                      pu_eta3~0*1
                      pu_eta4~0*1
                      pu_eta5~0*1
                      pu_eta6~0*1"


lavaan(lg.pub.strong.invar,
  data = pub_yp_mean_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("lg_p_pub_strong.rds")
result
readRDS("lg_p_pub_strong.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("lg_pub_strong_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("lg_p_pub_strong.rds"), "cor.lv"))$value
[1] 5.56533307 2.09777041 0.32643453 0.29690468 0.25702574 0.19371407 0.15450826
[8] 0.09085389 0.01745535
readRDS("lg_pub_strong_result.rds")
lavaan 0.6-19 ended normally after 72 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       131
  Number of equality constraints                    30

                                                  Used       Total
  Number of observations                         11855       11867
  Number of missing patterns                      1045            

Model Test User Model:
                                                      
  Test statistic                              7653.172
  Degrees of freedom                               151
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                             95074.177
  Degrees of freedom                               210
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.921
  Tucker-Lewis Index (TLI)                       0.890
                                                      
  Robust Comparative Fit Index (CFI)             0.915
  Robust Tucker-Lewis Index (TLI)                0.882

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -194427.183
  Loglikelihood unrestricted model (H1)    -190600.597
                                                      
  Akaike (AIC)                              389056.366
  Bayesian (BIC)                            389801.797
  Sample-size adjusted Bayesian (SABIC)     389480.831

Root Mean Square Error of Approximation:

  RMSEA                                          0.065
  90 Percent confidence interval - lower         0.064
  90 Percent confidence interval - upper         0.066
  P-value H_0: RMSEA <= 0.050                    0.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.078
  90 Percent confidence interval - lower         0.076
  90 Percent confidence interval - upper         0.080
  P-value H_0: Robust RMSEA <= 0.050             0.000
  P-value H_0: Robust RMSEA >= 0.080             0.023

Standardized Root Mean Square Residual:

  SRMR                                           0.103

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  pu_etaB =~                                                            
    p___001           1.000                               0.485    0.430
    p___002 (lm_R)    1.298    0.009  141.551    0.000    0.630    0.749
    p___003 (lm_M)    1.243    0.009  134.762    0.000    0.603    0.723
  pu_eta1 =~                                                            
    p___001           1.000                               0.468    0.459
    p___002 (lm_R)    1.298    0.009  141.551    0.000    0.607    0.723
    p___003 (lm_M)    1.243    0.009  134.762    0.000    0.582    0.676
  pu_eta2 =~                                                            
    p___001           1.000                               0.452    0.497
    p___002 (lm_R)    1.298    0.009  141.551    0.000    0.587    0.716
    p___003 (lm_M)    1.243    0.009  134.762    0.000    0.562    0.653
  pu_eta3 =~                                                            
    p___001           1.000                               0.437    0.535
    p___002 (lm_R)    1.298    0.009  141.551    0.000    0.567    0.744
    p___003 (lm_M)    1.243    0.009  134.762    0.000    0.543    0.664
  pu_eta4 =~                                                            
    p___001           1.000                               0.421    0.574
    p___002 (lm_R)    1.298    0.009  141.551    0.000    0.546    0.799
    p___003 (lm_M)    1.243    0.009  134.762    0.000    0.523    0.696
  pu_eta5 =~                                                            
    p___001           1.000                               0.399    0.571
    p___002 (lm_R)    1.298    0.009  141.551    0.000    0.518    0.834
    p___003 (lm_M)    1.243    0.009  134.762    0.000    0.497    0.705
  pu_eta6 =~                                                            
    p___001           1.000                               0.438    0.616
    p___002 (lm_R)    1.298    0.009  141.551    0.000    0.569    0.884
    p___003 (lm_M)    1.243    0.009  134.762    0.000    0.545    0.740
  pu_i =~                                                               
    pu_etaB           1.000                               0.933    0.933
    pu_eta1           1.000                               0.967    0.967
    pu_eta2           1.000                               1.001    1.001
    pu_eta3           1.000                               1.036    1.036
    pu_eta4           1.000                               1.076    1.076
    pu_eta5           1.000                               1.133    1.133
    pu_eta6           1.000                               1.032    1.032
  pu_s =~                                                               
    pu_etaB           0.000                               0.000    0.000
    pu_eta1           0.500                               0.168    0.168
    pu_eta2           1.000                               0.347    0.347
    pu_eta3           1.500                               0.538    0.538
    pu_eta4           2.000                               0.746    0.746
    pu_eta5           2.500                               0.982    0.982
    pu_eta6           3.000                               1.073    1.073

Covariances:
                    Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .ph_p_pds_001_0 ~~                                                      
   .ph_p_pds_001_1     0.426    0.011   40.326    0.000    0.426    0.462
   .ph_p_pds_001_2     0.259    0.009   28.957    0.000    0.259    0.322
   .ph_p_pds_001_3     0.139    0.008   17.754    0.000    0.139    0.199
   .ph_p_pds_001_4     0.049    0.007    6.997    0.000    0.049    0.081
   .ph_p_pds_001_5     0.016    0.007    2.330    0.020    0.016    0.028
   .ph_p_pds_001_6     0.006    0.009    0.723    0.470    0.006    0.011
 .ph_p_pds_001_1 ~~                                                      
   .ph_p_pds_001_2     0.305    0.008   36.725    0.000    0.305    0.425
   .ph_p_pds_001_3     0.176    0.007   24.376    0.000    0.176    0.281
   .ph_p_pds_001_4     0.077    0.006   12.167    0.000    0.077    0.142
   .ph_p_pds_001_5     0.035    0.006    5.712    0.000    0.035    0.068
   .ph_p_pds_001_6     0.013    0.008    1.655    0.098    0.013    0.026
 .ph_p_pds_001_2 ~~                                                      
   .ph_p_pds_001_3     0.226    0.007   34.042    0.000    0.226    0.415
   .ph_p_pds_001_4     0.106    0.006   18.892    0.000    0.106    0.225
   .ph_p_pds_001_5     0.049    0.005    9.073    0.000    0.049    0.109
   .ph_p_pds_001_6     0.031    0.007    4.600    0.000    0.031    0.070
 .ph_p_pds_001_3 ~~                                                      
   .ph_p_pds_001_4     0.133    0.005   25.623    0.000    0.133    0.321
   .ph_p_pds_001_5     0.072    0.005   14.489    0.000    0.072    0.181
   .ph_p_pds_001_6     0.041    0.006    6.863    0.000    0.041    0.106
 .ph_p_pds_001_4 ~~                                                      
   .ph_p_pds_001_5     0.139    0.005   30.053    0.000    0.139    0.403
   .ph_p_pds_001_6     0.082    0.006   14.800    0.000    0.082    0.244
 .ph_p_pds_001_5 ~~                                                      
   .ph_p_pds_001_6     0.132    0.005   24.259    0.000    0.132    0.410
 .ph_p_pds_002_0 ~~                                                      
   .ph_p_pds_002_1     0.120    0.005   21.882    0.000    0.120    0.369
   .ph_p_pds_002_2     0.042    0.005    8.358    0.000    0.042    0.133
   .ph_p_pds_002_3     0.004    0.005    0.755    0.450    0.004    0.012
   .ph_p_pds_002_4    -0.012    0.004   -2.999    0.003   -0.012   -0.053
   .ph_p_pds_002_5    -0.011    0.004   -3.110    0.002   -0.011   -0.060
   .ph_p_pds_002_6     0.003    0.005    0.636    0.525    0.003    0.018
 .ph_p_pds_002_1 ~~                                                      
   .ph_p_pds_002_2     0.137    0.005   25.311    0.000    0.137    0.414
   .ph_p_pds_002_3     0.071    0.005   14.854    0.000    0.071    0.242
   .ph_p_pds_002_4     0.022    0.004    5.365    0.000    0.022    0.093
   .ph_p_pds_002_5     0.007    0.004    1.956    0.050    0.007    0.037
   .ph_p_pds_002_6     0.015    0.005    3.261    0.001    0.015    0.088
 .ph_p_pds_002_2 ~~                                                      
   .ph_p_pds_002_3     0.144    0.005   28.507    0.000    0.144    0.494
   .ph_p_pds_002_4     0.064    0.004   15.397    0.000    0.064    0.274
   .ph_p_pds_002_5     0.019    0.004    5.164    0.000    0.019    0.100
   .ph_p_pds_002_6     0.010    0.005    2.143    0.032    0.010    0.057
 .ph_p_pds_002_3 ~~                                                      
   .ph_p_pds_002_4     0.085    0.004   21.103    0.000    0.085    0.405
   .ph_p_pds_002_5     0.031    0.004    8.769    0.000    0.031    0.180
   .ph_p_pds_002_6     0.009    0.004    2.069    0.039    0.009    0.056
 .ph_p_pds_002_4 ~~                                                      
   .ph_p_pds_002_5     0.044    0.003   13.301    0.000    0.044    0.313
   .ph_p_pds_002_6     0.003    0.004    0.821    0.412    0.003    0.026
 .ph_p_pds_002_5 ~~                                                      
   .ph_p_pds_002_6     0.016    0.004    4.631    0.000    0.016    0.158
 .ph_p_pds_003_0 ~~                                                      
   .ph_p_pds_003_1     0.132    0.006   24.012    0.000    0.132    0.361
   .ph_p_pds_003_2     0.066    0.005   12.654    0.000    0.066    0.176
   .ph_p_pds_003_3     0.028    0.005    5.710    0.000    0.028    0.080
   .ph_p_pds_003_4     0.005    0.005    1.146    0.252    0.005    0.017
   .ph_p_pds_003_5     0.018    0.004    4.195    0.000    0.018    0.063
   .ph_p_pds_003_6     0.019    0.005    3.544    0.000    0.019    0.068
 .ph_p_pds_003_1 ~~                                                      
   .ph_p_pds_003_2     0.165    0.006   28.819    0.000    0.165    0.399
   .ph_p_pds_003_3     0.090    0.005   17.083    0.000    0.090    0.231
   .ph_p_pds_003_4     0.028    0.005    6.011    0.000    0.028    0.083
   .ph_p_pds_003_5     0.013    0.005    2.910    0.004    0.013    0.042
   .ph_p_pds_003_6     0.008    0.006    1.423    0.155    0.008    0.026
 .ph_p_pds_003_2 ~~                                                      
   .ph_p_pds_003_3     0.175    0.006   31.152    0.000    0.175    0.440
   .ph_p_pds_003_4     0.081    0.005   16.482    0.000    0.081    0.230
   .ph_p_pds_003_5     0.041    0.005    8.745    0.000    0.041    0.125
   .ph_p_pds_003_6     0.010    0.006    1.666    0.096    0.010    0.030
 .ph_p_pds_003_3 ~~                                                      
   .ph_p_pds_003_4     0.120    0.005   24.913    0.000    0.120    0.363
   .ph_p_pds_003_5     0.059    0.004   13.225    0.000    0.059    0.193
   .ph_p_pds_003_6     0.034    0.006    6.174    0.000    0.034    0.113
 .ph_p_pds_003_4 ~~                                                      
   .ph_p_pds_003_5     0.086    0.004   20.052    0.000    0.086    0.320
   .ph_p_pds_003_6     0.065    0.005   12.339    0.000    0.065    0.243
 .ph_p_pds_003_5 ~~                                                      
   .ph_p_pds_003_6     0.080    0.005   16.030    0.000    0.080    0.323
  pu_i ~~                                                                
    pu_s              -0.044    0.002  -28.229    0.000   -0.625   -0.625

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .p___001 (ta_S)    0.040    0.004   11.089    0.000    0.040    0.035
   .p___001 (ta_S)    0.040    0.004   11.089    0.000    0.040    0.039
   .p___001 (ta_S)    0.040    0.004   11.089    0.000    0.040    0.044
   .p___001 (ta_S)    0.040    0.004   11.089    0.000    0.040    0.049
   .p___001 (ta_S)    0.040    0.004   11.089    0.000    0.040    0.054
   .p___001 (ta_S)    0.040    0.004   11.089    0.000    0.040    0.057
   .p___001 (ta_S)    0.040    0.004   11.089    0.000    0.040    0.056
   .p___002 (ta_R)    0.080    0.002   33.739    0.000    0.080    0.095
   .p___002 (ta_R)    0.080    0.002   33.739    0.000    0.080    0.095
   .p___002 (ta_R)    0.080    0.002   33.739    0.000    0.080    0.098
   .p___002 (ta_R)    0.080    0.002   33.739    0.000    0.080    0.105
   .p___002 (ta_R)    0.080    0.002   33.739    0.000    0.080    0.117
   .p___002 (ta_R)    0.080    0.002   33.739    0.000    0.080    0.129
   .p___002 (ta_R)    0.080    0.002   33.739    0.000    0.080    0.125
   .p___003 (ta_M)    0.075    0.003   29.134    0.000    0.075    0.090
   .p___003 (ta_M)    0.075    0.003   29.134    0.000    0.075    0.087
   .p___003 (ta_M)    0.075    0.003   29.134    0.000    0.075    0.087
   .p___003 (ta_M)    0.075    0.003   29.134    0.000    0.075    0.091
   .p___003 (ta_M)    0.075    0.003   29.134    0.000    0.075    0.099
   .p___003 (ta_M)    0.075    0.003   29.134    0.000    0.075    0.106
   .p___003 (ta_M)    0.075    0.003   29.134    0.000    0.075    0.102
    pu_i             -0.693    0.006 -106.662    0.000   -1.531   -1.531
    pu_s              0.488    0.004  134.573    0.000    3.109    3.109
   .pu_etaB           0.000                               0.000    0.000
   .pu_eta1           0.000                               0.000    0.000
   .pu_eta2           0.000                               0.000    0.000
   .pu_eta3           0.000                               0.000    0.000
   .pu_eta4           0.000                               0.000    0.000
   .pu_eta5           0.000                               0.000    0.000
   .pu_eta6           0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .pu_etaB           0.030    0.003   11.146    0.000    0.130    0.130
   .pu_eta1           0.052    0.002   22.716    0.000    0.240    0.240
   .pu_eta2           0.064    0.002   26.712    0.000    0.311    0.311
   .pu_eta3           0.064    0.002   28.287    0.000    0.335    0.335
   .pu_eta4           0.051    0.002   27.197    0.000    0.290    0.290
   .pu_eta5           0.023    0.002   14.051    0.000    0.144    0.144
   .pu_eta6           0.032    0.003   12.305    0.000    0.168    0.168
   .ph_p_pds_001_0    1.035    0.015   69.941    0.000    1.035    0.815
   .ph_p_pds_002_0    0.311    0.007   46.316    0.000    0.311    0.439
   .ph_p_pds_003_0    0.332    0.007   50.045    0.000    0.332    0.478
   .ph_p_pds_001_1    0.823    0.012   68.305    0.000    0.823    0.790
   .ph_p_pds_002_1    0.337    0.007   46.365    0.000    0.337    0.478
   .ph_p_pds_003_1    0.403    0.007   53.809    0.000    0.403    0.543
   .ph_p_pds_001_2    0.624    0.010   65.641    0.000    0.624    0.753
   .ph_p_pds_002_2    0.326    0.007   46.112    0.000    0.326    0.487
   .ph_p_pds_003_2    0.424    0.008   55.719    0.000    0.424    0.573
   .ph_p_pds_001_3    0.476    0.008   62.319    0.000    0.476    0.713
   .ph_p_pds_002_3    0.259    0.006   42.571    0.000    0.259    0.446
   .ph_p_pds_003_3    0.374    0.007   54.597    0.000    0.374    0.559
   .ph_p_pds_001_4    0.360    0.006   60.084    0.000    0.360    0.670
   .ph_p_pds_002_4    0.169    0.005   36.608    0.000    0.169    0.362
   .ph_p_pds_003_4    0.291    0.006   50.973    0.000    0.291    0.515
   .ph_p_pds_001_5    0.330    0.006   58.108    0.000    0.330    0.674
   .ph_p_pds_002_5    0.117    0.004   31.110    0.000    0.117    0.304
   .ph_p_pds_003_5    0.250    0.005   49.509    0.000    0.250    0.503
   .ph_p_pds_001_6    0.315    0.007   44.386    0.000    0.315    0.621
   .ph_p_pds_002_6    0.091    0.005   19.538    0.000    0.091    0.219
   .ph_p_pds_003_6    0.245    0.007   37.172    0.000    0.245    0.452
    pu_i              0.205    0.005   43.143    0.000    1.000    1.000
    pu_s              0.025    0.001   31.027    0.000    1.000    1.000

R-Square:
                   Estimate
    pu_etaB           0.870
    pu_eta1           0.760
    pu_eta2           0.689
    pu_eta3           0.665
    pu_eta4           0.710
    pu_eta5           0.856
    pu_eta6           0.832
    ph_p_pds_001_0    0.185
    ph_p_pds_002_0    0.561
    ph_p_pds_003_0    0.522
    ph_p_pds_001_1    0.210
    ph_p_pds_002_1    0.522
    ph_p_pds_003_1    0.457
    ph_p_pds_001_2    0.247
    ph_p_pds_002_2    0.513
    ph_p_pds_003_2    0.427
    ph_p_pds_001_3    0.287
    ph_p_pds_002_3    0.554
    ph_p_pds_003_3    0.441
    ph_p_pds_001_4    0.330
    ph_p_pds_002_4    0.638
    ph_p_pds_003_4    0.485
    ph_p_pds_001_5    0.326
    ph_p_pds_002_5    0.696
    ph_p_pds_003_5    0.497
    ph_p_pds_001_6    0.379
    ph_p_pds_002_6    0.781
    ph_p_pds_003_6    0.548
model fit (with intercept, slope & qudratic)
lg.pub.strong.invar2 <- "#factor loadings
               pu_etaB =~ 1*ph_p_pds_001_0 +
                          lambda_R*ph_p_pds_002_0 +
                          lambda_M*ph_p_pds_003_0

               pu_eta1 =~ 1*ph_p_pds_001_1 +
                          lambda_R*ph_p_pds_002_1 +
                          lambda_M*ph_p_pds_003_1

               pu_eta2 =~ 1*ph_p_pds_001_2 +
                          lambda_R*ph_p_pds_002_2 +
                          lambda_M*ph_p_pds_003_2

               pu_eta3 =~ 1*ph_p_pds_001_3 +
                          lambda_R*ph_p_pds_002_3 +
                          lambda_M*ph_p_pds_003_3

               pu_eta4 =~ 1*ph_p_pds_001_4 +
                          lambda_R*ph_p_pds_002_4 +
                          lambda_M*ph_p_pds_003_4

               pu_eta5 =~ 1*ph_p_pds_001_5 +
                          lambda_R*ph_p_pds_002_5 +
                          lambda_M*ph_p_pds_003_5

               pu_eta6 =~ 1*ph_p_pds_001_6 +
                          lambda_R*ph_p_pds_002_6 +
                          lambda_M*ph_p_pds_003_6

              #latent variable variances
                      pu_etaB~~NA*pu_etaB
                      pu_eta1~~NA*pu_eta1
                      pu_eta2~~NA*pu_eta2
                      pu_eta3~~NA*pu_eta3
                      pu_eta4~~NA*pu_eta4
                      pu_eta5~~NA*pu_eta5
                      pu_eta6~~NA*pu_eta6

              #unique variances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_0
                      ph_p_pds_002_0 ~~ ph_p_pds_002_0
                      ph_p_pds_003_0 ~~ ph_p_pds_003_0

                      ph_p_pds_001_1 ~~ ph_p_pds_001_1
                      ph_p_pds_002_1 ~~ ph_p_pds_002_1
                      ph_p_pds_003_1 ~~ ph_p_pds_003_1

                      ph_p_pds_001_2 ~~ ph_p_pds_001_2
                      ph_p_pds_002_2 ~~ ph_p_pds_002_2
                      ph_p_pds_003_2 ~~ ph_p_pds_003_2

                      ph_p_pds_001_3 ~~ ph_p_pds_001_3
                      ph_p_pds_002_3 ~~ ph_p_pds_002_3
                      ph_p_pds_003_3 ~~ ph_p_pds_003_3

                      ph_p_pds_001_4 ~~ ph_p_pds_001_4
                      ph_p_pds_002_4 ~~ ph_p_pds_002_4
                      ph_p_pds_003_4 ~~ ph_p_pds_003_4

                      ph_p_pds_001_5 ~~ ph_p_pds_001_5
                      ph_p_pds_002_5 ~~ ph_p_pds_002_5
                      ph_p_pds_003_5 ~~ ph_p_pds_003_5

                      ph_p_pds_001_6 ~~ ph_p_pds_001_6
                      ph_p_pds_002_6 ~~ ph_p_pds_002_6
                      ph_p_pds_003_6 ~~ ph_p_pds_003_6

              #unique covariances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_1 + ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_1 ~~ ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_2 ~~ ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_3 ~~ ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_4 ~~ ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_5 ~~ ph_p_pds_001_6

                      ph_p_pds_002_0 ~~ ph_p_pds_002_1 + ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_1 ~~ ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_2 ~~ ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_3 ~~ ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_4 ~~ ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_5 ~~ ph_p_pds_002_6

                      ph_p_pds_003_0 ~~ ph_p_pds_003_1 + ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_1 ~~ ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_2 ~~ ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_3 ~~ ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_4 ~~ ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_5 ~~ ph_p_pds_003_6

              #observed variable intercepts
                      ph_p_pds_001_0 ~ tau_S*1
                      ph_p_pds_001_1 ~ tau_S*1
                      ph_p_pds_001_2 ~ tau_S*1
                      ph_p_pds_001_3 ~ tau_S*1
                      ph_p_pds_001_4 ~ tau_S*1
                      ph_p_pds_001_5 ~ tau_S*1
                      ph_p_pds_001_6 ~ tau_S*1

                      ph_p_pds_002_0 ~ tau_R*1
                      ph_p_pds_002_1 ~ tau_R*1
                      ph_p_pds_002_2 ~ tau_R*1
                      ph_p_pds_002_3 ~ tau_R*1
                      ph_p_pds_002_4 ~ tau_R*1
                      ph_p_pds_002_5 ~ tau_R*1
                      ph_p_pds_002_6 ~ tau_R*1

                      ph_p_pds_003_0 ~ tau_M*1
                      ph_p_pds_003_1 ~ tau_M*1
                      ph_p_pds_003_2 ~ tau_M*1
                      ph_p_pds_003_3 ~ tau_M*1
                      ph_p_pds_003_4 ~ tau_M*1
                      ph_p_pds_003_5 ~ tau_M*1
                      ph_p_pds_003_6 ~ tau_M*1

              #latent basis model
                      pu_i =~ 1*pu_etaB + 1*pu_eta1 + 1*pu_eta2 + 1*pu_eta3 + 1*pu_eta4 + 1*pu_eta5 + 1*pu_eta6
                      pu_s =~ 0*pu_etaB + 0.5*pu_eta1 + 1*pu_eta2 + 1.5*pu_eta3 + 2*pu_eta4 + 2.5*pu_eta5 + 3*pu_eta6
                      pu_q =~ 0*pu_etaB + 0.25*pu_eta1 + 1*pu_eta2 + 2.25*pu_eta3 + 4*pu_eta4 + 6.25*pu_eta5 + 9*pu_eta6

                      pu_i~~NA*pu_i
                      pu_s~~NA*pu_s
                      pu_q~~NA*pu_q

                      pu_i~~pu_s + pu_q
                      pu_s~~pu_q

                      pu_i~1
                      pu_s~1
                      pu_q~1

                      pu_etaB~0*1
                      pu_eta1~0*1
                      pu_eta2~0*1
                      pu_eta3~0*1
                      pu_eta4~0*1
                      pu_eta5~0*1
                      pu_eta6~0*1"


lavaan(lg.pub.strong.invar2,
  data = pub_yp_mean_wide.scaled,
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = F,
  std.lv = T
) %>%
  saveRDS("lg_p_pub_strong2.rds")
result
readRDS("lg_p_pub_strong2.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("lg_pub_strong_result2.rds")
# Check for Haywood case
eigen(inspect(readRDS("lg_p_pub_strong2.rds"), "cor.lv"))$value
 [1] 5.86586265 2.26675410 0.97510432 0.22164161 0.20053993 0.18952102
 [7] 0.15887135 0.09687195 0.02208400 0.00274907
readRDS("lg_pub_strong_result2.rds")
lavaan 0.6-19 ended normally after 77 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       135
  Number of equality constraints                    30

                                                  Used       Total
  Number of observations                         11855       11867
  Number of missing patterns                      1045            

Model Test User Model:
                                                      
  Test statistic                              5230.071
  Degrees of freedom                               147
  P-value (Chi-square)                           0.000

Model Test Baseline Model:

  Test statistic                             95074.177
  Degrees of freedom                               210
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.946
  Tucker-Lewis Index (TLI)                       0.923
                                                      
  Robust Comparative Fit Index (CFI)             0.945
  Robust Tucker-Lewis Index (TLI)                0.921

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -193215.632
  Loglikelihood unrestricted model (H1)    -190600.597
                                                      
  Akaike (AIC)                              386641.265
  Bayesian (BIC)                            387416.218
  Sample-size adjusted Bayesian (SABIC)     387082.540

Root Mean Square Error of Approximation:

  RMSEA                                          0.054
  90 Percent confidence interval - lower         0.053
  90 Percent confidence interval - upper         0.055
  P-value H_0: RMSEA <= 0.050                    0.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.064
  90 Percent confidence interval - lower         0.062
  90 Percent confidence interval - upper         0.065
  P-value H_0: Robust RMSEA <= 0.050             0.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.073

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  pu_etaB =~                                                            
    p___001           1.000                               0.439    0.394
    p___002 (lm_R)    1.334    0.010  140.216    0.000    0.586    0.724
    p___003 (lm_M)    1.262    0.009  134.899    0.000    0.555    0.699
  pu_eta1 =~                                                            
    p___001           1.000                               0.482    0.470
    p___002 (lm_R)    1.334    0.010  140.216    0.000    0.643    0.748
    p___003 (lm_M)    1.262    0.009  134.899    0.000    0.608    0.691
  pu_eta2 =~                                                            
    p___001           1.000                               0.494    0.533
    p___002 (lm_R)    1.334    0.010  140.216    0.000    0.660    0.774
    p___003 (lm_M)    1.262    0.009  134.899    0.000    0.624    0.698
  pu_eta3 =~                                                            
    p___001           1.000                               0.490    0.584
    p___002 (lm_R)    1.334    0.010  140.216    0.000    0.654    0.816
    p___003 (lm_M)    1.262    0.009  134.899    0.000    0.619    0.719
  pu_eta4 =~                                                            
    p___001           1.000                               0.458    0.610
    p___002 (lm_R)    1.334    0.010  140.216    0.000    0.611    0.848
    p___003 (lm_M)    1.262    0.009  134.899    0.000    0.578    0.734
  pu_eta5 =~                                                            
    p___001           1.000                               0.396    0.567
    p___002 (lm_R)    1.334    0.010  140.216    0.000    0.529    0.841
    p___003 (lm_M)    1.262    0.009  134.899    0.000    0.500    0.709
  pu_eta6 =~                                                            
    p___001           1.000                               0.346    0.511
    p___002 (lm_R)    1.334    0.010  140.216    0.000    0.462    0.824
    p___003 (lm_M)    1.262    0.009  134.899    0.000    0.437    0.671
  pu_i =~                                                               
    pu_etaB           1.000                               0.977    0.977
    pu_eta1           1.000                               0.891    0.891
    pu_eta2           1.000                               0.869    0.869
    pu_eta3           1.000                               0.876    0.876
    pu_eta4           1.000                               0.937    0.937
    pu_eta5           1.000                               1.083    1.083
    pu_eta6           1.000                               1.241    1.241
  pu_s =~                                                               
    pu_etaB           0.000                               0.000    0.000
    pu_eta1           0.500                               0.414    0.414
    pu_eta2           1.000                               0.807    0.807
    pu_eta3           1.500                               1.220    1.220
    pu_eta4           2.000                               1.741    1.741
    pu_eta5           2.500                               2.515    2.515
    pu_eta6           3.000                               3.457    3.457
  pu_q =~                                                               
    pu_etaB           0.000                               0.000    0.000
    pu_eta1           0.250                               0.062    0.062
    pu_eta2           1.000                               0.242    0.242
    pu_eta3           2.250                               0.548    0.548
    pu_eta4           4.000                               1.043    1.043
    pu_eta5           6.250                               1.884    1.884
    pu_eta6           9.000                               3.107    3.107

Covariances:
                    Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .ph_p_pds_001_0 ~~                                                      
   .ph_p_pds_001_1     0.426    0.011   40.295    0.000    0.426    0.460
   .ph_p_pds_001_2     0.253    0.009   28.429    0.000    0.253    0.315
   .ph_p_pds_001_3     0.135    0.008   17.232    0.000    0.135    0.193
   .ph_p_pds_001_4     0.051    0.007    7.304    0.000    0.051    0.084
   .ph_p_pds_001_5     0.027    0.007    3.877    0.000    0.027    0.046
   .ph_p_pds_001_6     0.023    0.009    2.581    0.010    0.023    0.039
 .ph_p_pds_001_1 ~~                                                      
   .ph_p_pds_001_2     0.296    0.008   36.154    0.000    0.296    0.418
   .ph_p_pds_001_3     0.166    0.007   23.333    0.000    0.166    0.269
   .ph_p_pds_001_4     0.069    0.006   10.996    0.000    0.069    0.128
   .ph_p_pds_001_5     0.034    0.006    5.460    0.000    0.034    0.065
   .ph_p_pds_001_6     0.019    0.008    2.369    0.018    0.019    0.036
 .ph_p_pds_001_2 ~~                                                      
   .ph_p_pds_001_3     0.214    0.007   32.876    0.000    0.214    0.400
   .ph_p_pds_001_4     0.092    0.006   16.680    0.000    0.092    0.198
   .ph_p_pds_001_5     0.040    0.005    7.492    0.000    0.040    0.090
   .ph_p_pds_001_6     0.028    0.007    4.054    0.000    0.028    0.062
 .ph_p_pds_001_3 ~~                                                      
   .ph_p_pds_001_4     0.120    0.005   23.624    0.000    0.120    0.295
   .ph_p_pds_001_5     0.061    0.005   12.551    0.000    0.061    0.156
   .ph_p_pds_001_6     0.035    0.006    5.767    0.000    0.035    0.088
 .ph_p_pds_001_4 ~~                                                      
   .ph_p_pds_001_5     0.134    0.005   29.373    0.000    0.134    0.392
   .ph_p_pds_001_6     0.084    0.006   14.681    0.000    0.084    0.241
 .ph_p_pds_001_5 ~~                                                      
   .ph_p_pds_001_6     0.142    0.006   24.934    0.000    0.142    0.424
 .ph_p_pds_002_0 ~~                                                      
   .ph_p_pds_002_1     0.119    0.005   21.761    0.000    0.119    0.373
   .ph_p_pds_002_2     0.056    0.005   11.330    0.000    0.056    0.185
   .ph_p_pds_002_3     0.023    0.004    5.243    0.000    0.023    0.090
   .ph_p_pds_002_4     0.007    0.004    1.899    0.058    0.007    0.035
   .ph_p_pds_002_5     0.001    0.004    0.233    0.816    0.001    0.004
   .ph_p_pds_002_6     0.001    0.005    0.159    0.874    0.001    0.004
 .ph_p_pds_002_1 ~~                                                      
   .ph_p_pds_002_2     0.124    0.005   23.176    0.000    0.124    0.402
   .ph_p_pds_002_3     0.057    0.005   12.090    0.000    0.057    0.215
   .ph_p_pds_002_4     0.013    0.004    3.081    0.002    0.013    0.057
   .ph_p_pds_002_5     0.008    0.004    2.102    0.036    0.008    0.041
   .ph_p_pds_002_6     0.026    0.005    5.695    0.000    0.026    0.145
 .ph_p_pds_002_2 ~~                                                      
   .ph_p_pds_002_3     0.100    0.005   20.849    0.000    0.100    0.399
   .ph_p_pds_002_4     0.030    0.004    7.276    0.000    0.030    0.144
   .ph_p_pds_002_5     0.011    0.004    2.843    0.004    0.011    0.057
   .ph_p_pds_002_6     0.032    0.004    7.388    0.000    0.032    0.189
 .ph_p_pds_002_3 ~~                                                      
   .ph_p_pds_002_4     0.046    0.004   11.760    0.000    0.046    0.257
   .ph_p_pds_002_5     0.020    0.003    5.645    0.000    0.020    0.124
   .ph_p_pds_002_6     0.033    0.004    8.234    0.000    0.033    0.221
 .ph_p_pds_002_4 ~~                                                      
   .ph_p_pds_002_5     0.037    0.003   11.475    0.000    0.037    0.286
   .ph_p_pds_002_6     0.023    0.004    6.363    0.000    0.023    0.193
 .ph_p_pds_002_5 ~~                                                      
   .ph_p_pds_002_6     0.028    0.004    8.076    0.000    0.028    0.262
 .ph_p_pds_003_0 ~~                                                      
   .ph_p_pds_003_1     0.134    0.005   24.789    0.000    0.134    0.371
   .ph_p_pds_003_2     0.082    0.005   16.255    0.000    0.082    0.226
   .ph_p_pds_003_3     0.046    0.005    9.754    0.000    0.046    0.136
   .ph_p_pds_003_4     0.018    0.004    4.064    0.000    0.018    0.059
   .ph_p_pds_003_5     0.020    0.004    4.694    0.000    0.020    0.069
   .ph_p_pds_003_6     0.006    0.005    1.239    0.215    0.006    0.023
 .ph_p_pds_003_1 ~~                                                      
   .ph_p_pds_003_2     0.165    0.006   28.802    0.000    0.165    0.405
   .ph_p_pds_003_3     0.089    0.005   16.886    0.000    0.089    0.233
   .ph_p_pds_003_4     0.027    0.005    5.590    0.000    0.027    0.078
   .ph_p_pds_003_5     0.013    0.005    2.776    0.006    0.013    0.040
   .ph_p_pds_003_6     0.007    0.006    1.174    0.240    0.007    0.022
 .ph_p_pds_003_2 ~~                                                      
   .ph_p_pds_003_3     0.157    0.005   28.628    0.000    0.157    0.410
   .ph_p_pds_003_4     0.065    0.005   13.317    0.000    0.065    0.191
   .ph_p_pds_003_5     0.037    0.005    7.976    0.000    0.037    0.116
   .ph_p_pds_003_6     0.015    0.006    2.717    0.007    0.015    0.050
 .ph_p_pds_003_3 ~~                                                      
   .ph_p_pds_003_4     0.106    0.005   21.971    0.000    0.106    0.330
   .ph_p_pds_003_5     0.056    0.004   12.478    0.000    0.056    0.186
   .ph_p_pds_003_6     0.038    0.005    7.201    0.000    0.038    0.132
 .ph_p_pds_003_4 ~~                                                      
   .ph_p_pds_003_5     0.086    0.004   19.816    0.000    0.086    0.322
   .ph_p_pds_003_6     0.063    0.005   12.430    0.000    0.063    0.245
 .ph_p_pds_003_5 ~~                                                      
   .ph_p_pds_003_6     0.074    0.005   15.437    0.000    0.074    0.306
  pu_i ~~                                                                
    pu_s              -0.033    0.005   -7.303    0.000   -0.195   -0.195
    pu_q              -0.006    0.001   -4.272    0.000   -0.111   -0.111
  pu_s ~~                                                                
    pu_q              -0.044    0.002  -21.761    0.000   -0.918   -0.918

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .p___001 (ta_S)    0.035    0.004    9.457    0.000    0.035    0.031
   .p___001 (ta_S)    0.035    0.004    9.457    0.000    0.035    0.034
   .p___001 (ta_S)    0.035    0.004    9.457    0.000    0.035    0.037
   .p___001 (ta_S)    0.035    0.004    9.457    0.000    0.035    0.041
   .p___001 (ta_S)    0.035    0.004    9.457    0.000    0.035    0.046
   .p___001 (ta_S)    0.035    0.004    9.457    0.000    0.035    0.049
   .p___001 (ta_S)    0.035    0.004    9.457    0.000    0.035    0.051
   .p___002 (ta_R)    0.088    0.002   37.953    0.000    0.088    0.108
   .p___002 (ta_R)    0.088    0.002   37.953    0.000    0.088    0.102
   .p___002 (ta_R)    0.088    0.002   37.953    0.000    0.088    0.103
   .p___002 (ta_R)    0.088    0.002   37.953    0.000    0.088    0.109
   .p___002 (ta_R)    0.088    0.002   37.953    0.000    0.088    0.122
   .p___002 (ta_R)    0.088    0.002   37.953    0.000    0.088    0.139
   .p___002 (ta_R)    0.088    0.002   37.953    0.000    0.088    0.157
   .p___003 (ta_M)    0.079    0.003   31.519    0.000    0.079    0.100
   .p___003 (ta_M)    0.079    0.003   31.519    0.000    0.079    0.090
   .p___003 (ta_M)    0.079    0.003   31.519    0.000    0.079    0.089
   .p___003 (ta_M)    0.079    0.003   31.519    0.000    0.079    0.092
   .p___003 (ta_M)    0.079    0.003   31.519    0.000    0.079    0.101
   .p___003 (ta_M)    0.079    0.003   31.519    0.000    0.079    0.112
   .p___003 (ta_M)    0.079    0.003   31.519    0.000    0.079    0.122
    pu_i             -0.715    0.007 -108.648    0.000   -1.665   -1.665
    pu_s              0.597    0.007   86.648    0.000    1.497    1.497
    pu_q             -0.043    0.002  -22.539    0.000   -0.362   -0.362
   .pu_etaB           0.000                               0.000    0.000
   .pu_eta1           0.000                               0.000    0.000
   .pu_eta2           0.000                               0.000    0.000
   .pu_eta3           0.000                               0.000    0.000
   .pu_eta4           0.000                               0.000    0.000
   .pu_eta5           0.000                               0.000    0.000
   .pu_eta6           0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .pu_etaB           0.009    0.003    2.707    0.007    0.045    0.045
   .pu_eta1           0.054    0.002   23.656    0.000    0.234    0.234
   .pu_eta2           0.052    0.002   24.155    0.000    0.215    0.215
   .pu_eta3           0.047    0.002   23.329    0.000    0.196    0.196
   .pu_eta4           0.040    0.002   22.391    0.000    0.191    0.191
   .pu_eta5           0.026    0.002   17.035    0.000    0.168    0.168
   .pu_eta6           0.013    0.003    4.823    0.000    0.107    0.107
   .ph_p_pds_001_0    1.052    0.015   69.921    0.000    1.052    0.845
   .ph_p_pds_002_0    0.313    0.007   47.790    0.000    0.313    0.476
   .ph_p_pds_003_0    0.322    0.006   51.663    0.000    0.322    0.511
   .ph_p_pds_001_1    0.818    0.012   68.477    0.000    0.818    0.779
   .ph_p_pds_002_1    0.326    0.007   44.798    0.000    0.326    0.441
   .ph_p_pds_003_1    0.405    0.008   53.812    0.000    0.405    0.523
   .ph_p_pds_001_2    0.615    0.009   65.670    0.000    0.615    0.716
   .ph_p_pds_002_2    0.292    0.007   43.063    0.000    0.292    0.402
   .ph_p_pds_003_2    0.410    0.007   55.246    0.000    0.410    0.513
   .ph_p_pds_001_3    0.465    0.007   62.371    0.000    0.465    0.659
   .ph_p_pds_002_3    0.215    0.006   37.967    0.000    0.215    0.335
   .ph_p_pds_003_3    0.358    0.007   53.761    0.000    0.358    0.483
   .ph_p_pds_001_4    0.353    0.006   60.349    0.000    0.353    0.628
   .ph_p_pds_002_4    0.146    0.004   32.868    0.000    0.146    0.282
   .ph_p_pds_003_4    0.286    0.006   50.176    0.000    0.286    0.461
   .ph_p_pds_001_5    0.331    0.006   58.163    0.000    0.331    0.678
   .ph_p_pds_002_5    0.116    0.004   30.621    0.000    0.116    0.294
   .ph_p_pds_003_5    0.248    0.005   49.271    0.000    0.248    0.498
   .ph_p_pds_001_6    0.339    0.008   44.156    0.000    0.339    0.739
   .ph_p_pds_002_6    0.101    0.004   22.688    0.000    0.101    0.321
   .ph_p_pds_003_6    0.233    0.006   38.406    0.000    0.233    0.549
    pu_i              0.184    0.005   37.310    0.000    1.000    1.000
    pu_s              0.159    0.007   23.513    0.000    1.000    1.000
    pu_q              0.014    0.001   22.200    0.000    1.000    1.000

R-Square:
                   Estimate
    pu_etaB           0.955
    pu_eta1           0.766
    pu_eta2           0.785
    pu_eta3           0.804
    pu_eta4           0.809
    pu_eta5           0.832
    pu_eta6           0.893
    ph_p_pds_001_0    0.155
    ph_p_pds_002_0    0.524
    ph_p_pds_003_0    0.489
    ph_p_pds_001_1    0.221
    ph_p_pds_002_1    0.559
    ph_p_pds_003_1    0.477
    ph_p_pds_001_2    0.284
    ph_p_pds_002_2    0.598
    ph_p_pds_003_2    0.487
    ph_p_pds_001_3    0.341
    ph_p_pds_002_3    0.665
    ph_p_pds_003_3    0.517
    ph_p_pds_001_4    0.372
    ph_p_pds_002_4    0.718
    ph_p_pds_003_4    0.539
    ph_p_pds_001_5    0.322
    ph_p_pds_002_5    0.706
    ph_p_pds_003_5    0.502
    ph_p_pds_001_6    0.261
    ph_p_pds_002_6    0.679
    ph_p_pds_003_6    0.451
ICC
lavPredict(readRDS("lg_p_pub_strong2.rds"),
  newdata = pub_yp_mean_wide.scaled,
  append.data = T
) %>%
  data.frame() %>%
  select(contains(c("pu_eta"))) %>%
  ICC(lmer = T) %>%
  saveRDS("p_pub_icc.rds")
readRDS("p_pub_icc.rds") %>%
  {
    \(x) x$results
  }() %>%
  knitr::kable()
type ICC F df1 df2 p lower bound upper bound
Single_raters_absolute ICC1 0.1699108 2.432829 11866 71202 0 0.1633996 0.1765641
Single_random_raters ICC2 0.2480579 19.682861 11866 71196 0 0.0771192 0.4205272
Single_fixed_raters ICC3 0.7274447 19.682861 11866 71196 0 0.7216905 0.7331719
Average_raters_absolute ICC1k 0.5889559 2.432829 11866 71202 0 0.5775593 0.6001543
Average_random_raters ICC2k 0.6978147 19.682861 11866 71196 0 0.3690634 0.8355249
Average_fixed_raters ICC3k 0.9491944 19.682861 11866 71196 0 0.9477857 0.9505785
LGCM plot
lgcm_plot(readRDS("lg_p_pub_strong2.rds")) +
  labs(y = "Children's Puberty") +
  scale_x_continuous(
    breaks = seq(0, 3, .5),
    labels = c("10", "11", "12", "13", "14", "15", "16")
  ) +
  # add significant results for intercept and slope
  annotate(geom = "text", x = 2.5, y = -0.3, label = 'paste(" ",italic("i")," = -.715***")', parse = TRUE, size = 10) +
  annotate(geom = "text", x = 2.5, y = -0.5, label = 'paste(italic("s")," =  .597***")', parse = TRUE, size = 10) +
  annotate(geom = "text", x = 2.5, y = -0.7, label = 'paste(" ",italic("q")," = -.043*** ")', parse = TRUE, size = 10)

Model comparison

lapply(
  c(
    "p_pub_config_result.rds",
    "p_pub_weak_result.rds",
    "p_pub_strong_result.rds",
    "lg_pub_strong_result.rds",
    "lg_pub_strong_result2.rds"
  ),
  function(f) {
    readRDS(f)$fit[c(
      "chisq", "df", "pvalue",
      "cfi.robust", "tli.robust",
      "rmsea.robust", "rmsea.ci.lower.robust",
      "rmsea.ci.upper.robust", "srmr"
    )]
  }
) %>%
  do.call(rbind, .) %>%
  round(3) %>%
  data.frame(model = c("config", "weak", "strong", "LGCM (i,s)", "LGCM (i,s,q)"), ., row.names = NULL) %>%
  knitr::kable()
model chisq df pvalue cfi.robust tli.robust rmsea.robust rmsea.ci.lower.robust rmsea.ci.upper.robust srmr
config 433.417 105 0 0.996 0.993 0.019 0.017 0.021 0.013
weak 989.340 117 0 0.990 0.981 0.031 0.029 0.033 0.038
strong 3171.142 129 0 0.967 0.947 0.053 0.051 0.054 0.063
LGCM (i,s) 7653.172 151 0 0.915 0.882 0.078 0.076 0.080 0.103
LGCM (i,s,q) 5230.071 147 0 0.945 0.921 0.064 0.062 0.065 0.073

Parallel Latent Growth Curve Modeling

p factor model

pc ~ pp + g + pu model

Children’s psychopathology (pc) was regressed on parental psychopathology (pp), children’s cognitive functioning (g) and children’s puberty (pu).

model fit
pga_pu6.model <- "# second-order pp factor
               #factor loadings (with constraints)
               a_etaB =~ 1*asr_anxdep_comp_0+
                       lambda_AW*asr_withdep_comp_0+
                       lambda_AS*asr_soma_comp_0+
                       lambda_AC*asr_thouprob_comp_0+
                       lambda_AH*asr_attprob_comp_0+
                       lambda_AA*asr_rulebreak_comp_0+
                       lambda_AR*asr_aggress_comp_0+
                       lambda_AG*asr_intru_comp_0
               a_eta2 =~ 1*asr_anxdep_comp_2+
                       lambda_AW*asr_withdep_comp_2+
                       lambda_AS*asr_soma_comp_2+
                       lambda_AC*asr_thouprob_comp_2+
                       lambda_AH*asr_attprob_comp_2+
                       lambda_AA*asr_rulebreak_comp_2+
                       lambda_AR*asr_aggress_comp_2+
                       lambda_AG*asr_intru_comp_2
               a_eta4 =~ 1*asr_anxdep_comp_4+
                       lambda_AW*asr_withdep_comp_4+
                       lambda_AS*asr_soma_comp_4+
                       lambda_AC*asr_thouprob_comp_4+
                       lambda_AH*asr_attprob_comp_4+
                       lambda_AA*asr_rulebreak_comp_4+
                       lambda_AR*asr_aggress_comp_4+
                       lambda_AG*asr_intru_comp_4

              #latent variable variances
                      a_etaB~~NA*a_etaB
                      a_eta2~~NA*a_eta2
                      a_eta4~~NA*a_eta4

              #unique variances # No need to constrict these
                      asr_anxdep_comp_0~~asr_anxdep_comp_0
                      asr_withdep_comp_0~~asr_withdep_comp_0
                      asr_soma_comp_0~~asr_soma_comp_0
                      asr_thouprob_comp_0~~asr_thouprob_comp_0
                      asr_attprob_comp_0~~asr_attprob_comp_0
                      asr_rulebreak_comp_0~~asr_rulebreak_comp_0
                      asr_aggress_comp_0~~asr_aggress_comp_0
                      asr_intru_comp_0~~asr_intru_comp_0

                      asr_anxdep_comp_2~~asr_anxdep_comp_2
                      asr_withdep_comp_2~~asr_withdep_comp_2
                      asr_soma_comp_2~~asr_soma_comp_2
                      asr_thouprob_comp_2~~asr_thouprob_comp_2
                      asr_attprob_comp_2~~asr_attprob_comp_2
                      asr_rulebreak_comp_2~~asr_rulebreak_comp_2
                      asr_aggress_comp_2~~asr_aggress_comp_2
                      asr_intru_comp_2~~asr_intru_comp_2

                      asr_anxdep_comp_4~~asr_anxdep_comp_4
                      asr_withdep_comp_4~~asr_withdep_comp_4
                      asr_soma_comp_4~~asr_soma_comp_4
                      asr_thouprob_comp_4~~asr_thouprob_comp_4
                      asr_attprob_comp_4~~asr_attprob_comp_4
                      asr_rulebreak_comp_4~~asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_aggress_comp_4
                      asr_intru_comp_4~~asr_intru_comp_4

              #unique covariances
                      # Scores arcoss times
                      asr_anxdep_comp_0~~ asr_anxdep_comp_2 + asr_anxdep_comp_4
                      asr_anxdep_comp_2~~ asr_anxdep_comp_4

                      asr_withdep_comp_0 ~~ asr_withdep_comp_2 + asr_withdep_comp_4
                      asr_withdep_comp_2 ~~ asr_withdep_comp_4

                      asr_soma_comp_0~~ asr_soma_comp_2 + asr_soma_comp_4
                      asr_soma_comp_2~~ asr_soma_comp_4

                      asr_thouprob_comp_0~~ asr_thouprob_comp_2 + asr_thouprob_comp_4
                      asr_thouprob_comp_2~~ asr_thouprob_comp_4

                      asr_attprob_comp_0~~ asr_attprob_comp_2 + asr_attprob_comp_4
                      asr_attprob_comp_2~~ asr_attprob_comp_4

                      asr_rulebreak_comp_0~~ asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_rulebreak_comp_2~~ asr_rulebreak_comp_4

                      asr_aggress_comp_0~~ asr_aggress_comp_2 + asr_aggress_comp_4
                      asr_aggress_comp_2~~ asr_aggress_comp_4

                      asr_intru_comp_0~~ asr_intru_comp_2 + asr_intru_comp_4
                      asr_intru_comp_2~~ asr_intru_comp_4

                      # Internalizeing subscale covariances
                      asr_anxdep_comp_0~~asr_withdep_comp_0 + asr_soma_comp_0 + asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_2~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_4~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4

                      asr_withdep_comp_0~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_2~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_4~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4

                      # Externalizeing subscale covariances
                      asr_aggress_comp_0~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_2~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4

                      asr_intru_comp_0~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_2~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_4~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4

              #observed variable intercepts
                      asr_anxdep_comp_0~tau_AX*1
                      asr_withdep_comp_0~tau_AW*1
                      asr_soma_comp_0~tau_AS*1
                      asr_thouprob_comp_0~tau_AP*1
                      asr_attprob_comp_0~tau_AH*1
                      asr_rulebreak_comp_0~tau_AA*1
                      asr_aggress_comp_0~tau_AR*1
                      asr_intru_comp_0~tau_AG*1

                      asr_anxdep_comp_2~tau_AX*1
                      asr_withdep_comp_2~tau_AW*1
                      asr_soma_comp_2~tau_AS*1
                      asr_thouprob_comp_2~tau_AP*1
                      asr_attprob_comp_2~tau_AH*1
                      asr_rulebreak_comp_2~tau_AA*1
                      asr_aggress_comp_2~tau_AR*1
                      asr_intru_comp_2~tau_AG*1

                      asr_anxdep_comp_4~tau_AX*1
                      asr_withdep_comp_4~tau_AW*1
                      asr_soma_comp_4~tau_AS*1
                      asr_thouprob_comp_4~tau_AP*1
                      asr_attprob_comp_4~tau_AH*1
                      asr_rulebreak_comp_4~tau_AA*1
                      asr_aggress_comp_4~tau_AR*1
                      asr_intru_comp_4~tau_AG*1

                      #latent basis model
                      a_i =~ 1*a_etaB+1*a_eta2+1*a_eta4
                      a_s =~ 0*a_etaB+1*a_eta2+2*a_eta4
                      a_i~~NA*a_i
                      a_s~~NA*a_s
                      a_i~~a_s
                      a_i~1
                      a_s~1
                      a_etaB~0*1
                      a_eta2~0*1
                      a_eta4~0*1

               # second-order pc factor
               #factor loadings (with constraints)
               p_etaB =~ 1*anxdep_comp_0+
                       lambda_CW*withdep_comp_0+
                       lambda_CS*soma_comp_0+
                       lambda_CC*socprob_comp_0+
                       lambda_CH*thouprob_comp_0+
                       lambda_CA*attprob_comp_0+
                       lambda_CR*rulebreak_comp_0+
                       lambda_CG*aggress_comp_0
               p_eta1 =~ 1*anxdep_comp_1+
                       lambda_CW*withdep_comp_1+
                       lambda_CS*soma_comp_1+
                       lambda_CC*socprob_comp_1+
                       lambda_CH*thouprob_comp_1+
                       lambda_CA*attprob_comp_1+
                       lambda_CR*rulebreak_comp_1+
                       lambda_CG*aggress_comp_1
               p_eta2 =~ 1*anxdep_comp_2+
                       lambda_CW*withdep_comp_2+
                       lambda_CS*soma_comp_2+
                       lambda_CC*socprob_comp_2+
                       lambda_CH*thouprob_comp_2+
                       lambda_CA*attprob_comp_2+
                       lambda_CR*rulebreak_comp_2+
                       lambda_CG*aggress_comp_2
               p_eta3 =~ 1*anxdep_comp_3+
                       lambda_CW*withdep_comp_3+
                       lambda_CS*soma_comp_3+
                       lambda_CC*socprob_comp_3+
                       lambda_CH*thouprob_comp_3+
                       lambda_CA*attprob_comp_3+
                       lambda_CR*rulebreak_comp_3+
                       lambda_CG*aggress_comp_3
               p_eta4 =~ 1*anxdep_comp_4+
                       lambda_CW*withdep_comp_4+
                       lambda_CS*soma_comp_4+
                       lambda_CC*socprob_comp_4+
                       lambda_CH*thouprob_comp_4+
                       lambda_CA*attprob_comp_4+
                       lambda_CR*rulebreak_comp_4+
                       lambda_CG*aggress_comp_4
               p_eta5 =~ 1*anxdep_comp_5+
                       lambda_CW*withdep_comp_5+
                       lambda_CS*soma_comp_5+
                       lambda_CC*socprob_comp_5+
                       lambda_CH*thouprob_comp_5+
                       lambda_CA*attprob_comp_5+
                       lambda_CR*rulebreak_comp_5+
                       lambda_CG*aggress_comp_5
               p_eta6 =~ 1*anxdep_comp_6+
                       lambda_CW*withdep_comp_6+
                       lambda_CS*soma_comp_6+
                       lambda_CC*socprob_comp_6+
                       lambda_CH*thouprob_comp_6+
                       lambda_CA*attprob_comp_6+
                       lambda_CR*rulebreak_comp_6+
                       lambda_CG*aggress_comp_6

              #latent variable variances
                      p_etaB~~NA*p_etaB
                      p_eta1~~NA*p_eta1
                      p_eta2~~NA*p_eta2
                      p_eta3~~NA*p_eta3
                      p_eta4~~NA*p_eta4
                      p_eta5~~NA*p_eta5
                      p_eta6~~NA*p_eta6

              #unique variances # No need to constrict these
                      anxdep_comp_0~~anxdep_comp_0
                      withdep_comp_0~~withdep_comp_0
                      soma_comp_0~~soma_comp_0
                      socprob_comp_0~~socprob_comp_0
                      thouprob_comp_0~~thouprob_comp_0
                      attprob_comp_0~~attprob_comp_0
                      rulebreak_comp_0~~rulebreak_comp_0
                      aggress_comp_0~~aggress_comp_0
                      anxdep_comp_1~~anxdep_comp_1
                      withdep_comp_1~~withdep_comp_1
                      soma_comp_1~~soma_comp_1
                      socprob_comp_1~~socprob_comp_1
                      thouprob_comp_1~~thouprob_comp_1
                      attprob_comp_1~~attprob_comp_1
                      rulebreak_comp_1~~rulebreak_comp_1
                      aggress_comp_1~~aggress_comp_1

                      anxdep_comp_2~~anxdep_comp_2
                      withdep_comp_2~~withdep_comp_2
                      soma_comp_2~~soma_comp_2
                      socprob_comp_2~~socprob_comp_2
                      thouprob_comp_2~~thouprob_comp_2
                      attprob_comp_2~~attprob_comp_2
                      rulebreak_comp_2~~rulebreak_comp_2
                      aggress_comp_2~~aggress_comp_2

                      anxdep_comp_3~~anxdep_comp_3
                      withdep_comp_3~~withdep_comp_3
                      soma_comp_3~~soma_comp_3
                      socprob_comp_3~~socprob_comp_3
                      thouprob_comp_3~~thouprob_comp_3
                      attprob_comp_3~~attprob_comp_3
                      rulebreak_comp_3~~rulebreak_comp_3
                      aggress_comp_3~~aggress_comp_3

                      anxdep_comp_4~~anxdep_comp_4
                      withdep_comp_4~~withdep_comp_4
                      soma_comp_4~~soma_comp_4
                      socprob_comp_4~~socprob_comp_4
                      thouprob_comp_4~~thouprob_comp_4
                      attprob_comp_4~~attprob_comp_4
                      rulebreak_comp_4~~rulebreak_comp_4
                      aggress_comp_4~~aggress_comp_4

                      anxdep_comp_5~~anxdep_comp_5
                      withdep_comp_5~~withdep_comp_5
                      soma_comp_5~~soma_comp_5
                      socprob_comp_5~~socprob_comp_5
                      thouprob_comp_5~~thouprob_comp_5
                      attprob_comp_5~~attprob_comp_5
                      rulebreak_comp_5~~rulebreak_comp_5
                      aggress_comp_5~~aggress_comp_5

                      anxdep_comp_6~~anxdep_comp_6
                      withdep_comp_6~~withdep_comp_6
                      soma_comp_6~~soma_comp_6
                      socprob_comp_6~~socprob_comp_6
                      thouprob_comp_6~~thouprob_comp_6
                      attprob_comp_6~~attprob_comp_6
                      rulebreak_comp_6~~rulebreak_comp_6
                      aggress_comp_6~~aggress_comp_6

              #unique covariances
                      # Scores arcoss times
                      anxdep_comp_0~~anxdep_comp_1 + anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_1~~anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_2~~anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_3~~anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_4~~anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_5~~anxdep_comp_6

                      withdep_comp_0~~withdep_comp_1 + withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_1~~withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_2~~withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_3~~withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_4~~withdep_comp_5 + withdep_comp_6
                      withdep_comp_5~~withdep_comp_6

                      soma_comp_0~~soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_1~~soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_2~~soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_3~~soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_4~~soma_comp_5 + soma_comp_6
                      soma_comp_5~~soma_comp_6

                      socprob_comp_0~~socprob_comp_1 + socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_1~~socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_2~~socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_3~~socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_4~~socprob_comp_5 + socprob_comp_6
                      socprob_comp_5~~socprob_comp_6

                      thouprob_comp_0~~thouprob_comp_1 + thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_1~~thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_2~~thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_3~~thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_4~~thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_5~~thouprob_comp_6

                      attprob_comp_0~~attprob_comp_1 + attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_1~~attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_2~~attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_3~~attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_4~~attprob_comp_5 + attprob_comp_6
                      attprob_comp_5~~attprob_comp_6

                      rulebreak_comp_0~~rulebreak_comp_1 + rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_1~~rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_2~~rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_3~~rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_4~~rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_5~~rulebreak_comp_6

                      aggress_comp_0~~aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_1~~aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_2~~aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_3~~aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_4~~aggress_comp_5 + aggress_comp_6
                      aggress_comp_5~~aggress_comp_6

                      # Internalizeing subscale covariances
                      anxdep_comp_0~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_1~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_2~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_3~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_4~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_5~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_6~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6

                      withdep_comp_0~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_1~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_2~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_3~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_4~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_5~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_6~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6

                      # Externalizeing subscale covariances
                      rulebreak_comp_0~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_1~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_2~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_3~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_4~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_5~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_6~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6

              #observed variable intercepts
                      anxdep_comp_0~tau_CX*1
                      anxdep_comp_1~tau_CX*1
                      anxdep_comp_2~tau_CX*1
                      anxdep_comp_3~tau_CX*1
                      anxdep_comp_4~tau_CX*1
                      anxdep_comp_5~tau_CX*1
                      anxdep_comp_6~tau_CX*1
                      withdep_comp_0~tau_CW*1
                      withdep_comp_1~tau_CW*1
                      withdep_comp_2~tau_CW*1
                      withdep_comp_3~tau_CW*1
                      withdep_comp_4~tau_CW*1
                      withdep_comp_5~tau_CW*1
                      withdep_comp_6~tau_CW*1
                      soma_comp_0~tau_CS*1
                      soma_comp_1~tau_CS*1
                      soma_comp_2~tau_CS*1
                      soma_comp_3~tau_CS*1
                      soma_comp_4~tau_CS*1
                      soma_comp_5~tau_CS*1
                      soma_comp_6~tau_CS*1
                      socprob_comp_0~tau_CP*1
                      socprob_comp_1~tau_CP*1
                      socprob_comp_2~tau_CP*1
                      socprob_comp_3~tau_CP*1
                      socprob_comp_4~tau_CP*1
                      socprob_comp_5~tau_CP*1
                      socprob_comp_6~tau_CP*1
                      thouprob_comp_0~tau_CH*1
                      thouprob_comp_1~tau_CH*1
                      thouprob_comp_2~tau_CH*1
                      thouprob_comp_3~tau_CH*1
                      thouprob_comp_4~tau_CH*1
                      thouprob_comp_5~tau_CH*1
                      thouprob_comp_6~tau_CH*1
                      attprob_comp_0~tau_CA*1
                      attprob_comp_1~tau_CA*1
                      attprob_comp_2~tau_CA*1
                      attprob_comp_3~tau_CA*1
                      attprob_comp_4~tau_CA*1
                      attprob_comp_5~tau_CA*1
                      attprob_comp_6~tau_CA*1
                      rulebreak_comp_0~tau_CR*1
                      rulebreak_comp_1~tau_CR*1
                      rulebreak_comp_2~tau_CR*1
                      rulebreak_comp_3~tau_CR*1
                      rulebreak_comp_4~tau_CR*1
                      rulebreak_comp_5~tau_CR*1
                      rulebreak_comp_6~tau_CR*1
                      aggress_comp_0~tau_CG*1
                      aggress_comp_1~tau_CG*1
                      aggress_comp_2~tau_CG*1
                      aggress_comp_3~tau_CG*1
                      aggress_comp_4~tau_CG*1
                      aggress_comp_5~tau_CG*1
                      aggress_comp_6~tau_CG*1

                       #latent basis model
                      p_i =~ 1*p_etaB + 1*p_eta1 + 1*p_eta2 + 1*p_eta3 + 1*p_eta4 + 1*p_eta5 + 1*p_eta6
                      p_s =~ 0*p_etaB + .5*p_eta1 + 1*p_eta2 + 1.5*p_eta3 + 2*p_eta4 + 2.5*p_eta5 + 3*p_eta6
                      p_q =~ 0*p_etaB + .25*p_eta1 + 1*p_eta2 + 2.25*p_eta3 + 4*p_eta4 + 6.25*p_eta5 + 9*p_eta6

                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q

                      p_i~~p_s + p_q
                      p_s~~p_q
                      p_i~1
                      p_s~1
                      p_q~1
                      p_etaB ~ 0*1
                      p_eta1 ~ 0*1
                      p_eta2 ~ 0*1
                      p_eta3 ~ 0*1
                      p_eta4 ~ 0*1
                      p_eta5 ~ 0*1
                      p_eta6 ~ 0*1

               # second-order g factor
               #factor loadings # S & S2
               g_etaB =~ 1*flanker_0+
                       lambda_R*pattern_0+
                       lambda_M*picture_0+
                       lambda_P*picvocab_0+
                       lambda_V*reading_0
               g_eta2 =~ 1*flanker_2+
                       lambda_R*pattern_2+
                       lambda_M*picture_2+
                       lambda_P*picvocab_2+
                       lambda_V*reading_2
               g_eta4 =~ 1*flanker_4+
                       lambda_R*pattern_4+
                       lambda_M*picture_4+
                       lambda_P*picvocab_4+
                       lambda_V*reading_4
               g_eta6 =~ 1*flanker_6+
                       lambda_R*pattern_6+
                       lambda_M*picture_6+
                       lambda_P*picvocab_6+
                       lambda_V*reading_6

              #latent variable variances
                       g_etaB~~NA*g_etaB
                       g_eta2~~NA*g_eta2
                       g_eta4~~NA*g_eta4
                       g_eta6~~NA*g_eta6

              #unique variances
                      flanker_0~~flanker_0
                      flanker_2~~flanker_2
                      flanker_4~~flanker_4
                      flanker_6~~flanker_6

                      pattern_0~~pattern_0
                      pattern_2~~pattern_2
                      pattern_4~~pattern_4
                      pattern_6~~pattern_6

                      picture_0~~picture_0
                      picture_2~~picture_2
                      picture_4~~picture_4
                      picture_6~~picture_6

                      picvocab_0~~picvocab_0
                      picvocab_2~~picvocab_2
                      picvocab_4~~picvocab_4
                      picvocab_6~~picvocab_6

                      reading_0~~reading_0
                      reading_2~~reading_2
                      reading_4~~reading_4
                      reading_6~~reading_6

              #unique covariances
                      # Task across times
                      flanker_0~~flanker_2 + flanker_4 + flanker_6
                      flanker_2~~flanker_4 + flanker_6
                      flanker_4~~flanker_6

                      pattern_0~~pattern_2 + pattern_4 + pattern_6
                      pattern_2~~pattern_4 + pattern_6
                      pattern_4~~pattern_6

                      picture_0~~picture_2 + picture_4 + picture_6
                      picture_2~~picture_4 + picture_6
                      picture_4~~picture_6

                      picvocab_0~~picvocab_2 + picvocab_4 + picvocab_6
                      picvocab_2~~picvocab_4 + picvocab_6
                      picvocab_4~~picvocab_6

                      reading_0~~reading_2 + reading_4 + reading_6
                      reading_2~~reading_4 + reading_6
                      reading_4~~reading_6

                      #Language
                      picvocab_0~~reading_0 + reading_2 + reading_4 + reading_6
                      picvocab_2~~reading_2 + reading_0 + reading_4 + reading_6
                      picvocab_4~~reading_4 + reading_0 + reading_2 + reading_6
                      picvocab_6~~reading_6 + reading_0 + reading_2 + reading_4

              #observed variable intercepts # S & S2
                      flanker_0~tau_S*1
                      flanker_2~tau_S*1
                      flanker_4~tau_S*1
                      flanker_6~tau_S*1
                      pattern_0~tau_R*1
                      pattern_2~tau_R*1
                      pattern_4~tau_R*1
                      pattern_6~tau_R*1
                      picture_0~tau_M*1
                      picture_2~tau_M*1
                      picture_4~tau_M*1
                      picture_6~tau_M*1
                      picvocab_0~tau_P*1
                      picvocab_2~tau_P*1
                      picvocab_4~tau_P*1
                      picvocab_6~tau_P*1
                      reading_0~tau_V*1
                      reading_2~tau_V*1
                      reading_4~tau_V*1
                      reading_6~tau_V*1

              #latent basis model
                      g_i =~    1*g_etaB + 1*g_eta2 + 1*g_eta4 + 1*g_eta6
                      g_s =~    0*g_etaB + 1*g_eta2 + 2*g_eta4 + 3*g_eta6

                      g_i~~NA*g_i
                      g_s~~NA*g_s

                      g_i~~g_s

                      g_i~1
                      g_s~1

                      g_etaB~0*1
                      g_eta2~0*1
                      g_eta4~0*1
                      g_eta6~0*1

               # second-order puberty factor
               #factor loadings
               pu_etaB =~ 1*ph_p_pds_001_0 +
                          lambda_PR*ph_p_pds_002_0 +
                          lambda_PM*ph_p_pds_003_0

               pu_eta1 =~ 1*ph_p_pds_001_1 +
                          lambda_PR*ph_p_pds_002_1 +
                          lambda_PM*ph_p_pds_003_1

               pu_eta2 =~ 1*ph_p_pds_001_2 +
                          lambda_PR*ph_p_pds_002_2 +
                          lambda_PM*ph_p_pds_003_2

               pu_eta3 =~ 1*ph_p_pds_001_3 +
                          lambda_PR*ph_p_pds_002_3 +
                          lambda_PM*ph_p_pds_003_3

               pu_eta4 =~ 1*ph_p_pds_001_4 +
                          lambda_PR*ph_p_pds_002_4 +
                          lambda_PM*ph_p_pds_003_4

               pu_eta5 =~ 1*ph_p_pds_001_5 +
                          lambda_PR*ph_p_pds_002_5 +
                          lambda_PM*ph_p_pds_003_5

               pu_eta6 =~ 1*ph_p_pds_001_6 +
                          lambda_PR*ph_p_pds_002_6 +
                          lambda_PM*ph_p_pds_003_6

              #latent variable variances
                      pu_etaB~~NA*pu_etaB
                      pu_eta1~~NA*pu_eta1
                      pu_eta2~~NA*pu_eta2
                      pu_eta3~~NA*pu_eta3
                      pu_eta4~~NA*pu_eta4
                      pu_eta5~~NA*pu_eta5
                      pu_eta6~~NA*pu_eta6

              #unique variances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_0
                      ph_p_pds_002_0 ~~ ph_p_pds_002_0
                      ph_p_pds_003_0 ~~ ph_p_pds_003_0

                      ph_p_pds_001_1 ~~ ph_p_pds_001_1
                      ph_p_pds_002_1 ~~ ph_p_pds_002_1
                      ph_p_pds_003_1 ~~ ph_p_pds_003_1

                      ph_p_pds_001_2 ~~ ph_p_pds_001_2
                      ph_p_pds_002_2 ~~ ph_p_pds_002_2
                      ph_p_pds_003_2 ~~ ph_p_pds_003_2

                      ph_p_pds_001_3 ~~ ph_p_pds_001_3
                      ph_p_pds_002_3 ~~ ph_p_pds_002_3
                      ph_p_pds_003_3 ~~ ph_p_pds_003_3

                      ph_p_pds_001_4 ~~ ph_p_pds_001_4
                      ph_p_pds_002_4 ~~ ph_p_pds_002_4
                      ph_p_pds_003_4 ~~ ph_p_pds_003_4

                      ph_p_pds_001_5 ~~ ph_p_pds_001_5
                      ph_p_pds_002_5 ~~ ph_p_pds_002_5
                      ph_p_pds_003_5 ~~ ph_p_pds_003_5

                      ph_p_pds_001_6 ~~ ph_p_pds_001_6
                      ph_p_pds_002_6 ~~ ph_p_pds_002_6
                      ph_p_pds_003_6 ~~ ph_p_pds_003_6

              #unique covariances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_1 + ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_1 ~~ ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_2 ~~ ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_3 ~~ ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_4 ~~ ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_5 ~~ ph_p_pds_001_6

                      ph_p_pds_002_0 ~~ ph_p_pds_002_1 + ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_1 ~~ ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_2 ~~ ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_3 ~~ ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_4 ~~ ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_5 ~~ ph_p_pds_002_6

                      ph_p_pds_003_0 ~~ ph_p_pds_003_1 + ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_1 ~~ ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_2 ~~ ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_3 ~~ ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_4 ~~ ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_5 ~~ ph_p_pds_003_6

              #observed variable intercepts
                      ph_p_pds_001_0 ~ tau_PS*1
                      ph_p_pds_001_1 ~ tau_PS*1
                      ph_p_pds_001_2 ~ tau_PS*1
                      ph_p_pds_001_3 ~ tau_PS*1
                      ph_p_pds_001_4 ~ tau_PS*1
                      ph_p_pds_001_5 ~ tau_PS*1
                      ph_p_pds_001_6 ~ tau_PS*1

                      ph_p_pds_002_0 ~ tau_PR*1
                      ph_p_pds_002_1 ~ tau_PR*1
                      ph_p_pds_002_2 ~ tau_PR*1
                      ph_p_pds_002_3 ~ tau_PR*1
                      ph_p_pds_002_4 ~ tau_PR*1
                      ph_p_pds_002_5 ~ tau_PR*1
                      ph_p_pds_002_6 ~ tau_PR*1

                      ph_p_pds_003_0 ~ tau_PM*1
                      ph_p_pds_003_1 ~ tau_PM*1
                      ph_p_pds_003_2 ~ tau_PM*1
                      ph_p_pds_003_3 ~ tau_PM*1
                      ph_p_pds_003_4 ~ tau_PM*1
                      ph_p_pds_003_5 ~ tau_PM*1
                      ph_p_pds_003_6 ~ tau_PM*1

              #latent basis model
                      pu_i =~ 1*pu_etaB + 1*pu_eta1 + 1*pu_eta2 + 1*pu_eta3 + 1*pu_eta4 + 1*pu_eta5 + 1*pu_eta6
                      pu_s =~ 0*pu_etaB + 0.5*pu_eta1 + 1*pu_eta2 + 1.5*pu_eta3 + 2*pu_eta4 + 2.5*pu_eta5 + 3*pu_eta6
                      pu_q =~ 0*pu_etaB + 0.25*pu_eta1 + 1*pu_eta2 + 2.25*pu_eta3 + 4*pu_eta4 + 6.25*pu_eta5 + 9*pu_eta6

                      pu_i~~NA*pu_i
                      pu_s~~NA*pu_s
                      pu_q~~NA*pu_q

                      pu_i~~pu_s + pu_q
                      pu_s~~pu_q

                      pu_i~1
                      pu_s~1
                      pu_q~1

                      pu_etaB~0*1
                      pu_eta1~0*1
                      pu_eta2~0*1
                      pu_eta3~0*1
                      pu_eta4~0*1
                      pu_eta5~0*1
                      pu_eta6~0*1

                      # regression
                      p_i ~ g_i + a_i + pu_i
                      p_s ~ g_i + g_s + a_i + a_s + pu_i + pu_s + pu_q
                      p_q ~ g_i + g_s + a_i + a_s + pu_i + pu_s + pu_q"
lavaan(pga_pu6.model,
  data = readRDS("pga6_all_data.rds"),
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = FALSE,
  std.lv = T
) %>%
  saveRDS("pgcm_pga_pu6_model.rds")
readRDS("pgcm_pga_pu6_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pgcm_pga_pu6_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pgcm_pga_pu6_model.rds"), "cor.lv"))$value
 [1] 7.941735165 5.873544221 4.663710903 3.215162067 2.266416009 1.362389311
 [7] 0.991042169 0.957796667 0.723862640 0.374227586 0.228308782 0.226163162
[13] 0.221604464 0.217274941 0.212459693 0.200529705 0.189508016 0.186246649
[19] 0.158770791 0.156845682 0.137563251 0.119248706 0.096888619 0.079368548
[25] 0.059030451 0.052818067 0.039487905 0.022274074 0.016405781 0.006576099
[31] 0.002739878
readRDS("pgcm_pga_pu6_result.rds")
lavaan 0.6-19 ended normally after 392 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       959
  Number of equality constraints                   177

                                                  Used       Total
  Number of observations                         11866       11867
  Number of missing patterns                      2197            

Model Test User Model:
                                                       
  Test statistic                              50082.093
  Degrees of freedom                               6720
  P-value (Chi-square)                            0.000

Model Test Baseline Model:

  Test statistic                            896904.633
  Degrees of freedom                              7260
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.951
  Tucker-Lewis Index (TLI)                       0.947
                                                      
  Robust Comparative Fit Index (CFI)             0.950
  Robust Tucker-Lewis Index (TLI)                0.946

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)           -1155765.244
  Loglikelihood unrestricted model (H1)   -1130724.197
                                                      
  Akaike (AIC)                             2313094.488
  Bayesian (BIC)                           2318866.768
  Sample-size adjusted Bayesian (SABIC)    2316381.662

Root Mean Square Error of Approximation:

  RMSEA                                          0.023
  90 Percent confidence interval - lower         0.023
  90 Percent confidence interval - upper         0.024
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.027
  90 Percent confidence interval - lower         0.027
  90 Percent confidence interval - upper         0.027
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.054

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.842    0.833
    asr___0 (l_AW)    0.891    0.007  126.533    0.000    0.750    0.733
    asr___0 (l_AS)    0.799    0.007  112.096    0.000    0.673    0.672
    asr___0 (l_AC)    0.930    0.007  125.429    0.000    0.783    0.752
    asr___0 (l_AH)    0.907    0.007  131.142    0.000    0.764    0.767
    asr___0 (l_AA)    0.779    0.008   98.164    0.000    0.656    0.628
    asr___0 (l_AR)    0.921    0.007  125.134    0.000    0.776    0.757
    asr___0 (l_AG)    0.489    0.008   59.992    0.000    0.412    0.399
  a_eta2 =~                                                             
    asr___2           1.000                               0.832    0.819
    asr___2 (l_AW)    0.891    0.007  126.533    0.000    0.741    0.730
    asr___2 (l_AS)    0.799    0.007  112.096    0.000    0.665    0.664
    asr___2 (l_AC)    0.930    0.007  125.429    0.000    0.773    0.770
    asr___2 (l_AH)    0.907    0.007  131.142    0.000    0.755    0.773
    asr___2 (l_AA)    0.779    0.008   98.164    0.000    0.648    0.640
    asr___2 (l_AR)    0.921    0.007  125.134    0.000    0.766    0.758
    asr___2 (l_AG)    0.489    0.008   59.992    0.000    0.407    0.409
  a_eta4 =~                                                             
    asr___4           1.000                               0.800    0.803
    asr___4 (l_AW)    0.891    0.007  126.533    0.000    0.713    0.724
    asr___4 (l_AS)    0.799    0.007  112.096    0.000    0.640    0.652
    asr___4 (l_AC)    0.930    0.007  125.429    0.000    0.744    0.768
    asr___4 (l_AH)    0.907    0.007  131.142    0.000    0.726    0.746
    asr___4 (l_AA)    0.779    0.008   98.164    0.000    0.623    0.640
    asr___4 (l_AR)    0.921    0.007  125.134    0.000    0.737    0.752
    asr___4 (l_AG)    0.489    0.008   59.992    0.000    0.391    0.400
  a_i =~                                                                
    a_etaB            1.000                               0.926    0.926
    a_eta2            1.000                               0.937    0.937
    a_eta4            1.000                               0.974    0.974
  a_s =~                                                                
    a_etaB            0.000                               0.000    0.000
    a_eta2            1.000                               0.302    0.302
    a_eta4            2.000                               0.627    0.627
  p_etaB =~                                                             
    anxd__0           1.000                               0.741    0.720
    wthd__0 (l_CW)    0.864    0.006  141.011    0.000    0.640    0.709
    sm_cm_0 (l_CS)    0.739    0.007  110.883    0.000    0.548    0.550
    scpr__0 (l_CC)    1.119    0.007  153.873    0.000    0.829    0.788
    thpr__0 (l_CH)    1.104    0.007  152.374    0.000    0.818    0.788
    attp__0 (l_CA)    0.995    0.007  142.719    0.000    0.737    0.737
    rlbr__0 (l_CR)    0.858    0.007  120.353    0.000    0.635    0.676
    aggr__0 (l_CG)    1.066    0.007  147.072    0.000    0.790    0.755
  p_eta1 =~                                                             
    anxd__1           1.000                               0.736    0.712
    wthd__1 (l_CW)    0.864    0.006  141.011    0.000    0.635    0.695
    sm_cm_1 (l_CS)    0.739    0.007  110.883    0.000    0.544    0.545
    scpr__1 (l_CC)    1.119    0.007  153.873    0.000    0.823    0.797
    thpr__1 (l_CH)    1.104    0.007  152.374    0.000    0.812    0.782
    attp__1 (l_CA)    0.995    0.007  142.719    0.000    0.732    0.738
    rlbr__1 (l_CR)    0.858    0.007  120.353    0.000    0.631    0.673
    aggr__1 (l_CG)    1.066    0.007  147.072    0.000    0.784    0.763
  p_eta2 =~                                                             
    anxd__2           1.000                               0.728    0.717
    wthd__2 (l_CW)    0.864    0.006  141.011    0.000    0.628    0.654
    sm_cm_2 (l_CS)    0.739    0.007  110.883    0.000    0.538    0.558
    scpr__2 (l_CC)    1.119    0.007  153.873    0.000    0.814    0.809
    thpr__2 (l_CH)    1.104    0.007  152.374    0.000    0.803    0.797
    attp__2 (l_CA)    0.995    0.007  142.719    0.000    0.724    0.744
    rlbr__2 (l_CR)    0.858    0.007  120.353    0.000    0.624    0.662
    aggr__2 (l_CG)    1.066    0.007  147.072    0.000    0.776    0.767
  p_eta3 =~                                                             
    anxd__3           1.000                               0.720    0.705
    wthd__3 (l_CW)    0.864    0.006  141.011    0.000    0.622    0.603
    sm_cm_3 (l_CS)    0.739    0.007  110.883    0.000    0.532    0.553
    scpr__3 (l_CC)    1.119    0.007  153.873    0.000    0.806    0.819
    thpr__3 (l_CH)    1.104    0.007  152.374    0.000    0.796    0.804
    attp__3 (l_CA)    0.995    0.007  142.719    0.000    0.717    0.743
    rlbr__3 (l_CR)    0.858    0.007  120.353    0.000    0.618    0.648
    aggr__3 (l_CG)    1.066    0.007  147.072    0.000    0.768    0.768
  p_eta4 =~                                                             
    anxd__4           1.000                               0.708    0.709
    wthd__4 (l_CW)    0.864    0.006  141.011    0.000    0.612    0.561
    sm_cm_4 (l_CS)    0.739    0.007  110.883    0.000    0.524    0.522
    scpr__4 (l_CC)    1.119    0.007  153.873    0.000    0.793    0.821
    thpr__4 (l_CH)    1.104    0.007  152.374    0.000    0.782    0.808
    attp__4 (l_CA)    0.995    0.007  142.719    0.000    0.705    0.752
    rlbr__4 (l_CR)    0.858    0.007  120.353    0.000    0.608    0.586
    aggr__4 (l_CG)    1.066    0.007  147.072    0.000    0.755    0.786
  p_eta5 =~                                                             
    anxd__5           1.000                               0.706    0.699
    wthd__5 (l_CW)    0.864    0.006  141.011    0.000    0.610    0.541
    sm_cm_5 (l_CS)    0.739    0.007  110.883    0.000    0.522    0.488
    scpr__5 (l_CC)    1.119    0.007  153.873    0.000    0.790    0.822
    thpr__5 (l_CH)    1.104    0.007  152.374    0.000    0.780    0.786
    attp__5 (l_CA)    0.995    0.007  142.719    0.000    0.702    0.744
    rlbr__5 (l_CR)    0.858    0.007  120.353    0.000    0.606    0.524
    aggr__5 (l_CG)    1.066    0.007  147.072    0.000    0.753    0.784
  p_eta6 =~                                                             
    anxd__6           1.000                               0.671    0.699
    wthd__6 (l_CW)    0.864    0.006  141.011    0.000    0.580    0.536
    sm_cm_6 (l_CS)    0.739    0.007  110.883    0.000    0.496    0.465
    scpr__6 (l_CC)    1.119    0.007  153.873    0.000    0.751    0.829
    thpr__6 (l_CH)    1.104    0.007  152.374    0.000    0.741    0.805
    attp__6 (l_CA)    0.995    0.007  142.719    0.000    0.668    0.738
    rlbr__6 (l_CR)    0.858    0.007  120.353    0.000    0.576    0.496
    aggr__6 (l_CG)    1.066    0.007  147.072    0.000    0.716    0.796
  p_i =~                                                                
    p_etaB            1.000                               0.925    0.925
    p_eta1            1.000                               0.932    0.932
    p_eta2            1.000                               0.942    0.942
    p_eta3            1.000                               0.951    0.951
    p_eta4            1.000                               0.967    0.967
    p_eta5            1.000                               0.970    0.970
    p_eta6            1.000                               1.021    1.021
  p_s =~                                                                
    p_etaB            0.000                               0.000    0.000
    p_eta1            0.500                               0.290    0.290
    p_eta2            1.000                               0.586    0.586
    p_eta3            1.500                               0.887    0.887
    p_eta4            2.000                               1.203    1.203
    p_eta5            2.500                               1.509    1.509
    p_eta6            3.000                               1.905    1.905
  p_q =~                                                                
    p_etaB            0.000                               0.000    0.000
    p_eta1            0.250                               0.042    0.042
    p_eta2            1.000                               0.169    0.169
    p_eta3            2.250                               0.384    0.384
    p_eta4            4.000                               0.694    0.694
    p_eta5            6.250                               1.089    1.089
    p_eta6            9.000                               1.649    1.649
  g_etaB =~                                                             
    flnkr_0           1.000                               0.404    0.439
    pttrn_0 (lm_R)    1.217    0.011  112.943    0.000    0.491    0.645
    pictr_0 (lm_M)    0.599    0.009   64.822    0.000    0.242    0.287
    pcvcb_0 (lm_P)    0.928    0.009  107.804    0.000    0.375    0.447
    redng_0 (lm_V)    0.981    0.009  111.532    0.000    0.396    0.463
  g_eta2 =~                                                             
    flnkr_2           1.000                               0.413    0.518
    pttrn_2 (lm_R)    1.217    0.011  112.943    0.000    0.502    0.652
    pictr_2 (lm_M)    0.599    0.009   64.822    0.000    0.247    0.277
    pcvcb_2 (lm_P)    0.928    0.009  107.804    0.000    0.383    0.438
    redng_2 (lm_V)    0.981    0.009  111.532    0.000    0.405    0.480
  g_eta4 =~                                                             
    flnkr_4           1.000                               0.443    0.558
    pttrn_4 (lm_R)    1.217    0.011  112.943    0.000    0.539    0.655
    pictr_4 (lm_M)    0.599    0.009   64.822    0.000    0.265    0.250
    pcvcb_4 (lm_P)    0.928    0.009  107.804    0.000    0.411    0.444
    redng_4 (lm_V)    0.981    0.009  111.532    0.000    0.434    0.470
  g_eta6 =~                                                             
    flnkr_6           1.000                               0.496    0.609
    pttrn_6 (lm_R)    1.217    0.011  112.943    0.000    0.603    0.705
    pictr_6 (lm_M)    0.599    0.009   64.822    0.000    0.297    0.280
    pcvcb_6 (lm_P)    0.928    0.009  107.804    0.000    0.460    0.492
    redng_6 (lm_V)    0.981    0.009  111.532    0.000    0.486    0.501
  g_i =~                                                                
    g_etaB            1.000                               0.963    0.963
    g_eta2            1.000                               0.942    0.942
    g_eta4            1.000                               0.878    0.878
    g_eta6            1.000                               0.784    0.784
  g_s =~                                                                
    g_etaB            0.000                               0.000    0.000
    g_eta2            1.000                               0.127    0.127
    g_eta4            2.000                               0.236    0.236
    g_eta6            3.000                               0.317    0.317
  pu_etaB =~                                                            
    p___001           1.000                               0.439    0.394
    p___002 (l_PR)    1.334    0.010  140.258    0.000    0.586    0.724
    p___003 (l_PM)    1.262    0.009  134.956    0.000    0.555    0.699
  pu_eta1 =~                                                            
    p___001           1.000                               0.482    0.470
    p___002 (l_PR)    1.334    0.010  140.258    0.000    0.643    0.748
    p___003 (l_PM)    1.262    0.009  134.956    0.000    0.608    0.691
  pu_eta2 =~                                                            
    p___001           1.000                               0.494    0.533
    p___002 (l_PR)    1.334    0.010  140.258    0.000    0.660    0.774
    p___003 (l_PM)    1.262    0.009  134.956    0.000    0.624    0.698
  pu_eta3 =~                                                            
    p___001           1.000                               0.490    0.584
    p___002 (l_PR)    1.334    0.010  140.258    0.000    0.654    0.816
    p___003 (l_PM)    1.262    0.009  134.956    0.000    0.619    0.719
  pu_eta4 =~                                                            
    p___001           1.000                               0.458    0.610
    p___002 (l_PR)    1.334    0.010  140.258    0.000    0.611    0.848
    p___003 (l_PM)    1.262    0.009  134.956    0.000    0.578    0.734
  pu_eta5 =~                                                            
    p___001           1.000                               0.397    0.568
    p___002 (l_PR)    1.334    0.010  140.258    0.000    0.529    0.841
    p___003 (l_PM)    1.262    0.009  134.956    0.000    0.500    0.709
  pu_eta6 =~                                                            
    p___001           1.000                               0.346    0.512
    p___002 (l_PR)    1.334    0.010  140.258    0.000    0.462    0.825
    p___003 (l_PM)    1.262    0.009  134.956    0.000    0.437    0.671
  pu_i =~                                                               
    pu_etaB           1.000                               0.977    0.977
    pu_eta1           1.000                               0.891    0.891
    pu_eta2           1.000                               0.868    0.868
    pu_eta3           1.000                               0.875    0.875
    pu_eta4           1.000                               0.937    0.937
    pu_eta5           1.000                               1.082    1.082
    pu_eta6           1.000                               1.240    1.240
  pu_s =~                                                               
    pu_etaB           0.000                               0.000    0.000
    pu_eta1           0.500                               0.414    0.414
    pu_eta2           1.000                               0.806    0.806
    pu_eta3           1.500                               1.219    1.219
    pu_eta4           2.000                               1.740    1.740
    pu_eta5           2.500                               2.512    2.512
    pu_eta6           3.000                               3.452    3.452
  pu_q =~                                                               
    pu_etaB           0.000                               0.000    0.000
    pu_eta1           0.250                               0.062    0.062
    pu_eta2           1.000                               0.241    0.241
    pu_eta3           2.250                               0.548    0.548
    pu_eta4           4.000                               1.042    1.042
    pu_eta5           6.250                               1.881    1.881
    pu_eta6           9.000                               3.102    3.102

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_i ~                                                                 
    g_i              -0.272    0.019  -14.226    0.000   -0.154   -0.154
    a_i               0.610    0.010   59.245    0.000    0.694    0.694
    pu_i             -0.022    0.017   -1.358    0.175   -0.014   -0.014
  p_s ~                                                                 
    g_i               0.094    0.028    3.323    0.001    0.086    0.086
    g_s              -0.878    0.437   -2.012    0.044   -0.108   -0.108
    a_i               0.014    0.012    1.171    0.241    0.025    0.025
    a_s               1.287    0.065   19.846    0.000    0.758    0.758
    pu_i             -0.016    0.031   -0.530    0.596   -0.016   -0.016
    pu_s             -0.008    0.086   -0.088    0.930   -0.007   -0.007
    pu_q             -0.041    0.310   -0.133    0.894   -0.012   -0.012
  p_q ~                                                                 
    g_i              -0.020    0.009   -2.156    0.031   -0.064   -0.064
    g_s               0.248    0.145    1.709    0.087    0.106    0.106
    a_i              -0.018    0.004   -4.896    0.000   -0.112   -0.112
    a_s              -0.317    0.019  -16.860    0.000   -0.647   -0.647
    pu_i              0.027    0.010    2.583    0.010    0.093    0.093
    pu_s              0.071    0.029    2.461    0.014    0.231    0.231
    pu_q              0.219    0.105    2.094    0.036    0.212    0.212

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.181    0.005   36.999    0.000    0.181    0.557
   .asr_nxdp_cmp_4           0.165    0.005   32.661    0.000    0.165    0.497
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.201    0.005   37.288    0.000    0.201    0.582
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.228    0.006   37.173    0.000    0.228    0.471
   .asr_wthdp_cm_4           0.207    0.006   33.247    0.000    0.207    0.437
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.225    0.006   35.573    0.000    0.225    0.478
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.275    0.007   40.924    0.000    0.275    0.495
   .asr_soma_cmp_4           0.239    0.007   35.085    0.000    0.239    0.433
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.282    0.007   39.219    0.000    0.282    0.506
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.192    0.005   35.455    0.000    0.192    0.437
   .asr_thprb_cm_4           0.160    0.005   29.454    0.000    0.160    0.377
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.168    0.005   31.880    0.000    0.168    0.422
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.254    0.005   48.599    0.000    0.254    0.644
   .asr_ttprb_cm_4           0.248    0.006   44.917    0.000    0.248    0.599
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.267    0.006   47.613    0.000    0.267    0.666
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.305    0.007   41.519    0.000    0.305    0.483
   .asr_rlbrk_cm_4           0.261    0.007   35.958    0.000    0.261    0.429
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.283    0.007   38.848    0.000    0.283    0.487
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.243    0.006   43.311    0.000    0.243    0.551
   .asr_ggrss_cm_4           0.220    0.006   39.257    0.000    0.220    0.508
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.248    0.006   42.704    0.000    0.248    0.582
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.495    0.010   51.817    0.000    0.495    0.576
   .asr_intr_cmp_4           0.464    0.010   47.894    0.000    0.464    0.546
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.473    0.010   49.569    0.000    0.473    0.582
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.019    0.005    3.875    0.000    0.019    0.049
   .asr_soma_cmp_0           0.026    0.005    5.106    0.000    0.026    0.063
   .asr_wthdp_cm_2           0.019    0.005    3.936    0.000    0.019    0.049
   .asr_soma_cmp_2           0.032    0.005    6.186    0.000    0.032    0.076
   .asr_wthdp_cm_4           0.017    0.005    3.429    0.001    0.017    0.045
   .asr_soma_cmp_4           0.030    0.005    5.663    0.000    0.030    0.073
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2           0.009    0.005    1.826    0.068    0.009    0.022
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.025    0.005    4.802    0.000    0.025    0.057
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.035    0.005    6.786    0.000    0.035    0.088
   .asr_soma_cmp_2           0.045    0.005    8.203    0.000    0.045    0.103
   .asr_wthdp_cm_4           0.022    0.005    4.279    0.000    0.022    0.056
   .asr_soma_cmp_4           0.027    0.006    4.834    0.000    0.027    0.061
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4           0.001    0.005    0.174    0.862    0.001    0.002
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.024    0.005    4.316    0.000    0.024    0.053
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.016    0.005    3.100    0.002    0.016    0.040
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.042    0.006    7.410    0.000    0.042    0.094
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.041    0.006    7.411    0.000    0.041    0.101
   .asr_soma_cmp_4           0.057    0.006    9.733    0.000    0.057    0.130
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.033    0.006   -5.720    0.000   -0.033   -0.063
   .asr_soma_cmp_2          -0.020    0.006   -3.519    0.000   -0.020   -0.039
   .asr_soma_cmp_4          -0.035    0.006   -5.701    0.000   -0.035   -0.067
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.014    0.006   -2.493    0.013   -0.014   -0.028
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.016    0.006   -2.723    0.006   -0.016   -0.031
   .asr_soma_cmp_4          -0.023    0.006   -3.680    0.000   -0.023   -0.044
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.017    0.006   -2.820    0.005   -0.017   -0.033
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.021    0.006   -3.464    0.001   -0.021   -0.042
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.022    0.006   -3.586    0.000   -0.022   -0.044
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.131    0.007   19.507    0.000    0.131    0.207
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.073    0.006   12.314    0.000    0.073    0.134
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.084    0.006   13.036    0.000    0.084    0.139
   .asr_rlbrk_cm_2           0.024    0.006    4.288    0.000    0.024    0.047
   .asr_intr_cmp_4           0.093    0.007   13.898    0.000    0.093    0.154
   .asr_rlbrk_cm_4           0.032    0.006    5.462    0.000    0.032    0.063
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.092    0.007   13.973    0.000    0.092    0.148
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.050    0.006    8.537    0.000    0.050    0.094
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.136    0.007   20.634    0.000    0.136    0.227
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.045    0.006    7.821    0.000    0.045    0.088
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.107    0.007   15.857    0.000    0.107    0.180
   .asr_rlbrk_cm_4           0.042    0.006    7.268    0.000    0.042    0.086
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.095    0.007   13.976    0.000    0.095    0.155
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.056    0.006    9.303    0.000    0.056    0.107
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.102    0.007   15.316    0.000    0.102    0.174
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.047    0.006    7.877    0.000    0.047    0.093
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.136    0.007   20.035    0.000    0.136    0.235
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.064    0.006   10.868    0.000    0.064    0.132
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.119    0.008   15.468    0.000    0.119    0.155
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.067    0.007    8.993    0.000    0.067    0.091
   .asr_rlbrk_cm_4           0.072    0.008    9.441    0.000    0.072    0.101
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.072    0.008    9.527    0.000    0.072    0.097
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.111    0.007   15.161    0.000    0.111    0.158
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.070    0.007    9.513    0.000    0.070    0.104
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.086    0.008   10.986    0.000    0.086    0.117
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.078    0.008   10.257    0.000    0.078    0.112
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.109    0.008   14.566    0.000    0.109    0.163
  a_i ~~                                                                       
    a_s                     -0.080    0.004  -18.300    0.000   -0.410   -0.410
 .anxdep_comp_0 ~~                                                             
   .anxdep_comp_1            0.313    0.006   48.536    0.000    0.313    0.604
   .anxdep_comp_2            0.275    0.006   44.612    0.000    0.275    0.545
   .anxdep_comp_3            0.249    0.006   39.826    0.000    0.249    0.481
   .anxdep_comp_4            0.222    0.006   36.360    0.000    0.222    0.442
   .anxdep_comp_5            0.202    0.006   31.687    0.000    0.202    0.393
   .anxdep_comp_6            0.181    0.007   25.111    0.000    0.181    0.370
 .anxdep_comp_1 ~~                                                             
   .anxdep_comp_2            0.304    0.006   47.285    0.000    0.304    0.594
   .anxdep_comp_3            0.272    0.006   42.011    0.000    0.272    0.517
   .anxdep_comp_4            0.233    0.006   37.021    0.000    0.233    0.455
   .anxdep_comp_5            0.226    0.007   34.203    0.000    0.226    0.431
   .anxdep_comp_6            0.197    0.007   26.422    0.000    0.197    0.395
 .anxdep_comp_2 ~~                                                             
   .anxdep_comp_3            0.316    0.007   48.050    0.000    0.316    0.617
   .anxdep_comp_4            0.269    0.006   42.721    0.000    0.269    0.542
   .anxdep_comp_5            0.251    0.007   38.454    0.000    0.251    0.491
   .anxdep_comp_6            0.220    0.007   30.409    0.000    0.220    0.454
 .anxdep_comp_3 ~~                                                             
   .anxdep_comp_4            0.305    0.007   45.652    0.000    0.305    0.598
   .anxdep_comp_5            0.286    0.007   41.325    0.000    0.286    0.547
   .anxdep_comp_6            0.245    0.007   32.971    0.000    0.245    0.491
 .anxdep_comp_4 ~~                                                             
   .anxdep_comp_5            0.333    0.007   46.874    0.000    0.333    0.656
   .anxdep_comp_6            0.271    0.008   36.045    0.000    0.271    0.560
 .anxdep_comp_5 ~~                                                             
   .anxdep_comp_6            0.309    0.008   38.900    0.000    0.309    0.623
 .withdep_comp_0 ~~                                                            
   .withdep_comp_1           0.234    0.005   44.816    0.000    0.234    0.560
   .withdep_comp_2           0.197    0.005   36.650    0.000    0.197    0.425
   .withdep_comp_3           0.161    0.006   27.245    0.000    0.161    0.307
   .withdep_comp_4           0.125    0.007   19.102    0.000    0.125    0.218
   .withdep_comp_5           0.105    0.007   14.660    0.000    0.105    0.173
   .withdep_comp_6           0.083    0.008   10.105    0.000    0.083    0.143
 .withdep_comp_1 ~~                                                            
   .withdep_comp_2           0.256    0.006   44.503    0.000    0.256    0.535
   .withdep_comp_3           0.234    0.006   37.022    0.000    0.234    0.433
   .withdep_comp_4           0.199    0.007   28.679    0.000    0.199    0.335
   .withdep_comp_5           0.180    0.008   23.978    0.000    0.180    0.289
   .withdep_comp_6           0.145    0.008   17.152    0.000    0.145    0.242
 .withdep_comp_2 ~~                                                            
   .withdep_comp_3           0.336    0.007   45.571    0.000    0.336    0.560
   .withdep_comp_4           0.309    0.008   38.476    0.000    0.309    0.470
   .withdep_comp_5           0.286    0.009   33.119    0.000    0.286    0.414
   .withdep_comp_6           0.240    0.010   24.378    0.000    0.240    0.361
 .withdep_comp_3 ~~                                                            
   .withdep_comp_4           0.440    0.010   45.779    0.000    0.440    0.591
   .withdep_comp_5           0.425    0.010   41.524    0.000    0.425    0.544
   .withdep_comp_6           0.355    0.011   31.881    0.000    0.355    0.472
 .withdep_comp_4 ~~                                                            
   .withdep_comp_5           0.560    0.012   47.263    0.000    0.560    0.653
   .withdep_comp_6           0.474    0.013   37.641    0.000    0.474    0.575
 .withdep_comp_5 ~~                                                            
   .withdep_comp_6           0.570    0.014   41.327    0.000    0.570    0.658
 .soma_comp_0 ~~                                                               
   .soma_comp_1              0.354    0.008   45.808    0.000    0.354    0.509
   .soma_comp_2              0.299    0.007   40.704    0.000    0.299    0.450
   .soma_comp_3              0.265    0.007   36.074    0.000    0.265    0.398
   .soma_comp_4              0.252    0.008   31.879    0.000    0.252    0.355
   .soma_comp_5              0.248    0.009   27.826    0.000    0.248    0.320
   .soma_comp_6              0.244    0.011   22.743    0.000    0.244    0.311
 .soma_comp_1 ~~                                                               
   .soma_comp_2              0.334    0.008   44.196    0.000    0.334    0.500
   .soma_comp_3              0.291    0.008   38.568    0.000    0.291    0.434
   .soma_comp_4              0.276    0.008   34.328    0.000    0.276    0.387
   .soma_comp_5              0.280    0.009   30.757    0.000    0.280    0.358
   .soma_comp_6              0.256    0.011   23.483    0.000    0.256    0.324
 .soma_comp_2 ~~                                                               
   .soma_comp_3              0.324    0.007   43.597    0.000    0.324    0.504
   .soma_comp_4              0.303    0.008   38.288    0.000    0.303    0.443
   .soma_comp_5              0.297    0.009   33.845    0.000    0.297    0.397
   .soma_comp_6              0.273    0.010   26.446    0.000    0.273    0.361
 .soma_comp_3 ~~                                                               
   .soma_comp_4              0.339    0.008   41.254    0.000    0.339    0.494
   .soma_comp_5              0.327    0.009   35.978    0.000    0.327    0.436
   .soma_comp_6              0.313    0.011   29.637    0.000    0.313    0.412
 .soma_comp_4 ~~                                                               
   .soma_comp_5              0.442    0.010   43.329    0.000    0.442    0.553
   .soma_comp_6              0.412    0.012   34.580    0.000    0.412    0.510
 .soma_comp_5 ~~                                                               
   .soma_comp_6              0.524    0.013   39.167    0.000    0.524    0.593
 .socprob_comp_0 ~~                                                            
   .socprob_comp_1           0.195    0.005   36.452    0.000    0.195    0.482
   .socprob_comp_2           0.159    0.005   31.943    0.000    0.159    0.417
   .socprob_comp_3           0.125    0.005   26.272    0.000    0.125    0.343
   .socprob_comp_4           0.102    0.005   21.677    0.000    0.102    0.285
   .socprob_comp_5           0.091    0.005   18.936    0.000    0.091    0.256
   .socprob_comp_6           0.075    0.005   13.935    0.000    0.075    0.229
 .socprob_comp_1 ~~                                                            
   .socprob_comp_2           0.176    0.005   35.471    0.000    0.176    0.479
   .socprob_comp_3           0.141    0.005   29.683    0.000    0.141    0.399
   .socprob_comp_4           0.112    0.005   24.231    0.000    0.112    0.326
   .socprob_comp_5           0.098    0.005   20.769    0.000    0.098    0.286
   .socprob_comp_6           0.090    0.005   17.166    0.000    0.090    0.287
 .socprob_comp_2 ~~                                                            
   .socprob_comp_3           0.159    0.005   34.009    0.000    0.159    0.477
   .socprob_comp_4           0.136    0.005   29.878    0.000    0.136    0.417
   .socprob_comp_5           0.114    0.005   24.809    0.000    0.114    0.354
   .socprob_comp_6           0.103    0.005   20.558    0.000    0.103    0.345
 .socprob_comp_3 ~~                                                            
   .socprob_comp_4           0.145    0.005   31.961    0.000    0.145    0.463
   .socprob_comp_5           0.130    0.005   28.150    0.000    0.130    0.421
   .socprob_comp_6           0.113    0.005   22.608    0.000    0.113    0.393
 .socprob_comp_4 ~~                                                            
   .socprob_comp_5           0.156    0.005   33.102    0.000    0.156    0.517
   .socprob_comp_6           0.134    0.005   26.129    0.000    0.134    0.478
 .socprob_comp_5 ~~                                                            
   .socprob_comp_6           0.152    0.005   28.746    0.000    0.152    0.550
 .thouprob_comp_0 ~~                                                           
   .thouprob_cmp_1           0.200    0.005   37.826    0.000    0.200    0.483
   .thouprob_cmp_2           0.160    0.005   32.389    0.000    0.160    0.411
   .thouprob_cmp_3           0.135    0.005   28.096    0.000    0.135    0.359
   .thouprob_cmp_4           0.118    0.005   24.671    0.000    0.118    0.323
   .thouprob_cmp_5           0.114    0.005   21.926    0.000    0.114    0.290
   .thouprob_cmp_6           0.085    0.006   14.729    0.000    0.085    0.243
 .thouprob_comp_1 ~~                                                           
   .thouprob_cmp_2           0.189    0.005   36.634    0.000    0.189    0.480
   .thouprob_cmp_3           0.156    0.005   31.085    0.000    0.156    0.408
   .thouprob_cmp_4           0.135    0.005   27.400    0.000    0.135    0.365
   .thouprob_cmp_5           0.142    0.005   26.593    0.000    0.142    0.357
   .thouprob_cmp_6           0.102    0.006   17.629    0.000    0.102    0.289
 .thouprob_comp_2 ~~                                                           
   .thouprob_cmp_3           0.161    0.005   33.216    0.000    0.161    0.450
   .thouprob_cmp_4           0.134    0.005   28.418    0.000    0.134    0.386
   .thouprob_cmp_5           0.134    0.005   26.146    0.000    0.134    0.358
   .thouprob_cmp_6           0.094    0.006   16.899    0.000    0.094    0.282
 .thouprob_comp_3 ~~                                                           
   .thouprob_cmp_4           0.141    0.005   29.927    0.000    0.141    0.421
   .thouprob_cmp_5           0.133    0.005   26.130    0.000    0.133    0.369
   .thouprob_cmp_6           0.093    0.005   17.213    0.000    0.093    0.291
 .thouprob_comp_4 ~~                                                           
   .thouprob_cmp_5           0.173    0.005   33.263    0.000    0.173    0.495
   .thouprob_cmp_6           0.127    0.005   23.182    0.000    0.127    0.408
 .thouprob_comp_5 ~~                                                           
   .thouprob_cmp_6           0.168    0.006   27.744    0.000    0.168    0.502
 .attprob_comp_0 ~~                                                            
   .attprob_comp_1           0.305    0.006   51.909    0.000    0.305    0.674
   .attprob_comp_2           0.271    0.006   48.371    0.000    0.271    0.617
   .attprob_comp_3           0.250    0.006   45.261    0.000    0.250    0.573
   .attprob_comp_4           0.219    0.005   41.223    0.000    0.219    0.524
   .attprob_comp_5           0.219    0.006   39.595    0.000    0.219    0.513
   .attprob_comp_6           0.193    0.006   31.613    0.000    0.193    0.469
 .attprob_comp_1 ~~                                                            
   .attprob_comp_2           0.292    0.006   50.978    0.000    0.292    0.672
   .attprob_comp_3           0.267    0.006   47.494    0.000    0.267    0.618
   .attprob_comp_4           0.228    0.005   42.619    0.000    0.228    0.552
   .attprob_comp_5           0.230    0.006   41.494    0.000    0.230    0.544
   .attprob_comp_6           0.205    0.006   33.499    0.000    0.205    0.502
 .attprob_comp_2 ~~                                                            
   .attprob_comp_3           0.279    0.006   49.747    0.000    0.279    0.666
   .attprob_comp_4           0.240    0.005   45.127    0.000    0.240    0.597
   .attprob_comp_5           0.242    0.006   43.914    0.000    0.242    0.591
   .attprob_comp_6           0.213    0.006   35.630    0.000    0.213    0.538
 .attprob_comp_3 ~~                                                            
   .attprob_comp_4           0.259    0.005   47.445    0.000    0.259    0.649
   .attprob_comp_5           0.252    0.006   45.083    0.000    0.252    0.619
   .attprob_comp_6           0.221    0.006   36.953    0.000    0.221    0.561
 .attprob_comp_4 ~~                                                            
   .attprob_comp_5           0.267    0.006   47.494    0.000    0.267    0.684
   .attprob_comp_6           0.235    0.006   39.388    0.000    0.235    0.623
 .attprob_comp_5 ~~                                                            
   .attprob_comp_6           0.265    0.006   42.008    0.000    0.265    0.690
 .rulebreak_comp_0 ~~                                                          
   .rulebrek_cmp_1           0.293    0.006   50.111    0.000    0.293    0.610
   .rulebrek_cmp_2           0.257    0.006   44.089    0.000    0.257    0.525
   .rulebrek_cmp_3           0.240    0.006   39.755    0.000    0.240    0.477
   .rulebrek_cmp_4           0.241    0.007   34.701    0.000    0.241    0.415
   .rulebrek_cmp_5           0.268    0.008   32.504    0.000    0.268    0.394
   .rulebrek_cmp_6           0.225    0.010   23.129    0.000    0.225    0.323
 .rulebreak_comp_1 ~~                                                          
   .rulebrek_cmp_2           0.282    0.006   47.033    0.000    0.282    0.576
   .rulebrek_cmp_3           0.268    0.006   43.232    0.000    0.268    0.532
   .rulebrek_cmp_4           0.279    0.007   39.164    0.000    0.279    0.479
   .rulebrek_cmp_5           0.279    0.008   33.582    0.000    0.279    0.410
   .rulebrek_cmp_6           0.253    0.010   25.401    0.000    0.253    0.361
 .rulebreak_comp_2 ~~                                                          
   .rulebrek_cmp_3           0.306    0.007   46.538    0.000    0.306    0.596
   .rulebrek_cmp_4           0.301    0.007   40.712    0.000    0.301    0.507
   .rulebrek_cmp_5           0.338    0.009   38.793    0.000    0.338    0.487
   .rulebrek_cmp_6           0.315    0.010   30.585    0.000    0.315    0.443
 .rulebreak_comp_3 ~~                                                          
   .rulebrek_cmp_4           0.347    0.008   43.978    0.000    0.347    0.569
   .rulebrek_cmp_5           0.367    0.009   39.748    0.000    0.367    0.515
   .rulebrek_cmp_6           0.355    0.011   33.604    0.000    0.355    0.485
 .rulebreak_comp_4 ~~                                                          
   .rulebrek_cmp_5           0.534    0.011   47.482    0.000    0.534    0.646
   .rulebrek_cmp_6           0.510    0.013   39.800    0.000    0.510    0.602
 .rulebreak_comp_5 ~~                                                          
   .rulebrek_cmp_6           0.711    0.015   45.907    0.000    0.711    0.718
 .aggress_comp_0 ~~                                                            
   .aggress_comp_1           0.300    0.006   49.890    0.000    0.300    0.658
   .aggress_comp_2           0.270    0.006   46.645    0.000    0.270    0.606
   .aggress_comp_3           0.233    0.006   41.274    0.000    0.233    0.532
   .aggress_comp_4           0.205    0.005   38.602    0.000    0.205    0.502
   .aggress_comp_5           0.198    0.005   36.383    0.000    0.198    0.484
   .aggress_comp_6           0.161    0.006   27.947    0.000    0.161    0.430
 .aggress_comp_1 ~~                                                            
   .aggress_comp_2           0.278    0.006   48.277    0.000    0.278    0.644
   .aggress_comp_3           0.247    0.006   43.988    0.000    0.247    0.582
   .aggress_comp_4           0.210    0.005   40.070    0.000    0.210    0.530
   .aggress_comp_5           0.197    0.005   36.878    0.000    0.197    0.497
   .aggress_comp_6           0.162    0.006   28.446    0.000    0.162    0.447
 .aggress_comp_2 ~~                                                            
   .aggress_comp_3           0.270    0.006   47.284    0.000    0.270    0.649
   .aggress_comp_4           0.221    0.005   42.054    0.000    0.221    0.571
   .aggress_comp_5           0.215    0.005   40.059    0.000    0.215    0.553
   .aggress_comp_6           0.182    0.006   32.410    0.000    0.182    0.514
 .aggress_comp_3 ~~                                                            
   .aggress_comp_4           0.242    0.005   44.814    0.000    0.242    0.635
   .aggress_comp_5           0.224    0.005   41.211    0.000    0.224    0.587
   .aggress_comp_6           0.192    0.006   34.305    0.000    0.192    0.551
 .aggress_comp_4 ~~                                                            
   .aggress_comp_5           0.238    0.005   44.613    0.000    0.238    0.669
   .aggress_comp_6           0.198    0.005   36.347    0.000    0.198    0.610
 .aggress_comp_5 ~~                                                            
   .aggress_comp_6           0.223    0.006   38.916    0.000    0.223    0.685
 .anxdep_comp_0 ~~                                                             
   .withdep_comp_0           0.096    0.005   18.827    0.000    0.096    0.210
   .soma_comp_0              0.111    0.006   17.872    0.000    0.111    0.187
   .withdep_comp_1           0.079    0.005   15.433    0.000    0.079    0.169
   .soma_comp_1              0.076    0.006   12.117    0.000    0.076    0.127
   .withdep_comp_2           0.080    0.006   14.270    0.000    0.080    0.154
   .soma_comp_2              0.070    0.006   11.581    0.000    0.070    0.122
   .withdep_comp_3           0.093    0.007   14.235    0.000    0.093    0.158
   .soma_comp_3              0.071    0.006   11.484    0.000    0.071    0.124
   .withdep_comp_4           0.077    0.007   10.528    0.000    0.077    0.120
   .soma_comp_4              0.079    0.007   11.775    0.000    0.079    0.130
   .withdep_comp_5           0.073    0.008    9.047    0.000    0.073    0.108
   .soma_comp_5              0.059    0.008    7.719    0.000    0.059    0.089
   .withdep_comp_6           0.062    0.009    6.716    0.000    0.062    0.095
   .soma_comp_6              0.064    0.009    6.812    0.000    0.064    0.095
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_1            0.064    0.005   12.548    0.000    0.064    0.138
 .soma_comp_0 ~~                                                               
   .anxdep_comp_1            0.091    0.006   14.387    0.000    0.091    0.150
 .anxdep_comp_1 ~~                                                             
   .withdep_comp_1           0.099    0.005   18.549    0.000    0.099    0.208
   .soma_comp_1              0.105    0.006   16.185    0.000    0.105    0.172
   .withdep_comp_2           0.086    0.006   14.810    0.000    0.086    0.162
   .soma_comp_2              0.076    0.006   12.337    0.000    0.076    0.131
   .withdep_comp_3           0.107    0.007   15.987    0.000    0.107    0.178
   .soma_comp_3              0.073    0.006   11.500    0.000    0.073    0.125
   .withdep_comp_4           0.092    0.007   12.316    0.000    0.092    0.141
   .soma_comp_4              0.085    0.007   12.315    0.000    0.085    0.137
   .withdep_comp_5           0.107    0.008   13.004    0.000    0.107    0.156
   .soma_comp_5              0.082    0.008   10.442    0.000    0.082    0.121
   .withdep_comp_6           0.086    0.009    9.121    0.000    0.086    0.130
   .soma_comp_6              0.070    0.010    7.247    0.000    0.070    0.102
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_2            0.071    0.005   14.120    0.000    0.071    0.158
 .soma_comp_0 ~~                                                               
   .anxdep_comp_2            0.089    0.006   14.278    0.000    0.089    0.151
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_2            0.088    0.005   16.990    0.000    0.088    0.189
 .soma_comp_1 ~~                                                               
   .anxdep_comp_2            0.079    0.006   12.580    0.000    0.079    0.134
 .anxdep_comp_2 ~~                                                             
   .withdep_comp_2           0.139    0.006   23.826    0.000    0.139    0.270
   .soma_comp_2              0.108    0.006   17.677    0.000    0.108    0.192
   .withdep_comp_3           0.130    0.007   19.757    0.000    0.130    0.222
   .soma_comp_3              0.090    0.006   14.534    0.000    0.090    0.159
   .withdep_comp_4           0.112    0.007   15.349    0.000    0.112    0.176
   .soma_comp_4              0.101    0.007   15.068    0.000    0.101    0.168
   .withdep_comp_5           0.103    0.008   12.856    0.000    0.103    0.153
   .soma_comp_5              0.085    0.008   11.274    0.000    0.085    0.129
   .withdep_comp_6           0.081    0.009    8.882    0.000    0.081    0.125
   .soma_comp_6              0.078    0.009    8.449    0.000    0.078    0.117
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_3            0.058    0.005   11.039    0.000    0.058    0.125
 .soma_comp_0 ~~                                                               
   .anxdep_comp_3            0.095    0.006   14.749    0.000    0.095    0.158
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_3            0.074    0.005   13.929    0.000    0.074    0.156
 .soma_comp_1 ~~                                                               
   .anxdep_comp_3            0.085    0.007   13.011    0.000    0.085    0.140
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_3            0.111    0.006   18.739    0.000    0.111    0.210
 .soma_comp_2 ~~                                                               
   .anxdep_comp_3            0.094    0.006   15.014    0.000    0.094    0.163
 .anxdep_comp_3 ~~                                                             
   .withdep_comp_3           0.183    0.007   26.231    0.000    0.183    0.307
   .soma_comp_3              0.124    0.007   19.096    0.000    0.124    0.213
   .withdep_comp_4           0.143    0.008   18.768    0.000    0.143    0.219
   .soma_comp_4              0.131    0.007   18.643    0.000    0.131    0.212
   .withdep_comp_5           0.142    0.008   17.026    0.000    0.142    0.207
   .soma_comp_5              0.123    0.008   15.448    0.000    0.123    0.182
   .withdep_comp_6           0.107    0.009   11.656    0.000    0.107    0.162
   .soma_comp_6              0.130    0.009   13.780    0.000    0.130    0.190
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_4            0.039    0.005    7.560    0.000    0.039    0.087
 .soma_comp_0 ~~                                                               
   .anxdep_comp_4            0.077    0.006   12.044    0.000    0.077    0.132
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_4            0.058    0.005   10.972    0.000    0.058    0.125
 .soma_comp_1 ~~                                                               
   .anxdep_comp_4            0.074    0.006   11.407    0.000    0.074    0.125
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_4            0.086    0.006   14.804    0.000    0.086    0.169
 .soma_comp_2 ~~                                                               
   .anxdep_comp_4            0.079    0.006   12.624    0.000    0.079    0.140
 .withdep_comp_3 ~~                                                            
   .anxdep_comp_4            0.131    0.007   19.294    0.000    0.131    0.225
 .soma_comp_3 ~~                                                               
   .anxdep_comp_4            0.097    0.006   15.119    0.000    0.097    0.171
 .anxdep_comp_4 ~~                                                             
   .withdep_comp_4           0.202    0.008   25.919    0.000    0.202    0.317
   .soma_comp_4              0.149    0.007   21.274    0.000    0.149    0.247
   .withdep_comp_5           0.165    0.008   19.939    0.000    0.165    0.248
   .soma_comp_5              0.138    0.008   17.528    0.000    0.138    0.209
   .withdep_comp_6           0.129    0.009   14.031    0.000    0.129    0.201
   .soma_comp_6              0.139    0.009   14.704    0.000    0.139    0.208
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_5            0.034    0.005    6.212    0.000    0.034    0.074
 .soma_comp_0 ~~                                                               
   .anxdep_comp_5            0.068    0.007    9.976    0.000    0.068    0.114
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_5            0.057    0.006   10.205    0.000    0.057    0.120
 .soma_comp_1 ~~                                                               
   .anxdep_comp_5            0.077    0.007   11.116    0.000    0.077    0.127
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_5            0.092    0.006   14.770    0.000    0.092    0.174
 .soma_comp_2 ~~                                                               
   .anxdep_comp_5            0.084    0.007   12.724    0.000    0.084    0.146
 .withdep_comp_3 ~~                                                            
   .anxdep_comp_5            0.139    0.007   19.393    0.000    0.139    0.233
 .soma_comp_3 ~~                                                               
   .anxdep_comp_5            0.093    0.007   13.678    0.000    0.093    0.160
 .withdep_comp_4 ~~                                                            
   .anxdep_comp_5            0.175    0.008   21.749    0.000    0.175    0.268
 .soma_comp_4 ~~                                                               
   .anxdep_comp_5            0.142    0.007   19.317    0.000    0.142    0.231
 .anxdep_comp_5 ~~                                                             
   .withdep_comp_5           0.244    0.009   27.342    0.000    0.244    0.356
   .soma_comp_5              0.177    0.008   21.438    0.000    0.177    0.262
   .withdep_comp_6           0.157    0.010   16.396    0.000    0.157    0.238
   .soma_comp_6              0.153    0.010   15.672    0.000    0.153    0.225
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_6            0.040    0.006    6.372    0.000    0.040    0.093
 .soma_comp_0 ~~                                                               
   .anxdep_comp_6            0.063    0.008    8.040    0.000    0.063    0.110
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_6            0.059    0.006    9.265    0.000    0.059    0.132
 .soma_comp_1 ~~                                                               
   .anxdep_comp_6            0.066    0.008    8.398    0.000    0.066    0.116
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_6            0.088    0.007   12.104    0.000    0.088    0.177
 .soma_comp_2 ~~                                                               
   .anxdep_comp_6            0.084    0.007   11.250    0.000    0.084    0.153
 .withdep_comp_3 ~~                                                            
   .anxdep_comp_6            0.129    0.008   15.951    0.000    0.129    0.229
 .soma_comp_3 ~~                                                               
   .anxdep_comp_6            0.075    0.008    9.946    0.000    0.075    0.136
 .withdep_comp_4 ~~                                                            
   .anxdep_comp_6            0.156    0.009   17.334    0.000    0.156    0.251
 .soma_comp_4 ~~                                                               
   .anxdep_comp_6            0.111    0.008   13.303    0.000    0.111    0.189
 .withdep_comp_5 ~~                                                            
   .anxdep_comp_6            0.186    0.010   19.205    0.000    0.186    0.286
 .soma_comp_5 ~~                                                               
   .anxdep_comp_6            0.120    0.009   13.108    0.000    0.120    0.187
 .anxdep_comp_6 ~~                                                             
   .withdep_comp_6           0.224    0.010   22.162    0.000    0.224    0.357
   .soma_comp_6              0.166    0.010   16.829    0.000    0.166    0.256
 .withdep_comp_0 ~~                                                            
   .soma_comp_0              0.044    0.005    8.076    0.000    0.044    0.084
   .soma_comp_1              0.045    0.006    8.040    0.000    0.045    0.085
   .soma_comp_2              0.031    0.005    5.740    0.000    0.031    0.061
   .soma_comp_3              0.021    0.006    3.711    0.000    0.021    0.041
   .soma_comp_4              0.011    0.006    1.887    0.059    0.011    0.021
   .soma_comp_5             -0.017    0.007   -2.527    0.012   -0.017   -0.029
   .soma_comp_6             -0.016    0.009   -1.874    0.061   -0.016   -0.027
 .soma_comp_0 ~~                                                               
   .withdep_comp_1           0.029    0.006    5.121    0.000    0.029    0.053
 .withdep_comp_1 ~~                                                            
   .soma_comp_1              0.058    0.006   10.112    0.000    0.058    0.106
   .soma_comp_2              0.043    0.006    7.690    0.000    0.043    0.081
   .soma_comp_3              0.044    0.006    7.721    0.000    0.044    0.083
   .soma_comp_4              0.031    0.006    4.915    0.000    0.031    0.054
   .soma_comp_5              0.025    0.007    3.588    0.000    0.025    0.041
   .soma_comp_6              0.010    0.009    1.145    0.252    0.010    0.016
 .soma_comp_0 ~~                                                               
   .withdep_comp_2           0.042    0.006    6.720    0.000    0.042    0.070
 .soma_comp_1 ~~                                                               
   .withdep_comp_2           0.058    0.006    9.049    0.000    0.058    0.095
 .withdep_comp_2 ~~                                                            
   .soma_comp_2              0.073    0.006   11.848    0.000    0.073    0.125
   .soma_comp_3              0.054    0.006    8.670    0.000    0.054    0.093
   .soma_comp_4              0.070    0.007   10.268    0.000    0.070    0.113
   .soma_comp_5              0.062    0.008    8.061    0.000    0.062    0.092
   .soma_comp_6              0.047    0.010    4.769    0.000    0.047    0.068
 .soma_comp_0 ~~                                                               
   .withdep_comp_3           0.058    0.007    8.017    0.000    0.058    0.085
 .soma_comp_1 ~~                                                               
   .withdep_comp_3           0.052    0.007    7.101    0.000    0.052    0.076
 .soma_comp_2 ~~                                                               
   .withdep_comp_3           0.058    0.007    8.300    0.000    0.058    0.088
 .withdep_comp_3 ~~                                                            
   .soma_comp_3              0.080    0.007   11.228    0.000    0.080    0.122
   .soma_comp_4              0.107    0.008   13.568    0.000    0.107    0.152
   .soma_comp_5              0.119    0.009   13.391    0.000    0.119    0.154
   .soma_comp_6              0.121    0.011   11.244    0.000    0.121    0.156
 .soma_comp_0 ~~                                                               
   .withdep_comp_4           0.049    0.008    6.027    0.000    0.049    0.066
 .soma_comp_1 ~~                                                               
   .withdep_comp_4           0.062    0.008    7.501    0.000    0.062    0.082
 .soma_comp_2 ~~                                                               
   .withdep_comp_4           0.057    0.008    7.177    0.000    0.057    0.079
 .soma_comp_3 ~~                                                               
   .withdep_comp_4           0.080    0.008    9.826    0.000    0.080    0.110
 .withdep_comp_4 ~~                                                            
   .soma_comp_4              0.146    0.009   16.658    0.000    0.146    0.190
   .soma_comp_5              0.142    0.010   14.436    0.000    0.142    0.169
   .soma_comp_6              0.162    0.012   13.585    0.000    0.162    0.190
 .soma_comp_0 ~~                                                               
   .withdep_comp_5           0.041    0.009    4.587    0.000    0.041    0.053
 .soma_comp_1 ~~                                                               
   .withdep_comp_5           0.056    0.009    6.101    0.000    0.056    0.070
 .soma_comp_2 ~~                                                               
   .withdep_comp_5           0.051    0.009    5.894    0.000    0.051    0.068
 .soma_comp_3 ~~                                                               
   .withdep_comp_5           0.073    0.009    8.204    0.000    0.073    0.096
 .soma_comp_4 ~~                                                               
   .withdep_comp_5           0.136    0.010   14.140    0.000    0.136    0.168
 .withdep_comp_5 ~~                                                            
   .soma_comp_5              0.208    0.011   19.490    0.000    0.208    0.235
   .soma_comp_6              0.195    0.013   15.234    0.000    0.195    0.217
 .soma_comp_0 ~~                                                               
   .withdep_comp_6           0.050    0.010    4.836    0.000    0.050    0.065
 .soma_comp_1 ~~                                                               
   .withdep_comp_6           0.038    0.010    3.643    0.000    0.038    0.049
 .soma_comp_2 ~~                                                               
   .withdep_comp_6           0.039    0.010    3.996    0.000    0.039    0.053
 .soma_comp_3 ~~                                                               
   .withdep_comp_6           0.050    0.010    5.070    0.000    0.050    0.068
 .soma_comp_4 ~~                                                               
   .withdep_comp_6           0.094    0.011    8.643    0.000    0.094    0.120
 .soma_comp_5 ~~                                                               
   .withdep_comp_6           0.136    0.012   11.423    0.000    0.136    0.159
 .withdep_comp_6 ~~                                                            
   .soma_comp_6              0.206    0.013   15.972    0.000    0.206    0.238
 .rulebreak_comp_0 ~~                                                          
   .aggress_comp_0           0.222    0.006   38.876    0.000    0.222    0.467
   .aggress_comp_1           0.173    0.005   32.313    0.000    0.173    0.376
   .aggress_comp_2           0.162    0.005   30.786    0.000    0.162    0.361
   .aggress_comp_3           0.140    0.005   26.460    0.000    0.140    0.315
   .aggress_comp_4           0.131    0.005   25.995    0.000    0.131    0.319
   .aggress_comp_5           0.134    0.005   25.794    0.000    0.134    0.325
   .aggress_comp_6           0.112    0.006   19.797    0.000    0.112    0.297
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_1           0.182    0.005   33.075    0.000    0.182    0.382
 .rulebreak_comp_1 ~~                                                          
   .aggress_comp_1           0.216    0.006   38.076    0.000    0.216    0.469
   .aggress_comp_2           0.170    0.005   31.911    0.000    0.170    0.378
   .aggress_comp_3           0.152    0.005   28.482    0.000    0.152    0.343
   .aggress_comp_4           0.144    0.005   28.131    0.000    0.144    0.349
   .aggress_comp_5           0.136    0.005   25.859    0.000    0.136    0.327
   .aggress_comp_6           0.124    0.006   21.375    0.000    0.124    0.327
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_2           0.161    0.006   28.960    0.000    0.161    0.333
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_2           0.165    0.005   30.005    0.000    0.165    0.351
 .rulebreak_comp_2 ~~                                                          
   .aggress_comp_2           0.223    0.006   38.640    0.000    0.223    0.486
   .aggress_comp_3           0.169    0.006   30.320    0.000    0.169    0.373
   .aggress_comp_4           0.143    0.005   27.200    0.000    0.143    0.340
   .aggress_comp_5           0.144    0.005   26.781    0.000    0.144    0.341
   .aggress_comp_6           0.140    0.006   23.649    0.000    0.140    0.364
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_3           0.161    0.006   27.758    0.000    0.161    0.324
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_3           0.164    0.006   28.732    0.000    0.164    0.340
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_3           0.180    0.006   31.502    0.000    0.180    0.382
 .rulebreak_comp_3 ~~                                                          
   .aggress_comp_3           0.231    0.006   38.070    0.000    0.231    0.498
   .aggress_comp_4           0.165    0.005   30.173    0.000    0.165    0.383
   .aggress_comp_5           0.156    0.006   27.809    0.000    0.156    0.360
   .aggress_comp_6           0.153    0.006   25.573    0.000    0.153    0.387
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_4           0.183    0.007   26.958    0.000    0.183    0.318
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_4           0.189    0.007   28.392    0.000    0.189    0.339
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_4           0.188    0.007   28.666    0.000    0.188    0.345
 .aggress_comp_3 ~~                                                            
   .rulebrek_cmp_4           0.204    0.007   30.303    0.000    0.204    0.380
 .rulebreak_comp_4 ~~                                                          
   .aggress_comp_4           0.249    0.007   37.285    0.000    0.249    0.498
   .aggress_comp_5           0.207    0.007   31.220    0.000    0.207    0.413
   .aggress_comp_6           0.173    0.007   24.601    0.000    0.173    0.379
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_5           0.214    0.008   26.262    0.000    0.214    0.317
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_5           0.201    0.008   25.337    0.000    0.201    0.308
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_5           0.227    0.008   28.736    0.000    0.227    0.355
 .aggress_comp_3 ~~                                                            
   .rulebrek_cmp_5           0.226    0.008   28.153    0.000    0.226    0.359
 .aggress_comp_4 ~~                                                            
   .rulebrek_cmp_5           0.233    0.008   30.542    0.000    0.233    0.397
 .rulebreak_comp_5 ~~                                                          
   .aggress_comp_5           0.310    0.008   37.962    0.000    0.310    0.529
   .aggress_comp_6           0.237    0.008   28.508    0.000    0.237    0.442
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_6           0.195    0.010   20.314    0.000    0.195    0.283
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_6           0.178    0.009   18.782    0.000    0.178    0.265
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_6           0.212    0.009   22.858    0.000    0.212    0.324
 .aggress_comp_3 ~~                                                            
   .rulebrek_cmp_6           0.220    0.009   23.848    0.000    0.220    0.341
 .aggress_comp_4 ~~                                                            
   .rulebrek_cmp_6           0.224    0.009   25.356    0.000    0.224    0.374
 .aggress_comp_5 ~~                                                            
   .rulebrek_cmp_6           0.249    0.009   27.247    0.000    0.249    0.414
 .rulebreak_comp_6 ~~                                                          
   .aggress_comp_6           0.273    0.009   29.220    0.000    0.273    0.498
 .p_i ~~                                                                       
   .p_s                     -0.031    0.006   -5.435    0.000   -0.228   -0.228
   .p_q                      0.001    0.002    0.395    0.693    0.014    0.014
 .p_s ~~                                                                       
   .p_q                     -0.023    0.003   -8.528    0.000   -0.857   -0.857
 .flanker_0 ~~                                                                 
   .flanker_2                0.137    0.007   18.692    0.000    0.137    0.243
   .flanker_4                0.097    0.007   13.015    0.000    0.097    0.179
   .flanker_6                0.086    0.009    9.265    0.000    0.086    0.161
 .flanker_2 ~~                                                                 
   .flanker_4                0.144    0.007   19.844    0.000    0.144    0.320
   .flanker_6                0.101    0.008   12.501    0.000    0.101    0.230
 .flanker_4 ~~                                                                 
   .flanker_6                0.152    0.009   16.812    0.000    0.152    0.357
 .pattern_0 ~~                                                                 
   .pattern_2                0.075    0.005   13.712    0.000    0.075    0.220
   .pattern_4                0.041    0.006    6.902    0.000    0.041    0.113
   .pattern_6                0.033    0.007    4.716    0.000    0.033    0.095
 .pattern_2 ~~                                                                 
   .pattern_4                0.106    0.007   15.481    0.000    0.106    0.291
   .pattern_6                0.074    0.008    9.918    0.000    0.074    0.210
 .pattern_4 ~~                                                                 
   .pattern_6                0.126    0.009   14.180    0.000    0.126    0.335
 .picture_0 ~~                                                                 
   .picture_2                0.252    0.007   33.908    0.000    0.252    0.365
   .picture_4                0.258    0.009   28.163    0.000    0.258    0.311
   .picture_6                0.283    0.012   23.627    0.000    0.283    0.344
 .picture_2 ~~                                                                 
   .picture_4                0.286    0.010   28.157    0.000    0.286    0.326
   .picture_6                0.267    0.013   19.955    0.000    0.267    0.307
 .picture_4 ~~                                                                 
   .picture_6                0.391    0.016   24.782    0.000    0.391    0.374
 .picvocab_0 ~~                                                                
   .picvocab_2               0.399    0.007   53.367    0.000    0.399    0.677
   .picvocab_4               0.403    0.008   50.847    0.000    0.403    0.649
   .picvocab_6               0.382    0.009   43.424    0.000    0.382    0.627
 .picvocab_2 ~~                                                                
   .picvocab_4               0.475    0.009   54.241    0.000    0.475    0.728
   .picvocab_6               0.462    0.010   47.615    0.000    0.462    0.722
 .picvocab_4 ~~                                                                
   .picvocab_6               0.511    0.011   48.549    0.000    0.511    0.757
 .reading_0 ~~                                                                 
   .reading_2                0.405    0.007   55.043    0.000    0.405    0.722
   .reading_4                0.409    0.008   50.919    0.000    0.409    0.662
   .reading_6                0.418    0.010   43.677    0.000    0.418    0.657
 .reading_2 ~~                                                                 
   .reading_4                0.418    0.008   51.455    0.000    0.418    0.693
   .reading_6                0.435    0.010   45.411    0.000    0.435    0.699
 .reading_4 ~~                                                                 
   .reading_6                0.459    0.011   43.047    0.000    0.459    0.670
 .picvocab_0 ~~                                                                
   .reading_0                0.234    0.006   36.075    0.000    0.234    0.412
   .reading_2                0.247    0.007   37.800    0.000    0.247    0.446
   .reading_4                0.266    0.007   36.402    0.000    0.266    0.436
   .reading_6                0.285    0.009   32.286    0.000    0.285    0.453
 .picvocab_2 ~~                                                                
   .reading_2                0.290    0.007   40.617    0.000    0.290    0.499
 .reading_0 ~~                                                                 
   .picvocab_2               0.269    0.007   38.433    0.000    0.269    0.451
 .picvocab_2 ~~                                                                
   .reading_4                0.316    0.008   39.739    0.000    0.316    0.493
   .reading_6                0.341    0.010   35.620    0.000    0.341    0.517
 .picvocab_4 ~~                                                                
   .reading_4                0.340    0.009   39.115    0.000    0.340    0.503
 .reading_0 ~~                                                                 
   .picvocab_4               0.277    0.008   36.907    0.000    0.277    0.441
 .reading_2 ~~                                                                 
   .picvocab_4               0.302    0.008   39.581    0.000    0.302    0.493
 .picvocab_4 ~~                                                                
   .reading_6                0.370    0.010   35.793    0.000    0.370    0.531
 .picvocab_6 ~~                                                                
   .reading_6                0.363    0.011   32.417    0.000    0.363    0.532
 .reading_0 ~~                                                                 
   .picvocab_6               0.258    0.009   30.034    0.000    0.258    0.418
 .reading_2 ~~                                                                 
   .picvocab_6               0.286    0.009   33.228    0.000    0.286    0.475
 .reading_4 ~~                                                                 
   .picvocab_6               0.325    0.010   33.555    0.000    0.325    0.490
  g_i ~~                                                                       
    g_s                      0.004    0.001    3.536    0.000    0.206    0.206
 .ph_p_pds_001_0 ~~                                                            
   .ph_p_pds_001_1           0.426    0.011   40.292    0.000    0.426    0.460
   .ph_p_pds_001_2           0.253    0.009   28.426    0.000    0.253    0.315
   .ph_p_pds_001_3           0.135    0.008   17.236    0.000    0.135    0.193
   .ph_p_pds_001_4           0.052    0.007    7.312    0.000    0.052    0.085
   .ph_p_pds_001_5           0.027    0.007    3.879    0.000    0.027    0.046
   .ph_p_pds_001_6           0.023    0.009    2.593    0.010    0.023    0.039
 .ph_p_pds_001_1 ~~                                                            
   .ph_p_pds_001_2           0.296    0.008   36.152    0.000    0.296    0.418
   .ph_p_pds_001_3           0.166    0.007   23.336    0.000    0.166    0.269
   .ph_p_pds_001_4           0.069    0.006   11.006    0.000    0.069    0.128
   .ph_p_pds_001_5           0.034    0.006    5.472    0.000    0.034    0.065
   .ph_p_pds_001_6           0.019    0.008    2.389    0.017    0.019    0.036
 .ph_p_pds_001_2 ~~                                                            
   .ph_p_pds_001_3           0.214    0.007   32.877    0.000    0.214    0.400
   .ph_p_pds_001_4           0.092    0.006   16.684    0.000    0.092    0.198
   .ph_p_pds_001_5           0.040    0.005    7.495    0.000    0.040    0.090
   .ph_p_pds_001_6           0.028    0.007    4.053    0.000    0.028    0.062
 .ph_p_pds_001_3 ~~                                                            
   .ph_p_pds_001_4           0.120    0.005   23.625    0.000    0.120    0.295
   .ph_p_pds_001_5           0.061    0.005   12.551    0.000    0.061    0.156
   .ph_p_pds_001_6           0.035    0.006    5.739    0.000    0.035    0.088
 .ph_p_pds_001_4 ~~                                                            
   .ph_p_pds_001_5           0.134    0.005   29.376    0.000    0.134    0.391
   .ph_p_pds_001_6           0.083    0.006   14.659    0.000    0.083    0.241
 .ph_p_pds_001_5 ~~                                                            
   .ph_p_pds_001_6           0.142    0.006   24.941    0.000    0.142    0.424
 .ph_p_pds_002_0 ~~                                                            
   .ph_p_pds_002_1           0.119    0.005   21.747    0.000    0.119    0.373
   .ph_p_pds_002_2           0.056    0.005   11.304    0.000    0.056    0.185
   .ph_p_pds_002_3           0.023    0.004    5.212    0.000    0.023    0.090
   .ph_p_pds_002_4           0.007    0.004    1.868    0.062    0.007    0.034
   .ph_p_pds_002_5           0.001    0.004    0.193    0.847    0.001    0.004
   .ph_p_pds_002_6           0.000    0.005    0.084    0.933    0.000    0.002
 .ph_p_pds_002_1 ~~                                                            
   .ph_p_pds_002_2           0.124    0.005   23.151    0.000    0.124    0.401
   .ph_p_pds_002_3           0.057    0.005   12.058    0.000    0.057    0.215
   .ph_p_pds_002_4           0.012    0.004    3.046    0.002    0.012    0.057
   .ph_p_pds_002_5           0.008    0.004    2.058    0.040    0.008    0.040
   .ph_p_pds_002_6           0.026    0.005    5.644    0.000    0.026    0.144
 .ph_p_pds_002_2 ~~                                                            
   .ph_p_pds_002_3           0.100    0.005   20.823    0.000    0.100    0.399
   .ph_p_pds_002_4           0.030    0.004    7.243    0.000    0.030    0.143
   .ph_p_pds_002_5           0.010    0.004    2.813    0.005    0.010    0.057
   .ph_p_pds_002_6           0.032    0.004    7.376    0.000    0.032    0.188
 .ph_p_pds_002_3 ~~                                                            
   .ph_p_pds_002_4           0.045    0.004   11.715    0.000    0.045    0.256
   .ph_p_pds_002_5           0.019    0.003    5.588    0.000    0.019    0.123
   .ph_p_pds_002_6           0.032    0.004    8.177    0.000    0.032    0.219
 .ph_p_pds_002_4 ~~                                                            
   .ph_p_pds_002_5           0.037    0.003   11.432    0.000    0.037    0.285
   .ph_p_pds_002_6           0.023    0.004    6.333    0.000    0.023    0.192
 .ph_p_pds_002_5 ~~                                                            
   .ph_p_pds_002_6           0.028    0.003    8.045    0.000    0.028    0.261
 .ph_p_pds_003_0 ~~                                                            
   .ph_p_pds_003_1           0.134    0.005   24.827    0.000    0.134    0.371
   .ph_p_pds_003_2           0.082    0.005   16.283    0.000    0.082    0.226
   .ph_p_pds_003_3           0.046    0.005    9.763    0.000    0.046    0.136
   .ph_p_pds_003_4           0.018    0.004    4.064    0.000    0.018    0.059
   .ph_p_pds_003_5           0.020    0.004    4.711    0.000    0.020    0.070
   .ph_p_pds_003_6           0.007    0.005    1.266    0.206    0.007    0.024
 .ph_p_pds_003_1 ~~                                                            
   .ph_p_pds_003_2           0.165    0.006   28.826    0.000    0.165    0.405
   .ph_p_pds_003_3           0.089    0.005   16.901    0.000    0.089    0.233
   .ph_p_pds_003_4           0.027    0.005    5.603    0.000    0.027    0.079
   .ph_p_pds_003_5           0.013    0.005    2.795    0.005    0.013    0.040
   .ph_p_pds_003_6           0.007    0.006    1.204    0.228    0.007    0.022
 .ph_p_pds_003_2 ~~                                                            
   .ph_p_pds_003_3           0.157    0.005   28.650    0.000    0.157    0.410
   .ph_p_pds_003_4           0.065    0.005   13.342    0.000    0.065    0.191
   .ph_p_pds_003_5           0.037    0.005    7.988    0.000    0.037    0.116
   .ph_p_pds_003_6           0.015    0.006    2.745    0.006    0.015    0.050
 .ph_p_pds_003_3 ~~                                                            
   .ph_p_pds_003_4           0.106    0.005   22.022    0.000    0.106    0.330
   .ph_p_pds_003_5           0.056    0.004   12.509    0.000    0.056    0.187
   .ph_p_pds_003_6           0.038    0.005    7.231    0.000    0.038    0.133
 .ph_p_pds_003_4 ~~                                                            
   .ph_p_pds_003_5           0.086    0.004   19.903    0.000    0.086    0.322
   .ph_p_pds_003_6           0.063    0.005   12.531    0.000    0.063    0.246
 .ph_p_pds_003_5 ~~                                                            
   .ph_p_pds_003_6           0.074    0.005   15.495    0.000    0.074    0.307
  pu_i ~~                                                                      
    pu_s                    -0.033    0.005   -7.272    0.000   -0.195   -0.195
    pu_q                    -0.006    0.001   -4.285    0.000   -0.111   -0.111
  pu_s ~~                                                                      
    pu_q                    -0.044    0.002  -21.732    0.000   -0.918   -0.918

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .asr___0 (t_AX)   -0.005    0.004   -1.215    0.224   -0.005   -0.005
   .asr___0 (t_AW)    0.003    0.005    0.513    0.608    0.003    0.002
   .asr___0 (t_AS)   -0.002    0.005   -0.316    0.752   -0.002   -0.002
   .asr___0 (t_AP)    0.000    0.005    0.086    0.932    0.000    0.000
   .asr___0 (t_AH)    0.000    0.005    0.003    0.998    0.000    0.000
   .asr___0 (t_AA)    0.007    0.005    1.203    0.229    0.007    0.006
   .asr___0 (t_AR)    0.001    0.005    0.297    0.766    0.001    0.001
   .asr___0 (t_AG)   -0.000    0.007   -0.061    0.952   -0.000   -0.000
   .asr___2 (t_AX)   -0.005    0.004   -1.215    0.224   -0.005   -0.005
   .asr___2 (t_AW)    0.003    0.005    0.513    0.608    0.003    0.003
   .asr___2 (t_AS)   -0.002    0.005   -0.316    0.752   -0.002   -0.002
   .asr___2 (t_AP)    0.000    0.005    0.086    0.932    0.000    0.000
   .asr___2 (t_AH)    0.000    0.005    0.003    0.998    0.000    0.000
   .asr___2 (t_AA)    0.007    0.005    1.203    0.229    0.007    0.007
   .asr___2 (t_AR)    0.001    0.005    0.297    0.766    0.001    0.001
   .asr___2 (t_AG)   -0.000    0.007   -0.061    0.952   -0.000   -0.000
   .asr___4 (t_AX)   -0.005    0.004   -1.215    0.224   -0.005   -0.005
   .asr___4 (t_AW)    0.003    0.005    0.513    0.608    0.003    0.003
   .asr___4 (t_AS)   -0.002    0.005   -0.316    0.752   -0.002   -0.002
   .asr___4 (t_AP)    0.000    0.005    0.086    0.932    0.000    0.000
   .asr___4 (t_AH)    0.000    0.005    0.003    0.998    0.000    0.000
   .asr___4 (t_AA)    0.007    0.005    1.203    0.229    0.007    0.007
   .asr___4 (t_AR)    0.001    0.005    0.297    0.766    0.001    0.001
   .asr___4 (t_AG)   -0.000    0.007   -0.061    0.952   -0.000   -0.000
    a_i               0.025    0.008    3.277    0.001    0.032    0.032
    a_s              -0.023    0.004   -6.469    0.000   -0.094   -0.094
   .a_etaB            0.000                               0.000    0.000
   .a_eta2            0.000                               0.000    0.000
   .a_eta4            0.000                               0.000    0.000
   .anxd__0 (t_CX)   -0.013    0.005   -2.596    0.009   -0.013   -0.013
   .anxd__1 (t_CX)   -0.013    0.005   -2.596    0.009   -0.013   -0.013
   .anxd__2 (t_CX)   -0.013    0.005   -2.596    0.009   -0.013   -0.013
   .anxd__3 (t_CX)   -0.013    0.005   -2.596    0.009   -0.013   -0.013
   .anxd__4 (t_CX)   -0.013    0.005   -2.596    0.009   -0.013   -0.013
   .anxd__5 (t_CX)   -0.013    0.005   -2.596    0.009   -0.013   -0.013
   .anxd__6 (t_CX)   -0.013    0.005   -2.596    0.009   -0.013   -0.014
   .wthd__0 (t_CW)   -0.079    0.005  -15.584    0.000   -0.079   -0.087
   .wthd__1 (t_CW)   -0.079    0.005  -15.584    0.000   -0.079   -0.086
   .wthd__2 (t_CW)   -0.079    0.005  -15.584    0.000   -0.079   -0.082
   .wthd__3 (t_CW)   -0.079    0.005  -15.584    0.000   -0.079   -0.076
   .wthd__4 (t_CW)   -0.079    0.005  -15.584    0.000   -0.079   -0.072
   .wthd__5 (t_CW)   -0.079    0.005  -15.584    0.000   -0.079   -0.070
   .wthd__6 (t_CW)   -0.079    0.005  -15.584    0.000   -0.079   -0.073
   .sm_cm_0 (t_CS)   -0.016    0.006   -2.719    0.007   -0.016   -0.016
   .sm_cm_1 (t_CS)   -0.016    0.006   -2.719    0.007   -0.016   -0.016
   .sm_cm_2 (t_CS)   -0.016    0.006   -2.719    0.007   -0.016   -0.017
   .sm_cm_3 (t_CS)   -0.016    0.006   -2.719    0.007   -0.016   -0.017
   .sm_cm_4 (t_CS)   -0.016    0.006   -2.719    0.007   -0.016   -0.016
   .sm_cm_5 (t_CS)   -0.016    0.006   -2.719    0.007   -0.016   -0.015
   .sm_cm_6 (t_CS)   -0.016    0.006   -2.719    0.007   -0.016   -0.015
   .scpr__0 (t_CP)    0.027    0.004    6.773    0.000    0.027    0.026
   .scpr__1 (t_CP)    0.027    0.004    6.773    0.000    0.027    0.026
   .scpr__2 (t_CP)    0.027    0.004    6.773    0.000    0.027    0.027
   .scpr__3 (t_CP)    0.027    0.004    6.773    0.000    0.027    0.028
   .scpr__4 (t_CP)    0.027    0.004    6.773    0.000    0.027    0.028
   .scpr__5 (t_CP)    0.027    0.004    6.773    0.000    0.027    0.028
   .scpr__6 (t_CP)    0.027    0.004    6.773    0.000    0.027    0.030
   .thpr__0 (t_CH)    0.028    0.004    7.071    0.000    0.028    0.027
   .thpr__1 (t_CH)    0.028    0.004    7.071    0.000    0.028    0.027
   .thpr__2 (t_CH)    0.028    0.004    7.071    0.000    0.028    0.028
   .thpr__3 (t_CH)    0.028    0.004    7.071    0.000    0.028    0.029
   .thpr__4 (t_CH)    0.028    0.004    7.071    0.000    0.028    0.029
   .thpr__5 (t_CH)    0.028    0.004    7.071    0.000    0.028    0.029
   .thpr__6 (t_CH)    0.028    0.004    7.071    0.000    0.028    0.031
   .attp__0 (t_CA)    0.032    0.005    6.780    0.000    0.032    0.032
   .attp__1 (t_CA)    0.032    0.005    6.780    0.000    0.032    0.032
   .attp__2 (t_CA)    0.032    0.005    6.780    0.000    0.032    0.033
   .attp__3 (t_CA)    0.032    0.005    6.780    0.000    0.032    0.033
   .attp__4 (t_CA)    0.032    0.005    6.780    0.000    0.032    0.034
   .attp__5 (t_CA)    0.032    0.005    6.780    0.000    0.032    0.034
   .attp__6 (t_CA)    0.032    0.005    6.780    0.000    0.032    0.035
   .rlbr__0 (t_CR)   -0.019    0.005   -3.876    0.000   -0.019   -0.020
   .rlbr__1 (t_CR)   -0.019    0.005   -3.876    0.000   -0.019   -0.020
   .rlbr__2 (t_CR)   -0.019    0.005   -3.876    0.000   -0.019   -0.020
   .rlbr__3 (t_CR)   -0.019    0.005   -3.876    0.000   -0.019   -0.020
   .rlbr__4 (t_CR)   -0.019    0.005   -3.876    0.000   -0.019   -0.018
   .rlbr__5 (t_CR)   -0.019    0.005   -3.876    0.000   -0.019   -0.017
   .rlbr__6 (t_CR)   -0.019    0.005   -3.876    0.000   -0.019   -0.016
   .aggr__0 (t_CG)   -0.002    0.004   -0.496    0.620   -0.002   -0.002
   .aggr__1 (t_CG)   -0.002    0.004   -0.496    0.620   -0.002   -0.002
   .aggr__2 (t_CG)   -0.002    0.004   -0.496    0.620   -0.002   -0.002
   .aggr__3 (t_CG)   -0.002    0.004   -0.496    0.620   -0.002   -0.002
   .aggr__4 (t_CG)   -0.002    0.004   -0.496    0.620   -0.002   -0.002
   .aggr__5 (t_CG)   -0.002    0.004   -0.496    0.620   -0.002   -0.002
   .aggr__6 (t_CG)   -0.002    0.004   -0.496    0.620   -0.002   -0.002
   .p_i              -0.158    0.018   -8.727    0.000   -0.230   -0.230
   .p_s               0.448    0.220    2.038    0.042    1.050    1.050
   .p_q              -0.155    0.073   -2.122    0.034   -1.257   -1.257
   .p_etaB            0.000                               0.000    0.000
   .p_eta1            0.000                               0.000    0.000
   .p_eta2            0.000                               0.000    0.000
   .p_eta3            0.000                               0.000    0.000
   .p_eta4            0.000                               0.000    0.000
   .p_eta5            0.000                               0.000    0.000
   .p_eta6            0.000                               0.000    0.000
   .flnkr_0 (ta_S)    0.095    0.005   19.134    0.000    0.095    0.103
   .flnkr_2 (ta_S)    0.095    0.005   19.134    0.000    0.095    0.119
   .flnkr_4 (ta_S)    0.095    0.005   19.134    0.000    0.095    0.119
   .flnkr_6 (ta_S)    0.095    0.005   19.134    0.000    0.095    0.116
   .pttrn_0 (ta_R)    0.110    0.005   23.787    0.000    0.110    0.144
   .pttrn_2 (ta_R)    0.110    0.005   23.787    0.000    0.110    0.142
   .pttrn_4 (ta_R)    0.110    0.005   23.787    0.000    0.110    0.133
   .pttrn_6 (ta_R)    0.110    0.005   23.787    0.000    0.110    0.128
   .pictr_0 (ta_M)    0.049    0.006    7.722    0.000    0.049    0.058
   .pictr_2 (ta_M)    0.049    0.006    7.722    0.000    0.049    0.055
   .pictr_4 (ta_M)    0.049    0.006    7.722    0.000    0.049    0.046
   .pictr_6 (ta_M)    0.049    0.006    7.722    0.000    0.049    0.047
   .pcvcb_0 (ta_P)    0.043    0.005    8.141    0.000    0.043    0.051
   .pcvcb_2 (ta_P)    0.043    0.005    8.141    0.000    0.043    0.049
   .pcvcb_4 (ta_P)    0.043    0.005    8.141    0.000    0.043    0.046
   .pcvcb_6 (ta_P)    0.043    0.005    8.141    0.000    0.043    0.046
   .redng_0 (ta_V)    0.053    0.005   10.441    0.000    0.053    0.062
   .redng_2 (ta_V)    0.053    0.005   10.441    0.000    0.053    0.063
   .redng_4 (ta_V)    0.053    0.005   10.441    0.000    0.053    0.058
   .redng_6 (ta_V)    0.053    0.005   10.441    0.000    0.053    0.055
    g_i              -0.649    0.006 -100.602    0.000   -1.669   -1.669
    g_s               0.473    0.004  128.270    0.000    9.029    9.029
   .g_etaB            0.000                               0.000    0.000
   .g_eta2            0.000                               0.000    0.000
   .g_eta4            0.000                               0.000    0.000
   .g_eta6            0.000                               0.000    0.000
   .p___001 (t_PS)    0.047    0.004   12.875    0.000    0.047    0.042
   .p___001 (t_PS)    0.047    0.004   12.875    0.000    0.047    0.046
   .p___001 (t_PS)    0.047    0.004   12.875    0.000    0.047    0.051
   .p___001 (t_PS)    0.047    0.004   12.875    0.000    0.047    0.056
   .p___001 (t_PS)    0.047    0.004   12.875    0.000    0.047    0.062
   .p___001 (t_PS)    0.047    0.004   12.875    0.000    0.047    0.067
   .p___001 (t_PS)    0.047    0.004   12.875    0.000    0.047    0.069
   .p___002 (t_PR)    0.104    0.002   44.980    0.000    0.104    0.128
   .p___002 (t_PR)    0.104    0.002   44.980    0.000    0.104    0.121
   .p___002 (t_PR)    0.104    0.002   44.980    0.000    0.104    0.122
   .p___002 (t_PR)    0.104    0.002   44.980    0.000    0.104    0.130
   .p___002 (t_PR)    0.104    0.002   44.980    0.000    0.104    0.144
   .p___002 (t_PR)    0.104    0.002   44.980    0.000    0.104    0.165
   .p___002 (t_PR)    0.104    0.002   44.980    0.000    0.104    0.186
   .p___003 (t_PM)    0.095    0.003   37.603    0.000    0.095    0.119
   .p___003 (t_PM)    0.095    0.003   37.603    0.000    0.095    0.108
   .p___003 (t_PM)    0.095    0.003   37.603    0.000    0.095    0.106
   .p___003 (t_PM)    0.095    0.003   37.603    0.000    0.095    0.110
   .p___003 (t_PM)    0.095    0.003   37.603    0.000    0.095    0.120
   .p___003 (t_PM)    0.095    0.003   37.603    0.000    0.095    0.134
   .p___003 (t_PM)    0.095    0.003   37.603    0.000    0.095    0.146
    pu_i             -0.727    0.007 -109.800    0.000   -1.694   -1.694
    pu_s              0.597    0.007   86.649    0.000    1.497    1.497
    pu_q             -0.043    0.002  -22.478    0.000   -0.361   -0.361
   .pu_etaB           0.000                               0.000    0.000
   .pu_eta1           0.000                               0.000    0.000
   .pu_eta2           0.000                               0.000    0.000
   .pu_eta3           0.000                               0.000    0.000
   .pu_eta4           0.000                               0.000    0.000
   .pu_eta5           0.000                               0.000    0.000
   .pu_eta6           0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .a_etaB            0.101    0.006   16.632    0.000    0.142    0.142
   .a_eta2            0.182    0.005   39.328    0.000    0.262    0.262
   .a_eta4            0.102    0.007   14.194    0.000    0.159    0.159
   .asr_nxdp_cmp_0    0.312    0.006   53.402    0.000    0.312    0.305
   .asr_wthdp_cm_0    0.486    0.008   63.088    0.000    0.486    0.463
   .asr_soma_cmp_0    0.551    0.008   66.547    0.000    0.551    0.549
   .asr_thprb_cm_0    0.471    0.007   65.265    0.000    0.471    0.435
   .asr_ttprb_cm_0    0.408    0.006   64.401    0.000    0.408    0.411
   .asr_rlbrk_cm_0    0.660    0.009   69.904    0.000    0.660    0.606
   .asr_ggrss_cm_0    0.448    0.007   64.474    0.000    0.448    0.427
   .asr_intr_cmp_0    0.898    0.012   74.902    0.000    0.898    0.841
   .asr_nxdp_cmp_2    0.340    0.006   53.448    0.000    0.340    0.329
   .asr_wthdp_cm_2    0.481    0.008   61.124    0.000    0.481    0.467
   .asr_soma_cmp_2    0.560    0.009   64.622    0.000    0.560    0.559
   .asr_thprb_cm_2    0.412    0.007   61.776    0.000    0.412    0.408
   .asr_ttprb_cm_2    0.383    0.006   61.205    0.000    0.383    0.402
   .asr_rlbrk_cm_2    0.603    0.009   66.767    0.000    0.603    0.590
   .asr_ggrss_cm_2    0.435    0.007   62.269    0.000    0.435    0.426
   .asr_intr_cmp_2    0.821    0.011   72.050    0.000    0.821    0.832
   .asr_nxdp_cmp_4    0.352    0.007   50.830    0.000    0.352    0.355
   .asr_wthdp_cm_4    0.461    0.008   57.277    0.000    0.461    0.475
   .asr_soma_cmp_4    0.554    0.009   60.447    0.000    0.554    0.575
   .asr_thprb_cm_4    0.384    0.007   57.230    0.000    0.384    0.410
   .asr_ttprb_cm_4    0.420    0.007   58.580    0.000    0.420    0.443
   .asr_rlbrk_cm_4    0.561    0.009   62.014    0.000    0.561    0.591
   .asr_ggrss_cm_4    0.417    0.007   58.224    0.000    0.417    0.434
   .asr_intr_cmp_4    0.806    0.012   67.775    0.000    0.806    0.840
    a_i               0.608    0.012   49.262    0.000    1.000    1.000
    a_s               0.063    0.003   20.112    0.000    1.000    1.000
   .p_etaB            0.079    0.004   20.408    0.000    0.145    0.145
   .p_eta1            0.123    0.003   42.632    0.000    0.228    0.228
   .p_eta2            0.120    0.003   42.383    0.000    0.227    0.227
   .p_eta3            0.112    0.003   39.373    0.000    0.216    0.216
   .p_eta4            0.105    0.003   38.334    0.000    0.209    0.209
   .p_eta5            0.111    0.003   35.571    0.000    0.223    0.223
   .p_eta6            0.041    0.005    9.017    0.000    0.090    0.090
   .anxdep_comp_0     0.509    0.008   66.974    0.000    0.509    0.481
   .withdep_comp_0    0.405    0.006   65.350    0.000    0.405    0.497
   .soma_comp_0       0.690    0.009   72.707    0.000    0.690    0.697
   .socprob_comp_0    0.419    0.007   61.198    0.000    0.419    0.379
   .thouprob_cmp_0    0.410    0.007   63.013    0.000    0.410    0.380
   .attprob_comp_0    0.457    0.007   66.008    0.000    0.457    0.457
   .rulebrek_cmp_0    0.480    0.007   69.181    0.000    0.480    0.543
   .aggress_comp_0    0.470    0.007   64.462    0.000    0.470    0.430
   .anxdep_comp_1     0.527    0.008   65.775    0.000    0.527    0.493
   .withdep_comp_1    0.432    0.007   66.246    0.000    0.432    0.517
   .soma_comp_1       0.699    0.010   71.032    0.000    0.699    0.703
   .socprob_comp_1    0.389    0.007   59.432    0.000    0.389    0.365
   .thouprob_cmp_1    0.420    0.007   61.651    0.000    0.420    0.389
   .attprob_comp_1    0.448    0.007   64.622    0.000    0.448    0.456
   .rulebrek_cmp_1    0.481    0.007   67.228    0.000    0.481    0.547
   .aggress_comp_1    0.442    0.007   62.982    0.000    0.442    0.418
   .anxdep_comp_2     0.499    0.008   65.113    0.000    0.499    0.485
   .withdep_comp_2    0.529    0.008   67.203    0.000    0.529    0.573
   .soma_comp_2       0.639    0.009   69.733    0.000    0.639    0.689
   .socprob_comp_2    0.349    0.006   58.029    0.000    0.349    0.345
   .thouprob_cmp_2    0.370    0.006   59.589    0.000    0.370    0.365
   .attprob_comp_2    0.422    0.007   63.721    0.000    0.422    0.446
   .rulebrek_cmp_2    0.499    0.008   66.265    0.000    0.499    0.562
   .aggress_comp_2    0.422    0.007   61.971    0.000    0.422    0.412
   .anxdep_comp_3     0.526    0.008   63.727    0.000    0.526    0.503
   .withdep_comp_3    0.679    0.010   65.533    0.000    0.679    0.637
   .soma_comp_3       0.645    0.010   67.692    0.000    0.645    0.695
   .socprob_comp_3    0.320    0.006   55.684    0.000    0.320    0.330
   .thouprob_cmp_3    0.345    0.006   57.029    0.000    0.345    0.353
   .attprob_comp_3    0.417    0.007   62.117    0.000    0.417    0.448
   .rulebrek_cmp_3    0.527    0.008   63.731    0.000    0.527    0.580
   .aggress_comp_3    0.410    0.007   59.926    0.000    0.410    0.410
   .anxdep_comp_4     0.496    0.008   61.537    0.000    0.496    0.497
   .withdep_comp_4    0.815    0.013   63.085    0.000    0.815    0.685
   .soma_comp_4       0.730    0.011   65.731    0.000    0.730    0.727
   .socprob_comp_4    0.305    0.006   53.858    0.000    0.305    0.327
   .thouprob_cmp_4    0.325    0.006   54.756    0.000    0.325    0.347
   .attprob_comp_4    0.382    0.006   59.797    0.000    0.382    0.434
   .rulebrek_cmp_4    0.706    0.011   63.073    0.000    0.706    0.657
   .aggress_comp_4    0.354    0.006   57.407    0.000    0.354    0.383
   .anxdep_comp_5     0.521    0.009   58.757    0.000    0.521    0.511
   .withdep_comp_5    0.900    0.015   60.311    0.000    0.900    0.708
   .soma_comp_5       0.873    0.014   62.707    0.000    0.873    0.762
   .socprob_comp_5    0.299    0.006   50.489    0.000    0.299    0.324
   .thouprob_cmp_5    0.376    0.007   53.496    0.000    0.376    0.382
   .attprob_comp_5    0.398    0.007   57.794    0.000    0.398    0.446
   .rulebrek_cmp_5    0.967    0.016   61.574    0.000    0.967    0.725
   .aggress_comp_5    0.356    0.006   54.947    0.000    0.356    0.386
   .anxdep_comp_6     0.471    0.010   46.934    0.000    0.471    0.511
   .withdep_comp_6    0.835    0.017   48.434    0.000    0.835    0.713
   .soma_comp_6       0.893    0.018   50.077    0.000    0.893    0.784
   .socprob_comp_6    0.256    0.007   38.949    0.000    0.256    0.313
   .thouprob_cmp_6    0.299    0.007   40.519    0.000    0.299    0.352
   .attprob_comp_6    0.372    0.008   46.769    0.000    0.372    0.455
   .rulebrek_cmp_6    1.014    0.020   49.986    0.000    1.014    0.754
   .aggress_comp_6    0.297    0.007   43.068    0.000    0.297    0.367
   .p_i               0.232    0.007   35.265    0.000    0.495    0.495
   .p_s               0.077    0.009    8.512    0.000    0.425    0.425
   .p_q               0.009    0.001   10.807    0.000    0.612    0.612
   .g_etaB            0.012    0.002    5.334    0.000    0.073    0.073
   .g_eta2            0.008    0.002    5.200    0.000    0.048    0.048
   .g_eta4            0.017    0.002    8.225    0.000    0.088    0.088
   .g_eta6            0.045    0.004   11.354    0.000    0.183    0.183
   .flanker_0         0.683    0.010   68.059    0.000    0.683    0.807
   .flanker_2         0.465    0.009   54.431    0.000    0.465    0.732
   .flanker_4         0.434    0.009   49.514    0.000    0.434    0.689
   .flanker_6         0.416    0.011   38.688    0.000    0.416    0.629
   .pattern_0         0.339    0.006   52.794    0.000    0.339    0.584
   .pattern_2         0.341    0.008   45.387    0.000    0.341    0.575
   .pattern_4         0.387    0.009   42.973    0.000    0.387    0.571
   .pattern_6         0.367    0.011   33.038    0.000    0.367    0.502
   .picture_0         0.653    0.009   73.382    0.000    0.653    0.918
   .picture_2         0.733    0.011   69.167    0.000    0.733    0.923
   .picture_4         1.055    0.016   66.198    0.000    1.055    0.938
   .picture_6         1.035    0.022   47.847    0.000    1.035    0.922
   .picvocab_0        0.561    0.008   69.077    0.000    0.561    0.800
   .picvocab_2        0.619    0.009   66.320    0.000    0.619    0.808
   .picvocab_4        0.688    0.011   63.186    0.000    0.688    0.803
   .picvocab_6        0.663    0.013   49.364    0.000    0.663    0.758
   .reading_0         0.574    0.008   68.382    0.000    0.574    0.785
   .reading_2         0.548    0.008   64.984    0.000    0.548    0.770
   .reading_4         0.665    0.011   62.119    0.000    0.665    0.779
   .reading_6         0.705    0.015   47.966    0.000    0.705    0.749
    g_i               0.151    0.004   36.165    0.000    1.000    1.000
    g_s               0.003    0.001    4.316    0.000    1.000    1.000
   .pu_etaB           0.009    0.003    2.732    0.006    0.046    0.046
   .pu_eta1           0.054    0.002   23.654    0.000    0.234    0.234
   .pu_eta2           0.052    0.002   24.154    0.000    0.215    0.215
   .pu_eta3           0.047    0.002   23.331    0.000    0.196    0.196
   .pu_eta4           0.040    0.002   22.404    0.000    0.191    0.191
   .pu_eta5           0.026    0.002   17.070    0.000    0.168    0.168
   .pu_eta6           0.013    0.003    4.807    0.000    0.106    0.106
   .ph_p_pds_001_0    1.052    0.015   69.919    0.000    1.052    0.845
   .ph_p_pds_002_0    0.312    0.007   47.762    0.000    0.312    0.476
   .ph_p_pds_003_0    0.322    0.006   51.689    0.000    0.322    0.511
   .ph_p_pds_001_1    0.818    0.012   68.476    0.000    0.818    0.779
   .ph_p_pds_002_1    0.325    0.007   44.785    0.000    0.325    0.441
   .ph_p_pds_003_1    0.405    0.008   53.835    0.000    0.405    0.523
   .ph_p_pds_001_2    0.614    0.009   65.672    0.000    0.614    0.715
   .ph_p_pds_002_2    0.292    0.007   43.046    0.000    0.292    0.401
   .ph_p_pds_003_2    0.410    0.007   55.269    0.000    0.410    0.513
   .ph_p_pds_001_3    0.465    0.007   62.375    0.000    0.465    0.659
   .ph_p_pds_002_3    0.215    0.006   37.948    0.000    0.215    0.334
   .ph_p_pds_003_3    0.358    0.007   53.791    0.000    0.358    0.483
   .ph_p_pds_001_4    0.353    0.006   60.356    0.000    0.353    0.627
   .ph_p_pds_002_4    0.146    0.004   32.850    0.000    0.146    0.281
   .ph_p_pds_003_4    0.286    0.006   50.255    0.000    0.286    0.461
   .ph_p_pds_001_5    0.331    0.006   58.178    0.000    0.331    0.678
   .ph_p_pds_002_5    0.116    0.004   30.633    0.000    0.116    0.293
   .ph_p_pds_003_5    0.248    0.005   49.329    0.000    0.248    0.498
   .ph_p_pds_001_6    0.338    0.008   44.172    0.000    0.338    0.738
   .ph_p_pds_002_6    0.100    0.004   22.724    0.000    0.100    0.320
   .ph_p_pds_003_6    0.233    0.006   38.513    0.000    0.233    0.550
    pu_i              0.184    0.005   37.291    0.000    1.000    1.000
    pu_s              0.159    0.007   23.474    0.000    1.000    1.000
    pu_q              0.014    0.001   22.180    0.000    1.000    1.000

R-Square:
                   Estimate
    a_etaB            0.858
    a_eta2            0.738
    a_eta4            0.841
    asr_nxdp_cmp_0    0.695
    asr_wthdp_cm_0    0.537
    asr_soma_cmp_0    0.451
    asr_thprb_cm_0    0.565
    asr_ttprb_cm_0    0.589
    asr_rlbrk_cm_0    0.394
    asr_ggrss_cm_0    0.573
    asr_intr_cmp_0    0.159
    asr_nxdp_cmp_2    0.671
    asr_wthdp_cm_2    0.533
    asr_soma_cmp_2    0.441
    asr_thprb_cm_2    0.592
    asr_ttprb_cm_2    0.598
    asr_rlbrk_cm_2    0.410
    asr_ggrss_cm_2    0.574
    asr_intr_cmp_2    0.168
    asr_nxdp_cmp_4    0.645
    asr_wthdp_cm_4    0.525
    asr_soma_cmp_4    0.425
    asr_thprb_cm_4    0.590
    asr_ttprb_cm_4    0.557
    asr_rlbrk_cm_4    0.409
    asr_ggrss_cm_4    0.566
    asr_intr_cmp_4    0.160
    p_etaB            0.855
    p_eta1            0.772
    p_eta2            0.773
    p_eta3            0.784
    p_eta4            0.791
    p_eta5            0.777
    p_eta6            0.910
    anxdep_comp_0     0.519
    withdep_comp_0    0.503
    soma_comp_0       0.303
    socprob_comp_0    0.621
    thouprob_cmp_0    0.620
    attprob_comp_0    0.543
    rulebrek_cmp_0    0.457
    aggress_comp_0    0.570
    anxdep_comp_1     0.507
    withdep_comp_1    0.483
    soma_comp_1       0.297
    socprob_comp_1    0.635
    thouprob_cmp_1    0.611
    attprob_comp_1    0.544
    rulebrek_cmp_1    0.453
    aggress_comp_1    0.582
    anxdep_comp_2     0.515
    withdep_comp_2    0.427
    soma_comp_2       0.311
    socprob_comp_2    0.655
    thouprob_cmp_2    0.635
    attprob_comp_2    0.554
    rulebrek_cmp_2    0.438
    aggress_comp_2    0.588
    anxdep_comp_3     0.497
    withdep_comp_3    0.363
    soma_comp_3       0.305
    socprob_comp_3    0.670
    thouprob_cmp_3    0.647
    attprob_comp_3    0.552
    rulebrek_cmp_3    0.420
    aggress_comp_3    0.590
    anxdep_comp_4     0.503
    withdep_comp_4    0.315
    soma_comp_4       0.273
    socprob_comp_4    0.673
    thouprob_cmp_4    0.653
    attprob_comp_4    0.566
    rulebrek_cmp_4    0.343
    aggress_comp_4    0.617
    anxdep_comp_5     0.489
    withdep_comp_5    0.292
    soma_comp_5       0.238
    socprob_comp_5    0.676
    thouprob_cmp_5    0.618
    attprob_comp_5    0.554
    rulebrek_cmp_5    0.275
    aggress_comp_5    0.614
    anxdep_comp_6     0.489
    withdep_comp_6    0.287
    soma_comp_6       0.216
    socprob_comp_6    0.687
    thouprob_cmp_6    0.648
    attprob_comp_6    0.545
    rulebrek_cmp_6    0.246
    aggress_comp_6    0.633
    p_i               0.505
    p_s               0.575
    p_q               0.388
    g_etaB            0.927
    g_eta2            0.952
    g_eta4            0.912
    g_eta6            0.817
    flanker_0         0.193
    flanker_2         0.268
    flanker_4         0.311
    flanker_6         0.371
    pattern_0         0.416
    pattern_2         0.425
    pattern_4         0.429
    pattern_6         0.498
    picture_0         0.082
    picture_2         0.077
    picture_4         0.062
    picture_6         0.078
    picvocab_0        0.200
    picvocab_2        0.192
    picvocab_4        0.197
    picvocab_6        0.242
    reading_0         0.215
    reading_2         0.230
    reading_4         0.221
    reading_6         0.251
    pu_etaB           0.954
    pu_eta1           0.766
    pu_eta2           0.785
    pu_eta3           0.804
    pu_eta4           0.809
    pu_eta5           0.832
    pu_eta6           0.894
    ph_p_pds_001_0    0.155
    ph_p_pds_002_0    0.524
    ph_p_pds_003_0    0.489
    ph_p_pds_001_1    0.221
    ph_p_pds_002_1    0.559
    ph_p_pds_003_1    0.477
    ph_p_pds_001_2    0.285
    ph_p_pds_002_2    0.599
    ph_p_pds_003_2    0.487
    ph_p_pds_001_3    0.341
    ph_p_pds_002_3    0.666
    ph_p_pds_003_3    0.517
    ph_p_pds_001_4    0.373
    ph_p_pds_002_4    0.719
    ph_p_pds_003_4    0.539
    ph_p_pds_001_5    0.322
    ph_p_pds_002_5    0.707
    ph_p_pds_003_5    0.502
    ph_p_pds_001_6    0.262
    ph_p_pds_002_6    0.680
    ph_p_pds_003_6    0.450

pc ~ pp + g + pu model with sex

Children’s psychopathology (pc) was regressed on parental psychopathology (pp), children’s cognitive functioning (g) and children’s puberty (pu), with sex as covariate.

model fit
# Add sex as covariate
pga_pu6.sex.model <- pga_pu6.model %>%
  str_replace_all(
    c(
      "_i ~ 1" = "_i ~ 1 + dummy_sex",
      "_s ~ 1" = "_s ~ 1 + dummy_sex",
      "_q ~ 1" = "_q ~ 1 + dummy_sex",
      "_i~1" = "_i~1 + dummy_sex",
      "_s~1" = "_s~1 + dummy_sex",
      "_q~1" = "_q~1 + dummy_sex"
    )
  )

writeLines(pga_pu6.sex.model)
# second-order pp factor
               #factor loadings (with constraints)
               a_etaB =~ 1*asr_anxdep_comp_0+
                       lambda_AW*asr_withdep_comp_0+
                       lambda_AS*asr_soma_comp_0+
                       lambda_AC*asr_thouprob_comp_0+
                       lambda_AH*asr_attprob_comp_0+
                       lambda_AA*asr_rulebreak_comp_0+
                       lambda_AR*asr_aggress_comp_0+
                       lambda_AG*asr_intru_comp_0
               a_eta2 =~ 1*asr_anxdep_comp_2+
                       lambda_AW*asr_withdep_comp_2+
                       lambda_AS*asr_soma_comp_2+
                       lambda_AC*asr_thouprob_comp_2+
                       lambda_AH*asr_attprob_comp_2+
                       lambda_AA*asr_rulebreak_comp_2+
                       lambda_AR*asr_aggress_comp_2+
                       lambda_AG*asr_intru_comp_2
               a_eta4 =~ 1*asr_anxdep_comp_4+
                       lambda_AW*asr_withdep_comp_4+
                       lambda_AS*asr_soma_comp_4+
                       lambda_AC*asr_thouprob_comp_4+
                       lambda_AH*asr_attprob_comp_4+
                       lambda_AA*asr_rulebreak_comp_4+
                       lambda_AR*asr_aggress_comp_4+
                       lambda_AG*asr_intru_comp_4

              #latent variable variances
                      a_etaB~~NA*a_etaB
                      a_eta2~~NA*a_eta2
                      a_eta4~~NA*a_eta4

              #unique variances # No need to constrict these
                      asr_anxdep_comp_0~~asr_anxdep_comp_0
                      asr_withdep_comp_0~~asr_withdep_comp_0
                      asr_soma_comp_0~~asr_soma_comp_0
                      asr_thouprob_comp_0~~asr_thouprob_comp_0
                      asr_attprob_comp_0~~asr_attprob_comp_0
                      asr_rulebreak_comp_0~~asr_rulebreak_comp_0
                      asr_aggress_comp_0~~asr_aggress_comp_0
                      asr_intru_comp_0~~asr_intru_comp_0

                      asr_anxdep_comp_2~~asr_anxdep_comp_2
                      asr_withdep_comp_2~~asr_withdep_comp_2
                      asr_soma_comp_2~~asr_soma_comp_2
                      asr_thouprob_comp_2~~asr_thouprob_comp_2
                      asr_attprob_comp_2~~asr_attprob_comp_2
                      asr_rulebreak_comp_2~~asr_rulebreak_comp_2
                      asr_aggress_comp_2~~asr_aggress_comp_2
                      asr_intru_comp_2~~asr_intru_comp_2

                      asr_anxdep_comp_4~~asr_anxdep_comp_4
                      asr_withdep_comp_4~~asr_withdep_comp_4
                      asr_soma_comp_4~~asr_soma_comp_4
                      asr_thouprob_comp_4~~asr_thouprob_comp_4
                      asr_attprob_comp_4~~asr_attprob_comp_4
                      asr_rulebreak_comp_4~~asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_aggress_comp_4
                      asr_intru_comp_4~~asr_intru_comp_4

              #unique covariances
                      # Scores arcoss times
                      asr_anxdep_comp_0~~ asr_anxdep_comp_2 + asr_anxdep_comp_4
                      asr_anxdep_comp_2~~ asr_anxdep_comp_4

                      asr_withdep_comp_0 ~~ asr_withdep_comp_2 + asr_withdep_comp_4
                      asr_withdep_comp_2 ~~ asr_withdep_comp_4

                      asr_soma_comp_0~~ asr_soma_comp_2 + asr_soma_comp_4
                      asr_soma_comp_2~~ asr_soma_comp_4

                      asr_thouprob_comp_0~~ asr_thouprob_comp_2 + asr_thouprob_comp_4
                      asr_thouprob_comp_2~~ asr_thouprob_comp_4

                      asr_attprob_comp_0~~ asr_attprob_comp_2 + asr_attprob_comp_4
                      asr_attprob_comp_2~~ asr_attprob_comp_4

                      asr_rulebreak_comp_0~~ asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_rulebreak_comp_2~~ asr_rulebreak_comp_4

                      asr_aggress_comp_0~~ asr_aggress_comp_2 + asr_aggress_comp_4
                      asr_aggress_comp_2~~ asr_aggress_comp_4

                      asr_intru_comp_0~~ asr_intru_comp_2 + asr_intru_comp_4
                      asr_intru_comp_2~~ asr_intru_comp_4

                      # Internalizeing subscale covariances
                      asr_anxdep_comp_0~~asr_withdep_comp_0 + asr_soma_comp_0 + asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_2~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_4~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4

                      asr_withdep_comp_0~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_2~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_4~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4

                      # Externalizeing subscale covariances
                      asr_aggress_comp_0~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_2~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4

                      asr_intru_comp_0~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_2~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_4~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4

              #observed variable intercepts
                      asr_anxdep_comp_0~tau_AX*1
                      asr_withdep_comp_0~tau_AW*1
                      asr_soma_comp_0~tau_AS*1
                      asr_thouprob_comp_0~tau_AP*1
                      asr_attprob_comp_0~tau_AH*1
                      asr_rulebreak_comp_0~tau_AA*1
                      asr_aggress_comp_0~tau_AR*1
                      asr_intru_comp_0~tau_AG*1

                      asr_anxdep_comp_2~tau_AX*1
                      asr_withdep_comp_2~tau_AW*1
                      asr_soma_comp_2~tau_AS*1
                      asr_thouprob_comp_2~tau_AP*1
                      asr_attprob_comp_2~tau_AH*1
                      asr_rulebreak_comp_2~tau_AA*1
                      asr_aggress_comp_2~tau_AR*1
                      asr_intru_comp_2~tau_AG*1

                      asr_anxdep_comp_4~tau_AX*1
                      asr_withdep_comp_4~tau_AW*1
                      asr_soma_comp_4~tau_AS*1
                      asr_thouprob_comp_4~tau_AP*1
                      asr_attprob_comp_4~tau_AH*1
                      asr_rulebreak_comp_4~tau_AA*1
                      asr_aggress_comp_4~tau_AR*1
                      asr_intru_comp_4~tau_AG*1

                      #latent basis model
                      a_i =~ 1*a_etaB+1*a_eta2+1*a_eta4
                      a_s =~ 0*a_etaB+1*a_eta2+2*a_eta4
                      a_i~~NA*a_i
                      a_s~~NA*a_s
                      a_i~~a_s
                      a_i~1 + dummy_sex
                      a_s~1 + dummy_sex
                      a_etaB~0*1
                      a_eta2~0*1
                      a_eta4~0*1

               # second-order pc factor
               #factor loadings (with constraints)
               p_etaB =~ 1*anxdep_comp_0+
                       lambda_CW*withdep_comp_0+
                       lambda_CS*soma_comp_0+
                       lambda_CC*socprob_comp_0+
                       lambda_CH*thouprob_comp_0+
                       lambda_CA*attprob_comp_0+
                       lambda_CR*rulebreak_comp_0+
                       lambda_CG*aggress_comp_0
               p_eta1 =~ 1*anxdep_comp_1+
                       lambda_CW*withdep_comp_1+
                       lambda_CS*soma_comp_1+
                       lambda_CC*socprob_comp_1+
                       lambda_CH*thouprob_comp_1+
                       lambda_CA*attprob_comp_1+
                       lambda_CR*rulebreak_comp_1+
                       lambda_CG*aggress_comp_1
               p_eta2 =~ 1*anxdep_comp_2+
                       lambda_CW*withdep_comp_2+
                       lambda_CS*soma_comp_2+
                       lambda_CC*socprob_comp_2+
                       lambda_CH*thouprob_comp_2+
                       lambda_CA*attprob_comp_2+
                       lambda_CR*rulebreak_comp_2+
                       lambda_CG*aggress_comp_2
               p_eta3 =~ 1*anxdep_comp_3+
                       lambda_CW*withdep_comp_3+
                       lambda_CS*soma_comp_3+
                       lambda_CC*socprob_comp_3+
                       lambda_CH*thouprob_comp_3+
                       lambda_CA*attprob_comp_3+
                       lambda_CR*rulebreak_comp_3+
                       lambda_CG*aggress_comp_3
               p_eta4 =~ 1*anxdep_comp_4+
                       lambda_CW*withdep_comp_4+
                       lambda_CS*soma_comp_4+
                       lambda_CC*socprob_comp_4+
                       lambda_CH*thouprob_comp_4+
                       lambda_CA*attprob_comp_4+
                       lambda_CR*rulebreak_comp_4+
                       lambda_CG*aggress_comp_4
               p_eta5 =~ 1*anxdep_comp_5+
                       lambda_CW*withdep_comp_5+
                       lambda_CS*soma_comp_5+
                       lambda_CC*socprob_comp_5+
                       lambda_CH*thouprob_comp_5+
                       lambda_CA*attprob_comp_5+
                       lambda_CR*rulebreak_comp_5+
                       lambda_CG*aggress_comp_5
               p_eta6 =~ 1*anxdep_comp_6+
                       lambda_CW*withdep_comp_6+
                       lambda_CS*soma_comp_6+
                       lambda_CC*socprob_comp_6+
                       lambda_CH*thouprob_comp_6+
                       lambda_CA*attprob_comp_6+
                       lambda_CR*rulebreak_comp_6+
                       lambda_CG*aggress_comp_6

              #latent variable variances
                      p_etaB~~NA*p_etaB
                      p_eta1~~NA*p_eta1
                      p_eta2~~NA*p_eta2
                      p_eta3~~NA*p_eta3
                      p_eta4~~NA*p_eta4
                      p_eta5~~NA*p_eta5
                      p_eta6~~NA*p_eta6

              #unique variances # No need to constrict these
                      anxdep_comp_0~~anxdep_comp_0
                      withdep_comp_0~~withdep_comp_0
                      soma_comp_0~~soma_comp_0
                      socprob_comp_0~~socprob_comp_0
                      thouprob_comp_0~~thouprob_comp_0
                      attprob_comp_0~~attprob_comp_0
                      rulebreak_comp_0~~rulebreak_comp_0
                      aggress_comp_0~~aggress_comp_0
                      anxdep_comp_1~~anxdep_comp_1
                      withdep_comp_1~~withdep_comp_1
                      soma_comp_1~~soma_comp_1
                      socprob_comp_1~~socprob_comp_1
                      thouprob_comp_1~~thouprob_comp_1
                      attprob_comp_1~~attprob_comp_1
                      rulebreak_comp_1~~rulebreak_comp_1
                      aggress_comp_1~~aggress_comp_1

                      anxdep_comp_2~~anxdep_comp_2
                      withdep_comp_2~~withdep_comp_2
                      soma_comp_2~~soma_comp_2
                      socprob_comp_2~~socprob_comp_2
                      thouprob_comp_2~~thouprob_comp_2
                      attprob_comp_2~~attprob_comp_2
                      rulebreak_comp_2~~rulebreak_comp_2
                      aggress_comp_2~~aggress_comp_2

                      anxdep_comp_3~~anxdep_comp_3
                      withdep_comp_3~~withdep_comp_3
                      soma_comp_3~~soma_comp_3
                      socprob_comp_3~~socprob_comp_3
                      thouprob_comp_3~~thouprob_comp_3
                      attprob_comp_3~~attprob_comp_3
                      rulebreak_comp_3~~rulebreak_comp_3
                      aggress_comp_3~~aggress_comp_3

                      anxdep_comp_4~~anxdep_comp_4
                      withdep_comp_4~~withdep_comp_4
                      soma_comp_4~~soma_comp_4
                      socprob_comp_4~~socprob_comp_4
                      thouprob_comp_4~~thouprob_comp_4
                      attprob_comp_4~~attprob_comp_4
                      rulebreak_comp_4~~rulebreak_comp_4
                      aggress_comp_4~~aggress_comp_4

                      anxdep_comp_5~~anxdep_comp_5
                      withdep_comp_5~~withdep_comp_5
                      soma_comp_5~~soma_comp_5
                      socprob_comp_5~~socprob_comp_5
                      thouprob_comp_5~~thouprob_comp_5
                      attprob_comp_5~~attprob_comp_5
                      rulebreak_comp_5~~rulebreak_comp_5
                      aggress_comp_5~~aggress_comp_5

                      anxdep_comp_6~~anxdep_comp_6
                      withdep_comp_6~~withdep_comp_6
                      soma_comp_6~~soma_comp_6
                      socprob_comp_6~~socprob_comp_6
                      thouprob_comp_6~~thouprob_comp_6
                      attprob_comp_6~~attprob_comp_6
                      rulebreak_comp_6~~rulebreak_comp_6
                      aggress_comp_6~~aggress_comp_6

              #unique covariances
                      # Scores arcoss times
                      anxdep_comp_0~~anxdep_comp_1 + anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_1~~anxdep_comp_2 + anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_2~~anxdep_comp_3 + anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_3~~anxdep_comp_4 + anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_4~~anxdep_comp_5+ anxdep_comp_6
                      anxdep_comp_5~~anxdep_comp_6

                      withdep_comp_0~~withdep_comp_1 + withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_1~~withdep_comp_2 + withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_2~~withdep_comp_3 + withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_3~~withdep_comp_4 + withdep_comp_5 + withdep_comp_6
                      withdep_comp_4~~withdep_comp_5 + withdep_comp_6
                      withdep_comp_5~~withdep_comp_6

                      soma_comp_0~~soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_1~~soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_2~~soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_3~~soma_comp_4 + soma_comp_5 + soma_comp_6
                      soma_comp_4~~soma_comp_5 + soma_comp_6
                      soma_comp_5~~soma_comp_6

                      socprob_comp_0~~socprob_comp_1 + socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_1~~socprob_comp_2 + socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_2~~socprob_comp_3 + socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_3~~socprob_comp_4 + socprob_comp_5 + socprob_comp_6
                      socprob_comp_4~~socprob_comp_5 + socprob_comp_6
                      socprob_comp_5~~socprob_comp_6

                      thouprob_comp_0~~thouprob_comp_1 + thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_1~~thouprob_comp_2 + thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_2~~thouprob_comp_3 + thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_3~~thouprob_comp_4 + thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_4~~thouprob_comp_5 + thouprob_comp_6
                      thouprob_comp_5~~thouprob_comp_6

                      attprob_comp_0~~attprob_comp_1 + attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_1~~attprob_comp_2 + attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_2~~attprob_comp_3 + attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_3~~attprob_comp_4 + attprob_comp_5 + attprob_comp_6
                      attprob_comp_4~~attprob_comp_5 + attprob_comp_6
                      attprob_comp_5~~attprob_comp_6

                      rulebreak_comp_0~~rulebreak_comp_1 + rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_1~~rulebreak_comp_2 + rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_2~~rulebreak_comp_3 + rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_3~~rulebreak_comp_4 + rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_4~~rulebreak_comp_5 + rulebreak_comp_6
                      rulebreak_comp_5~~rulebreak_comp_6

                      aggress_comp_0~~aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_1~~aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_2~~aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_3~~aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      aggress_comp_4~~aggress_comp_5 + aggress_comp_6
                      aggress_comp_5~~aggress_comp_6

                      # Internalizeing subscale covariances
                      anxdep_comp_0~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_1~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_2~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_3~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_4~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_5~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6
                      anxdep_comp_6~~withdep_comp_0 + soma_comp_0 + withdep_comp_1 + soma_comp_1 + withdep_comp_2 + soma_comp_2 + withdep_comp_3 + soma_comp_3 + withdep_comp_4 + soma_comp_4 + withdep_comp_5 + soma_comp_5 + withdep_comp_6 + soma_comp_6

                      withdep_comp_0~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_1~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_2~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_3~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_4~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_5~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6
                      withdep_comp_6~~soma_comp_0 + soma_comp_1 + soma_comp_2 + soma_comp_3 + soma_comp_4 + soma_comp_5 + soma_comp_6

                      # Externalizeing subscale covariances
                      rulebreak_comp_0~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_1~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_2~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_3~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_4~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_5~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6
                      rulebreak_comp_6~~aggress_comp_0 +aggress_comp_1 + aggress_comp_2 + aggress_comp_3 + aggress_comp_4 + aggress_comp_5 + aggress_comp_6

              #observed variable intercepts
                      anxdep_comp_0~tau_CX*1
                      anxdep_comp_1~tau_CX*1
                      anxdep_comp_2~tau_CX*1
                      anxdep_comp_3~tau_CX*1
                      anxdep_comp_4~tau_CX*1
                      anxdep_comp_5~tau_CX*1
                      anxdep_comp_6~tau_CX*1
                      withdep_comp_0~tau_CW*1
                      withdep_comp_1~tau_CW*1
                      withdep_comp_2~tau_CW*1
                      withdep_comp_3~tau_CW*1
                      withdep_comp_4~tau_CW*1
                      withdep_comp_5~tau_CW*1
                      withdep_comp_6~tau_CW*1
                      soma_comp_0~tau_CS*1
                      soma_comp_1~tau_CS*1
                      soma_comp_2~tau_CS*1
                      soma_comp_3~tau_CS*1
                      soma_comp_4~tau_CS*1
                      soma_comp_5~tau_CS*1
                      soma_comp_6~tau_CS*1
                      socprob_comp_0~tau_CP*1
                      socprob_comp_1~tau_CP*1
                      socprob_comp_2~tau_CP*1
                      socprob_comp_3~tau_CP*1
                      socprob_comp_4~tau_CP*1
                      socprob_comp_5~tau_CP*1
                      socprob_comp_6~tau_CP*1
                      thouprob_comp_0~tau_CH*1
                      thouprob_comp_1~tau_CH*1
                      thouprob_comp_2~tau_CH*1
                      thouprob_comp_3~tau_CH*1
                      thouprob_comp_4~tau_CH*1
                      thouprob_comp_5~tau_CH*1
                      thouprob_comp_6~tau_CH*1
                      attprob_comp_0~tau_CA*1
                      attprob_comp_1~tau_CA*1
                      attprob_comp_2~tau_CA*1
                      attprob_comp_3~tau_CA*1
                      attprob_comp_4~tau_CA*1
                      attprob_comp_5~tau_CA*1
                      attprob_comp_6~tau_CA*1
                      rulebreak_comp_0~tau_CR*1
                      rulebreak_comp_1~tau_CR*1
                      rulebreak_comp_2~tau_CR*1
                      rulebreak_comp_3~tau_CR*1
                      rulebreak_comp_4~tau_CR*1
                      rulebreak_comp_5~tau_CR*1
                      rulebreak_comp_6~tau_CR*1
                      aggress_comp_0~tau_CG*1
                      aggress_comp_1~tau_CG*1
                      aggress_comp_2~tau_CG*1
                      aggress_comp_3~tau_CG*1
                      aggress_comp_4~tau_CG*1
                      aggress_comp_5~tau_CG*1
                      aggress_comp_6~tau_CG*1

                       #latent basis model
                      p_i =~ 1*p_etaB + 1*p_eta1 + 1*p_eta2 + 1*p_eta3 + 1*p_eta4 + 1*p_eta5 + 1*p_eta6
                      p_s =~ 0*p_etaB + .5*p_eta1 + 1*p_eta2 + 1.5*p_eta3 + 2*p_eta4 + 2.5*p_eta5 + 3*p_eta6
                      p_q =~ 0*p_etaB + .25*p_eta1 + 1*p_eta2 + 2.25*p_eta3 + 4*p_eta4 + 6.25*p_eta5 + 9*p_eta6

                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q

                      p_i~~p_s + p_q
                      p_s~~p_q
                      p_i~1 + dummy_sex
                      p_s~1 + dummy_sex
                      p_q~1 + dummy_sex
                      p_etaB ~ 0*1
                      p_eta1 ~ 0*1
                      p_eta2 ~ 0*1
                      p_eta3 ~ 0*1
                      p_eta4 ~ 0*1
                      p_eta5 ~ 0*1
                      p_eta6 ~ 0*1

               # second-order g factor
               #factor loadings # S & S2
               g_etaB =~ 1*flanker_0+
                       lambda_R*pattern_0+
                       lambda_M*picture_0+
                       lambda_P*picvocab_0+
                       lambda_V*reading_0
               g_eta2 =~ 1*flanker_2+
                       lambda_R*pattern_2+
                       lambda_M*picture_2+
                       lambda_P*picvocab_2+
                       lambda_V*reading_2
               g_eta4 =~ 1*flanker_4+
                       lambda_R*pattern_4+
                       lambda_M*picture_4+
                       lambda_P*picvocab_4+
                       lambda_V*reading_4
               g_eta6 =~ 1*flanker_6+
                       lambda_R*pattern_6+
                       lambda_M*picture_6+
                       lambda_P*picvocab_6+
                       lambda_V*reading_6

              #latent variable variances
                       g_etaB~~NA*g_etaB
                       g_eta2~~NA*g_eta2
                       g_eta4~~NA*g_eta4
                       g_eta6~~NA*g_eta6

              #unique variances
                      flanker_0~~flanker_0
                      flanker_2~~flanker_2
                      flanker_4~~flanker_4
                      flanker_6~~flanker_6

                      pattern_0~~pattern_0
                      pattern_2~~pattern_2
                      pattern_4~~pattern_4
                      pattern_6~~pattern_6

                      picture_0~~picture_0
                      picture_2~~picture_2
                      picture_4~~picture_4
                      picture_6~~picture_6

                      picvocab_0~~picvocab_0
                      picvocab_2~~picvocab_2
                      picvocab_4~~picvocab_4
                      picvocab_6~~picvocab_6

                      reading_0~~reading_0
                      reading_2~~reading_2
                      reading_4~~reading_4
                      reading_6~~reading_6

              #unique covariances
                      # Task across times
                      flanker_0~~flanker_2 + flanker_4 + flanker_6
                      flanker_2~~flanker_4 + flanker_6
                      flanker_4~~flanker_6

                      pattern_0~~pattern_2 + pattern_4 + pattern_6
                      pattern_2~~pattern_4 + pattern_6
                      pattern_4~~pattern_6

                      picture_0~~picture_2 + picture_4 + picture_6
                      picture_2~~picture_4 + picture_6
                      picture_4~~picture_6

                      picvocab_0~~picvocab_2 + picvocab_4 + picvocab_6
                      picvocab_2~~picvocab_4 + picvocab_6
                      picvocab_4~~picvocab_6

                      reading_0~~reading_2 + reading_4 + reading_6
                      reading_2~~reading_4 + reading_6
                      reading_4~~reading_6

                      #Language
                      picvocab_0~~reading_0 + reading_2 + reading_4 + reading_6
                      picvocab_2~~reading_2 + reading_0 + reading_4 + reading_6
                      picvocab_4~~reading_4 + reading_0 + reading_2 + reading_6
                      picvocab_6~~reading_6 + reading_0 + reading_2 + reading_4

              #observed variable intercepts # S & S2
                      flanker_0~tau_S*1
                      flanker_2~tau_S*1
                      flanker_4~tau_S*1
                      flanker_6~tau_S*1
                      pattern_0~tau_R*1
                      pattern_2~tau_R*1
                      pattern_4~tau_R*1
                      pattern_6~tau_R*1
                      picture_0~tau_M*1
                      picture_2~tau_M*1
                      picture_4~tau_M*1
                      picture_6~tau_M*1
                      picvocab_0~tau_P*1
                      picvocab_2~tau_P*1
                      picvocab_4~tau_P*1
                      picvocab_6~tau_P*1
                      reading_0~tau_V*1
                      reading_2~tau_V*1
                      reading_4~tau_V*1
                      reading_6~tau_V*1

              #latent basis model
                      g_i =~    1*g_etaB + 1*g_eta2 + 1*g_eta4 + 1*g_eta6
                      g_s =~    0*g_etaB + 1*g_eta2 + 2*g_eta4 + 3*g_eta6

                      g_i~~NA*g_i
                      g_s~~NA*g_s

                      g_i~~g_s

                      g_i~1 + dummy_sex
                      g_s~1 + dummy_sex

                      g_etaB~0*1
                      g_eta2~0*1
                      g_eta4~0*1
                      g_eta6~0*1

               # second-order puberty factor
               #factor loadings
               pu_etaB =~ 1*ph_p_pds_001_0 +
                          lambda_PR*ph_p_pds_002_0 +
                          lambda_PM*ph_p_pds_003_0

               pu_eta1 =~ 1*ph_p_pds_001_1 +
                          lambda_PR*ph_p_pds_002_1 +
                          lambda_PM*ph_p_pds_003_1

               pu_eta2 =~ 1*ph_p_pds_001_2 +
                          lambda_PR*ph_p_pds_002_2 +
                          lambda_PM*ph_p_pds_003_2

               pu_eta3 =~ 1*ph_p_pds_001_3 +
                          lambda_PR*ph_p_pds_002_3 +
                          lambda_PM*ph_p_pds_003_3

               pu_eta4 =~ 1*ph_p_pds_001_4 +
                          lambda_PR*ph_p_pds_002_4 +
                          lambda_PM*ph_p_pds_003_4

               pu_eta5 =~ 1*ph_p_pds_001_5 +
                          lambda_PR*ph_p_pds_002_5 +
                          lambda_PM*ph_p_pds_003_5

               pu_eta6 =~ 1*ph_p_pds_001_6 +
                          lambda_PR*ph_p_pds_002_6 +
                          lambda_PM*ph_p_pds_003_6

              #latent variable variances
                      pu_etaB~~NA*pu_etaB
                      pu_eta1~~NA*pu_eta1
                      pu_eta2~~NA*pu_eta2
                      pu_eta3~~NA*pu_eta3
                      pu_eta4~~NA*pu_eta4
                      pu_eta5~~NA*pu_eta5
                      pu_eta6~~NA*pu_eta6

              #unique variances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_0
                      ph_p_pds_002_0 ~~ ph_p_pds_002_0
                      ph_p_pds_003_0 ~~ ph_p_pds_003_0

                      ph_p_pds_001_1 ~~ ph_p_pds_001_1
                      ph_p_pds_002_1 ~~ ph_p_pds_002_1
                      ph_p_pds_003_1 ~~ ph_p_pds_003_1

                      ph_p_pds_001_2 ~~ ph_p_pds_001_2
                      ph_p_pds_002_2 ~~ ph_p_pds_002_2
                      ph_p_pds_003_2 ~~ ph_p_pds_003_2

                      ph_p_pds_001_3 ~~ ph_p_pds_001_3
                      ph_p_pds_002_3 ~~ ph_p_pds_002_3
                      ph_p_pds_003_3 ~~ ph_p_pds_003_3

                      ph_p_pds_001_4 ~~ ph_p_pds_001_4
                      ph_p_pds_002_4 ~~ ph_p_pds_002_4
                      ph_p_pds_003_4 ~~ ph_p_pds_003_4

                      ph_p_pds_001_5 ~~ ph_p_pds_001_5
                      ph_p_pds_002_5 ~~ ph_p_pds_002_5
                      ph_p_pds_003_5 ~~ ph_p_pds_003_5

                      ph_p_pds_001_6 ~~ ph_p_pds_001_6
                      ph_p_pds_002_6 ~~ ph_p_pds_002_6
                      ph_p_pds_003_6 ~~ ph_p_pds_003_6

              #unique covariances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_1 + ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_1 ~~ ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_2 ~~ ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_3 ~~ ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_4 ~~ ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_5 ~~ ph_p_pds_001_6

                      ph_p_pds_002_0 ~~ ph_p_pds_002_1 + ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_1 ~~ ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_2 ~~ ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_3 ~~ ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_4 ~~ ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_5 ~~ ph_p_pds_002_6

                      ph_p_pds_003_0 ~~ ph_p_pds_003_1 + ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_1 ~~ ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_2 ~~ ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_3 ~~ ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_4 ~~ ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_5 ~~ ph_p_pds_003_6

              #observed variable intercepts
                      ph_p_pds_001_0 ~ tau_PS*1
                      ph_p_pds_001_1 ~ tau_PS*1
                      ph_p_pds_001_2 ~ tau_PS*1
                      ph_p_pds_001_3 ~ tau_PS*1
                      ph_p_pds_001_4 ~ tau_PS*1
                      ph_p_pds_001_5 ~ tau_PS*1
                      ph_p_pds_001_6 ~ tau_PS*1

                      ph_p_pds_002_0 ~ tau_PR*1
                      ph_p_pds_002_1 ~ tau_PR*1
                      ph_p_pds_002_2 ~ tau_PR*1
                      ph_p_pds_002_3 ~ tau_PR*1
                      ph_p_pds_002_4 ~ tau_PR*1
                      ph_p_pds_002_5 ~ tau_PR*1
                      ph_p_pds_002_6 ~ tau_PR*1

                      ph_p_pds_003_0 ~ tau_PM*1
                      ph_p_pds_003_1 ~ tau_PM*1
                      ph_p_pds_003_2 ~ tau_PM*1
                      ph_p_pds_003_3 ~ tau_PM*1
                      ph_p_pds_003_4 ~ tau_PM*1
                      ph_p_pds_003_5 ~ tau_PM*1
                      ph_p_pds_003_6 ~ tau_PM*1

              #latent basis model
                      pu_i =~ 1*pu_etaB + 1*pu_eta1 + 1*pu_eta2 + 1*pu_eta3 + 1*pu_eta4 + 1*pu_eta5 + 1*pu_eta6
                      pu_s =~ 0*pu_etaB + 0.5*pu_eta1 + 1*pu_eta2 + 1.5*pu_eta3 + 2*pu_eta4 + 2.5*pu_eta5 + 3*pu_eta6
                      pu_q =~ 0*pu_etaB + 0.25*pu_eta1 + 1*pu_eta2 + 2.25*pu_eta3 + 4*pu_eta4 + 6.25*pu_eta5 + 9*pu_eta6

                      pu_i~~NA*pu_i
                      pu_s~~NA*pu_s
                      pu_q~~NA*pu_q

                      pu_i~~pu_s + pu_q
                      pu_s~~pu_q

                      pu_i~1 + dummy_sex
                      pu_s~1 + dummy_sex
                      pu_q~1 + dummy_sex

                      pu_etaB~0*1
                      pu_eta1~0*1
                      pu_eta2~0*1
                      pu_eta3~0*1
                      pu_eta4~0*1
                      pu_eta5~0*1
                      pu_eta6~0*1

                      # regression
                      p_i ~ g_i + a_i + pu_i
                      p_s ~ g_i + g_s + a_i + a_s + pu_i + pu_s + pu_q
                      p_q ~ g_i + g_s + a_i + a_s + pu_i + pu_s + pu_q
lavaan(pga_pu6.sex.model,
  data = readRDS("pga6_all_data_sex.rds"),
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = T,
  std.lv = T
) %>%
  saveRDS("pgcm_pga_pu6_sex_model.rds")
result
readRDS("pgcm_pga_pu6_sex_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pgcm_pga_pu6_sex_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pgcm_pga_pu6_sex_model.rds"), "cor.lv"))$value
 [1] 7.933926608 5.921780599 4.657162664 3.223973261 2.242743684 1.363806493
 [7] 0.984756040 0.955060981 0.725917961 0.367334050 0.228339435 0.226518022
[13] 0.217649834 0.217489028 0.212543924 0.198544077 0.188171719 0.186856633
[19] 0.156892266 0.154690096 0.138906443 0.119597504 0.095622859 0.079391573
[25] 0.059006478 0.053185033 0.039614462 0.024810918 0.016393588 0.006751325
[31] 0.002562441
readRDS("pgcm_pga_pu6_sex_result.rds")
lavaan 0.6-19 ended normally after 423 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       969
  Number of equality constraints                   177

  Number of observations                         11867
  Number of missing patterns                      2198

Model Test User Model:
                                                       
  Test statistic                              51778.537
  Degrees of freedom                               6831
  P-value (Chi-square)                            0.000

Model Test Baseline Model:

  Test statistic                            902544.302
  Degrees of freedom                              7381
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.950
  Tucker-Lewis Index (TLI)                       0.946
                                                      
  Robust Comparative Fit Index (CFI)             0.949
  Robust Tucker-Lewis Index (TLI)                0.945

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)           -1153793.631
  Loglikelihood unrestricted model (H1)   -1127904.363
                                                      
  Akaike (AIC)                             2309171.262
  Bayesian (BIC)                           2315017.423
  Sample-size adjusted Bayesian (SABIC)    2312500.538

Root Mean Square Error of Approximation:

  RMSEA                                          0.024
  90 Percent confidence interval - lower         0.023
  90 Percent confidence interval - upper         0.024
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.027
  90 Percent confidence interval - lower         0.027
  90 Percent confidence interval - upper         0.027
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.054

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.842    0.834
    asr___0 (l_AW)    0.891    0.007  126.540    0.000    0.750    0.733
    asr___0 (l_AS)    0.799    0.007  112.093    0.000    0.673    0.672
    asr___0 (l_AC)    0.929    0.007  125.433    0.000    0.783    0.752
    asr___0 (l_AH)    0.907    0.007  131.157    0.000    0.764    0.767
    asr___0 (l_AA)    0.779    0.008   98.165    0.000    0.656    0.628
    asr___0 (l_AR)    0.921    0.007  125.137    0.000    0.776    0.757
    asr___0 (l_AG)    0.489    0.008   59.991    0.000    0.412    0.399
  a_eta2 =~                                                             
    asr___2           1.000                               0.832    0.819
    asr___2 (l_AW)    0.891    0.007  126.540    0.000    0.741    0.730
    asr___2 (l_AS)    0.799    0.007  112.093    0.000    0.665    0.664
    asr___2 (l_AC)    0.929    0.007  125.433    0.000    0.773    0.769
    asr___2 (l_AH)    0.907    0.007  131.157    0.000    0.755    0.773
    asr___2 (l_AA)    0.779    0.008   98.165    0.000    0.648    0.640
    asr___2 (l_AR)    0.921    0.007  125.137    0.000    0.766    0.758
    asr___2 (l_AG)    0.489    0.008   59.991    0.000    0.407    0.409
  a_eta4 =~                                                             
    asr___4           1.000                               0.801    0.803
    asr___4 (l_AW)    0.891    0.007  126.540    0.000    0.714    0.725
    asr___4 (l_AS)    0.799    0.007  112.093    0.000    0.640    0.652
    asr___4 (l_AC)    0.929    0.007  125.433    0.000    0.744    0.768
    asr___4 (l_AH)    0.907    0.007  131.157    0.000    0.726    0.746
    asr___4 (l_AA)    0.779    0.008   98.165    0.000    0.623    0.640
    asr___4 (l_AR)    0.921    0.007  125.137    0.000    0.737    0.752
    asr___4 (l_AG)    0.489    0.008   59.991    0.000    0.391    0.400
  a_i =~                                                                
    a_etaB            1.000                               0.926    0.926
    a_eta2            1.000                               0.937    0.937
    a_eta4            1.000                               0.974    0.974
  a_s =~                                                                
    a_etaB            0.000                               0.000    0.000
    a_eta2            1.000                               0.301    0.301
    a_eta4            2.000                               0.626    0.626
  p_etaB =~                                                             
    anxd__0           1.000                               0.740    0.719
    wthd__0 (l_CW)    0.863    0.006  141.050    0.000    0.639    0.708
    sm_cm_0 (l_CS)    0.739    0.007  110.901    0.000    0.547    0.549
    scpr__0 (l_CC)    1.118    0.007  153.791    0.000    0.827    0.787
    thpr__0 (l_CH)    1.104    0.007  152.344    0.000    0.817    0.788
    attp__0 (l_CA)    0.995    0.007  142.719    0.000    0.737    0.738
    rlbr__0 (l_CR)    0.858    0.007  120.405    0.000    0.635    0.676
    aggr__0 (l_CG)    1.066    0.007  147.020    0.000    0.789    0.755
  p_eta1 =~                                                             
    anxd__1           1.000                               0.735    0.711
    wthd__1 (l_CW)    0.863    0.006  141.050    0.000    0.635    0.694
    sm_cm_1 (l_CS)    0.739    0.007  110.901    0.000    0.543    0.544
    scpr__1 (l_CC)    1.118    0.007  153.791    0.000    0.822    0.796
    thpr__1 (l_CH)    1.104    0.007  152.344    0.000    0.812    0.782
    attp__1 (l_CA)    0.995    0.007  142.719    0.000    0.731    0.739
    rlbr__1 (l_CR)    0.858    0.007  120.405    0.000    0.631    0.673
    aggr__1 (l_CG)    1.066    0.007  147.020    0.000    0.784    0.763
  p_eta2 =~                                                             
    anxd__2           1.000                               0.727    0.716
    wthd__2 (l_CW)    0.863    0.006  141.050    0.000    0.628    0.653
    sm_cm_2 (l_CS)    0.739    0.007  110.901    0.000    0.537    0.557
    scpr__2 (l_CC)    1.118    0.007  153.791    0.000    0.813    0.808
    thpr__2 (l_CH)    1.104    0.007  152.344    0.000    0.803    0.797
    attp__2 (l_CA)    0.995    0.007  142.719    0.000    0.723    0.745
    rlbr__2 (l_CR)    0.858    0.007  120.405    0.000    0.624    0.662
    aggr__2 (l_CG)    1.066    0.007  147.020    0.000    0.775    0.767
  p_eta3 =~                                                             
    anxd__3           1.000                               0.720    0.704
    wthd__3 (l_CW)    0.863    0.006  141.050    0.000    0.622    0.602
    sm_cm_3 (l_CS)    0.739    0.007  110.901    0.000    0.532    0.552
    scpr__3 (l_CC)    1.118    0.007  153.791    0.000    0.805    0.818
    thpr__3 (l_CH)    1.104    0.007  152.344    0.000    0.795    0.804
    attp__3 (l_CA)    0.995    0.007  142.719    0.000    0.717    0.743
    rlbr__3 (l_CR)    0.858    0.007  120.405    0.000    0.618    0.648
    aggr__3 (l_CG)    1.066    0.007  147.020    0.000    0.768    0.768
  p_eta4 =~                                                             
    anxd__4           1.000                               0.708    0.709
    wthd__4 (l_CW)    0.863    0.006  141.050    0.000    0.611    0.560
    sm_cm_4 (l_CS)    0.739    0.007  110.901    0.000    0.523    0.522
    scpr__4 (l_CC)    1.118    0.007  153.791    0.000    0.791    0.820
    thpr__4 (l_CH)    1.104    0.007  152.344    0.000    0.782    0.808
    attp__4 (l_CA)    0.995    0.007  142.719    0.000    0.704    0.752
    rlbr__4 (l_CR)    0.858    0.007  120.405    0.000    0.607    0.586
    aggr__4 (l_CG)    1.066    0.007  147.020    0.000    0.755    0.785
  p_eta5 =~                                                             
    anxd__5           1.000                               0.705    0.699
    wthd__5 (l_CW)    0.863    0.006  141.050    0.000    0.609    0.540
    sm_cm_5 (l_CS)    0.739    0.007  110.901    0.000    0.521    0.487
    scpr__5 (l_CC)    1.118    0.007  153.791    0.000    0.788    0.822
    thpr__5 (l_CH)    1.104    0.007  152.344    0.000    0.779    0.786
    attp__5 (l_CA)    0.995    0.007  142.719    0.000    0.702    0.744
    rlbr__5 (l_CR)    0.858    0.007  120.405    0.000    0.605    0.524
    aggr__5 (l_CG)    1.066    0.007  147.020    0.000    0.751    0.783
  p_eta6 =~                                                             
    anxd__6           1.000                               0.671    0.699
    wthd__6 (l_CW)    0.863    0.006  141.050    0.000    0.579    0.535
    sm_cm_6 (l_CS)    0.739    0.007  110.901    0.000    0.496    0.465
    scpr__6 (l_CC)    1.118    0.007  153.791    0.000    0.750    0.829
    thpr__6 (l_CH)    1.104    0.007  152.344    0.000    0.741    0.805
    attp__6 (l_CA)    0.995    0.007  142.719    0.000    0.667    0.738
    rlbr__6 (l_CR)    0.858    0.007  120.405    0.000    0.575    0.496
    aggr__6 (l_CG)    1.066    0.007  147.020    0.000    0.715    0.795
  p_i =~                                                                
    p_etaB            1.000                               0.924    0.924
    p_eta1            1.000                               0.931    0.931
    p_eta2            1.000                               0.941    0.941
    p_eta3            1.000                               0.950    0.950
    p_eta4            1.000                               0.967    0.967
    p_eta5            1.000                               0.970    0.970
    p_eta6            1.000                               1.020    1.020
  p_s =~                                                                
    p_etaB            0.000                               0.000    0.000
    p_eta1            0.500                               0.289    0.289
    p_eta2            1.000                               0.585    0.585
    p_eta3            1.500                               0.885    0.885
    p_eta4            2.000                               1.201    1.201
    p_eta5            2.500                               1.507    1.507
    p_eta6            3.000                               1.902    1.902
  p_q =~                                                                
    p_etaB            0.000                               0.000    0.000
    p_eta1            0.250                               0.042    0.042
    p_eta2            1.000                               0.168    0.168
    p_eta3            2.250                               0.382    0.382
    p_eta4            4.000                               0.690    0.690
    p_eta5            6.250                               1.083    1.083
    p_eta6            9.000                               1.640    1.640
  g_etaB =~                                                             
    flnkr_0           1.000                               0.403    0.438
    pttrn_0 (lm_R)    1.218    0.011  112.681    0.000    0.491    0.646
    pictr_0 (lm_M)    0.599    0.009   64.799    0.000    0.242    0.287
    pcvcb_0 (lm_P)    0.929    0.009  107.753    0.000    0.375    0.447
    redng_0 (lm_V)    0.981    0.009  111.467    0.000    0.396    0.463
  g_eta2 =~                                                             
    flnkr_2           1.000                               0.412    0.517
    pttrn_2 (lm_R)    1.218    0.011  112.681    0.000    0.502    0.653
    pictr_2 (lm_M)    0.599    0.009   64.799    0.000    0.247    0.277
    pcvcb_2 (lm_P)    0.929    0.009  107.753    0.000    0.383    0.437
    redng_2 (lm_V)    0.981    0.009  111.467    0.000    0.404    0.479
  g_eta4 =~                                                             
    flnkr_4           1.000                               0.442    0.557
    pttrn_4 (lm_R)    1.218    0.011  112.681    0.000    0.539    0.656
    pictr_4 (lm_M)    0.599    0.009   64.799    0.000    0.265    0.250
    pcvcb_4 (lm_P)    0.929    0.009  107.753    0.000    0.411    0.444
    redng_4 (lm_V)    0.981    0.009  111.467    0.000    0.434    0.470
  g_eta6 =~                                                             
    flnkr_6           1.000                               0.495    0.608
    pttrn_6 (lm_R)    1.218    0.011  112.681    0.000    0.603    0.706
    pictr_6 (lm_M)    0.599    0.009   64.799    0.000    0.297    0.280
    pcvcb_6 (lm_P)    0.929    0.009  107.753    0.000    0.460    0.492
    redng_6 (lm_V)    0.981    0.009  111.467    0.000    0.486    0.501
  g_i =~                                                                
    g_etaB            1.000                               0.963    0.963
    g_eta2            1.000                               0.942    0.942
    g_eta4            1.000                               0.878    0.878
    g_eta6            1.000                               0.784    0.784
  g_s =~                                                                
    g_etaB            0.000                               0.000    0.000
    g_eta2            1.000                               0.127    0.127
    g_eta4            2.000                               0.237    0.237
    g_eta6            3.000                               0.318    0.318
  pu_etaB =~                                                            
    p___001           1.000                               0.441    0.396
    p___002 (l_PR)    1.343    0.010  141.242    0.000    0.593    0.731
    p___003 (l_PM)    1.253    0.009  136.297    0.000    0.553    0.694
  pu_eta1 =~                                                            
    p___001           1.000                               0.483    0.471
    p___002 (l_PR)    1.343    0.010  141.242    0.000    0.648    0.758
    p___003 (l_PM)    1.253    0.009  136.297    0.000    0.605    0.685
  pu_eta2 =~                                                            
    p___001           1.000                               0.497    0.535
    p___002 (l_PR)    1.343    0.010  141.242    0.000    0.667    0.787
    p___003 (l_PM)    1.253    0.009  136.297    0.000    0.622    0.692
  pu_eta3 =~                                                            
    p___001           1.000                               0.495    0.586
    p___002 (l_PR)    1.343    0.010  141.242    0.000    0.665    0.831
    p___003 (l_PM)    1.253    0.009  136.297    0.000    0.620    0.713
  pu_eta4 =~                                                            
    p___001           1.000                               0.464    0.615
    p___002 (l_PR)    1.343    0.010  141.242    0.000    0.623    0.865
    p___003 (l_PM)    1.253    0.009  136.297    0.000    0.581    0.725
  pu_eta5 =~                                                            
    p___001           1.000                               0.402    0.576
    p___002 (l_PR)    1.343    0.010  141.242    0.000    0.541    0.860
    p___003 (l_PM)    1.253    0.009  136.297    0.000    0.504    0.699
  pu_eta6 =~                                                            
    p___001           1.000                               0.349    0.519
    p___002 (l_PR)    1.343    0.010  141.242    0.000    0.469    0.846
    p___003 (l_PM)    1.253    0.009  136.297    0.000    0.438    0.659
  pu_i =~                                                               
    pu_etaB           1.000                               0.974    0.974
    pu_eta1           1.000                               0.890    0.890
    pu_eta2           1.000                               0.865    0.865
    pu_eta3           1.000                               0.868    0.868
    pu_eta4           1.000                               0.927    0.927
    pu_eta5           1.000                               1.068    1.068
    pu_eta6           1.000                               1.230    1.230
  pu_s =~                                                               
    pu_etaB           0.000                               0.000    0.000
    pu_eta1           0.500                               0.412    0.412
    pu_eta2           1.000                               0.802    0.802
    pu_eta3           1.500                               1.207    1.207
    pu_eta4           2.000                               1.718    1.718
    pu_eta5           2.500                               2.474    2.474
    pu_eta6           3.000                               3.420    3.420
  pu_q =~                                                               
    pu_etaB           0.000                               0.000    0.000
    pu_eta1           0.250                               0.062    0.062
    pu_eta2           1.000                               0.240    0.240
    pu_eta3           2.250                               0.541    0.541
    pu_eta4           4.000                               1.027    1.027
    pu_eta5           6.250                               1.849    1.849
    pu_eta6           9.000                               3.067    3.067

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_i ~                                                                 
    dummy_sex         0.031    0.016    1.938    0.053    0.040    0.020
  a_s ~                                                                 
    dummy_sex        -0.015    0.007   -2.036    0.042   -0.059   -0.029
  p_i ~                                                                 
    dummy_sex         0.143    0.013   10.891    0.000    0.208    0.104
  p_s ~                                                                 
    dummy_sex        -0.042    0.018   -2.342    0.019   -0.099   -0.050
  p_q ~                                                                 
    dummy_sex        -0.008    0.006   -1.417    0.156   -0.069   -0.034
  g_i ~                                                                 
    dummy_sex        -0.041    0.009   -4.395    0.000   -0.105   -0.052
  g_s ~                                                                 
    dummy_sex         0.004    0.003    1.164    0.244    0.077    0.038
  pu_i ~                                                                
    dummy_sex        -0.273    0.010  -28.330    0.000   -0.636   -0.318
  pu_s ~                                                                
    dummy_sex        -0.220    0.011  -19.406    0.000   -0.553   -0.276
  pu_q ~                                                                
    dummy_sex         0.062    0.004   16.903    0.000    0.518    0.259
  p_i ~                                                                 
    g_i              -0.259    0.019  -13.589    0.000   -0.147   -0.147
    a_i               0.606    0.010   59.194    0.000    0.691    0.691
    pu_i              0.047    0.018    2.627    0.009    0.029    0.029
  p_s ~                                                                 
    g_i               0.086    0.028    3.042    0.002    0.079    0.079
    g_s              -0.883    0.437   -2.022    0.043   -0.109   -0.109
    a_i               0.016    0.012    1.368    0.171    0.029    0.029
    a_s               1.290    0.065   19.806    0.000    0.761    0.761
    pu_i             -0.029    0.037   -0.766    0.443   -0.029   -0.029
    pu_s              0.048    0.100    0.476    0.634    0.045    0.045
    pu_q              0.135    0.347    0.389    0.698    0.038    0.038
  p_q ~                                                                 
    g_i              -0.018    0.009   -1.890    0.059   -0.056   -0.056
    g_s               0.243    0.144    1.685    0.092    0.104    0.104
    a_i              -0.018    0.004   -5.034    0.000   -0.116   -0.116
    a_s              -0.317    0.019  -16.844    0.000   -0.650   -0.650
    pu_i              0.012    0.013    0.980    0.327    0.043    0.043
    pu_s              0.019    0.034    0.552    0.581    0.061    0.061
    pu_q              0.066    0.116    0.571    0.568    0.065    0.065

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.181    0.005   36.973    0.000    0.181    0.557
   .asr_nxdp_cmp_4           0.165    0.005   32.636    0.000    0.165    0.497
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.201    0.005   37.268    0.000    0.201    0.582
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.228    0.006   37.167    0.000    0.228    0.471
   .asr_wthdp_cm_4           0.206    0.006   33.222    0.000    0.206    0.436
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.225    0.006   35.561    0.000    0.225    0.478
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.275    0.007   40.926    0.000    0.275    0.495
   .asr_soma_cmp_4           0.240    0.007   35.089    0.000    0.240    0.434
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.282    0.007   39.222    0.000    0.282    0.506
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.192    0.005   35.462    0.000    0.192    0.437
   .asr_thprb_cm_4           0.160    0.005   29.461    0.000    0.160    0.377
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.168    0.005   31.880    0.000    0.168    0.422
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.254    0.005   48.595    0.000    0.254    0.644
   .asr_ttprb_cm_4           0.248    0.006   44.917    0.000    0.248    0.599
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.267    0.006   47.612    0.000    0.267    0.666
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.305    0.007   41.526    0.000    0.305    0.483
   .asr_rlbrk_cm_4           0.261    0.007   35.963    0.000    0.261    0.429
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.284    0.007   38.850    0.000    0.284    0.487
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.243    0.006   43.321    0.000    0.243    0.551
   .asr_ggrss_cm_4           0.220    0.006   39.263    0.000    0.220    0.508
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.248    0.006   42.713    0.000    0.248    0.582
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.495    0.010   51.818    0.000    0.495    0.576
   .asr_intr_cmp_4           0.464    0.010   47.898    0.000    0.464    0.546
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.473    0.010   49.571    0.000    0.473    0.582
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.019    0.005    3.831    0.000    0.019    0.049
   .asr_soma_cmp_0           0.026    0.005    5.100    0.000    0.026    0.063
   .asr_wthdp_cm_2           0.019    0.005    3.918    0.000    0.019    0.049
   .asr_soma_cmp_2           0.032    0.005    6.173    0.000    0.032    0.076
   .asr_wthdp_cm_4           0.017    0.005    3.386    0.001    0.017    0.045
   .asr_soma_cmp_4           0.030    0.005    5.663    0.000    0.030    0.073
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2           0.009    0.005    1.800    0.072    0.009    0.022
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.025    0.005    4.796    0.000    0.025    0.057
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.035    0.005    6.773    0.000    0.035    0.088
   .asr_soma_cmp_2           0.045    0.005    8.194    0.000    0.045    0.103
   .asr_wthdp_cm_4           0.022    0.005    4.250    0.000    0.022    0.056
   .asr_soma_cmp_4           0.027    0.006    4.831    0.000    0.027    0.061
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4           0.001    0.005    0.148    0.882    0.001    0.002
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.023    0.005    4.303    0.000    0.023    0.053
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.016    0.005    3.087    0.002    0.016    0.040
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.042    0.006    7.401    0.000    0.042    0.094
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.041    0.006    7.383    0.000    0.041    0.101
   .asr_soma_cmp_4           0.057    0.006    9.724    0.000    0.057    0.129
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.033    0.006   -5.722    0.000   -0.033   -0.063
   .asr_soma_cmp_2          -0.021    0.006   -3.526    0.000   -0.021   -0.039
   .asr_soma_cmp_4          -0.035    0.006   -5.699    0.000   -0.035   -0.067
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.014    0.006   -2.487    0.013   -0.014   -0.028
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.016    0.006   -2.723    0.006   -0.016   -0.031
   .asr_soma_cmp_4          -0.023    0.006   -3.675    0.000   -0.023   -0.044
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.017    0.006   -2.838    0.005   -0.017   -0.033
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.021    0.006   -3.476    0.001   -0.021   -0.042
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.022    0.006   -3.594    0.000   -0.022   -0.044
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.131    0.007   19.516    0.000    0.131    0.207
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.073    0.006   12.329    0.000    0.073    0.135
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.084    0.006   13.045    0.000    0.084    0.139
   .asr_rlbrk_cm_2           0.025    0.006    4.305    0.000    0.025    0.047
   .asr_intr_cmp_4           0.093    0.007   13.912    0.000    0.093    0.154
   .asr_rlbrk_cm_4           0.032    0.006    5.478    0.000    0.032    0.063
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.093    0.007   13.979    0.000    0.093    0.148
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.050    0.006    8.547    0.000    0.050    0.094
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.136    0.007   20.639    0.000    0.136    0.227
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.045    0.006    7.832    0.000    0.045    0.088
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.107    0.007   15.867    0.000    0.107    0.180
   .asr_rlbrk_cm_4           0.043    0.006    7.282    0.000    0.043    0.086
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.095    0.007   13.984    0.000    0.095    0.156
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.056    0.006    9.310    0.000    0.056    0.107
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.102    0.007   15.322    0.000    0.102    0.174
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.047    0.006    7.884    0.000    0.047    0.093
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.137    0.007   20.045    0.000    0.137    0.236
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.064    0.006   10.881    0.000    0.064    0.133
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.119    0.008   15.473    0.000    0.119    0.155
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.067    0.007    8.999    0.000    0.067    0.091
   .asr_rlbrk_cm_4           0.072    0.008    9.450    0.000    0.072    0.101
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.072    0.008    9.533    0.000    0.072    0.097
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.111    0.007   15.165    0.000    0.111    0.158
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.071    0.007    9.520    0.000    0.071    0.104
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.086    0.008   10.995    0.000    0.086    0.117
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.078    0.008   10.263    0.000    0.078    0.112
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.110    0.008   14.574    0.000    0.110    0.163
 .a_i ~~                                                                       
   .a_s                     -0.080    0.004  -18.227    0.000   -0.409   -0.409
 .anxdep_comp_0 ~~                                                             
   .anxdep_comp_1            0.315    0.006   48.685    0.000    0.315    0.606
   .anxdep_comp_2            0.277    0.006   44.793    0.000    0.277    0.547
   .anxdep_comp_3            0.251    0.006   40.038    0.000    0.251    0.484
   .anxdep_comp_4            0.224    0.006   36.627    0.000    0.224    0.445
   .anxdep_comp_5            0.205    0.006   32.015    0.000    0.205    0.397
   .anxdep_comp_6            0.183    0.007   25.329    0.000    0.183    0.373
 .anxdep_comp_1 ~~                                                             
   .anxdep_comp_2            0.306    0.006   47.410    0.000    0.306    0.595
   .anxdep_comp_3            0.274    0.007   42.158    0.000    0.274    0.519
   .anxdep_comp_4            0.234    0.006   37.214    0.000    0.234    0.458
   .anxdep_comp_5            0.228    0.007   34.433    0.000    0.228    0.434
   .anxdep_comp_6            0.198    0.007   26.565    0.000    0.198    0.397
 .anxdep_comp_2 ~~                                                             
   .anxdep_comp_3            0.318    0.007   48.130    0.000    0.318    0.619
   .anxdep_comp_4            0.271    0.006   42.825    0.000    0.271    0.543
   .anxdep_comp_5            0.252    0.007   38.583    0.000    0.252    0.493
   .anxdep_comp_6            0.221    0.007   30.472    0.000    0.221    0.455
 .anxdep_comp_3 ~~                                                             
   .anxdep_comp_4            0.306    0.007   45.694    0.000    0.306    0.598
   .anxdep_comp_5            0.287    0.007   41.373    0.000    0.287    0.547
   .anxdep_comp_6            0.245    0.007   32.974    0.000    0.245    0.492
 .anxdep_comp_4 ~~                                                             
   .anxdep_comp_5            0.333    0.007   46.854    0.000    0.333    0.656
   .anxdep_comp_6            0.270    0.008   36.001    0.000    0.270    0.560
 .anxdep_comp_5 ~~                                                             
   .anxdep_comp_6            0.308    0.008   38.824    0.000    0.308    0.623
 .withdep_comp_0 ~~                                                            
   .withdep_comp_1           0.235    0.005   44.885    0.000    0.235    0.561
   .withdep_comp_2           0.197    0.005   36.745    0.000    0.197    0.426
   .withdep_comp_3           0.162    0.006   27.382    0.000    0.162    0.309
   .withdep_comp_4           0.126    0.007   19.246    0.000    0.126    0.219
   .withdep_comp_5           0.105    0.007   14.777    0.000    0.105    0.175
   .withdep_comp_6           0.083    0.008   10.138    0.000    0.083    0.143
 .withdep_comp_1 ~~                                                            
   .withdep_comp_2           0.257    0.006   44.564    0.000    0.257    0.536
   .withdep_comp_3           0.235    0.006   37.104    0.000    0.235    0.434
   .withdep_comp_4           0.200    0.007   28.766    0.000    0.200    0.336
   .withdep_comp_5           0.181    0.008   24.045    0.000    0.181    0.290
   .withdep_comp_6           0.145    0.008   17.161    0.000    0.145    0.242
 .withdep_comp_2 ~~                                                            
   .withdep_comp_3           0.336    0.007   45.615    0.000    0.336    0.561
   .withdep_comp_4           0.310    0.008   38.519    0.000    0.310    0.471
   .withdep_comp_5           0.286    0.009   33.147    0.000    0.286    0.414
   .withdep_comp_6           0.240    0.010   24.370    0.000    0.240    0.361
 .withdep_comp_3 ~~                                                            
   .withdep_comp_4           0.440    0.010   45.797    0.000    0.440    0.592
   .withdep_comp_5           0.426    0.010   41.530    0.000    0.426    0.544
   .withdep_comp_6           0.355    0.011   31.865    0.000    0.355    0.472
 .withdep_comp_4 ~~                                                            
   .withdep_comp_5           0.560    0.012   47.256    0.000    0.560    0.653
   .withdep_comp_6           0.474    0.013   37.622    0.000    0.474    0.574
 .withdep_comp_5 ~~                                                            
   .withdep_comp_6           0.570    0.014   41.313    0.000    0.570    0.657
 .soma_comp_0 ~~                                                               
   .soma_comp_1              0.355    0.008   45.900    0.000    0.355    0.510
   .soma_comp_2              0.300    0.007   40.801    0.000    0.300    0.451
   .soma_comp_3              0.267    0.007   36.192    0.000    0.267    0.399
   .soma_comp_4              0.254    0.008   32.014    0.000    0.254    0.357
   .soma_comp_5              0.250    0.009   27.986    0.000    0.250    0.322
   .soma_comp_6              0.245    0.011   22.869    0.000    0.245    0.312
 .soma_comp_1 ~~                                                               
   .soma_comp_2              0.336    0.008   44.265    0.000    0.336    0.501
   .soma_comp_3              0.292    0.008   38.653    0.000    0.292    0.435
   .soma_comp_4              0.278    0.008   34.423    0.000    0.278    0.388
   .soma_comp_5              0.281    0.009   30.868    0.000    0.281    0.359
   .soma_comp_6              0.257    0.011   23.564    0.000    0.257    0.325
 .soma_comp_2 ~~                                                               
   .soma_comp_3              0.325    0.007   43.652    0.000    0.325    0.505
   .soma_comp_4              0.304    0.008   38.352    0.000    0.304    0.444
   .soma_comp_5              0.298    0.009   33.920    0.000    0.298    0.398
   .soma_comp_6              0.273    0.010   26.499    0.000    0.273    0.362
 .soma_comp_3 ~~                                                               
   .soma_comp_4              0.339    0.008   41.284    0.000    0.339    0.494
   .soma_comp_5              0.327    0.009   36.004    0.000    0.327    0.436
   .soma_comp_6              0.313    0.011   29.645    0.000    0.313    0.412
 .soma_comp_4 ~~                                                               
   .soma_comp_5              0.442    0.010   43.329    0.000    0.442    0.553
   .soma_comp_6              0.412    0.012   34.566    0.000    0.412    0.510
 .soma_comp_5 ~~                                                               
   .soma_comp_6              0.523    0.013   39.143    0.000    0.523    0.593
 .socprob_comp_0 ~~                                                            
   .socprob_comp_1           0.197    0.005   36.652    0.000    0.197    0.485
   .socprob_comp_2           0.161    0.005   32.108    0.000    0.161    0.418
   .socprob_comp_3           0.126    0.005   26.413    0.000    0.126    0.344
   .socprob_comp_4           0.102    0.005   21.732    0.000    0.102    0.286
   .socprob_comp_5           0.091    0.005   19.017    0.000    0.091    0.257
   .socprob_comp_6           0.075    0.005   13.900    0.000    0.075    0.228
 .socprob_comp_1 ~~                                                            
   .socprob_comp_2           0.178    0.005   35.612    0.000    0.178    0.480
   .socprob_comp_3           0.142    0.005   29.794    0.000    0.142    0.400
   .socprob_comp_4           0.113    0.005   24.265    0.000    0.113    0.326
   .socprob_comp_5           0.098    0.005   20.807    0.000    0.098    0.286
   .socprob_comp_6           0.090    0.005   17.115    0.000    0.090    0.286
 .socprob_comp_2 ~~                                                            
   .socprob_comp_3           0.160    0.005   34.090    0.000    0.160    0.478
   .socprob_comp_4           0.136    0.005   29.900    0.000    0.136    0.418
   .socprob_comp_5           0.114    0.005   24.835    0.000    0.114    0.354
   .socprob_comp_6           0.103    0.005   20.507    0.000    0.103    0.344
 .socprob_comp_3 ~~                                                            
   .socprob_comp_4           0.145    0.005   31.962    0.000    0.145    0.463
   .socprob_comp_5           0.130    0.005   28.137    0.000    0.130    0.421
   .socprob_comp_6           0.112    0.005   22.532    0.000    0.112    0.392
 .socprob_comp_4 ~~                                                            
   .socprob_comp_5           0.156    0.005   33.077    0.000    0.156    0.517
   .socprob_comp_6           0.133    0.005   26.081    0.000    0.133    0.477
 .socprob_comp_5 ~~                                                            
   .socprob_comp_6           0.152    0.005   28.686    0.000    0.152    0.549
 .thouprob_comp_0 ~~                                                           
   .thouprob_cmp_1           0.200    0.005   37.766    0.000    0.200    0.482
   .thouprob_cmp_2           0.159    0.005   32.335    0.000    0.159    0.410
   .thouprob_cmp_3           0.135    0.005   28.054    0.000    0.135    0.359
   .thouprob_cmp_4           0.118    0.005   24.690    0.000    0.118    0.324
   .thouprob_cmp_5           0.114    0.005   21.962    0.000    0.114    0.291
   .thouprob_cmp_6           0.085    0.006   14.792    0.000    0.085    0.244
 .thouprob_comp_1 ~~                                                           
   .thouprob_cmp_2           0.189    0.005   36.598    0.000    0.189    0.479
   .thouprob_cmp_3           0.155    0.005   31.051    0.000    0.155    0.408
   .thouprob_cmp_4           0.135    0.005   27.401    0.000    0.135    0.365
   .thouprob_cmp_5           0.142    0.005   26.605    0.000    0.142    0.358
   .thouprob_cmp_6           0.102    0.006   17.649    0.000    0.102    0.289
 .thouprob_comp_2 ~~                                                           
   .thouprob_cmp_3           0.161    0.005   33.185    0.000    0.161    0.450
   .thouprob_cmp_4           0.134    0.005   28.412    0.000    0.134    0.386
   .thouprob_cmp_5           0.134    0.005   26.149    0.000    0.134    0.358
   .thouprob_cmp_6           0.094    0.006   16.917    0.000    0.094    0.282
 .thouprob_comp_3 ~~                                                           
   .thouprob_cmp_4           0.141    0.005   29.917    0.000    0.141    0.421
   .thouprob_cmp_5           0.133    0.005   26.123    0.000    0.133    0.370
   .thouprob_cmp_6           0.093    0.005   17.229    0.000    0.093    0.291
 .thouprob_comp_4 ~~                                                           
   .thouprob_cmp_5           0.173    0.005   33.257    0.000    0.173    0.495
   .thouprob_cmp_6           0.127    0.005   23.169    0.000    0.127    0.408
 .thouprob_comp_5 ~~                                                           
   .thouprob_cmp_6           0.168    0.006   27.739    0.000    0.168    0.502
 .attprob_comp_0 ~~                                                            
   .attprob_comp_1           0.303    0.006   51.720    0.000    0.303    0.673
   .attprob_comp_2           0.268    0.006   48.153    0.000    0.268    0.614
   .attprob_comp_3           0.248    0.006   45.051    0.000    0.248    0.571
   .attprob_comp_4           0.217    0.005   41.023    0.000    0.217    0.522
   .attprob_comp_5           0.217    0.006   39.399    0.000    0.217    0.511
   .attprob_comp_6           0.192    0.006   31.479    0.000    0.192    0.467
 .attprob_comp_1 ~~                                                            
   .attprob_comp_2           0.290    0.006   50.811    0.000    0.290    0.670
   .attprob_comp_3           0.265    0.006   47.330    0.000    0.265    0.616
   .attprob_comp_4           0.227    0.005   42.464    0.000    0.227    0.551
   .attprob_comp_5           0.229    0.006   41.345    0.000    0.229    0.542
   .attprob_comp_6           0.204    0.006   33.414    0.000    0.204    0.500
 .attprob_comp_2 ~~                                                            
   .attprob_comp_3           0.278    0.006   49.615    0.000    0.278    0.664
   .attprob_comp_4           0.239    0.005   45.013    0.000    0.239    0.596
   .attprob_comp_5           0.241    0.006   43.811    0.000    0.241    0.590
   .attprob_comp_6           0.213    0.006   35.596    0.000    0.213    0.538
 .attprob_comp_3 ~~                                                            
   .attprob_comp_4           0.258    0.005   47.363    0.000    0.258    0.649
   .attprob_comp_5           0.252    0.006   45.018    0.000    0.252    0.619
   .attprob_comp_6           0.221    0.006   36.944    0.000    0.221    0.562
 .attprob_comp_4 ~~                                                            
   .attprob_comp_5           0.267    0.006   47.461    0.000    0.267    0.685
   .attprob_comp_6           0.235    0.006   39.390    0.000    0.235    0.624
 .attprob_comp_5 ~~                                                            
   .attprob_comp_6           0.266    0.006   42.026    0.000    0.266    0.691
 .rulebreak_comp_0 ~~                                                          
   .rulebrek_cmp_1           0.291    0.006   49.976    0.000    0.291    0.608
   .rulebrek_cmp_2           0.255    0.006   43.956    0.000    0.255    0.523
   .rulebrek_cmp_3           0.238    0.006   39.588    0.000    0.238    0.475
   .rulebrek_cmp_4           0.240    0.007   34.541    0.000    0.240    0.413
   .rulebrek_cmp_5           0.266    0.008   32.347    0.000    0.266    0.392
   .rulebrek_cmp_6           0.224    0.010   23.022    0.000    0.224    0.322
 .rulebreak_comp_1 ~~                                                          
   .rulebrek_cmp_2           0.281    0.006   46.926    0.000    0.281    0.575
   .rulebrek_cmp_3           0.266    0.006   43.115    0.000    0.266    0.530
   .rulebrek_cmp_4           0.278    0.007   39.059    0.000    0.278    0.478
   .rulebrek_cmp_5           0.278    0.008   33.475    0.000    0.278    0.409
   .rulebrek_cmp_6           0.252    0.010   25.339    0.000    0.252    0.361
 .rulebreak_comp_2 ~~                                                          
   .rulebrek_cmp_3           0.304    0.007   46.455    0.000    0.304    0.595
   .rulebrek_cmp_4           0.300    0.007   40.634    0.000    0.300    0.506
   .rulebrek_cmp_5           0.337    0.009   38.722    0.000    0.337    0.486
   .rulebrek_cmp_6           0.315    0.010   30.549    0.000    0.315    0.443
 .rulebreak_comp_3 ~~                                                          
   .rulebrek_cmp_4           0.347    0.008   43.931    0.000    0.347    0.569
   .rulebrek_cmp_5           0.367    0.009   39.710    0.000    0.367    0.514
   .rulebrek_cmp_6           0.355    0.011   33.603    0.000    0.355    0.485
 .rulebreak_comp_4 ~~                                                          
   .rulebrek_cmp_5           0.534    0.011   47.472    0.000    0.534    0.646
   .rulebrek_cmp_6           0.510    0.013   39.812    0.000    0.510    0.603
 .rulebreak_comp_5 ~~                                                          
   .rulebrek_cmp_6           0.712    0.016   45.920    0.000    0.712    0.719
 .aggress_comp_0 ~~                                                            
   .aggress_comp_1           0.299    0.006   49.840    0.000    0.299    0.657
   .aggress_comp_2           0.269    0.006   46.579    0.000    0.269    0.605
   .aggress_comp_3           0.232    0.006   41.160    0.000    0.232    0.530
   .aggress_comp_4           0.204    0.005   38.466    0.000    0.204    0.500
   .aggress_comp_5           0.197    0.005   36.182    0.000    0.197    0.481
   .aggress_comp_6           0.160    0.006   27.798    0.000    0.160    0.427
 .aggress_comp_1 ~~                                                            
   .aggress_comp_2           0.277    0.006   48.223    0.000    0.277    0.643
   .aggress_comp_3           0.246    0.006   43.907    0.000    0.246    0.580
   .aggress_comp_4           0.209    0.005   39.978    0.000    0.209    0.529
   .aggress_comp_5           0.196    0.005   36.744    0.000    0.196    0.495
   .aggress_comp_6           0.161    0.006   28.357    0.000    0.161    0.446
 .aggress_comp_2 ~~                                                            
   .aggress_comp_3           0.269    0.006   47.228    0.000    0.269    0.649
   .aggress_comp_4           0.220    0.005   41.990    0.000    0.220    0.570
   .aggress_comp_5           0.214    0.005   39.971    0.000    0.214    0.552
   .aggress_comp_6           0.182    0.006   32.358    0.000    0.182    0.513
 .aggress_comp_3 ~~                                                            
   .aggress_comp_4           0.241    0.005   44.775    0.000    0.241    0.635
   .aggress_comp_5           0.224    0.005   41.160    0.000    0.224    0.587
   .aggress_comp_6           0.192    0.006   34.294    0.000    0.192    0.550
 .aggress_comp_4 ~~                                                            
   .aggress_comp_5           0.238    0.005   44.588    0.000    0.238    0.669
   .aggress_comp_6           0.198    0.005   36.366    0.000    0.198    0.611
 .aggress_comp_5 ~~                                                            
   .aggress_comp_6           0.223    0.006   38.940    0.000    0.223    0.685
 .anxdep_comp_0 ~~                                                             
   .withdep_comp_0           0.097    0.005   19.105    0.000    0.097    0.213
   .soma_comp_0              0.113    0.006   18.176    0.000    0.113    0.190
   .withdep_comp_1           0.081    0.005   15.673    0.000    0.081    0.171
   .soma_comp_1              0.078    0.006   12.397    0.000    0.078    0.130
   .withdep_comp_2           0.081    0.006   14.462    0.000    0.081    0.156
   .soma_comp_2              0.072    0.006   11.835    0.000    0.072    0.125
   .withdep_comp_3           0.094    0.007   14.396    0.000    0.094    0.159
   .soma_comp_3              0.073    0.006   11.749    0.000    0.073    0.127
   .withdep_comp_4           0.078    0.007   10.649    0.000    0.078    0.121
   .soma_comp_4              0.081    0.007   12.035    0.000    0.081    0.133
   .withdep_comp_5           0.074    0.008    9.120    0.000    0.074    0.108
   .soma_comp_5              0.061    0.008    8.009    0.000    0.061    0.092
   .withdep_comp_6           0.062    0.009    6.694    0.000    0.062    0.095
   .soma_comp_6              0.066    0.009    7.028    0.000    0.066    0.098
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_1            0.065    0.005   12.833    0.000    0.065    0.141
 .soma_comp_0 ~~                                                               
   .anxdep_comp_1            0.093    0.006   14.654    0.000    0.093    0.153
 .anxdep_comp_1 ~~                                                             
   .withdep_comp_1           0.100    0.005   18.752    0.000    0.100    0.210
   .soma_comp_1              0.106    0.006   16.396    0.000    0.106    0.175
   .withdep_comp_2           0.087    0.006   14.971    0.000    0.087    0.164
   .soma_comp_2              0.078    0.006   12.537    0.000    0.078    0.134
   .withdep_comp_3           0.108    0.007   16.106    0.000    0.108    0.180
   .soma_comp_3              0.074    0.006   11.702    0.000    0.074    0.127
   .withdep_comp_4           0.093    0.007   12.395    0.000    0.093    0.142
   .soma_comp_4              0.086    0.007   12.503    0.000    0.086    0.139
   .withdep_comp_5           0.108    0.008   13.037    0.000    0.108    0.156
   .soma_comp_5              0.083    0.008   10.641    0.000    0.083    0.123
   .withdep_comp_6           0.086    0.009    9.080    0.000    0.086    0.130
   .soma_comp_6              0.071    0.010    7.388    0.000    0.071    0.104
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_2            0.073    0.005   14.439    0.000    0.073    0.161
 .soma_comp_0 ~~                                                               
   .anxdep_comp_2            0.091    0.006   14.545    0.000    0.091    0.154
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_2            0.089    0.005   17.222    0.000    0.089    0.192
 .soma_comp_1 ~~                                                               
   .anxdep_comp_2            0.081    0.006   12.798    0.000    0.081    0.136
 .anxdep_comp_2 ~~                                                             
   .withdep_comp_2           0.140    0.006   23.961    0.000    0.140    0.271
   .soma_comp_2              0.110    0.006   17.842    0.000    0.110    0.193
   .withdep_comp_3           0.130    0.007   19.851    0.000    0.130    0.224
   .soma_comp_3              0.091    0.006   14.692    0.000    0.091    0.161
   .withdep_comp_4           0.113    0.007   15.395    0.000    0.113    0.177
   .soma_comp_4              0.103    0.007   15.198    0.000    0.103    0.169
   .withdep_comp_5           0.103    0.008   12.858    0.000    0.103    0.153
   .soma_comp_5              0.087    0.008   11.405    0.000    0.087    0.131
   .withdep_comp_6           0.080    0.009    8.820    0.000    0.080    0.124
   .soma_comp_6              0.079    0.009    8.526    0.000    0.079    0.118
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_3            0.060    0.005   11.395    0.000    0.060    0.129
 .soma_comp_0 ~~                                                               
   .anxdep_comp_3            0.097    0.006   15.002    0.000    0.097    0.161
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_3            0.076    0.005   14.184    0.000    0.076    0.159
 .soma_comp_1 ~~                                                               
   .anxdep_comp_3            0.087    0.007   13.209    0.000    0.087    0.143
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_3            0.112    0.006   18.891    0.000    0.112    0.212
 .soma_comp_2 ~~                                                               
   .anxdep_comp_3            0.096    0.006   15.167    0.000    0.096    0.165
 .anxdep_comp_3 ~~                                                             
   .withdep_comp_3           0.184    0.007   26.294    0.000    0.184    0.307
   .soma_comp_3              0.125    0.007   19.199    0.000    0.125    0.214
   .withdep_comp_4           0.144    0.008   18.785    0.000    0.144    0.219
   .soma_comp_4              0.132    0.007   18.712    0.000    0.132    0.213
   .withdep_comp_5           0.142    0.008   16.999    0.000    0.142    0.207
   .soma_comp_5              0.124    0.008   15.501    0.000    0.124    0.182
   .withdep_comp_6           0.107    0.009   11.580    0.000    0.107    0.161
   .soma_comp_6              0.130    0.009   13.792    0.000    0.130    0.190
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_4            0.041    0.005    7.991    0.000    0.041    0.092
 .soma_comp_0 ~~                                                               
   .anxdep_comp_4            0.079    0.006   12.324    0.000    0.079    0.135
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_4            0.060    0.005   11.278    0.000    0.060    0.129
 .soma_comp_1 ~~                                                               
   .anxdep_comp_4            0.075    0.006   11.612    0.000    0.075    0.128
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_4            0.088    0.006   14.987    0.000    0.088    0.171
 .soma_comp_2 ~~                                                               
   .anxdep_comp_4            0.080    0.006   12.775    0.000    0.080    0.142
 .withdep_comp_3 ~~                                                            
   .anxdep_comp_4            0.131    0.007   19.375    0.000    0.131    0.226
 .soma_comp_3 ~~                                                               
   .anxdep_comp_4            0.097    0.006   15.204    0.000    0.097    0.172
 .anxdep_comp_4 ~~                                                             
   .withdep_comp_4           0.202    0.008   25.916    0.000    0.202    0.317
   .soma_comp_4              0.149    0.007   21.294    0.000    0.149    0.247
   .withdep_comp_5           0.165    0.008   19.897    0.000    0.165    0.247
   .soma_comp_5              0.138    0.008   17.519    0.000    0.138    0.209
   .withdep_comp_6           0.128    0.009   13.952    0.000    0.128    0.199
   .soma_comp_6              0.138    0.009   14.668    0.000    0.138    0.208
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_5            0.037    0.005    6.690    0.000    0.037    0.080
 .soma_comp_0 ~~                                                               
   .anxdep_comp_5            0.070    0.007   10.276    0.000    0.070    0.117
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_5            0.059    0.006   10.541    0.000    0.059    0.124
 .soma_comp_1 ~~                                                               
   .anxdep_comp_5            0.078    0.007   11.327    0.000    0.078    0.129
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_5            0.093    0.006   14.972    0.000    0.093    0.177
 .soma_comp_2 ~~                                                               
   .anxdep_comp_5            0.085    0.007   12.875    0.000    0.085    0.147
 .withdep_comp_3 ~~                                                            
   .anxdep_comp_5            0.139    0.007   19.482    0.000    0.139    0.234
 .soma_comp_3 ~~                                                               
   .anxdep_comp_5            0.093    0.007   13.739    0.000    0.093    0.160
 .withdep_comp_4 ~~                                                            
   .anxdep_comp_5            0.175    0.008   21.749    0.000    0.175    0.268
 .soma_comp_4 ~~                                                               
   .anxdep_comp_5            0.142    0.007   19.318    0.000    0.142    0.231
 .anxdep_comp_5 ~~                                                             
   .withdep_comp_5           0.243    0.009   27.304    0.000    0.243    0.356
   .soma_comp_5              0.176    0.008   21.396    0.000    0.176    0.262
   .withdep_comp_6           0.156    0.010   16.316    0.000    0.156    0.236
   .soma_comp_6              0.152    0.010   15.602    0.000    0.152    0.224
 .withdep_comp_0 ~~                                                            
   .anxdep_comp_6            0.043    0.006    6.697    0.000    0.043    0.097
 .soma_comp_0 ~~                                                               
   .anxdep_comp_6            0.064    0.008    8.215    0.000    0.064    0.112
 .withdep_comp_1 ~~                                                            
   .anxdep_comp_6            0.061    0.006    9.494    0.000    0.061    0.135
 .soma_comp_1 ~~                                                               
   .anxdep_comp_6            0.067    0.008    8.502    0.000    0.067    0.117
 .withdep_comp_2 ~~                                                            
   .anxdep_comp_6            0.089    0.007   12.226    0.000    0.089    0.179
 .soma_comp_2 ~~                                                               
   .anxdep_comp_6            0.084    0.007   11.321    0.000    0.084    0.154
 .withdep_comp_3 ~~                                                            
   .anxdep_comp_6            0.130    0.008   16.000    0.000    0.130    0.230
 .soma_comp_3 ~~                                                               
   .anxdep_comp_6            0.075    0.008    9.943    0.000    0.075    0.136
 .withdep_comp_4 ~~                                                            
   .anxdep_comp_6            0.156    0.009   17.318    0.000    0.156    0.251
 .soma_comp_4 ~~                                                               
   .anxdep_comp_6            0.111    0.008   13.263    0.000    0.111    0.189
 .withdep_comp_5 ~~                                                            
   .anxdep_comp_6            0.186    0.010   19.162    0.000    0.186    0.285
 .soma_comp_5 ~~                                                               
   .anxdep_comp_6            0.119    0.009   13.036    0.000    0.119    0.186
 .anxdep_comp_6 ~~                                                             
   .withdep_comp_6           0.223    0.010   22.101    0.000    0.223    0.356
   .soma_comp_6              0.165    0.010   16.735    0.000    0.165    0.255
 .withdep_comp_0 ~~                                                            
   .soma_comp_0              0.046    0.005    8.329    0.000    0.046    0.086
   .soma_comp_1              0.046    0.006    8.266    0.000    0.046    0.087
   .soma_comp_2              0.032    0.005    5.964    0.000    0.032    0.064
   .soma_comp_3              0.022    0.006    3.977    0.000    0.022    0.043
   .soma_comp_4              0.013    0.006    2.181    0.029    0.013    0.024
   .soma_comp_5             -0.015    0.007   -2.196    0.028   -0.015   -0.026
   .soma_comp_6             -0.014    0.009   -1.611    0.107   -0.014   -0.023
 .soma_comp_0 ~~                                                               
   .withdep_comp_1           0.030    0.006    5.329    0.000    0.030    0.055
 .withdep_comp_1 ~~                                                            
   .soma_comp_1              0.059    0.006   10.285    0.000    0.059    0.108
   .soma_comp_2              0.044    0.006    7.858    0.000    0.044    0.083
   .soma_comp_3              0.045    0.006    7.913    0.000    0.045    0.085
   .soma_comp_4              0.032    0.006    5.125    0.000    0.032    0.057
   .soma_comp_5              0.027    0.007    3.820    0.000    0.027    0.044
   .soma_comp_6              0.011    0.009    1.331    0.183    0.011    0.018
 .soma_comp_0 ~~                                                               
   .withdep_comp_2           0.043    0.006    6.879    0.000    0.043    0.071
 .soma_comp_1 ~~                                                               
   .withdep_comp_2           0.058    0.006    9.179    0.000    0.058    0.096
 .withdep_comp_2 ~~                                                            
   .soma_comp_2              0.073    0.006   11.962    0.000    0.073    0.126
   .soma_comp_3              0.055    0.006    8.795    0.000    0.055    0.094
   .soma_comp_4              0.071    0.007   10.395    0.000    0.071    0.114
   .soma_comp_5              0.064    0.008    8.202    0.000    0.064    0.093
   .soma_comp_6              0.048    0.010    4.872    0.000    0.048    0.069
 .soma_comp_0 ~~                                                               
   .withdep_comp_3           0.059    0.007    8.147    0.000    0.059    0.086
 .soma_comp_1 ~~                                                               
   .withdep_comp_3           0.053    0.007    7.202    0.000    0.053    0.077
 .soma_comp_2 ~~                                                               
   .withdep_comp_3           0.059    0.007    8.383    0.000    0.059    0.089
 .withdep_comp_3 ~~                                                            
   .soma_comp_3              0.081    0.007   11.295    0.000    0.081    0.122
   .soma_comp_4              0.108    0.008   13.628    0.000    0.108    0.153
   .soma_comp_5              0.120    0.009   13.455    0.000    0.120    0.155
   .soma_comp_6              0.122    0.011   11.288    0.000    0.122    0.157
 .soma_comp_0 ~~                                                               
   .withdep_comp_4           0.050    0.008    6.122    0.000    0.050    0.067
 .soma_comp_1 ~~                                                               
   .withdep_comp_4           0.062    0.008    7.564    0.000    0.062    0.083
 .soma_comp_2 ~~                                                               
   .withdep_comp_4           0.058    0.008    7.221    0.000    0.058    0.080
 .soma_comp_3 ~~                                                               
   .withdep_comp_4           0.080    0.008    9.847    0.000    0.080    0.110
 .withdep_comp_4 ~~                                                            
   .soma_comp_4              0.146    0.009   16.664    0.000    0.146    0.190
   .soma_comp_5              0.143    0.010   14.439    0.000    0.143    0.169
   .soma_comp_6              0.162    0.012   13.582    0.000    0.162    0.190
 .soma_comp_0 ~~                                                               
   .withdep_comp_5           0.042    0.009    4.648    0.000    0.042    0.053
 .soma_comp_1 ~~                                                               
   .withdep_comp_5           0.056    0.009    6.130    0.000    0.056    0.070
 .soma_comp_2 ~~                                                               
   .withdep_comp_5           0.051    0.009    5.908    0.000    0.051    0.068
 .soma_comp_3 ~~                                                               
   .withdep_comp_5           0.073    0.009    8.189    0.000    0.073    0.096
 .soma_comp_4 ~~                                                               
   .withdep_comp_5           0.136    0.010   14.118    0.000    0.136    0.167
 .withdep_comp_5 ~~                                                            
   .soma_comp_5              0.208    0.011   19.468    0.000    0.208    0.234
   .soma_comp_6              0.194    0.013   15.210    0.000    0.194    0.217
 .soma_comp_0 ~~                                                               
   .withdep_comp_6           0.049    0.010    4.820    0.000    0.049    0.065
 .soma_comp_1 ~~                                                               
   .withdep_comp_6           0.037    0.010    3.610    0.000    0.037    0.049
 .soma_comp_2 ~~                                                               
   .withdep_comp_6           0.039    0.010    3.961    0.000    0.039    0.053
 .soma_comp_3 ~~                                                               
   .withdep_comp_6           0.049    0.010    5.011    0.000    0.049    0.067
 .soma_comp_4 ~~                                                               
   .withdep_comp_6           0.093    0.011    8.591    0.000    0.093    0.119
 .soma_comp_5 ~~                                                               
   .withdep_comp_6           0.135    0.012   11.373    0.000    0.135    0.158
 .withdep_comp_6 ~~                                                            
   .soma_comp_6              0.205    0.013   15.923    0.000    0.205    0.238
 .rulebreak_comp_0 ~~                                                          
   .aggress_comp_0           0.220    0.006   38.719    0.000    0.220    0.465
   .aggress_comp_1           0.171    0.005   32.149    0.000    0.171    0.374
   .aggress_comp_2           0.161    0.005   30.642    0.000    0.161    0.359
   .aggress_comp_3           0.139    0.005   26.304    0.000    0.139    0.313
   .aggress_comp_4           0.131    0.005   25.863    0.000    0.131    0.317
   .aggress_comp_5           0.133    0.005   25.625    0.000    0.133    0.323
   .aggress_comp_6           0.112    0.006   19.706    0.000    0.112    0.296
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_1           0.180    0.005   32.857    0.000    0.180    0.380
 .rulebreak_comp_1 ~~                                                          
   .aggress_comp_1           0.215    0.006   37.923    0.000    0.215    0.468
   .aggress_comp_2           0.169    0.005   31.768    0.000    0.169    0.376
   .aggress_comp_3           0.151    0.005   28.353    0.000    0.151    0.341
   .aggress_comp_4           0.143    0.005   28.040    0.000    0.143    0.348
   .aggress_comp_5           0.135    0.005   25.752    0.000    0.135    0.326
   .aggress_comp_6           0.123    0.006   21.341    0.000    0.123    0.327
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_2           0.160    0.006   28.758    0.000    0.160    0.330
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_2           0.163    0.005   29.846    0.000    0.163    0.349
 .rulebreak_comp_2 ~~                                                          
   .aggress_comp_2           0.222    0.006   38.542    0.000    0.222    0.485
   .aggress_comp_3           0.168    0.006   30.224    0.000    0.168    0.372
   .aggress_comp_4           0.142    0.005   27.132    0.000    0.142    0.339
   .aggress_comp_5           0.143    0.005   26.715    0.000    0.143    0.340
   .aggress_comp_6           0.140    0.006   23.650    0.000    0.140    0.364
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_3           0.159    0.006   27.508    0.000    0.159    0.321
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_3           0.163    0.006   28.544    0.000    0.163    0.338
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_3           0.179    0.006   31.369    0.000    0.179    0.380
 .rulebreak_comp_3 ~~                                                          
   .aggress_comp_3           0.231    0.006   37.993    0.000    0.231    0.497
   .aggress_comp_4           0.165    0.005   30.127    0.000    0.165    0.383
   .aggress_comp_5           0.156    0.006   27.781    0.000    0.156    0.360
   .aggress_comp_6           0.153    0.006   25.618    0.000    0.153    0.388
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_4           0.181    0.007   26.720    0.000    0.181    0.315
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_4           0.188    0.007   28.219    0.000    0.188    0.337
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_4           0.187    0.007   28.541    0.000    0.187    0.344
 .aggress_comp_3 ~~                                                            
   .rulebrek_cmp_4           0.204    0.007   30.231    0.000    0.204    0.379
 .rulebreak_comp_4 ~~                                                          
   .aggress_comp_4           0.249    0.007   37.263    0.000    0.249    0.498
   .aggress_comp_5           0.207    0.007   31.225    0.000    0.207    0.414
   .aggress_comp_6           0.174    0.007   24.667    0.000    0.174    0.380
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_5           0.212    0.008   26.028    0.000    0.212    0.314
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_5           0.200    0.008   25.166    0.000    0.200    0.306
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_5           0.226    0.008   28.618    0.000    0.226    0.354
 .aggress_comp_3 ~~                                                            
   .rulebrek_cmp_5           0.225    0.008   28.086    0.000    0.225    0.358
 .aggress_comp_4 ~~                                                            
   .rulebrek_cmp_5           0.232    0.008   30.521    0.000    0.232    0.397
 .rulebreak_comp_5 ~~                                                          
   .aggress_comp_5           0.311    0.008   37.973    0.000    0.311    0.529
   .aggress_comp_6           0.238    0.008   28.564    0.000    0.238    0.443
 .aggress_comp_0 ~~                                                            
   .rulebrek_cmp_6           0.194    0.010   20.144    0.000    0.194    0.281
 .aggress_comp_1 ~~                                                            
   .rulebrek_cmp_6           0.176    0.009   18.662    0.000    0.176    0.264
 .aggress_comp_2 ~~                                                            
   .rulebrek_cmp_6           0.211    0.009   22.777    0.000    0.211    0.323
 .aggress_comp_3 ~~                                                            
   .rulebrek_cmp_6           0.220    0.009   23.814    0.000    0.220    0.341
 .aggress_comp_4 ~~                                                            
   .rulebrek_cmp_6           0.224    0.009   25.364    0.000    0.224    0.374
 .aggress_comp_5 ~~                                                            
   .rulebrek_cmp_6           0.250    0.009   27.284    0.000    0.250    0.415
 .rulebreak_comp_6 ~~                                                          
   .aggress_comp_6           0.274    0.009   29.264    0.000    0.274    0.499
 .p_i ~~                                                                       
   .p_s                     -0.029    0.006   -5.113    0.000   -0.218   -0.218
   .p_q                      0.001    0.002    0.452    0.651    0.017    0.017
 .p_s ~~                                                                       
   .p_q                     -0.023    0.003   -8.444    0.000   -0.861   -0.861
 .flanker_0 ~~                                                                 
   .flanker_2                0.138    0.007   18.786    0.000    0.138    0.244
   .flanker_4                0.099    0.008   13.142    0.000    0.099    0.181
   .flanker_6                0.087    0.009    9.370    0.000    0.087    0.163
 .flanker_2 ~~                                                                 
   .flanker_4                0.145    0.007   19.947    0.000    0.145    0.322
   .flanker_6                0.102    0.008   12.605    0.000    0.102    0.232
 .flanker_4 ~~                                                                 
   .flanker_6                0.153    0.009   16.871    0.000    0.153    0.358
 .pattern_0 ~~                                                                 
   .pattern_2                0.073    0.005   13.451    0.000    0.073    0.217
   .pattern_4                0.039    0.006    6.661    0.000    0.039    0.109
   .pattern_6                0.032    0.007    4.552    0.000    0.032    0.092
 .pattern_2 ~~                                                                 
   .pattern_4                0.104    0.007   15.252    0.000    0.104    0.288
   .pattern_6                0.073    0.008    9.746    0.000    0.073    0.208
 .pattern_4 ~~                                                                 
   .pattern_6                0.125    0.009   14.039    0.000    0.125    0.333
 .picture_0 ~~                                                                 
   .picture_2                0.252    0.007   33.907    0.000    0.252    0.364
   .picture_4                0.258    0.009   28.165    0.000    0.258    0.311
   .picture_6                0.282    0.012   23.607    0.000    0.282    0.344
 .picture_2 ~~                                                                 
   .picture_4                0.287    0.010   28.161    0.000    0.287    0.326
   .picture_6                0.267    0.013   19.946    0.000    0.267    0.307
 .picture_4 ~~                                                                 
   .picture_6                0.391    0.016   24.780    0.000    0.391    0.374
 .picvocab_0 ~~                                                                
   .picvocab_2               0.400    0.007   53.381    0.000    0.400    0.678
   .picvocab_4               0.404    0.008   50.861    0.000    0.404    0.649
   .picvocab_6               0.383    0.009   43.456    0.000    0.383    0.627
 .picvocab_2 ~~                                                                
   .picvocab_4               0.476    0.009   54.242    0.000    0.476    0.729
   .picvocab_6               0.463    0.010   47.627    0.000    0.463    0.722
 .picvocab_4 ~~                                                                
   .picvocab_6               0.512    0.011   48.551    0.000    0.512    0.758
 .reading_0 ~~                                                                 
   .reading_2                0.406    0.007   55.049    0.000    0.406    0.722
   .reading_4                0.410    0.008   50.930    0.000    0.410    0.662
   .reading_6                0.419    0.010   43.706    0.000    0.419    0.658
 .reading_2 ~~                                                                 
   .reading_4                0.419    0.008   51.461    0.000    0.419    0.694
   .reading_6                0.435    0.010   45.429    0.000    0.435    0.700
 .reading_4 ~~                                                                 
   .reading_6                0.459    0.011   43.062    0.000    0.459    0.670
 .picvocab_0 ~~                                                                
   .reading_0                0.235    0.007   36.129    0.000    0.235    0.413
   .reading_2                0.248    0.007   37.838    0.000    0.248    0.447
   .reading_4                0.267    0.007   36.432    0.000    0.267    0.436
   .reading_6                0.285    0.009   32.322    0.000    0.285    0.453
 .picvocab_2 ~~                                                                
   .reading_2                0.291    0.007   40.652    0.000    0.291    0.499
 .reading_0 ~~                                                                 
   .picvocab_2               0.269    0.007   38.483    0.000    0.269    0.452
 .picvocab_2 ~~                                                                
   .reading_4                0.317    0.008   39.761    0.000    0.317    0.493
   .reading_6                0.342    0.010   35.644    0.000    0.342    0.517
 .picvocab_4 ~~                                                                
   .reading_4                0.341    0.009   39.134    0.000    0.341    0.503
 .reading_0 ~~                                                                 
   .picvocab_4               0.278    0.008   36.955    0.000    0.278    0.442
 .reading_2 ~~                                                                 
   .picvocab_4               0.303    0.008   39.614    0.000    0.303    0.493
 .picvocab_4 ~~                                                                
   .reading_6                0.370    0.010   35.812    0.000    0.370    0.531
 .picvocab_6 ~~                                                                
   .reading_6                0.364    0.011   32.433    0.000    0.364    0.532
 .reading_0 ~~                                                                 
   .picvocab_6               0.259    0.009   30.097    0.000    0.259    0.419
 .reading_2 ~~                                                                 
   .picvocab_6               0.287    0.009   33.272    0.000    0.287    0.476
 .reading_4 ~~                                                                 
   .picvocab_6               0.326    0.010   33.585    0.000    0.326    0.491
 .g_i ~~                                                                       
   .g_s                      0.004    0.001    3.532    0.000    0.206    0.206
 .ph_p_pds_001_0 ~~                                                            
   .ph_p_pds_001_1           0.425    0.011   40.343    0.000    0.425    0.459
   .ph_p_pds_001_2           0.252    0.009   28.501    0.000    0.252    0.314
   .ph_p_pds_001_3           0.135    0.008   17.341    0.000    0.135    0.193
   .ph_p_pds_001_4           0.051    0.007    7.319    0.000    0.051    0.084
   .ph_p_pds_001_5           0.026    0.007    3.725    0.000    0.026    0.044
   .ph_p_pds_001_6           0.021    0.009    2.338    0.019    0.021    0.035
 .ph_p_pds_001_1 ~~                                                            
   .ph_p_pds_001_2           0.297    0.008   36.407    0.000    0.297    0.418
   .ph_p_pds_001_3           0.168    0.007   23.662    0.000    0.168    0.271
   .ph_p_pds_001_4           0.070    0.006   11.222    0.000    0.070    0.130
   .ph_p_pds_001_5           0.033    0.006    5.417    0.000    0.033    0.064
   .ph_p_pds_001_6           0.017    0.008    2.193    0.028    0.017    0.033
 .ph_p_pds_001_2 ~~                                                            
   .ph_p_pds_001_3           0.216    0.006   33.322    0.000    0.216    0.402
   .ph_p_pds_001_4           0.093    0.005   16.961    0.000    0.093    0.200
   .ph_p_pds_001_5           0.039    0.005    7.383    0.000    0.039    0.088
   .ph_p_pds_001_6           0.025    0.007    3.703    0.000    0.025    0.056
 .ph_p_pds_001_3 ~~                                                            
   .ph_p_pds_001_4           0.121    0.005   24.119    0.000    0.121    0.298
   .ph_p_pds_001_5           0.061    0.005   12.652    0.000    0.061    0.155
   .ph_p_pds_001_6           0.033    0.006    5.545    0.000    0.033    0.084
 .ph_p_pds_001_4 ~~                                                            
   .ph_p_pds_001_5           0.132    0.004   29.505    0.000    0.132    0.388
   .ph_p_pds_001_6           0.079    0.006   14.246    0.000    0.079    0.232
 .ph_p_pds_001_5 ~~                                                            
   .ph_p_pds_001_6           0.135    0.005   24.627    0.000    0.135    0.412
 .ph_p_pds_002_0 ~~                                                            
   .ph_p_pds_002_1           0.111    0.005   20.640    0.000    0.111    0.358
   .ph_p_pds_002_2           0.047    0.005    9.833    0.000    0.047    0.163
   .ph_p_pds_002_3           0.016    0.004    3.702    0.000    0.016    0.065
   .ph_p_pds_002_4           0.001    0.004    0.395    0.693    0.001    0.007
   .ph_p_pds_002_5          -0.005    0.003   -1.441    0.150   -0.005   -0.028
   .ph_p_pds_002_6          -0.006    0.004   -1.299    0.194   -0.006   -0.034
 .ph_p_pds_002_1 ~~                                                            
   .ph_p_pds_002_2           0.109    0.005   21.226    0.000    0.109    0.373
   .ph_p_pds_002_3           0.043    0.004    9.542    0.000    0.043    0.173
   .ph_p_pds_002_4          -0.000    0.004   -0.043    0.966   -0.000   -0.001
   .ph_p_pds_002_5          -0.005    0.004   -1.307    0.191   -0.005   -0.026
   .ph_p_pds_002_6           0.014    0.004    3.191    0.001    0.014    0.084
 .ph_p_pds_002_2 ~~                                                            
   .ph_p_pds_002_3           0.083    0.005   18.321    0.000    0.083    0.357
   .ph_p_pds_002_4           0.014    0.004    3.641    0.000    0.014    0.074
   .ph_p_pds_002_5          -0.005    0.003   -1.445    0.149   -0.005   -0.030
   .ph_p_pds_002_6           0.017    0.004    4.057    0.000    0.017    0.107
 .ph_p_pds_002_3 ~~                                                            
   .ph_p_pds_002_4           0.031    0.004    8.622    0.000    0.031    0.192
   .ph_p_pds_002_5           0.005    0.003    1.719    0.086    0.005    0.038
   .ph_p_pds_002_6           0.018    0.004    4.816    0.000    0.018    0.134
 .ph_p_pds_002_4 ~~                                                            
   .ph_p_pds_002_5           0.024    0.003    8.303    0.000    0.024    0.207
   .ph_p_pds_002_6           0.010    0.003    2.934    0.003    0.010    0.091
 .ph_p_pds_002_5 ~~                                                            
   .ph_p_pds_002_6           0.014    0.003    4.572    0.000    0.014    0.152
 .ph_p_pds_003_0 ~~                                                            
   .ph_p_pds_003_1           0.141    0.005   26.219    0.000    0.141    0.382
   .ph_p_pds_003_2           0.090    0.005   17.774    0.000    0.090    0.240
   .ph_p_pds_003_3           0.053    0.005   11.314    0.000    0.053    0.153
   .ph_p_pds_003_4           0.025    0.004    5.661    0.000    0.025    0.079
   .ph_p_pds_003_5           0.026    0.004    6.264    0.000    0.026    0.089
   .ph_p_pds_003_6           0.014    0.005    2.641    0.008    0.014    0.048
 .ph_p_pds_003_1 ~~                                                            
   .ph_p_pds_003_2           0.173    0.006   30.422    0.000    0.173    0.415
   .ph_p_pds_003_3           0.097    0.005   18.559    0.000    0.097    0.248
   .ph_p_pds_003_4           0.036    0.005    7.423    0.000    0.036    0.100
   .ph_p_pds_003_5           0.021    0.005    4.530    0.000    0.021    0.063
   .ph_p_pds_003_6           0.014    0.006    2.483    0.013    0.014    0.044
 .ph_p_pds_003_2 ~~                                                            
   .ph_p_pds_003_3           0.169    0.005   30.962    0.000    0.169    0.427
   .ph_p_pds_003_4           0.078    0.005   15.971    0.000    0.078    0.219
   .ph_p_pds_003_5           0.049    0.005   10.571    0.000    0.049    0.146
   .ph_p_pds_003_6           0.027    0.006    4.821    0.000    0.027    0.084
 .ph_p_pds_003_3 ~~                                                            
   .ph_p_pds_003_4           0.121    0.005   25.243    0.000    0.121    0.359
   .ph_p_pds_003_5           0.070    0.004   15.808    0.000    0.070    0.223
   .ph_p_pds_003_6           0.052    0.005    9.793    0.000    0.052    0.171
 .ph_p_pds_003_4 ~~                                                            
   .ph_p_pds_003_5           0.104    0.004   24.162    0.000    0.104    0.364
   .ph_p_pds_003_6           0.080    0.005   15.938    0.000    0.080    0.292
 .ph_p_pds_003_5 ~~                                                            
   .ph_p_pds_003_6           0.090    0.005   18.947    0.000    0.090    0.350
 .pu_i ~~                                                                      
   .pu_s                    -0.047    0.005  -10.382    0.000   -0.300   -0.300
   .pu_q                    -0.002    0.001   -1.412    0.158   -0.039   -0.039
 .pu_s ~~                                                                      
   .pu_q                    -0.040    0.002  -20.701    0.000   -0.912   -0.912

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .asr___0 (t_AX)   -0.005    0.004   -1.087    0.277   -0.005   -0.005
   .asr___0 (t_AW)    0.003    0.005    0.603    0.547    0.003    0.003
   .asr___0 (t_AS)   -0.001    0.005   -0.236    0.813   -0.001   -0.001
   .asr___0 (t_AP)    0.001    0.005    0.187    0.851    0.001    0.001
   .asr___0 (t_AH)    0.000    0.005    0.099    0.921    0.000    0.000
   .asr___0 (t_AA)    0.007    0.005    1.274    0.203    0.007    0.007
   .asr___0 (t_AR)    0.002    0.005    0.397    0.691    0.002    0.002
   .asr___0 (t_AG)   -0.000    0.007   -0.024    0.981   -0.000   -0.000
   .asr___2 (t_AX)   -0.005    0.004   -1.087    0.277   -0.005   -0.005
   .asr___2 (t_AW)    0.003    0.005    0.603    0.547    0.003    0.003
   .asr___2 (t_AS)   -0.001    0.005   -0.236    0.813   -0.001   -0.001
   .asr___2 (t_AP)    0.001    0.005    0.187    0.851    0.001    0.001
   .asr___2 (t_AH)    0.000    0.005    0.099    0.921    0.000    0.000
   .asr___2 (t_AA)    0.007    0.005    1.274    0.203    0.007    0.007
   .asr___2 (t_AR)    0.002    0.005    0.397    0.691    0.002    0.002
   .asr___2 (t_AG)   -0.000    0.007   -0.024    0.981   -0.000   -0.000
   .asr___4 (t_AX)   -0.005    0.004   -1.087    0.277   -0.005   -0.005
   .asr___4 (t_AW)    0.003    0.005    0.603    0.547    0.003    0.003
   .asr___4 (t_AS)   -0.001    0.005   -0.236    0.813   -0.001   -0.001
   .asr___4 (t_AP)    0.001    0.005    0.187    0.851    0.001    0.001
   .asr___4 (t_AH)    0.000    0.005    0.099    0.921    0.000    0.000
   .asr___4 (t_AA)    0.007    0.005    1.274    0.203    0.007    0.007
   .asr___4 (t_AR)    0.002    0.005    0.397    0.691    0.002    0.002
   .asr___4 (t_AG)   -0.000    0.007   -0.024    0.981   -0.000   -0.000
   .a_i               0.008    0.011    0.751    0.452    0.011    0.011
   .a_s              -0.016    0.005   -2.998    0.003   -0.063   -0.063
   .a_etaB            0.000                               0.000    0.000
   .a_eta2            0.000                               0.000    0.000
   .a_eta4            0.000                               0.000    0.000
   .anxd__0 (t_CX)   -0.013    0.005   -2.466    0.014   -0.013   -0.012
   .anxd__1 (t_CX)   -0.013    0.005   -2.466    0.014   -0.013   -0.012
   .anxd__2 (t_CX)   -0.013    0.005   -2.466    0.014   -0.013   -0.012
   .anxd__3 (t_CX)   -0.013    0.005   -2.466    0.014   -0.013   -0.012
   .anxd__4 (t_CX)   -0.013    0.005   -2.466    0.014   -0.013   -0.013
   .anxd__5 (t_CX)   -0.013    0.005   -2.466    0.014   -0.013   -0.012
   .anxd__6 (t_CX)   -0.013    0.005   -2.466    0.014   -0.013   -0.013
   .wthd__0 (t_CW)   -0.079    0.005  -15.577    0.000   -0.079   -0.087
   .wthd__1 (t_CW)   -0.079    0.005  -15.577    0.000   -0.079   -0.086
   .wthd__2 (t_CW)   -0.079    0.005  -15.577    0.000   -0.079   -0.082
   .wthd__3 (t_CW)   -0.079    0.005  -15.577    0.000   -0.079   -0.076
   .wthd__4 (t_CW)   -0.079    0.005  -15.577    0.000   -0.079   -0.072
   .wthd__5 (t_CW)   -0.079    0.005  -15.577    0.000   -0.079   -0.070
   .wthd__6 (t_CW)   -0.079    0.005  -15.577    0.000   -0.079   -0.073
   .sm_cm_0 (t_CS)   -0.016    0.006   -2.637    0.008   -0.016   -0.016
   .sm_cm_1 (t_CS)   -0.016    0.006   -2.637    0.008   -0.016   -0.016
   .sm_cm_2 (t_CS)   -0.016    0.006   -2.637    0.008   -0.016   -0.016
   .sm_cm_3 (t_CS)   -0.016    0.006   -2.637    0.008   -0.016   -0.016
   .sm_cm_4 (t_CS)   -0.016    0.006   -2.637    0.008   -0.016   -0.016
   .sm_cm_5 (t_CS)   -0.016    0.006   -2.637    0.008   -0.016   -0.015
   .sm_cm_6 (t_CS)   -0.016    0.006   -2.637    0.008   -0.016   -0.015
   .scpr__0 (t_CP)    0.027    0.004    6.660    0.000    0.027    0.025
   .scpr__1 (t_CP)    0.027    0.004    6.660    0.000    0.027    0.026
   .scpr__2 (t_CP)    0.027    0.004    6.660    0.000    0.027    0.027
   .scpr__3 (t_CP)    0.027    0.004    6.660    0.000    0.027    0.027
   .scpr__4 (t_CP)    0.027    0.004    6.660    0.000    0.027    0.028
   .scpr__5 (t_CP)    0.027    0.004    6.660    0.000    0.027    0.028
   .scpr__6 (t_CP)    0.027    0.004    6.660    0.000    0.027    0.030
   .thpr__0 (t_CH)    0.028    0.004    7.045    0.000    0.028    0.027
   .thpr__1 (t_CH)    0.028    0.004    7.045    0.000    0.028    0.027
   .thpr__2 (t_CH)    0.028    0.004    7.045    0.000    0.028    0.028
   .thpr__3 (t_CH)    0.028    0.004    7.045    0.000    0.028    0.029
   .thpr__4 (t_CH)    0.028    0.004    7.045    0.000    0.028    0.029
   .thpr__5 (t_CH)    0.028    0.004    7.045    0.000    0.028    0.029
   .thpr__6 (t_CH)    0.028    0.004    7.045    0.000    0.028    0.031
   .attp__0 (t_CA)    0.032    0.005    6.757    0.000    0.032    0.032
   .attp__1 (t_CA)    0.032    0.005    6.757    0.000    0.032    0.032
   .attp__2 (t_CA)    0.032    0.005    6.757    0.000    0.032    0.033
   .attp__3 (t_CA)    0.032    0.005    6.757    0.000    0.032    0.033
   .attp__4 (t_CA)    0.032    0.005    6.757    0.000    0.032    0.034
   .attp__5 (t_CA)    0.032    0.005    6.757    0.000    0.032    0.034
   .attp__6 (t_CA)    0.032    0.005    6.757    0.000    0.032    0.035
   .rlbr__0 (t_CR)   -0.019    0.005   -3.860    0.000   -0.019   -0.020
   .rlbr__1 (t_CR)   -0.019    0.005   -3.860    0.000   -0.019   -0.020
   .rlbr__2 (t_CR)   -0.019    0.005   -3.860    0.000   -0.019   -0.020
   .rlbr__3 (t_CR)   -0.019    0.005   -3.860    0.000   -0.019   -0.020
   .rlbr__4 (t_CR)   -0.019    0.005   -3.860    0.000   -0.019   -0.018
   .rlbr__5 (t_CR)   -0.019    0.005   -3.860    0.000   -0.019   -0.016
   .rlbr__6 (t_CR)   -0.019    0.005   -3.860    0.000   -0.019   -0.016
   .aggr__0 (t_CG)   -0.002    0.004   -0.509    0.611   -0.002   -0.002
   .aggr__1 (t_CG)   -0.002    0.004   -0.509    0.611   -0.002   -0.002
   .aggr__2 (t_CG)   -0.002    0.004   -0.509    0.611   -0.002   -0.002
   .aggr__3 (t_CG)   -0.002    0.004   -0.509    0.611   -0.002   -0.002
   .aggr__4 (t_CG)   -0.002    0.004   -0.509    0.611   -0.002   -0.002
   .aggr__5 (t_CG)   -0.002    0.004   -0.509    0.611   -0.002   -0.002
   .aggr__6 (t_CG)   -0.002    0.004   -0.509    0.611   -0.002   -0.002
   .p_i              -0.173    0.018   -9.706    0.000   -0.252   -0.252
   .p_s               0.432    0.219    1.974    0.048    1.017    1.017
   .p_q              -0.132    0.072   -1.826    0.068   -1.081   -1.081
   .p_etaB            0.000                               0.000    0.000
   .p_eta1            0.000                               0.000    0.000
   .p_eta2            0.000                               0.000    0.000
   .p_eta3            0.000                               0.000    0.000
   .p_eta4            0.000                               0.000    0.000
   .p_eta5            0.000                               0.000    0.000
   .p_eta6            0.000                               0.000    0.000
   .flnkr_0 (ta_S)    0.093    0.005   18.875    0.000    0.093    0.101
   .flnkr_2 (ta_S)    0.093    0.005   18.875    0.000    0.093    0.117
   .flnkr_4 (ta_S)    0.093    0.005   18.875    0.000    0.093    0.117
   .flnkr_6 (ta_S)    0.093    0.005   18.875    0.000    0.093    0.114
   .pttrn_0 (ta_R)    0.108    0.005   23.581    0.000    0.108    0.142
   .pttrn_2 (ta_R)    0.108    0.005   23.581    0.000    0.108    0.140
   .pttrn_4 (ta_R)    0.108    0.005   23.581    0.000    0.108    0.131
   .pttrn_6 (ta_R)    0.108    0.005   23.581    0.000    0.108    0.126
   .pictr_0 (ta_M)    0.048    0.006    7.595    0.000    0.048    0.057
   .pictr_2 (ta_M)    0.048    0.006    7.595    0.000    0.048    0.054
   .pictr_4 (ta_M)    0.048    0.006    7.595    0.000    0.048    0.046
   .pictr_6 (ta_M)    0.048    0.006    7.595    0.000    0.048    0.046
   .pcvcb_0 (ta_P)    0.041    0.005    7.881    0.000    0.041    0.049
   .pcvcb_2 (ta_P)    0.041    0.005    7.881    0.000    0.041    0.047
   .pcvcb_4 (ta_P)    0.041    0.005    7.881    0.000    0.041    0.045
   .pcvcb_6 (ta_P)    0.041    0.005    7.881    0.000    0.041    0.044
   .redng_0 (ta_V)    0.052    0.005   10.175    0.000    0.052    0.061
   .redng_2 (ta_V)    0.052    0.005   10.175    0.000    0.052    0.061
   .redng_4 (ta_V)    0.052    0.005   10.175    0.000    0.052    0.056
   .redng_6 (ta_V)    0.052    0.005   10.175    0.000    0.052    0.053
   .g_i              -0.625    0.008  -79.065    0.000   -1.611   -1.611
   .g_s               0.470    0.004  115.361    0.000    8.975    8.975
   .g_etaB            0.000                               0.000    0.000
   .g_eta2            0.000                               0.000    0.000
   .g_eta4            0.000                               0.000    0.000
   .g_eta6            0.000                               0.000    0.000
   .p___001 (t_PS)    0.042    0.004   11.681    0.000    0.042    0.038
   .p___001 (t_PS)    0.042    0.004   11.681    0.000    0.042    0.041
   .p___001 (t_PS)    0.042    0.004   11.681    0.000    0.042    0.046
   .p___001 (t_PS)    0.042    0.004   11.681    0.000    0.042    0.050
   .p___001 (t_PS)    0.042    0.004   11.681    0.000    0.042    0.056
   .p___001 (t_PS)    0.042    0.004   11.681    0.000    0.042    0.061
   .p___001 (t_PS)    0.042    0.004   11.681    0.000    0.042    0.063
   .p___002 (t_PR)    0.094    0.002   41.487    0.000    0.094    0.116
   .p___002 (t_PR)    0.094    0.002   41.487    0.000    0.094    0.110
   .p___002 (t_PR)    0.094    0.002   41.487    0.000    0.094    0.111
   .p___002 (t_PR)    0.094    0.002   41.487    0.000    0.094    0.118
   .p___002 (t_PR)    0.094    0.002   41.487    0.000    0.094    0.131
   .p___002 (t_PR)    0.094    0.002   41.487    0.000    0.094    0.150
   .p___002 (t_PR)    0.094    0.002   41.487    0.000    0.094    0.170
   .p___003 (t_PM)    0.086    0.003   32.848    0.000    0.086    0.107
   .p___003 (t_PM)    0.086    0.003   32.848    0.000    0.086    0.097
   .p___003 (t_PM)    0.086    0.003   32.848    0.000    0.086    0.095
   .p___003 (t_PM)    0.086    0.003   32.848    0.000    0.086    0.098
   .p___003 (t_PM)    0.086    0.003   32.848    0.000    0.086    0.107
   .p___003 (t_PM)    0.086    0.003   32.848    0.000    0.086    0.119
   .p___003 (t_PM)    0.086    0.003   32.848    0.000    0.086    0.129
   .pu_i             -0.578    0.008  -76.290    0.000   -1.345   -1.345
   .pu_s              0.713    0.009   78.122    0.000    1.791    1.791
   .pu_q             -0.076    0.003  -28.559    0.000   -0.640   -0.640
   .pu_etaB           0.000                               0.000    0.000
   .pu_eta1           0.000                               0.000    0.000
   .pu_eta2           0.000                               0.000    0.000
   .pu_eta3           0.000                               0.000    0.000
   .pu_eta4           0.000                               0.000    0.000
   .pu_eta5           0.000                               0.000    0.000
   .pu_eta6           0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .a_etaB            0.101    0.006   16.700    0.000    0.143    0.143
   .a_eta2            0.181    0.005   39.307    0.000    0.262    0.262
   .a_eta4            0.102    0.007   14.232    0.000    0.160    0.160
   .asr_nxdp_cmp_0    0.311    0.006   53.373    0.000    0.311    0.305
   .asr_wthdp_cm_0    0.486    0.008   63.074    0.000    0.486    0.463
   .asr_soma_cmp_0    0.551    0.008   66.548    0.000    0.551    0.549
   .asr_thprb_cm_0    0.471    0.007   65.272    0.000    0.471    0.435
   .asr_ttprb_cm_0    0.408    0.006   64.396    0.000    0.408    0.411
   .asr_rlbrk_cm_0    0.660    0.009   69.904    0.000    0.660    0.606
   .asr_ggrss_cm_0    0.449    0.007   64.485    0.000    0.449    0.427
   .asr_intr_cmp_0    0.898    0.012   74.902    0.000    0.898    0.841
   .asr_nxdp_cmp_2    0.339    0.006   53.432    0.000    0.339    0.329
   .asr_wthdp_cm_2    0.481    0.008   61.121    0.000    0.481    0.467
   .asr_soma_cmp_2    0.560    0.009   64.621    0.000    0.560    0.559
   .asr_thprb_cm_2    0.412    0.007   61.775    0.000    0.412    0.408
   .asr_ttprb_cm_2    0.383    0.006   61.203    0.000    0.383    0.402
   .asr_rlbrk_cm_2    0.603    0.009   66.770    0.000    0.603    0.590
   .asr_ggrss_cm_2    0.435    0.007   62.275    0.000    0.435    0.426
   .asr_intr_cmp_2    0.821    0.011   72.050    0.000    0.821    0.832
   .asr_nxdp_cmp_4    0.352    0.007   50.814    0.000    0.352    0.355
   .asr_wthdp_cm_4    0.461    0.008   57.264    0.000    0.461    0.475
   .asr_soma_cmp_4    0.554    0.009   60.447    0.000    0.554    0.575
   .asr_thprb_cm_4    0.384    0.007   57.229    0.000    0.384    0.409
   .asr_ttprb_cm_4    0.420    0.007   58.581    0.000    0.420    0.443
   .asr_rlbrk_cm_4    0.561    0.009   62.015    0.000    0.561    0.591
   .asr_ggrss_cm_4    0.417    0.007   58.230    0.000    0.417    0.434
   .asr_intr_cmp_4    0.806    0.012   67.777    0.000    0.806    0.840
   .a_i               0.607    0.012   49.244    0.000    1.000    1.000
   .a_s               0.063    0.003   20.046    0.000    0.999    0.999
   .p_etaB            0.080    0.004   20.578    0.000    0.146    0.146
   .p_eta1            0.123    0.003   42.722    0.000    0.228    0.228
   .p_eta2            0.120    0.003   42.395    0.000    0.227    0.227
   .p_eta3            0.112    0.003   39.404    0.000    0.216    0.216
   .p_eta4            0.105    0.003   38.344    0.000    0.209    0.209
   .p_eta5            0.111    0.003   35.550    0.000    0.222    0.222
   .p_eta6            0.042    0.005    9.336    0.000    0.094    0.094
   .anxdep_comp_0     0.512    0.008   67.029    0.000    0.512    0.483
   .withdep_comp_0    0.406    0.006   65.385    0.000    0.406    0.498
   .soma_comp_0       0.692    0.010   72.729    0.000    0.692    0.698
   .socprob_comp_0    0.421    0.007   61.303    0.000    0.421    0.381
   .thouprob_cmp_0    0.409    0.006   62.998    0.000    0.409    0.379
   .attprob_comp_0    0.454    0.007   65.908    0.000    0.454    0.455
   .rulebrek_cmp_0    0.478    0.007   69.143    0.000    0.478    0.542
   .aggress_comp_0    0.469    0.007   64.459    0.000    0.469    0.430
   .anxdep_comp_1     0.529    0.008   65.817    0.000    0.529    0.495
   .withdep_comp_1    0.433    0.007   66.273    0.000    0.433    0.518
   .soma_comp_1       0.701    0.010   71.048    0.000    0.701    0.704
   .socprob_comp_1    0.391    0.007   59.521    0.000    0.391    0.367
   .thouprob_cmp_1    0.420    0.007   61.642    0.000    0.420    0.389
   .attprob_comp_1    0.446    0.007   64.539    0.000    0.446    0.455
   .rulebrek_cmp_1    0.480    0.007   67.183    0.000    0.480    0.547
   .aggress_comp_1    0.441    0.007   62.965    0.000    0.441    0.418
   .anxdep_comp_2     0.501    0.008   65.136    0.000    0.501    0.487
   .withdep_comp_2    0.530    0.008   67.223    0.000    0.530    0.574
   .soma_comp_2       0.640    0.009   69.743    0.000    0.640    0.689
   .socprob_comp_2    0.350    0.006   58.088    0.000    0.350    0.347
   .thouprob_cmp_2    0.370    0.006   59.579    0.000    0.370    0.365
   .attprob_comp_2    0.420    0.007   63.634    0.000    0.420    0.445
   .rulebrek_cmp_2    0.498    0.008   66.230    0.000    0.498    0.561
   .aggress_comp_2    0.421    0.007   61.953    0.000    0.421    0.412
   .anxdep_comp_3     0.527    0.008   63.731    0.000    0.527    0.504
   .withdep_comp_3    0.680    0.010   65.543    0.000    0.680    0.638
   .soma_comp_3       0.645    0.010   67.695    0.000    0.645    0.695
   .socprob_comp_3    0.320    0.006   55.712    0.000    0.320    0.331
   .thouprob_cmp_3    0.345    0.006   57.011    0.000    0.345    0.353
   .attprob_comp_3    0.415    0.007   62.049    0.000    0.415    0.447
   .rulebrek_cmp_3    0.526    0.008   63.696    0.000    0.526    0.580
   .aggress_comp_3    0.409    0.007   59.902    0.000    0.409    0.410
   .anxdep_comp_4     0.496    0.008   61.520    0.000    0.496    0.497
   .withdep_comp_4    0.816    0.013   63.084    0.000    0.816    0.686
   .soma_comp_4       0.730    0.011   65.731    0.000    0.730    0.727
   .socprob_comp_4    0.305    0.006   53.859    0.000    0.305    0.327
   .thouprob_cmp_4    0.325    0.006   54.743    0.000    0.325    0.347
   .attprob_comp_4    0.381    0.006   59.753    0.000    0.381    0.435
   .rulebrek_cmp_4    0.705    0.011   63.059    0.000    0.705    0.657
   .aggress_comp_4    0.354    0.006   57.393    0.000    0.354    0.383
   .anxdep_comp_5     0.520    0.009   58.720    0.000    0.520    0.511
   .withdep_comp_5    0.900    0.015   60.305    0.000    0.900    0.708
   .soma_comp_5       0.873    0.014   62.701    0.000    0.873    0.763
   .socprob_comp_5    0.298    0.006   50.472    0.000    0.298    0.325
   .thouprob_cmp_5    0.376    0.007   53.487    0.000    0.376    0.383
   .attprob_comp_5    0.398    0.007   57.770    0.000    0.398    0.447
   .rulebrek_cmp_5    0.967    0.016   61.569    0.000    0.967    0.725
   .aggress_comp_5    0.357    0.006   54.942    0.000    0.357    0.387
   .anxdep_comp_6     0.470    0.010   46.893    0.000    0.470    0.511
   .withdep_comp_6    0.835    0.017   48.426    0.000    0.835    0.714
   .soma_comp_6       0.892    0.018   50.065    0.000    0.892    0.784
   .socprob_comp_6    0.256    0.007   38.928    0.000    0.256    0.313
   .thouprob_cmp_6    0.299    0.007   40.514    0.000    0.299    0.353
   .attprob_comp_6    0.372    0.008   46.767    0.000    0.372    0.456
   .rulebrek_cmp_6    1.015    0.020   49.988    0.000    1.015    0.754
   .aggress_comp_6    0.297    0.007   43.077    0.000    0.297    0.368
   .p_i               0.228    0.007   35.015    0.000    0.487    0.487
   .p_s               0.075    0.009    8.333    0.000    0.418    0.418
   .p_q               0.009    0.001   10.718    0.000    0.613    0.613
   .g_etaB            0.012    0.002    5.326    0.000    0.073    0.073
   .g_eta2            0.008    0.002    5.190    0.000    0.048    0.048
   .g_eta4            0.017    0.002    8.223    0.000    0.088    0.088
   .g_eta6            0.045    0.004   11.348    0.000    0.183    0.183
   .flanker_0         0.684    0.010   68.068    0.000    0.684    0.808
   .flanker_2         0.466    0.009   54.453    0.000    0.466    0.733
   .flanker_4         0.435    0.009   49.499    0.000    0.435    0.690
   .flanker_6         0.417    0.011   38.709    0.000    0.417    0.630
   .pattern_0         0.338    0.006   52.569    0.000    0.338    0.583
   .pattern_2         0.340    0.008   45.203    0.000    0.340    0.574
   .pattern_4         0.385    0.009   42.778    0.000    0.385    0.570
   .pattern_6         0.366    0.011   32.937    0.000    0.366    0.502
   .picture_0         0.653    0.009   73.383    0.000    0.653    0.918
   .picture_2         0.733    0.011   69.170    0.000    0.733    0.923
   .picture_4         1.055    0.016   66.200    0.000    1.055    0.938
   .picture_6         1.035    0.022   47.842    0.000    1.035    0.922
   .picvocab_0        0.562    0.008   69.059    0.000    0.562    0.800
   .picvocab_2        0.619    0.009   66.312    0.000    0.619    0.809
   .picvocab_4        0.688    0.011   63.171    0.000    0.688    0.803
   .picvocab_6        0.663    0.013   49.361    0.000    0.663    0.758
   .reading_0         0.575    0.008   68.376    0.000    0.575    0.786
   .reading_2         0.549    0.008   64.978    0.000    0.549    0.770
   .reading_4         0.665    0.011   62.112    0.000    0.665    0.779
   .reading_6         0.706    0.015   47.969    0.000    0.706    0.749
   .g_i               0.150    0.004   36.082    0.000    0.997    0.997
   .g_s               0.003    0.001    4.318    0.000    0.999    0.999
   .pu_etaB           0.010    0.003    3.128    0.002    0.052    0.052
   .pu_eta1           0.053    0.002   23.501    0.000    0.229    0.229
   .pu_eta2           0.052    0.002   24.068    0.000    0.211    0.211
   .pu_eta3           0.048    0.002   23.733    0.000    0.195    0.195
   .pu_eta4           0.041    0.002   23.046    0.000    0.190    0.190
   .pu_eta5           0.027    0.002   17.721    0.000    0.165    0.165
   .pu_eta6           0.011    0.003    4.425    0.000    0.093    0.093
   .ph_p_pds_001_0    1.050    0.015   70.005    0.000    1.050    0.844
   .ph_p_pds_002_0    0.307    0.007   47.220    0.000    0.307    0.466
   .ph_p_pds_003_0    0.329    0.006   52.789    0.000    0.329    0.518
   .ph_p_pds_001_1    0.818    0.012   68.707    0.000    0.818    0.778
   .ph_p_pds_002_1    0.312    0.007   43.957    0.000    0.312    0.426
   .ph_p_pds_003_1    0.414    0.007   55.276    0.000    0.414    0.531
   .ph_p_pds_001_2    0.616    0.009   66.083    0.000    0.616    0.714
   .ph_p_pds_002_2    0.274    0.007   41.961    0.000    0.274    0.381
   .ph_p_pds_003_2    0.422    0.007   57.187    0.000    0.422    0.522
   .ph_p_pds_001_3    0.468    0.007   62.957    0.000    0.468    0.656
   .ph_p_pds_002_3    0.198    0.005   36.712    0.000    0.198    0.309
   .ph_p_pds_003_3    0.373    0.007   56.110    0.000    0.373    0.492
   .ph_p_pds_001_4    0.353    0.006   60.962    0.000    0.353    0.622
   .ph_p_pds_002_4    0.131    0.004   31.718    0.000    0.131    0.253
   .ph_p_pds_003_4    0.305    0.006   53.516    0.000    0.305    0.475
   .ph_p_pds_001_5    0.326    0.006   58.979    0.000    0.326    0.668
   .ph_p_pds_002_5    0.103    0.003   30.013    0.000    0.103    0.261
   .ph_p_pds_003_5    0.266    0.005   52.857    0.000    0.266    0.512
   .ph_p_pds_001_6    0.330    0.007   44.744    0.000    0.330    0.730
   .ph_p_pds_002_6    0.087    0.004   21.977    0.000    0.087    0.284
   .ph_p_pds_003_6    0.249    0.006   41.028    0.000    0.249    0.565
   .pu_i              0.166    0.005   35.429    0.000    0.899    0.899
   .pu_s              0.146    0.007   22.440    0.000    0.924    0.924
   .pu_q              0.013    0.001   21.310    0.000    0.933    0.933

R-Square:
                   Estimate
    a_etaB            0.857
    a_eta2            0.738
    a_eta4            0.840
    asr_nxdp_cmp_0    0.695
    asr_wthdp_cm_0    0.537
    asr_soma_cmp_0    0.451
    asr_thprb_cm_0    0.565
    asr_ttprb_cm_0    0.589
    asr_rlbrk_cm_0    0.394
    asr_ggrss_cm_0    0.573
    asr_intr_cmp_0    0.159
    asr_nxdp_cmp_2    0.671
    asr_wthdp_cm_2    0.533
    asr_soma_cmp_2    0.441
    asr_thprb_cm_2    0.592
    asr_ttprb_cm_2    0.598
    asr_rlbrk_cm_2    0.410
    asr_ggrss_cm_2    0.574
    asr_intr_cmp_2    0.168
    asr_nxdp_cmp_4    0.645
    asr_wthdp_cm_4    0.525
    asr_soma_cmp_4    0.425
    asr_thprb_cm_4    0.591
    asr_ttprb_cm_4    0.557
    asr_rlbrk_cm_4    0.409
    asr_ggrss_cm_4    0.566
    asr_intr_cmp_4    0.160
    a_i               0.000
    a_s               0.001
    p_etaB            0.854
    p_eta1            0.772
    p_eta2            0.773
    p_eta3            0.784
    p_eta4            0.791
    p_eta5            0.778
    p_eta6            0.906
    anxdep_comp_0     0.517
    withdep_comp_0    0.502
    soma_comp_0       0.302
    socprob_comp_0    0.619
    thouprob_cmp_0    0.621
    attprob_comp_0    0.545
    rulebrek_cmp_0    0.458
    aggress_comp_0    0.570
    anxdep_comp_1     0.505
    withdep_comp_1    0.482
    soma_comp_1       0.296
    socprob_comp_1    0.633
    thouprob_cmp_1    0.611
    attprob_comp_1    0.545
    rulebrek_cmp_1    0.453
    aggress_comp_1    0.582
    anxdep_comp_2     0.513
    withdep_comp_2    0.426
    soma_comp_2       0.311
    socprob_comp_2    0.653
    thouprob_cmp_2    0.635
    attprob_comp_2    0.555
    rulebrek_cmp_2    0.439
    aggress_comp_2    0.588
    anxdep_comp_3     0.496
    withdep_comp_3    0.362
    soma_comp_3       0.305
    socprob_comp_3    0.669
    thouprob_cmp_3    0.647
    attprob_comp_3    0.553
    rulebrek_cmp_3    0.420
    aggress_comp_3    0.590
    anxdep_comp_4     0.503
    withdep_comp_4    0.314
    soma_comp_4       0.273
    socprob_comp_4    0.673
    thouprob_cmp_4    0.653
    attprob_comp_4    0.565
    rulebrek_cmp_4    0.343
    aggress_comp_4    0.617
    anxdep_comp_5     0.489
    withdep_comp_5    0.292
    soma_comp_5       0.237
    socprob_comp_5    0.675
    thouprob_cmp_5    0.617
    attprob_comp_5    0.553
    rulebrek_cmp_5    0.275
    aggress_comp_5    0.613
    anxdep_comp_6     0.489
    withdep_comp_6    0.286
    soma_comp_6       0.216
    socprob_comp_6    0.687
    thouprob_cmp_6    0.647
    attprob_comp_6    0.544
    rulebrek_cmp_6    0.246
    aggress_comp_6    0.632
    p_i               0.513
    p_s               0.582
    p_q               0.387
    g_etaB            0.927
    g_eta2            0.952
    g_eta4            0.912
    g_eta6            0.817
    flanker_0         0.192
    flanker_2         0.267
    flanker_4         0.310
    flanker_6         0.370
    pattern_0         0.417
    pattern_2         0.426
    pattern_4         0.430
    pattern_6         0.498
    picture_0         0.082
    picture_2         0.077
    picture_4         0.062
    picture_6         0.078
    picvocab_0        0.200
    picvocab_2        0.191
    picvocab_4        0.197
    picvocab_6        0.242
    reading_0         0.214
    reading_2         0.230
    reading_4         0.221
    reading_6         0.251
    g_i               0.003
    g_s               0.001
    pu_etaB           0.948
    pu_eta1           0.771
    pu_eta2           0.789
    pu_eta3           0.805
    pu_eta4           0.810
    pu_eta5           0.835
    pu_eta6           0.907
    ph_p_pds_001_0    0.156
    ph_p_pds_002_0    0.534
    ph_p_pds_003_0    0.482
    ph_p_pds_001_1    0.222
    ph_p_pds_002_1    0.574
    ph_p_pds_003_1    0.469
    ph_p_pds_001_2    0.286
    ph_p_pds_002_2    0.619
    ph_p_pds_003_2    0.478
    ph_p_pds_001_3    0.344
    ph_p_pds_002_3    0.691
    ph_p_pds_003_3    0.508
    ph_p_pds_001_4    0.378
    ph_p_pds_002_4    0.747
    ph_p_pds_003_4    0.525
    ph_p_pds_001_5    0.332
    ph_p_pds_002_5    0.739
    ph_p_pds_003_5    0.488
    ph_p_pds_001_6    0.270
    ph_p_pds_002_6    0.716
    ph_p_pds_003_6    0.435
    pu_i              0.101
    pu_s              0.076
    pu_q              0.067

Symptom model

Externalizing symptoms

Ext ~ pp + g + pu model

Children’s Externalizing symptoms (Ext) was regressed on parental psychopathology (pp), children’s cognitive functioning (g) and children’s puberty (pu).

model fit
Ext.pga_pu6.model <- "# second-order pp factor
               #factor loadings (with constraints)
               a_etaB =~ 1*asr_anxdep_comp_0+
                       lambda_AW*asr_withdep_comp_0+
                       lambda_AS*asr_soma_comp_0+
                       lambda_AC*asr_thouprob_comp_0+
                       lambda_AH*asr_attprob_comp_0+
                       lambda_AA*asr_rulebreak_comp_0+
                       lambda_AR*asr_aggress_comp_0+
                       lambda_AG*asr_intru_comp_0
               a_eta2 =~ 1*asr_anxdep_comp_2+
                       lambda_AW*asr_withdep_comp_2+
                       lambda_AS*asr_soma_comp_2+
                       lambda_AC*asr_thouprob_comp_2+
                       lambda_AH*asr_attprob_comp_2+
                       lambda_AA*asr_rulebreak_comp_2+
                       lambda_AR*asr_aggress_comp_2+
                       lambda_AG*asr_intru_comp_2
               a_eta4 =~ 1*asr_anxdep_comp_4+
                       lambda_AW*asr_withdep_comp_4+
                       lambda_AS*asr_soma_comp_4+
                       lambda_AC*asr_thouprob_comp_4+
                       lambda_AH*asr_attprob_comp_4+
                       lambda_AA*asr_rulebreak_comp_4+
                       lambda_AR*asr_aggress_comp_4+
                       lambda_AG*asr_intru_comp_4

              #latent variable variances
                      a_etaB~~NA*a_etaB
                      a_eta2~~NA*a_eta2
                      a_eta4~~NA*a_eta4

              #unique variances # No need to constrict these
                      asr_anxdep_comp_0~~asr_anxdep_comp_0
                      asr_withdep_comp_0~~asr_withdep_comp_0
                      asr_soma_comp_0~~asr_soma_comp_0
                      asr_thouprob_comp_0~~asr_thouprob_comp_0
                      asr_attprob_comp_0~~asr_attprob_comp_0
                      asr_rulebreak_comp_0~~asr_rulebreak_comp_0
                      asr_aggress_comp_0~~asr_aggress_comp_0
                      asr_intru_comp_0~~asr_intru_comp_0

                      asr_anxdep_comp_2~~asr_anxdep_comp_2
                      asr_withdep_comp_2~~asr_withdep_comp_2
                      asr_soma_comp_2~~asr_soma_comp_2
                      asr_thouprob_comp_2~~asr_thouprob_comp_2
                      asr_attprob_comp_2~~asr_attprob_comp_2
                      asr_rulebreak_comp_2~~asr_rulebreak_comp_2
                      asr_aggress_comp_2~~asr_aggress_comp_2
                      asr_intru_comp_2~~asr_intru_comp_2

                      asr_anxdep_comp_4~~asr_anxdep_comp_4
                      asr_withdep_comp_4~~asr_withdep_comp_4
                      asr_soma_comp_4~~asr_soma_comp_4
                      asr_thouprob_comp_4~~asr_thouprob_comp_4
                      asr_attprob_comp_4~~asr_attprob_comp_4
                      asr_rulebreak_comp_4~~asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_aggress_comp_4
                      asr_intru_comp_4~~asr_intru_comp_4

              #unique covariances
                      # Scores arcoss times
                      asr_anxdep_comp_0~~ asr_anxdep_comp_2 + asr_anxdep_comp_4
                      asr_anxdep_comp_2~~ asr_anxdep_comp_4

                      asr_withdep_comp_0 ~~ asr_withdep_comp_2 + asr_withdep_comp_4
                      asr_withdep_comp_2 ~~ asr_withdep_comp_4

                      asr_soma_comp_0~~ asr_soma_comp_2 + asr_soma_comp_4
                      asr_soma_comp_2~~ asr_soma_comp_4

                      asr_thouprob_comp_0~~ asr_thouprob_comp_2 + asr_thouprob_comp_4
                      asr_thouprob_comp_2~~ asr_thouprob_comp_4

                      asr_attprob_comp_0~~ asr_attprob_comp_2 + asr_attprob_comp_4
                      asr_attprob_comp_2~~ asr_attprob_comp_4

                      asr_rulebreak_comp_0~~ asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_rulebreak_comp_2~~ asr_rulebreak_comp_4

                      asr_aggress_comp_0~~ asr_aggress_comp_2 + asr_aggress_comp_4
                      asr_aggress_comp_2~~ asr_aggress_comp_4

                      asr_intru_comp_0~~ asr_intru_comp_2 + asr_intru_comp_4
                      asr_intru_comp_2~~ asr_intru_comp_4

                      # Internalizeing subscale covariances
                      asr_anxdep_comp_0~~asr_withdep_comp_0 + asr_soma_comp_0 + asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_2~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_4~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4

                      asr_withdep_comp_0~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_2~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_4~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4

                      # Externalizeing subscale covariances
                      asr_aggress_comp_0~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_2~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4

                      asr_intru_comp_0~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_2~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_4~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4

              #observed variable intercepts
                      asr_anxdep_comp_0~tau_AX*1
                      asr_withdep_comp_0~tau_AW*1
                      asr_soma_comp_0~tau_AS*1
                      asr_thouprob_comp_0~tau_AP*1
                      asr_attprob_comp_0~tau_AH*1
                      asr_rulebreak_comp_0~tau_AA*1
                      asr_aggress_comp_0~tau_AR*1
                      asr_intru_comp_0~tau_AG*1

                      asr_anxdep_comp_2~tau_AX*1
                      asr_withdep_comp_2~tau_AW*1
                      asr_soma_comp_2~tau_AS*1
                      asr_thouprob_comp_2~tau_AP*1
                      asr_attprob_comp_2~tau_AH*1
                      asr_rulebreak_comp_2~tau_AA*1
                      asr_aggress_comp_2~tau_AR*1
                      asr_intru_comp_2~tau_AG*1

                      asr_anxdep_comp_4~tau_AX*1
                      asr_withdep_comp_4~tau_AW*1
                      asr_soma_comp_4~tau_AS*1
                      asr_thouprob_comp_4~tau_AP*1
                      asr_attprob_comp_4~tau_AH*1
                      asr_rulebreak_comp_4~tau_AA*1
                      asr_aggress_comp_4~tau_AR*1
                      asr_intru_comp_4~tau_AG*1

                      #latent basis model
                      a_i =~ 1*a_etaB+1*a_eta2+1*a_eta4
                      a_s =~ 0*a_etaB+1*a_eta2+2*a_eta4
                      a_i~~NA*a_i
                      a_s~~NA*a_s
                      a_i~~a_s
                      a_i~1
                      a_s~1
                      a_etaB~0*1
                      a_eta2~0*1
                      a_eta4~0*1

               # second-order g factor
               #factor loadings # S & S2
               g_etaB =~ 1*flanker_0+
                       lambda_R*pattern_0+
                       lambda_M*picture_0+
                       lambda_P*picvocab_0+
                       lambda_V*reading_0
               g_eta2 =~ 1*flanker_2+
                       lambda_R*pattern_2+
                       lambda_M*picture_2+
                       lambda_P*picvocab_2+
                       lambda_V*reading_2
               g_eta4 =~ 1*flanker_4+
                       lambda_R*pattern_4+
                       lambda_M*picture_4+
                       lambda_P*picvocab_4+
                       lambda_V*reading_4
               g_eta6 =~ 1*flanker_6+
                       lambda_R*pattern_6+
                       lambda_M*picture_6+
                       lambda_P*picvocab_6+
                       lambda_V*reading_6

              #latent variable variances
                       g_etaB~~NA*g_etaB
                       g_eta2~~NA*g_eta2
                       g_eta4~~NA*g_eta4
                       g_eta6~~NA*g_eta6

              #unique variances
                      flanker_0~~flanker_0
                      flanker_2~~flanker_2
                      flanker_4~~flanker_4
                      flanker_6~~flanker_6

                      pattern_0~~pattern_0
                      pattern_2~~pattern_2
                      pattern_4~~pattern_4
                      pattern_6~~pattern_6

                      picture_0~~picture_0
                      picture_2~~picture_2
                      picture_4~~picture_4
                      picture_6~~picture_6

                      picvocab_0~~picvocab_0
                      picvocab_2~~picvocab_2
                      picvocab_4~~picvocab_4
                      picvocab_6~~picvocab_6

                      reading_0~~reading_0
                      reading_2~~reading_2
                      reading_4~~reading_4
                      reading_6~~reading_6

              #unique covariances
                      # Task across times
                      flanker_0~~flanker_2 + flanker_4 + flanker_6
                      flanker_2~~flanker_4 + flanker_6
                      flanker_4~~flanker_6

                      pattern_0~~pattern_2 + pattern_4 + pattern_6
                      pattern_2~~pattern_4 + pattern_6
                      pattern_4~~pattern_6

                      picture_0~~picture_2 + picture_4 + picture_6
                      picture_2~~picture_4 + picture_6
                      picture_4~~picture_6

                      picvocab_0~~picvocab_2 + picvocab_4 + picvocab_6
                      picvocab_2~~picvocab_4 + picvocab_6
                      picvocab_4~~picvocab_6

                      reading_0~~reading_2 + reading_4 + reading_6
                      reading_2~~reading_4 + reading_6
                      reading_4~~reading_6

                      #Language
                      picvocab_0~~reading_0 + reading_2 + reading_4 + reading_6
                      picvocab_2~~reading_2 + reading_0 + reading_4 + reading_6
                      picvocab_4~~reading_4 + reading_0 + reading_2 + reading_6
                      picvocab_6~~reading_6 + reading_0 + reading_2 + reading_4

              #observed variable intercepts # S & S2
                      flanker_0~tau_S*1
                      flanker_2~tau_S*1
                      flanker_4~tau_S*1
                      flanker_6~tau_S*1
                      pattern_0~tau_R*1
                      pattern_2~tau_R*1
                      pattern_4~tau_R*1
                      pattern_6~tau_R*1
                      picture_0~tau_M*1
                      picture_2~tau_M*1
                      picture_4~tau_M*1
                      picture_6~tau_M*1
                      picvocab_0~tau_P*1
                      picvocab_2~tau_P*1
                      picvocab_4~tau_P*1
                      picvocab_6~tau_P*1
                      reading_0~tau_V*1
                      reading_2~tau_V*1
                      reading_4~tau_V*1
                      reading_6~tau_V*1

              #latent basis model
                      g_i =~    1*g_etaB + 1*g_eta2 + 1*g_eta4 + 1*g_eta6
                      g_s =~    0*g_etaB + 1*g_eta2 + 2*g_eta4 + 3*g_eta6

                      g_i~~NA*g_i
                      g_s~~NA*g_s

                      g_i~~g_s

                      g_i~1
                      g_s~1

                      g_etaB~0*1
                      g_eta2~0*1
                      g_eta4~0*1
                      g_eta6~0*1

               # second-order puberty factor
               #factor loadings
               pu_etaB =~ 1*ph_p_pds_001_0 +
                          lambda_PR*ph_p_pds_002_0 +
                          lambda_PM*ph_p_pds_003_0

               pu_eta1 =~ 1*ph_p_pds_001_1 +
                          lambda_PR*ph_p_pds_002_1 +
                          lambda_PM*ph_p_pds_003_1

               pu_eta2 =~ 1*ph_p_pds_001_2 +
                          lambda_PR*ph_p_pds_002_2 +
                          lambda_PM*ph_p_pds_003_2

               pu_eta3 =~ 1*ph_p_pds_001_3 +
                          lambda_PR*ph_p_pds_002_3 +
                          lambda_PM*ph_p_pds_003_3

               pu_eta4 =~ 1*ph_p_pds_001_4 +
                          lambda_PR*ph_p_pds_002_4 +
                          lambda_PM*ph_p_pds_003_4

               pu_eta5 =~ 1*ph_p_pds_001_5 +
                          lambda_PR*ph_p_pds_002_5 +
                          lambda_PM*ph_p_pds_003_5

               pu_eta6 =~ 1*ph_p_pds_001_6 +
                          lambda_PR*ph_p_pds_002_6 +
                          lambda_PM*ph_p_pds_003_6

              #latent variable variances
                      pu_etaB~~NA*pu_etaB
                      pu_eta1~~NA*pu_eta1
                      pu_eta2~~NA*pu_eta2
                      pu_eta3~~NA*pu_eta3
                      pu_eta4~~NA*pu_eta4
                      pu_eta5~~NA*pu_eta5
                      pu_eta6~~NA*pu_eta6

              #unique variances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_0
                      ph_p_pds_002_0 ~~ ph_p_pds_002_0
                      ph_p_pds_003_0 ~~ ph_p_pds_003_0

                      ph_p_pds_001_1 ~~ ph_p_pds_001_1
                      ph_p_pds_002_1 ~~ ph_p_pds_002_1
                      ph_p_pds_003_1 ~~ ph_p_pds_003_1

                      ph_p_pds_001_2 ~~ ph_p_pds_001_2
                      ph_p_pds_002_2 ~~ ph_p_pds_002_2
                      ph_p_pds_003_2 ~~ ph_p_pds_003_2

                      ph_p_pds_001_3 ~~ ph_p_pds_001_3
                      ph_p_pds_002_3 ~~ ph_p_pds_002_3
                      ph_p_pds_003_3 ~~ ph_p_pds_003_3

                      ph_p_pds_001_4 ~~ ph_p_pds_001_4
                      ph_p_pds_002_4 ~~ ph_p_pds_002_4
                      ph_p_pds_003_4 ~~ ph_p_pds_003_4

                      ph_p_pds_001_5 ~~ ph_p_pds_001_5
                      ph_p_pds_002_5 ~~ ph_p_pds_002_5
                      ph_p_pds_003_5 ~~ ph_p_pds_003_5

                      ph_p_pds_001_6 ~~ ph_p_pds_001_6
                      ph_p_pds_002_6 ~~ ph_p_pds_002_6
                      ph_p_pds_003_6 ~~ ph_p_pds_003_6

              #unique covariances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_1 + ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_1 ~~ ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_2 ~~ ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_3 ~~ ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_4 ~~ ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_5 ~~ ph_p_pds_001_6

                      ph_p_pds_002_0 ~~ ph_p_pds_002_1 + ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_1 ~~ ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_2 ~~ ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_3 ~~ ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_4 ~~ ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_5 ~~ ph_p_pds_002_6

                      ph_p_pds_003_0 ~~ ph_p_pds_003_1 + ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_1 ~~ ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_2 ~~ ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_3 ~~ ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_4 ~~ ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_5 ~~ ph_p_pds_003_6

              #observed variable intercepts
                      ph_p_pds_001_0 ~ tau_PS*1
                      ph_p_pds_001_1 ~ tau_PS*1
                      ph_p_pds_001_2 ~ tau_PS*1
                      ph_p_pds_001_3 ~ tau_PS*1
                      ph_p_pds_001_4 ~ tau_PS*1
                      ph_p_pds_001_5 ~ tau_PS*1
                      ph_p_pds_001_6 ~ tau_PS*1

                      ph_p_pds_002_0 ~ tau_PR*1
                      ph_p_pds_002_1 ~ tau_PR*1
                      ph_p_pds_002_2 ~ tau_PR*1
                      ph_p_pds_002_3 ~ tau_PR*1
                      ph_p_pds_002_4 ~ tau_PR*1
                      ph_p_pds_002_5 ~ tau_PR*1
                      ph_p_pds_002_6 ~ tau_PR*1

                      ph_p_pds_003_0 ~ tau_PM*1
                      ph_p_pds_003_1 ~ tau_PM*1
                      ph_p_pds_003_2 ~ tau_PM*1
                      ph_p_pds_003_3 ~ tau_PM*1
                      ph_p_pds_003_4 ~ tau_PM*1
                      ph_p_pds_003_5 ~ tau_PM*1
                      ph_p_pds_003_6 ~ tau_PM*1

              #latent basis model
                      pu_i =~ 1*pu_etaB + 1*pu_eta1 + 1*pu_eta2 + 1*pu_eta3 + 1*pu_eta4 + 1*pu_eta5 + 1*pu_eta6
                      pu_s =~ 0*pu_etaB + 0.5*pu_eta1 + 1*pu_eta2 + 1.5*pu_eta3 + 2*pu_eta4 + 2.5*pu_eta5 + 3*pu_eta6
                      pu_q =~ 0*pu_etaB + 0.25*pu_eta1 + 1*pu_eta2 + 2.25*pu_eta3 + 4*pu_eta4 + 6.25*pu_eta5 + 9*pu_eta6

                      pu_i~~NA*pu_i
                      pu_s~~NA*pu_s
                      pu_q~~NA*pu_q

                      pu_i~~pu_s + pu_q
                      pu_s~~pu_q

                      pu_i~1
                      pu_s~1
                      pu_q~1

                      pu_etaB~0*1
                      pu_eta1~0*1
                      pu_eta2~0*1
                      pu_eta3~0*1
                      pu_eta4~0*1
                      pu_eta5~0*1
                      pu_eta6~0*1

              # Externalizing model
                      p_i =~ 1*Ext_comp_0 + 1*Ext_comp_1 + 1*Ext_comp_2 + 1*Ext_comp_3 + 1*Ext_comp_4 + 1*Ext_comp_5 + 1*Ext_comp_6
                      p_s =~ 0*Ext_comp_0 + .5*Ext_comp_1 + 1*Ext_comp_2 + 1.5*Ext_comp_3 + 2*Ext_comp_4 + 2.5*Ext_comp_5 + 3*Ext_comp_6
                      p_q =~ 0*Ext_comp_0 + .25*Ext_comp_1 + 1*Ext_comp_2 + 2.25*Ext_comp_3 + 4*Ext_comp_4 + 6.25*Ext_comp_5 + 9*Ext_comp_6

                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q

                      p_i~~p_s + p_q
                      p_s~~p_q

                      p_i~1
                      p_s~1
                      p_q~1

                      Ext_comp_0 ~~ NA*Ext_comp_0
                      Ext_comp_1 ~~ NA*Ext_comp_1
                      Ext_comp_2 ~~ NA*Ext_comp_2
                      Ext_comp_3 ~~ NA*Ext_comp_3
                      Ext_comp_4 ~~ NA*Ext_comp_4
                      Ext_comp_5 ~~ NA*Ext_comp_5
                      Ext_comp_6 ~~ NA*Ext_comp_6

                      Ext_comp_0 ~ 0*1
                      Ext_comp_1 ~ 0*1
                      Ext_comp_2 ~ 0*1
                      Ext_comp_3 ~ 0*1
                      Ext_comp_4 ~ 0*1
                      Ext_comp_5 ~ 0*1
                      Ext_comp_6 ~ 0*1

                      # regression
                      p_i ~ g_i + a_i + pu_i
                      p_s ~ g_i + g_s + a_i + a_s + pu_i + pu_s + pu_q
                      p_q ~ g_i + g_s + a_i + a_s + pu_i + pu_s + pu_q"
lavaan(Ext.pga_pu6.model,
  data = readRDS("pga6_all_data.rds"),
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = FALSE,
  std.lv = T
) %>%
  saveRDS("pgcm_Ext_pga_pu6_model.rds")
result
readRDS("pgcm_Ext_pga_pu6_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pgcm_Ext_pga_pu6_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pgcm_Ext_pga_pu6_model.rds"), "cor.lv"))$value
 [1] 5.869089673 4.823641602 3.815739451 2.440213983 2.261114435 0.976689615
 [7] 0.936358943 0.617806512 0.566633411 0.229554763 0.221500804 0.200602582
[13] 0.189524878 0.160750246 0.159047844 0.132645758 0.097275370 0.082875951
[19] 0.074424828 0.060860562 0.041649281 0.022543770 0.016688357 0.002767381
readRDS("pgcm_Ext_pga_pu6_result.rds")
lavaan 0.6-19 ended normally after 300 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       434
  Number of equality constraints                    87

                                                  Used       Total
  Number of observations                         11866       11867
  Number of missing patterns                      2194            

Model Test User Model:
                                                       
  Test statistic                              22331.967
  Degrees of freedom                               2353
  P-value (Chi-square)                            0.000

Model Test Baseline Model:

  Test statistic                            420238.389
  Degrees of freedom                              2556
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.952
  Tucker-Lewis Index (TLI)                       0.948
                                                      
  Robust Comparative Fit Index (CFI)             0.948
  Robust Tucker-Lewis Index (TLI)                0.944

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -717326.109
  Loglikelihood unrestricted model (H1)    -706160.126
                                                      
  Akaike (AIC)                             1435346.219
  Bayesian (BIC)                           1437907.576
  Sample-size adjusted Bayesian (SABIC)    1436804.850

Root Mean Square Error of Approximation:

  RMSEA                                          0.027
  90 Percent confidence interval - lower         0.026
  90 Percent confidence interval - upper         0.027
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.032
  90 Percent confidence interval - lower         0.031
  90 Percent confidence interval - upper         0.032
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.052

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.840    0.831
    asr___0 (l_AW)    0.894    0.007  126.180    0.000    0.751    0.733
    asr___0 (l_AS)    0.796    0.007  111.259    0.000    0.669    0.667
    asr___0 (l_AC)    0.933    0.007  124.627    0.000    0.784    0.752
    asr___0 (l_AH)    0.908    0.007  130.166    0.000    0.763    0.765
    asr___0 (l_AA)    0.788    0.008   98.169    0.000    0.662    0.634
    asr___0 (l_AR)    0.930    0.007  124.753    0.000    0.781    0.763
    asr___0 (l_AG)    0.491    0.008   59.699    0.000    0.412    0.399
  a_eta2 =~                                                             
    asr___2           1.000                               0.827    0.815
    asr___2 (l_AW)    0.894    0.007  126.180    0.000    0.740    0.729
    asr___2 (l_AS)    0.796    0.007  111.259    0.000    0.659    0.658
    asr___2 (l_AC)    0.933    0.007  124.627    0.000    0.772    0.769
    asr___2 (l_AH)    0.908    0.007  130.166    0.000    0.751    0.770
    asr___2 (l_AA)    0.788    0.008   98.169    0.000    0.652    0.645
    asr___2 (l_AR)    0.930    0.007  124.753    0.000    0.770    0.762
    asr___2 (l_AG)    0.491    0.008   59.699    0.000    0.406    0.409
  a_eta4 =~                                                             
    asr___4           1.000                               0.797    0.799
    asr___4 (l_AW)    0.894    0.007  126.180    0.000    0.712    0.723
    asr___4 (l_AS)    0.796    0.007  111.259    0.000    0.635    0.646
    asr___4 (l_AC)    0.933    0.007  124.627    0.000    0.743    0.768
    asr___4 (l_AH)    0.908    0.007  130.166    0.000    0.723    0.743
    asr___4 (l_AA)    0.788    0.008   98.169    0.000    0.627    0.645
    asr___4 (l_AR)    0.930    0.007  124.753    0.000    0.741    0.758
    asr___4 (l_AG)    0.491    0.008   59.699    0.000    0.391    0.399
  a_i =~                                                                
    a_etaB            1.000                               0.918    0.918
    a_eta2            1.000                               0.932    0.932
    a_eta4            1.000                               0.968    0.968
  a_s =~                                                                
    a_etaB            0.000                               0.000    0.000
    a_eta2            1.000                               0.294    0.294
    a_eta4            2.000                               0.611    0.611
  g_etaB =~                                                             
    flnkr_0           1.000                               0.404    0.439
    pttrn_0 (lm_R)    1.214    0.011  112.943    0.000    0.491    0.643
    pictr_0 (lm_M)    0.600    0.009   64.860    0.000    0.242    0.288
    pcvcb_0 (lm_P)    0.930    0.009  107.808    0.000    0.376    0.449
    redng_0 (lm_V)    0.981    0.009  111.498    0.000    0.396    0.464
  g_eta2 =~                                                             
    flnkr_2           1.000                               0.413    0.518
    pttrn_2 (lm_R)    1.214    0.011  112.943    0.000    0.501    0.649
    pictr_2 (lm_M)    0.600    0.009   64.860    0.000    0.248    0.278
    pcvcb_2 (lm_P)    0.930    0.009  107.808    0.000    0.384    0.439
    redng_2 (lm_V)    0.981    0.009  111.498    0.000    0.405    0.480
  g_eta4 =~                                                             
    flnkr_4           1.000                               0.444    0.559
    pttrn_4 (lm_R)    1.214    0.011  112.943    0.000    0.539    0.653
    pictr_4 (lm_M)    0.600    0.009   64.860    0.000    0.266    0.251
    pcvcb_4 (lm_P)    0.930    0.009  107.808    0.000    0.412    0.447
    redng_4 (lm_V)    0.981    0.009  111.498    0.000    0.435    0.472
  g_eta6 =~                                                             
    flnkr_6           1.000                               0.497    0.610
    pttrn_6 (lm_R)    1.214    0.011  112.943    0.000    0.604    0.704
    pictr_6 (lm_M)    0.600    0.009   64.860    0.000    0.298    0.282
    pcvcb_6 (lm_P)    0.930    0.009  107.808    0.000    0.462    0.495
    redng_6 (lm_V)    0.981    0.009  111.498    0.000    0.488    0.503
  g_i =~                                                                
    g_etaB            1.000                               0.958    0.958
    g_eta2            1.000                               0.938    0.938
    g_eta4            1.000                               0.873    0.873
    g_eta6            1.000                               0.779    0.779
  g_s =~                                                                
    g_etaB            0.000                               0.000    0.000
    g_eta2            1.000                               0.117    0.117
    g_eta4            2.000                               0.218    0.218
    g_eta6            3.000                               0.291    0.291
  pu_etaB =~                                                            
    p___001           1.000                               0.439    0.394
    p___002 (l_PR)    1.335    0.010  140.205    0.000    0.586    0.724
    p___003 (l_PM)    1.262    0.009  134.904    0.000    0.555    0.699
  pu_eta1 =~                                                            
    p___001           1.000                               0.481    0.470
    p___002 (l_PR)    1.335    0.010  140.205    0.000    0.642    0.748
    p___003 (l_PM)    1.262    0.009  134.904    0.000    0.608    0.691
  pu_eta2 =~                                                            
    p___001           1.000                               0.494    0.533
    p___002 (l_PR)    1.335    0.010  140.205    0.000    0.660    0.774
    p___003 (l_PM)    1.262    0.009  134.904    0.000    0.624    0.698
  pu_eta3 =~                                                            
    p___001           1.000                               0.490    0.584
    p___002 (l_PR)    1.335    0.010  140.205    0.000    0.654    0.816
    p___003 (l_PM)    1.262    0.009  134.904    0.000    0.619    0.719
  pu_eta4 =~                                                            
    p___001           1.000                               0.458    0.610
    p___002 (l_PR)    1.335    0.010  140.205    0.000    0.611    0.848
    p___003 (l_PM)    1.262    0.009  134.904    0.000    0.578    0.734
  pu_eta5 =~                                                            
    p___001           1.000                               0.396    0.567
    p___002 (l_PR)    1.335    0.010  140.205    0.000    0.529    0.841
    p___003 (l_PM)    1.262    0.009  134.904    0.000    0.500    0.709
  pu_eta6 =~                                                            
    p___001           1.000                               0.346    0.511
    p___002 (l_PR)    1.335    0.010  140.205    0.000    0.462    0.824
    p___003 (l_PM)    1.262    0.009  134.904    0.000    0.437    0.671
  pu_i =~                                                               
    pu_etaB           1.000                               0.977    0.977
    pu_eta1           1.000                               0.891    0.891
    pu_eta2           1.000                               0.868    0.868
    pu_eta3           1.000                               0.875    0.875
    pu_eta4           1.000                               0.937    0.937
    pu_eta5           1.000                               1.083    1.083
    pu_eta6           1.000                               1.240    1.240
  pu_s =~                                                               
    pu_etaB           0.000                               0.000    0.000
    pu_eta1           0.500                               0.414    0.414
    pu_eta2           1.000                               0.806    0.806
    pu_eta3           1.500                               1.218    1.218
    pu_eta4           2.000                               1.739    1.739
    pu_eta5           2.500                               2.512    2.512
    pu_eta6           3.000                               3.452    3.452
  pu_q =~                                                               
    pu_etaB           0.000                               0.000    0.000
    pu_eta1           0.250                               0.062    0.062
    pu_eta2           1.000                               0.241    0.241
    pu_eta3           2.250                               0.548    0.548
    pu_eta4           4.000                               1.042    1.042
    pu_eta5           6.250                               1.882    1.882
    pu_eta6           9.000                               3.103    3.103
  p_i =~                                                                
    Ext_c_0           1.000                               0.938    0.900
    Ext_c_1           1.000                               0.938    0.914
    Ext_c_2           1.000                               0.938    0.924
    Ext_c_3           1.000                               0.938    0.928
    Ext_c_4           1.000                               0.938    0.944
    Ext_c_5           1.000                               0.938    0.938
    Ext_c_6           1.000                               0.938    0.980
  p_s =~                                                                
    Ext_c_0           0.000                               0.000    0.000
    Ext_c_1           0.500                               0.283    0.276
    Ext_c_2           1.000                               0.567    0.558
    Ext_c_3           1.500                               0.850    0.841
    Ext_c_4           2.000                               1.134    1.141
    Ext_c_5           2.500                               1.417    1.417
    Ext_c_6           3.000                               1.701    1.777
  p_q =~                                                                
    Ext_c_0           0.000                               0.000    0.000
    Ext_c_1           0.250                               0.041    0.040
    Ext_c_2           1.000                               0.165    0.163
    Ext_c_3           2.250                               0.371    0.367
    Ext_c_4           4.000                               0.660    0.664
    Ext_c_5           6.250                               1.031    1.031
    Ext_c_6           9.000                               1.485    1.552

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_i ~                                                                 
    g_i              -0.363    0.027  -13.352    0.000   -0.150   -0.150
    a_i               0.678    0.014   50.040    0.000    0.557    0.557
    pu_i             -0.020    0.023   -0.856    0.392   -0.009   -0.009
  p_s ~                                                                 
    g_i               0.176    0.059    2.955    0.003    0.120    0.120
    g_s              -2.582    1.006   -2.568    0.010   -0.220   -0.220
    a_i               0.001    0.015    0.049    0.961    0.001    0.001
    a_s               1.453    0.088   16.518    0.000    0.624    0.624
    pu_i             -0.016    0.042   -0.379    0.705   -0.012   -0.012
    pu_s             -0.022    0.117   -0.184    0.854   -0.015   -0.015
    pu_q             -0.184    0.424   -0.434    0.664   -0.039   -0.039
  p_q ~                                                                 
    g_i              -0.043    0.017   -2.490    0.013   -0.100   -0.100
    g_s               0.602    0.286    2.106    0.035    0.176    0.176
    a_i              -0.013    0.005   -2.665    0.008   -0.059   -0.059
    a_s              -0.354    0.026  -13.820    0.000   -0.522   -0.522
    pu_i              0.014    0.014    0.991    0.322    0.036    0.036
    pu_s              0.052    0.039    1.306    0.191    0.125    0.125
    pu_q              0.210    0.143    1.472    0.141    0.152    0.152

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.186    0.005   37.257    0.000    0.186    0.563
   .asr_nxdp_cmp_4           0.170    0.005   33.045    0.000    0.170    0.504
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.208    0.006   37.631    0.000    0.208    0.588
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.227    0.006   37.002    0.000    0.227    0.471
   .asr_wthdp_cm_4           0.206    0.006   33.058    0.000    0.206    0.436
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.225    0.006   35.410    0.000    0.225    0.478
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.282    0.007   41.271    0.000    0.282    0.500
   .asr_soma_cmp_4           0.245    0.007   35.380    0.000    0.245    0.438
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.289    0.007   39.563    0.000    0.289    0.511
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.193    0.005   35.351    0.000    0.193    0.437
   .asr_thprb_cm_4           0.160    0.005   29.271    0.000    0.160    0.376
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.168    0.005   31.754    0.000    0.168    0.422
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.258    0.005   48.719    0.000    0.258    0.646
   .asr_ttprb_cm_4           0.252    0.006   45.100    0.000    0.252    0.603
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.272    0.006   47.765    0.000    0.272    0.670
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.298    0.007   40.839    0.000    0.298    0.478
   .asr_rlbrk_cm_4           0.255    0.007   35.280    0.000    0.255    0.424
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.276    0.007   38.094    0.000    0.276    0.481
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.236    0.006   42.240    0.000    0.236    0.544
   .asr_ggrss_cm_4           0.212    0.006   38.201    0.000    0.212    0.502
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.240    0.006   41.581    0.000    0.240    0.574
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.495    0.010   51.750    0.000    0.495    0.576
   .asr_intr_cmp_4           0.464    0.010   47.811    0.000    0.464    0.545
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.473    0.010   49.495    0.000    0.473    0.582
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.021    0.005    4.227    0.000    0.021    0.054
   .asr_soma_cmp_0           0.032    0.005    6.193    0.000    0.032    0.077
   .asr_wthdp_cm_2           0.021    0.005    4.305    0.000    0.021    0.054
   .asr_soma_cmp_2           0.038    0.005    7.301    0.000    0.038    0.090
   .asr_wthdp_cm_4           0.019    0.005    3.822    0.000    0.019    0.051
   .asr_soma_cmp_4           0.036    0.005    6.566    0.000    0.036    0.085
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2           0.011    0.005    2.269    0.023    0.011    0.028
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.030    0.005    5.802    0.000    0.030    0.069
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.038    0.005    7.223    0.000    0.038    0.094
   .asr_soma_cmp_2           0.052    0.006    9.369    0.000    0.052    0.118
   .asr_wthdp_cm_4           0.025    0.005    4.818    0.000    0.025    0.063
   .asr_soma_cmp_4           0.033    0.006    5.872    0.000    0.033    0.075
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4           0.003    0.005    0.628    0.530    0.003    0.008
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.029    0.006    5.239    0.000    0.029    0.065
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.019    0.005    3.495    0.000    0.019    0.045
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.049    0.006    8.491    0.000    0.049    0.108
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.045    0.006    7.994    0.000    0.045    0.110
   .asr_soma_cmp_4           0.065    0.006   10.781    0.000    0.065    0.144
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.029    0.006   -4.994    0.000   -0.029   -0.055
   .asr_soma_cmp_2          -0.017    0.006   -2.830    0.005   -0.017   -0.032
   .asr_soma_cmp_4          -0.032    0.006   -5.208    0.000   -0.032   -0.062
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.011    0.006   -1.942    0.052   -0.011   -0.022
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.012    0.006   -2.011    0.044   -0.012   -0.023
   .asr_soma_cmp_4          -0.020    0.006   -3.191    0.001   -0.020   -0.038
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.014    0.006   -2.325    0.020   -0.014   -0.027
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.017    0.006   -2.758    0.006   -0.017   -0.033
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.018    0.006   -2.866    0.004   -0.018   -0.035
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.129    0.007   19.225    0.000    0.129    0.205
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.064    0.006   10.884    0.000    0.064    0.120
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.082    0.006   12.743    0.000    0.082    0.137
   .asr_rlbrk_cm_2           0.017    0.006    3.014    0.003    0.017    0.033
   .asr_intr_cmp_4           0.090    0.007   13.569    0.000    0.090    0.152
   .asr_rlbrk_cm_4           0.025    0.006    4.296    0.000    0.025    0.050
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.091    0.007   13.720    0.000    0.091    0.146
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.043    0.006    7.379    0.000    0.043    0.082
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.133    0.007   20.295    0.000    0.133    0.225
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.037    0.006    6.432    0.000    0.037    0.073
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.104    0.007   15.509    0.000    0.104    0.177
   .asr_rlbrk_cm_4           0.035    0.006    6.017    0.000    0.035    0.072
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.093    0.007   13.727    0.000    0.093    0.154
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.049    0.006    8.190    0.000    0.049    0.096
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.099    0.007   15.017    0.000    0.099    0.172
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.039    0.006    6.551    0.000    0.039    0.078
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.133    0.007   19.657    0.000    0.133    0.233
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.055    0.006    9.461    0.000    0.055    0.117
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.117    0.008   15.195    0.000    0.117    0.153
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.065    0.007    8.726    0.000    0.065    0.089
   .asr_rlbrk_cm_4           0.070    0.008    9.197    0.000    0.070    0.099
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.070    0.008    9.260    0.000    0.070    0.095
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.109    0.007   14.823    0.000    0.109    0.155
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.068    0.007    9.232    0.000    0.068    0.101
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.083    0.008   10.689    0.000    0.083    0.115
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.075    0.008    9.906    0.000    0.075    0.109
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.107    0.008   14.219    0.000    0.107    0.160
  a_i ~~                                                                       
    a_s                     -0.074    0.005  -15.913    0.000   -0.396   -0.396
 .flanker_0 ~~                                                                 
   .flanker_2                0.137    0.007   18.699    0.000    0.137    0.243
   .flanker_4                0.097    0.007   12.931    0.000    0.097    0.178
   .flanker_6                0.086    0.009    9.231    0.000    0.086    0.160
 .flanker_2 ~~                                                                 
   .flanker_4                0.143    0.007   19.717    0.000    0.143    0.318
   .flanker_6                0.101    0.008   12.483    0.000    0.101    0.229
 .flanker_4 ~~                                                                 
   .flanker_6                0.152    0.009   16.825    0.000    0.152    0.358
 .pattern_0 ~~                                                                 
   .pattern_2                0.077    0.005   14.135    0.000    0.077    0.226
   .pattern_4                0.043    0.006    7.227    0.000    0.043    0.117
   .pattern_6                0.035    0.007    4.964    0.000    0.035    0.099
 .pattern_2 ~~                                                                 
   .pattern_4                0.109    0.007   15.846    0.000    0.109    0.297
   .pattern_6                0.077    0.008   10.247    0.000    0.077    0.216
 .pattern_4 ~~                                                                 
   .pattern_6                0.130    0.009   14.566    0.000    0.130    0.342
 .picture_0 ~~                                                                 
   .picture_2                0.252    0.007   33.853    0.000    0.252    0.364
   .picture_4                0.257    0.009   28.077    0.000    0.257    0.310
   .picture_6                0.281    0.012   23.546    0.000    0.281    0.343
 .picture_2 ~~                                                                 
   .picture_4                0.285    0.010   28.056    0.000    0.285    0.325
   .picture_6                0.266    0.013   19.858    0.000    0.266    0.306
 .picture_4 ~~                                                                 
   .picture_6                0.390    0.016   24.726    0.000    0.390    0.374
 .picvocab_0 ~~                                                                
   .picvocab_2               0.396    0.007   53.205    0.000    0.396    0.676
   .picvocab_4               0.400    0.008   50.630    0.000    0.400    0.647
   .picvocab_6               0.379    0.009   43.167    0.000    0.379    0.625
 .picvocab_2 ~~                                                                
   .picvocab_4               0.471    0.009   54.007    0.000    0.471    0.726
   .picvocab_6               0.458    0.010   47.373    0.000    0.458    0.720
 .picvocab_4 ~~                                                                
   .picvocab_6               0.507    0.010   48.357    0.000    0.507    0.756
 .reading_0 ~~                                                                 
   .reading_2                0.403    0.007   54.979    0.000    0.403    0.722
   .reading_4                0.407    0.008   50.786    0.000    0.407    0.661
   .reading_6                0.416    0.010   43.523    0.000    0.416    0.656
 .reading_2 ~~                                                                 
   .reading_4                0.416    0.008   51.281    0.000    0.416    0.692
   .reading_6                0.432    0.010   45.245    0.000    0.432    0.698
 .reading_4 ~~                                                                 
   .reading_6                0.456    0.011   42.906    0.000    0.456    0.669
 .picvocab_0 ~~                                                                
   .reading_0                0.232    0.006   35.862    0.000    0.232    0.410
   .reading_2                0.245    0.007   37.600    0.000    0.245    0.444
   .reading_4                0.263    0.007   36.149    0.000    0.263    0.433
   .reading_6                0.282    0.009   32.051    0.000    0.282    0.450
 .picvocab_2 ~~                                                                
   .reading_2                0.287    0.007   40.376    0.000    0.287    0.496
 .reading_0 ~~                                                                 
   .picvocab_2               0.266    0.007   38.254    0.000    0.266    0.449
 .picvocab_2 ~~                                                                
   .reading_4                0.312    0.008   39.455    0.000    0.312    0.490
   .reading_6                0.338    0.010   35.383    0.000    0.338    0.514
 .picvocab_4 ~~                                                                
   .reading_4                0.336    0.009   38.852    0.000    0.336    0.500
 .reading_0 ~~                                                                 
   .picvocab_4               0.274    0.007   36.669    0.000    0.274    0.439
 .reading_2 ~~                                                                 
   .picvocab_4               0.299    0.008   39.284    0.000    0.299    0.489
 .picvocab_4 ~~                                                                
   .reading_6                0.366    0.010   35.590    0.000    0.366    0.529
 .picvocab_6 ~~                                                                
   .reading_6                0.359    0.011   32.199    0.000    0.359    0.529
 .reading_0 ~~                                                                 
   .picvocab_6               0.255    0.009   29.775    0.000    0.255    0.416
 .reading_2 ~~                                                                 
   .picvocab_6               0.283    0.009   32.933    0.000    0.283    0.472
 .reading_4 ~~                                                                 
   .picvocab_6               0.322    0.010   33.290    0.000    0.322    0.487
  g_i ~~                                                                       
    g_s                      0.005    0.001    4.249    0.000    0.271    0.271
 .ph_p_pds_001_0 ~~                                                            
   .ph_p_pds_001_1           0.426    0.011   40.296    0.000    0.426    0.460
   .ph_p_pds_001_2           0.253    0.009   28.427    0.000    0.253    0.315
   .ph_p_pds_001_3           0.135    0.008   17.230    0.000    0.135    0.193
   .ph_p_pds_001_4           0.052    0.007    7.306    0.000    0.052    0.084
   .ph_p_pds_001_5           0.027    0.007    3.865    0.000    0.027    0.046
   .ph_p_pds_001_6           0.023    0.009    2.578    0.010    0.023    0.039
 .ph_p_pds_001_1 ~~                                                            
   .ph_p_pds_001_2           0.296    0.008   36.150    0.000    0.296    0.418
   .ph_p_pds_001_3           0.166    0.007   23.330    0.000    0.166    0.269
   .ph_p_pds_001_4           0.069    0.006   10.999    0.000    0.069    0.128
   .ph_p_pds_001_5           0.034    0.006    5.455    0.000    0.034    0.065
   .ph_p_pds_001_6           0.019    0.008    2.369    0.018    0.019    0.036
 .ph_p_pds_001_2 ~~                                                            
   .ph_p_pds_001_3           0.214    0.007   32.878    0.000    0.214    0.400
   .ph_p_pds_001_4           0.092    0.006   16.685    0.000    0.092    0.198
   .ph_p_pds_001_5           0.040    0.005    7.491    0.000    0.040    0.090
   .ph_p_pds_001_6           0.028    0.007    4.048    0.000    0.028    0.061
 .ph_p_pds_001_3 ~~                                                            
   .ph_p_pds_001_4           0.120    0.005   23.630    0.000    0.120    0.295
   .ph_p_pds_001_5           0.061    0.005   12.550    0.000    0.061    0.156
   .ph_p_pds_001_6           0.035    0.006    5.749    0.000    0.035    0.088
 .ph_p_pds_001_4 ~~                                                            
   .ph_p_pds_001_5           0.134    0.005   29.373    0.000    0.134    0.392
   .ph_p_pds_001_6           0.083    0.006   14.670    0.000    0.083    0.241
 .ph_p_pds_001_5 ~~                                                            
   .ph_p_pds_001_6           0.142    0.006   24.946    0.000    0.142    0.424
 .ph_p_pds_002_0 ~~                                                            
   .ph_p_pds_002_1           0.119    0.005   21.786    0.000    0.119    0.374
   .ph_p_pds_002_2           0.056    0.005   11.340    0.000    0.056    0.185
   .ph_p_pds_002_3           0.023    0.004    5.236    0.000    0.023    0.090
   .ph_p_pds_002_4           0.007    0.004    1.881    0.060    0.007    0.035
   .ph_p_pds_002_5           0.001    0.004    0.202    0.840    0.001    0.004
   .ph_p_pds_002_6           0.001    0.005    0.120    0.905    0.001    0.003
 .ph_p_pds_002_1 ~~                                                            
   .ph_p_pds_002_2           0.124    0.005   23.172    0.000    0.124    0.402
   .ph_p_pds_002_3           0.057    0.005   12.078    0.000    0.057    0.215
   .ph_p_pds_002_4           0.012    0.004    3.068    0.002    0.012    0.057
   .ph_p_pds_002_5           0.008    0.004    2.090    0.037    0.008    0.040
   .ph_p_pds_002_6           0.026    0.005    5.689    0.000    0.026    0.145
 .ph_p_pds_002_2 ~~                                                            
   .ph_p_pds_002_3           0.100    0.005   20.838    0.000    0.100    0.399
   .ph_p_pds_002_4           0.030    0.004    7.267    0.000    0.030    0.143
   .ph_p_pds_002_5           0.011    0.004    2.833    0.005    0.011    0.057
   .ph_p_pds_002_6           0.032    0.004    7.395    0.000    0.032    0.189
 .ph_p_pds_002_3 ~~                                                            
   .ph_p_pds_002_4           0.046    0.004   11.754    0.000    0.046    0.257
   .ph_p_pds_002_5           0.020    0.003    5.638    0.000    0.020    0.124
   .ph_p_pds_002_6           0.033    0.004    8.240    0.000    0.033    0.221
 .ph_p_pds_002_4 ~~                                                            
   .ph_p_pds_002_5           0.037    0.003   11.462    0.000    0.037    0.286
   .ph_p_pds_002_6           0.023    0.004    6.387    0.000    0.023    0.193
 .ph_p_pds_002_5 ~~                                                            
   .ph_p_pds_002_6           0.028    0.004    8.116    0.000    0.028    0.263
 .ph_p_pds_003_0 ~~                                                            
   .ph_p_pds_003_1           0.134    0.005   24.793    0.000    0.134    0.371
   .ph_p_pds_003_2           0.082    0.005   16.258    0.000    0.082    0.226
   .ph_p_pds_003_3           0.046    0.005    9.766    0.000    0.046    0.136
   .ph_p_pds_003_4           0.018    0.004    4.062    0.000    0.018    0.059
   .ph_p_pds_003_5           0.020    0.004    4.721    0.000    0.020    0.070
   .ph_p_pds_003_6           0.007    0.005    1.267    0.205    0.007    0.024
 .ph_p_pds_003_1 ~~                                                            
   .ph_p_pds_003_2           0.165    0.006   28.800    0.000    0.165    0.405
   .ph_p_pds_003_3           0.089    0.005   16.890    0.000    0.089    0.233
   .ph_p_pds_003_4           0.027    0.005    5.594    0.000    0.027    0.078
   .ph_p_pds_003_5           0.013    0.005    2.804    0.005    0.013    0.040
   .ph_p_pds_003_6           0.007    0.006    1.198    0.231    0.007    0.022
 .ph_p_pds_003_2 ~~                                                            
   .ph_p_pds_003_3           0.157    0.005   28.633    0.000    0.157    0.410
   .ph_p_pds_003_4           0.065    0.005   13.321    0.000    0.065    0.191
   .ph_p_pds_003_5           0.037    0.005    7.992    0.000    0.037    0.116
   .ph_p_pds_003_6           0.015    0.006    2.719    0.007    0.015    0.050
 .ph_p_pds_003_3 ~~                                                            
   .ph_p_pds_003_4           0.106    0.005   21.974    0.000    0.106    0.330
   .ph_p_pds_003_5           0.056    0.004   12.481    0.000    0.056    0.186
   .ph_p_pds_003_6           0.038    0.005    7.181    0.000    0.038    0.132
 .ph_p_pds_003_4 ~~                                                            
   .ph_p_pds_003_5           0.086    0.004   19.819    0.000    0.086    0.322
   .ph_p_pds_003_6           0.063    0.005   12.431    0.000    0.063    0.245
 .ph_p_pds_003_5 ~~                                                            
   .ph_p_pds_003_6           0.073    0.005   15.406    0.000    0.073    0.306
  pu_i ~~                                                                      
    pu_s                    -0.033    0.005   -7.230    0.000   -0.194   -0.194
    pu_q                    -0.006    0.001   -4.313    0.000   -0.112   -0.112
  pu_s ~~                                                                      
    pu_q                    -0.044    0.002  -21.689    0.000   -0.918   -0.918
 .p_i ~~                                                                       
   .p_s                     -0.097    0.011   -9.168    0.000   -0.298   -0.298
   .p_q                      0.007    0.003    2.049    0.040    0.062    0.062
 .p_s ~~                                                                       
   .p_q                     -0.050    0.005   -9.780    0.000   -0.846   -0.846

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .asr___0 (t_AX)   -0.002    0.004   -0.538    0.590   -0.002   -0.002
   .asr___0 (t_AW)    0.005    0.005    1.044    0.296    0.005    0.005
   .asr___0 (t_AS)    0.001    0.005    0.123    0.902    0.001    0.001
   .asr___0 (t_AP)    0.003    0.005    0.722    0.470    0.003    0.003
   .asr___0 (t_AH)    0.003    0.005    0.551    0.581    0.003    0.003
   .asr___0 (t_AA)    0.009    0.005    1.632    0.103    0.009    0.009
   .asr___0 (t_AR)    0.004    0.005    0.879    0.379    0.004    0.004
   .asr___0 (t_AG)    0.001    0.007    0.150    0.881    0.001    0.001
   .asr___2 (t_AX)   -0.002    0.004   -0.538    0.590   -0.002   -0.002
   .asr___2 (t_AW)    0.005    0.005    1.044    0.296    0.005    0.005
   .asr___2 (t_AS)    0.001    0.005    0.123    0.902    0.001    0.001
   .asr___2 (t_AP)    0.003    0.005    0.722    0.470    0.003    0.003
   .asr___2 (t_AH)    0.003    0.005    0.551    0.581    0.003    0.003
   .asr___2 (t_AA)    0.009    0.005    1.632    0.103    0.009    0.009
   .asr___2 (t_AR)    0.004    0.005    0.879    0.379    0.004    0.004
   .asr___2 (t_AG)    0.001    0.007    0.150    0.881    0.001    0.001
   .asr___4 (t_AX)   -0.002    0.004   -0.538    0.590   -0.002   -0.002
   .asr___4 (t_AW)    0.005    0.005    1.044    0.296    0.005    0.005
   .asr___4 (t_AS)    0.001    0.005    0.123    0.902    0.001    0.001
   .asr___4 (t_AP)    0.003    0.005    0.722    0.470    0.003    0.003
   .asr___4 (t_AH)    0.003    0.005    0.551    0.581    0.003    0.003
   .asr___4 (t_AA)    0.009    0.005    1.632    0.103    0.009    0.009
   .asr___4 (t_AR)    0.004    0.005    0.879    0.379    0.004    0.004
   .asr___4 (t_AG)    0.001    0.007    0.150    0.881    0.001    0.001
    a_i               0.022    0.008    2.896    0.004    0.029    0.029
    a_s              -0.023    0.004   -6.489    0.000   -0.096   -0.096
   .a_etaB            0.000                               0.000    0.000
   .a_eta2            0.000                               0.000    0.000
   .a_eta4            0.000                               0.000    0.000
   .flnkr_0 (ta_S)    0.106    0.007   15.701    0.000    0.106    0.116
   .flnkr_2 (ta_S)    0.106    0.007   15.701    0.000    0.106    0.134
   .flnkr_4 (ta_S)    0.106    0.007   15.701    0.000    0.106    0.134
   .flnkr_6 (ta_S)    0.106    0.007   15.701    0.000    0.106    0.131
   .pttrn_0 (ta_R)    0.123    0.007   16.834    0.000    0.123    0.162
   .pttrn_2 (ta_R)    0.123    0.007   16.834    0.000    0.123    0.160
   .pttrn_4 (ta_R)    0.123    0.007   16.834    0.000    0.123    0.150
   .pttrn_6 (ta_R)    0.123    0.007   16.834    0.000    0.123    0.144
   .pictr_0 (ta_M)    0.057    0.007    8.112    0.000    0.057    0.067
   .pictr_2 (ta_M)    0.057    0.007    8.112    0.000    0.057    0.064
   .pictr_4 (ta_M)    0.057    0.007    8.112    0.000    0.057    0.054
   .pictr_6 (ta_M)    0.057    0.007    8.112    0.000    0.057    0.054
   .pcvcb_0 (ta_P)    0.055    0.007    8.038    0.000    0.055    0.065
   .pcvcb_2 (ta_P)    0.055    0.007    8.038    0.000    0.055    0.063
   .pcvcb_4 (ta_P)    0.055    0.007    8.038    0.000    0.055    0.059
   .pcvcb_6 (ta_P)    0.055    0.007    8.038    0.000    0.055    0.059
   .redng_0 (ta_V)    0.065    0.007    9.545    0.000    0.065    0.077
   .redng_2 (ta_V)    0.065    0.007    9.545    0.000    0.065    0.078
   .redng_4 (ta_V)    0.065    0.007    9.545    0.000    0.065    0.071
   .redng_6 (ta_V)    0.065    0.007    9.545    0.000    0.065    0.067
    g_i              -0.660    0.008  -81.387    0.000   -1.705   -1.705
    g_s               0.472    0.004  128.335    0.000    9.781    9.781
   .g_etaB            0.000                               0.000    0.000
   .g_eta2            0.000                               0.000    0.000
   .g_eta4            0.000                               0.000    0.000
   .g_eta6            0.000                               0.000    0.000
   .p___001 (t_PS)    0.055    0.004   15.131    0.000    0.055    0.049
   .p___001 (t_PS)    0.055    0.004   15.131    0.000    0.055    0.054
   .p___001 (t_PS)    0.055    0.004   15.131    0.000    0.055    0.059
   .p___001 (t_PS)    0.055    0.004   15.131    0.000    0.055    0.065
   .p___001 (t_PS)    0.055    0.004   15.131    0.000    0.055    0.073
   .p___001 (t_PS)    0.055    0.004   15.131    0.000    0.055    0.079
   .p___001 (t_PS)    0.055    0.004   15.131    0.000    0.055    0.081
   .p___002 (t_PR)    0.115    0.002   49.204    0.000    0.115    0.142
   .p___002 (t_PR)    0.115    0.002   49.204    0.000    0.115    0.134
   .p___002 (t_PR)    0.115    0.002   49.204    0.000    0.115    0.135
   .p___002 (t_PR)    0.115    0.002   49.204    0.000    0.115    0.143
   .p___002 (t_PR)    0.115    0.002   49.204    0.000    0.115    0.159
   .p___002 (t_PR)    0.115    0.002   49.204    0.000    0.115    0.183
   .p___002 (t_PR)    0.115    0.002   49.204    0.000    0.115    0.205
   .p___003 (t_PM)    0.105    0.003   41.386    0.000    0.105    0.132
   .p___003 (t_PM)    0.105    0.003   41.386    0.000    0.105    0.119
   .p___003 (t_PM)    0.105    0.003   41.386    0.000    0.105    0.117
   .p___003 (t_PM)    0.105    0.003   41.386    0.000    0.105    0.122
   .p___003 (t_PM)    0.105    0.003   41.386    0.000    0.105    0.133
   .p___003 (t_PM)    0.105    0.003   41.386    0.000    0.105    0.149
   .p___003 (t_PM)    0.105    0.003   41.386    0.000    0.105    0.161
    pu_i             -0.735    0.007 -110.459    0.000   -1.714   -1.714
    pu_s              0.597    0.007   86.627    0.000    1.498    1.498
    pu_q             -0.043    0.002  -22.473    0.000   -0.361   -0.361
   .pu_etaB           0.000                               0.000    0.000
   .pu_eta1           0.000                               0.000    0.000
   .pu_eta2           0.000                               0.000    0.000
   .pu_eta3           0.000                               0.000    0.000
   .pu_eta4           0.000                               0.000    0.000
   .pu_eta5           0.000                               0.000    0.000
   .pu_eta6           0.000                               0.000    0.000
   .p_i              -0.180    0.026   -6.890    0.000   -0.192   -0.192
   .p_s               1.307    0.508    2.575    0.010    2.306    2.306
   .p_q              -0.333    0.144   -2.310    0.021   -2.020   -2.020
   .Ext_c_0           0.000                               0.000    0.000
   .Ext_c_1           0.000                               0.000    0.000
   .Ext_c_2           0.000                               0.000    0.000
   .Ext_c_3           0.000                               0.000    0.000
   .Ext_c_4           0.000                               0.000    0.000
   .Ext_c_5           0.000                               0.000    0.000
   .Ext_c_6           0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .a_etaB            0.111    0.007   16.169    0.000    0.157    0.157
   .a_eta2            0.179    0.005   37.525    0.000    0.262    0.262
   .a_eta4            0.100    0.008   13.213    0.000    0.158    0.158
   .asr_nxdp_cmp_0    0.316    0.006   53.186    0.000    0.316    0.309
   .asr_wthdp_cm_0    0.486    0.008   62.796    0.000    0.486    0.463
   .asr_soma_cmp_0    0.558    0.008   66.517    0.000    0.558    0.555
   .asr_thprb_cm_0    0.472    0.007   65.029    0.000    0.472    0.435
   .asr_ttprb_cm_0    0.412    0.006   64.333    0.000    0.412    0.414
   .asr_rlbrk_cm_0    0.652    0.009   69.320    0.000    0.652    0.598
   .asr_ggrss_cm_0    0.439    0.007   63.461    0.000    0.439    0.418
   .asr_intr_cmp_0    0.898    0.012   74.817    0.000    0.898    0.841
   .asr_nxdp_cmp_2    0.346    0.006   53.501    0.000    0.346    0.336
   .asr_wthdp_cm_2    0.481    0.008   60.946    0.000    0.481    0.468
   .asr_soma_cmp_2    0.567    0.009   64.682    0.000    0.567    0.566
   .asr_thprb_cm_2    0.412    0.007   61.575    0.000    0.412    0.409
   .asr_ttprb_cm_2    0.387    0.006   61.203    0.000    0.387    0.407
   .asr_rlbrk_cm_2    0.596    0.009   66.271    0.000    0.596    0.584
   .asr_ggrss_cm_2    0.427    0.007   61.385    0.000    0.427    0.419
   .asr_intr_cmp_2    0.821    0.011   71.971    0.000    0.821    0.833
   .asr_nxdp_cmp_4    0.360    0.007   50.879    0.000    0.360    0.362
   .asr_wthdp_cm_4    0.462    0.008   57.106    0.000    0.462    0.477
   .asr_soma_cmp_4    0.561    0.009   60.452    0.000    0.561    0.582
   .asr_thprb_cm_4    0.384    0.007   56.995    0.000    0.384    0.410
   .asr_ttprb_cm_4    0.425    0.007   58.495    0.000    0.425    0.448
   .asr_rlbrk_cm_4    0.554    0.009   61.491    0.000    0.554    0.584
   .asr_ggrss_cm_4    0.407    0.007   57.275    0.000    0.407    0.426
   .asr_intr_cmp_4    0.805    0.012   67.678    0.000    0.805    0.841
    a_i               0.595    0.013   47.516    0.000    1.000    1.000
    a_s               0.059    0.003   17.129    0.000    1.000    1.000
   .g_etaB            0.013    0.002    5.924    0.000    0.082    0.082
   .g_eta2            0.008    0.002    5.054    0.000    0.047    0.047
   .g_eta4            0.017    0.002    8.241    0.000    0.088    0.088
   .g_eta6            0.046    0.004   11.576    0.000    0.186    0.186
   .flanker_0         0.683    0.010   68.022    0.000    0.683    0.807
   .flanker_2         0.465    0.009   54.386    0.000    0.465    0.732
   .flanker_4         0.434    0.009   49.456    0.000    0.434    0.688
   .flanker_6         0.417    0.011   38.662    0.000    0.417    0.628
   .pattern_0         0.341    0.006   52.906    0.000    0.341    0.586
   .pattern_2         0.344    0.008   45.561    0.000    0.344    0.578
   .pattern_4         0.390    0.009   43.193    0.000    0.390    0.574
   .pattern_6         0.371    0.011   33.206    0.000    0.371    0.504
   .picture_0         0.652    0.009   73.346    0.000    0.652    0.917
   .picture_2         0.732    0.011   69.137    0.000    0.732    0.923
   .picture_4         1.054    0.016   66.178    0.000    1.054    0.937
   .picture_6         1.034    0.022   47.829    0.000    1.034    0.921
   .picvocab_0        0.559    0.008   68.966    0.000    0.559    0.798
   .picvocab_2        0.615    0.009   66.205    0.000    0.615    0.807
   .picvocab_4        0.683    0.011   63.055    0.000    0.683    0.801
   .picvocab_6        0.658    0.013   49.232    0.000    0.658    0.755
   .reading_0         0.572    0.008   68.315    0.000    0.572    0.785
   .reading_2         0.546    0.008   64.909    0.000    0.546    0.769
   .reading_4         0.662    0.011   62.045    0.000    0.662    0.778
   .reading_6         0.702    0.015   47.883    0.000    0.702    0.747
    g_i               0.150    0.004   35.860    0.000    1.000    1.000
    g_s               0.002    0.001    3.663    0.000    1.000    1.000
   .pu_etaB           0.009    0.003    2.764    0.006    0.046    0.046
   .pu_eta1           0.054    0.002   23.636    0.000    0.233    0.233
   .pu_eta2           0.052    0.002   24.148    0.000    0.215    0.215
   .pu_eta3           0.047    0.002   23.345    0.000    0.196    0.196
   .pu_eta4           0.040    0.002   22.389    0.000    0.191    0.191
   .pu_eta5           0.026    0.002   17.041    0.000    0.168    0.168
   .pu_eta6           0.013    0.003    4.862    0.000    0.108    0.108
   .ph_p_pds_001_0    1.052    0.015   69.922    0.000    1.052    0.845
   .ph_p_pds_002_0    0.313    0.007   47.801    0.000    0.313    0.476
   .ph_p_pds_003_0    0.322    0.006   51.668    0.000    0.322    0.511
   .ph_p_pds_001_1    0.818    0.012   68.478    0.000    0.818    0.779
   .ph_p_pds_002_1    0.326    0.007   44.811    0.000    0.326    0.441
   .ph_p_pds_003_1    0.405    0.008   53.817    0.000    0.405    0.523
   .ph_p_pds_001_2    0.614    0.009   65.673    0.000    0.614    0.716
   .ph_p_pds_002_2    0.292    0.007   43.063    0.000    0.292    0.402
   .ph_p_pds_003_2    0.410    0.007   55.249    0.000    0.410    0.513
   .ph_p_pds_001_3    0.465    0.007   62.373    0.000    0.465    0.659
   .ph_p_pds_002_3    0.215    0.006   37.957    0.000    0.215    0.335
   .ph_p_pds_003_3    0.358    0.007   53.761    0.000    0.358    0.483
   .ph_p_pds_001_4    0.353    0.006   60.351    0.000    0.353    0.628
   .ph_p_pds_002_4    0.146    0.004   32.863    0.000    0.146    0.282
   .ph_p_pds_003_4    0.286    0.006   50.181    0.000    0.286    0.461
   .ph_p_pds_001_5    0.331    0.006   58.164    0.000    0.331    0.678
   .ph_p_pds_002_5    0.116    0.004   30.625    0.000    0.116    0.294
   .ph_p_pds_003_5    0.248    0.005   49.263    0.000    0.248    0.498
   .ph_p_pds_001_6    0.339    0.008   44.155    0.000    0.339    0.739
   .ph_p_pds_002_6    0.101    0.004   22.710    0.000    0.101    0.321
   .ph_p_pds_003_6    0.233    0.006   38.409    0.000    0.233    0.549
    pu_i              0.184    0.005   37.256    0.000    1.000    1.000
    pu_s              0.159    0.007   23.422    0.000    1.000    1.000
    pu_q              0.014    0.001   22.144    0.000    1.000    1.000
   .p_i               0.587    0.012   48.837    0.000    0.667    0.667
   .p_s               0.181    0.017   10.364    0.000    0.563    0.563
   .p_q               0.019    0.002   12.027    0.000    0.714    0.714
   .Ext_comp_0        0.207    0.007   28.652    0.000    0.207    0.191
   .Ext_comp_1        0.277    0.005   57.047    0.000    0.277    0.263
   .Ext_comp_2        0.277    0.005   57.071    0.000    0.277    0.269
   .Ext_comp_3        0.273    0.005   53.984    0.000    0.273    0.267
   .Ext_comp_4        0.249    0.005   52.084    0.000    0.249    0.252
   .Ext_comp_5        0.260    0.006   47.026    0.000    0.260    0.260
   .Ext_comp_6        0.100    0.008   12.233    0.000    0.100    0.110

R-Square:
                   Estimate
    a_etaB            0.843
    a_eta2            0.738
    a_eta4            0.842
    asr_nxdp_cmp_0    0.691
    asr_wthdp_cm_0    0.537
    asr_soma_cmp_0    0.445
    asr_thprb_cm_0    0.565
    asr_ttprb_cm_0    0.586
    asr_rlbrk_cm_0    0.402
    asr_ggrss_cm_0    0.582
    asr_intr_cmp_0    0.159
    asr_nxdp_cmp_2    0.664
    asr_wthdp_cm_2    0.532
    asr_soma_cmp_2    0.434
    asr_thprb_cm_2    0.591
    asr_ttprb_cm_2    0.593
    asr_rlbrk_cm_2    0.416
    asr_ggrss_cm_2    0.581
    asr_intr_cmp_2    0.167
    asr_nxdp_cmp_4    0.638
    asr_wthdp_cm_4    0.523
    asr_soma_cmp_4    0.418
    asr_thprb_cm_4    0.590
    asr_ttprb_cm_4    0.552
    asr_rlbrk_cm_4    0.416
    asr_ggrss_cm_4    0.574
    asr_intr_cmp_4    0.159
    g_etaB            0.918
    g_eta2            0.953
    g_eta4            0.912
    g_eta6            0.814
    flanker_0         0.193
    flanker_2         0.268
    flanker_4         0.312
    flanker_6         0.372
    pattern_0         0.414
    pattern_2         0.422
    pattern_4         0.426
    pattern_6         0.496
    picture_0         0.083
    picture_2         0.077
    picture_4         0.063
    picture_6         0.079
    picvocab_0        0.202
    picvocab_2        0.193
    picvocab_4        0.199
    picvocab_6        0.245
    reading_0         0.215
    reading_2         0.231
    reading_4         0.222
    reading_6         0.253
    pu_etaB           0.954
    pu_eta1           0.767
    pu_eta2           0.785
    pu_eta3           0.804
    pu_eta4           0.809
    pu_eta5           0.832
    pu_eta6           0.892
    ph_p_pds_001_0    0.155
    ph_p_pds_002_0    0.524
    ph_p_pds_003_0    0.489
    ph_p_pds_001_1    0.221
    ph_p_pds_002_1    0.559
    ph_p_pds_003_1    0.477
    ph_p_pds_001_2    0.284
    ph_p_pds_002_2    0.598
    ph_p_pds_003_2    0.487
    ph_p_pds_001_3    0.341
    ph_p_pds_002_3    0.665
    ph_p_pds_003_3    0.517
    ph_p_pds_001_4    0.372
    ph_p_pds_002_4    0.718
    ph_p_pds_003_4    0.539
    ph_p_pds_001_5    0.322
    ph_p_pds_002_5    0.706
    ph_p_pds_003_5    0.502
    ph_p_pds_001_6    0.261
    ph_p_pds_002_6    0.679
    ph_p_pds_003_6    0.451
    p_i               0.333
    p_s               0.437
    p_q               0.286
    Ext_comp_0        0.809
    Ext_comp_1        0.737
    Ext_comp_2        0.731
    Ext_comp_3        0.733
    Ext_comp_4        0.748
    Ext_comp_5        0.740
    Ext_comp_6        0.890
Ext ~ pp + g + pu model with sex

Children’s Externalizing symptoms (Ext) was regressed on parental psychopathology (pp), children’s cognitive functioning (g) and children’s puberty (pu), with sex as covariate.

model fit
# Add sex as covariate
Ext.pga_pu6.sex.model <- Ext.pga_pu6.model %>%
  str_replace_all(
    c(
      "_i ~ 1" = "_i ~ 1 + dummy_sex",
      "_s ~ 1" = "_s ~ 1 + dummy_sex",
      "_q ~ 1" = "_q ~ 1 + dummy_sex",
      "_i~1" = "_i~1 + dummy_sex",
      "_s~1" = "_s~1 + dummy_sex",
      "_q~1" = "_q~1 + dummy_sex"
    )
  )

writeLines(Ext.pga_pu6.sex.model)
# second-order pp factor
               #factor loadings (with constraints)
               a_etaB =~ 1*asr_anxdep_comp_0+
                       lambda_AW*asr_withdep_comp_0+
                       lambda_AS*asr_soma_comp_0+
                       lambda_AC*asr_thouprob_comp_0+
                       lambda_AH*asr_attprob_comp_0+
                       lambda_AA*asr_rulebreak_comp_0+
                       lambda_AR*asr_aggress_comp_0+
                       lambda_AG*asr_intru_comp_0
               a_eta2 =~ 1*asr_anxdep_comp_2+
                       lambda_AW*asr_withdep_comp_2+
                       lambda_AS*asr_soma_comp_2+
                       lambda_AC*asr_thouprob_comp_2+
                       lambda_AH*asr_attprob_comp_2+
                       lambda_AA*asr_rulebreak_comp_2+
                       lambda_AR*asr_aggress_comp_2+
                       lambda_AG*asr_intru_comp_2
               a_eta4 =~ 1*asr_anxdep_comp_4+
                       lambda_AW*asr_withdep_comp_4+
                       lambda_AS*asr_soma_comp_4+
                       lambda_AC*asr_thouprob_comp_4+
                       lambda_AH*asr_attprob_comp_4+
                       lambda_AA*asr_rulebreak_comp_4+
                       lambda_AR*asr_aggress_comp_4+
                       lambda_AG*asr_intru_comp_4

              #latent variable variances
                      a_etaB~~NA*a_etaB
                      a_eta2~~NA*a_eta2
                      a_eta4~~NA*a_eta4

              #unique variances # No need to constrict these
                      asr_anxdep_comp_0~~asr_anxdep_comp_0
                      asr_withdep_comp_0~~asr_withdep_comp_0
                      asr_soma_comp_0~~asr_soma_comp_0
                      asr_thouprob_comp_0~~asr_thouprob_comp_0
                      asr_attprob_comp_0~~asr_attprob_comp_0
                      asr_rulebreak_comp_0~~asr_rulebreak_comp_0
                      asr_aggress_comp_0~~asr_aggress_comp_0
                      asr_intru_comp_0~~asr_intru_comp_0

                      asr_anxdep_comp_2~~asr_anxdep_comp_2
                      asr_withdep_comp_2~~asr_withdep_comp_2
                      asr_soma_comp_2~~asr_soma_comp_2
                      asr_thouprob_comp_2~~asr_thouprob_comp_2
                      asr_attprob_comp_2~~asr_attprob_comp_2
                      asr_rulebreak_comp_2~~asr_rulebreak_comp_2
                      asr_aggress_comp_2~~asr_aggress_comp_2
                      asr_intru_comp_2~~asr_intru_comp_2

                      asr_anxdep_comp_4~~asr_anxdep_comp_4
                      asr_withdep_comp_4~~asr_withdep_comp_4
                      asr_soma_comp_4~~asr_soma_comp_4
                      asr_thouprob_comp_4~~asr_thouprob_comp_4
                      asr_attprob_comp_4~~asr_attprob_comp_4
                      asr_rulebreak_comp_4~~asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_aggress_comp_4
                      asr_intru_comp_4~~asr_intru_comp_4

              #unique covariances
                      # Scores arcoss times
                      asr_anxdep_comp_0~~ asr_anxdep_comp_2 + asr_anxdep_comp_4
                      asr_anxdep_comp_2~~ asr_anxdep_comp_4

                      asr_withdep_comp_0 ~~ asr_withdep_comp_2 + asr_withdep_comp_4
                      asr_withdep_comp_2 ~~ asr_withdep_comp_4

                      asr_soma_comp_0~~ asr_soma_comp_2 + asr_soma_comp_4
                      asr_soma_comp_2~~ asr_soma_comp_4

                      asr_thouprob_comp_0~~ asr_thouprob_comp_2 + asr_thouprob_comp_4
                      asr_thouprob_comp_2~~ asr_thouprob_comp_4

                      asr_attprob_comp_0~~ asr_attprob_comp_2 + asr_attprob_comp_4
                      asr_attprob_comp_2~~ asr_attprob_comp_4

                      asr_rulebreak_comp_0~~ asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_rulebreak_comp_2~~ asr_rulebreak_comp_4

                      asr_aggress_comp_0~~ asr_aggress_comp_2 + asr_aggress_comp_4
                      asr_aggress_comp_2~~ asr_aggress_comp_4

                      asr_intru_comp_0~~ asr_intru_comp_2 + asr_intru_comp_4
                      asr_intru_comp_2~~ asr_intru_comp_4

                      # Internalizeing subscale covariances
                      asr_anxdep_comp_0~~asr_withdep_comp_0 + asr_soma_comp_0 + asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_2~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_4~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4

                      asr_withdep_comp_0~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_2~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_4~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4

                      # Externalizeing subscale covariances
                      asr_aggress_comp_0~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_2~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4

                      asr_intru_comp_0~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_2~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_4~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4

              #observed variable intercepts
                      asr_anxdep_comp_0~tau_AX*1
                      asr_withdep_comp_0~tau_AW*1
                      asr_soma_comp_0~tau_AS*1
                      asr_thouprob_comp_0~tau_AP*1
                      asr_attprob_comp_0~tau_AH*1
                      asr_rulebreak_comp_0~tau_AA*1
                      asr_aggress_comp_0~tau_AR*1
                      asr_intru_comp_0~tau_AG*1

                      asr_anxdep_comp_2~tau_AX*1
                      asr_withdep_comp_2~tau_AW*1
                      asr_soma_comp_2~tau_AS*1
                      asr_thouprob_comp_2~tau_AP*1
                      asr_attprob_comp_2~tau_AH*1
                      asr_rulebreak_comp_2~tau_AA*1
                      asr_aggress_comp_2~tau_AR*1
                      asr_intru_comp_2~tau_AG*1

                      asr_anxdep_comp_4~tau_AX*1
                      asr_withdep_comp_4~tau_AW*1
                      asr_soma_comp_4~tau_AS*1
                      asr_thouprob_comp_4~tau_AP*1
                      asr_attprob_comp_4~tau_AH*1
                      asr_rulebreak_comp_4~tau_AA*1
                      asr_aggress_comp_4~tau_AR*1
                      asr_intru_comp_4~tau_AG*1

                      #latent basis model
                      a_i =~ 1*a_etaB+1*a_eta2+1*a_eta4
                      a_s =~ 0*a_etaB+1*a_eta2+2*a_eta4
                      a_i~~NA*a_i
                      a_s~~NA*a_s
                      a_i~~a_s
                      a_i~1 + dummy_sex
                      a_s~1 + dummy_sex
                      a_etaB~0*1
                      a_eta2~0*1
                      a_eta4~0*1

               # second-order g factor
               #factor loadings # S & S2
               g_etaB =~ 1*flanker_0+
                       lambda_R*pattern_0+
                       lambda_M*picture_0+
                       lambda_P*picvocab_0+
                       lambda_V*reading_0
               g_eta2 =~ 1*flanker_2+
                       lambda_R*pattern_2+
                       lambda_M*picture_2+
                       lambda_P*picvocab_2+
                       lambda_V*reading_2
               g_eta4 =~ 1*flanker_4+
                       lambda_R*pattern_4+
                       lambda_M*picture_4+
                       lambda_P*picvocab_4+
                       lambda_V*reading_4
               g_eta6 =~ 1*flanker_6+
                       lambda_R*pattern_6+
                       lambda_M*picture_6+
                       lambda_P*picvocab_6+
                       lambda_V*reading_6

              #latent variable variances
                       g_etaB~~NA*g_etaB
                       g_eta2~~NA*g_eta2
                       g_eta4~~NA*g_eta4
                       g_eta6~~NA*g_eta6

              #unique variances
                      flanker_0~~flanker_0
                      flanker_2~~flanker_2
                      flanker_4~~flanker_4
                      flanker_6~~flanker_6

                      pattern_0~~pattern_0
                      pattern_2~~pattern_2
                      pattern_4~~pattern_4
                      pattern_6~~pattern_6

                      picture_0~~picture_0
                      picture_2~~picture_2
                      picture_4~~picture_4
                      picture_6~~picture_6

                      picvocab_0~~picvocab_0
                      picvocab_2~~picvocab_2
                      picvocab_4~~picvocab_4
                      picvocab_6~~picvocab_6

                      reading_0~~reading_0
                      reading_2~~reading_2
                      reading_4~~reading_4
                      reading_6~~reading_6

              #unique covariances
                      # Task across times
                      flanker_0~~flanker_2 + flanker_4 + flanker_6
                      flanker_2~~flanker_4 + flanker_6
                      flanker_4~~flanker_6

                      pattern_0~~pattern_2 + pattern_4 + pattern_6
                      pattern_2~~pattern_4 + pattern_6
                      pattern_4~~pattern_6

                      picture_0~~picture_2 + picture_4 + picture_6
                      picture_2~~picture_4 + picture_6
                      picture_4~~picture_6

                      picvocab_0~~picvocab_2 + picvocab_4 + picvocab_6
                      picvocab_2~~picvocab_4 + picvocab_6
                      picvocab_4~~picvocab_6

                      reading_0~~reading_2 + reading_4 + reading_6
                      reading_2~~reading_4 + reading_6
                      reading_4~~reading_6

                      #Language
                      picvocab_0~~reading_0 + reading_2 + reading_4 + reading_6
                      picvocab_2~~reading_2 + reading_0 + reading_4 + reading_6
                      picvocab_4~~reading_4 + reading_0 + reading_2 + reading_6
                      picvocab_6~~reading_6 + reading_0 + reading_2 + reading_4

              #observed variable intercepts # S & S2
                      flanker_0~tau_S*1
                      flanker_2~tau_S*1
                      flanker_4~tau_S*1
                      flanker_6~tau_S*1
                      pattern_0~tau_R*1
                      pattern_2~tau_R*1
                      pattern_4~tau_R*1
                      pattern_6~tau_R*1
                      picture_0~tau_M*1
                      picture_2~tau_M*1
                      picture_4~tau_M*1
                      picture_6~tau_M*1
                      picvocab_0~tau_P*1
                      picvocab_2~tau_P*1
                      picvocab_4~tau_P*1
                      picvocab_6~tau_P*1
                      reading_0~tau_V*1
                      reading_2~tau_V*1
                      reading_4~tau_V*1
                      reading_6~tau_V*1

              #latent basis model
                      g_i =~    1*g_etaB + 1*g_eta2 + 1*g_eta4 + 1*g_eta6
                      g_s =~    0*g_etaB + 1*g_eta2 + 2*g_eta4 + 3*g_eta6

                      g_i~~NA*g_i
                      g_s~~NA*g_s

                      g_i~~g_s

                      g_i~1 + dummy_sex
                      g_s~1 + dummy_sex

                      g_etaB~0*1
                      g_eta2~0*1
                      g_eta4~0*1
                      g_eta6~0*1

               # second-order puberty factor
               #factor loadings
               pu_etaB =~ 1*ph_p_pds_001_0 +
                          lambda_PR*ph_p_pds_002_0 +
                          lambda_PM*ph_p_pds_003_0

               pu_eta1 =~ 1*ph_p_pds_001_1 +
                          lambda_PR*ph_p_pds_002_1 +
                          lambda_PM*ph_p_pds_003_1

               pu_eta2 =~ 1*ph_p_pds_001_2 +
                          lambda_PR*ph_p_pds_002_2 +
                          lambda_PM*ph_p_pds_003_2

               pu_eta3 =~ 1*ph_p_pds_001_3 +
                          lambda_PR*ph_p_pds_002_3 +
                          lambda_PM*ph_p_pds_003_3

               pu_eta4 =~ 1*ph_p_pds_001_4 +
                          lambda_PR*ph_p_pds_002_4 +
                          lambda_PM*ph_p_pds_003_4

               pu_eta5 =~ 1*ph_p_pds_001_5 +
                          lambda_PR*ph_p_pds_002_5 +
                          lambda_PM*ph_p_pds_003_5

               pu_eta6 =~ 1*ph_p_pds_001_6 +
                          lambda_PR*ph_p_pds_002_6 +
                          lambda_PM*ph_p_pds_003_6

              #latent variable variances
                      pu_etaB~~NA*pu_etaB
                      pu_eta1~~NA*pu_eta1
                      pu_eta2~~NA*pu_eta2
                      pu_eta3~~NA*pu_eta3
                      pu_eta4~~NA*pu_eta4
                      pu_eta5~~NA*pu_eta5
                      pu_eta6~~NA*pu_eta6

              #unique variances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_0
                      ph_p_pds_002_0 ~~ ph_p_pds_002_0
                      ph_p_pds_003_0 ~~ ph_p_pds_003_0

                      ph_p_pds_001_1 ~~ ph_p_pds_001_1
                      ph_p_pds_002_1 ~~ ph_p_pds_002_1
                      ph_p_pds_003_1 ~~ ph_p_pds_003_1

                      ph_p_pds_001_2 ~~ ph_p_pds_001_2
                      ph_p_pds_002_2 ~~ ph_p_pds_002_2
                      ph_p_pds_003_2 ~~ ph_p_pds_003_2

                      ph_p_pds_001_3 ~~ ph_p_pds_001_3
                      ph_p_pds_002_3 ~~ ph_p_pds_002_3
                      ph_p_pds_003_3 ~~ ph_p_pds_003_3

                      ph_p_pds_001_4 ~~ ph_p_pds_001_4
                      ph_p_pds_002_4 ~~ ph_p_pds_002_4
                      ph_p_pds_003_4 ~~ ph_p_pds_003_4

                      ph_p_pds_001_5 ~~ ph_p_pds_001_5
                      ph_p_pds_002_5 ~~ ph_p_pds_002_5
                      ph_p_pds_003_5 ~~ ph_p_pds_003_5

                      ph_p_pds_001_6 ~~ ph_p_pds_001_6
                      ph_p_pds_002_6 ~~ ph_p_pds_002_6
                      ph_p_pds_003_6 ~~ ph_p_pds_003_6

              #unique covariances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_1 + ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_1 ~~ ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_2 ~~ ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_3 ~~ ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_4 ~~ ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_5 ~~ ph_p_pds_001_6

                      ph_p_pds_002_0 ~~ ph_p_pds_002_1 + ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_1 ~~ ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_2 ~~ ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_3 ~~ ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_4 ~~ ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_5 ~~ ph_p_pds_002_6

                      ph_p_pds_003_0 ~~ ph_p_pds_003_1 + ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_1 ~~ ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_2 ~~ ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_3 ~~ ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_4 ~~ ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_5 ~~ ph_p_pds_003_6

              #observed variable intercepts
                      ph_p_pds_001_0 ~ tau_PS*1
                      ph_p_pds_001_1 ~ tau_PS*1
                      ph_p_pds_001_2 ~ tau_PS*1
                      ph_p_pds_001_3 ~ tau_PS*1
                      ph_p_pds_001_4 ~ tau_PS*1
                      ph_p_pds_001_5 ~ tau_PS*1
                      ph_p_pds_001_6 ~ tau_PS*1

                      ph_p_pds_002_0 ~ tau_PR*1
                      ph_p_pds_002_1 ~ tau_PR*1
                      ph_p_pds_002_2 ~ tau_PR*1
                      ph_p_pds_002_3 ~ tau_PR*1
                      ph_p_pds_002_4 ~ tau_PR*1
                      ph_p_pds_002_5 ~ tau_PR*1
                      ph_p_pds_002_6 ~ tau_PR*1

                      ph_p_pds_003_0 ~ tau_PM*1
                      ph_p_pds_003_1 ~ tau_PM*1
                      ph_p_pds_003_2 ~ tau_PM*1
                      ph_p_pds_003_3 ~ tau_PM*1
                      ph_p_pds_003_4 ~ tau_PM*1
                      ph_p_pds_003_5 ~ tau_PM*1
                      ph_p_pds_003_6 ~ tau_PM*1

              #latent basis model
                      pu_i =~ 1*pu_etaB + 1*pu_eta1 + 1*pu_eta2 + 1*pu_eta3 + 1*pu_eta4 + 1*pu_eta5 + 1*pu_eta6
                      pu_s =~ 0*pu_etaB + 0.5*pu_eta1 + 1*pu_eta2 + 1.5*pu_eta3 + 2*pu_eta4 + 2.5*pu_eta5 + 3*pu_eta6
                      pu_q =~ 0*pu_etaB + 0.25*pu_eta1 + 1*pu_eta2 + 2.25*pu_eta3 + 4*pu_eta4 + 6.25*pu_eta5 + 9*pu_eta6

                      pu_i~~NA*pu_i
                      pu_s~~NA*pu_s
                      pu_q~~NA*pu_q

                      pu_i~~pu_s + pu_q
                      pu_s~~pu_q

                      pu_i~1 + dummy_sex
                      pu_s~1 + dummy_sex
                      pu_q~1 + dummy_sex

                      pu_etaB~0*1
                      pu_eta1~0*1
                      pu_eta2~0*1
                      pu_eta3~0*1
                      pu_eta4~0*1
                      pu_eta5~0*1
                      pu_eta6~0*1

              # Externalizing model
                      p_i =~ 1*Ext_comp_0 + 1*Ext_comp_1 + 1*Ext_comp_2 + 1*Ext_comp_3 + 1*Ext_comp_4 + 1*Ext_comp_5 + 1*Ext_comp_6
                      p_s =~ 0*Ext_comp_0 + .5*Ext_comp_1 + 1*Ext_comp_2 + 1.5*Ext_comp_3 + 2*Ext_comp_4 + 2.5*Ext_comp_5 + 3*Ext_comp_6
                      p_q =~ 0*Ext_comp_0 + .25*Ext_comp_1 + 1*Ext_comp_2 + 2.25*Ext_comp_3 + 4*Ext_comp_4 + 6.25*Ext_comp_5 + 9*Ext_comp_6

                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q

                      p_i~~p_s + p_q
                      p_s~~p_q

                      p_i~1 + dummy_sex
                      p_s~1 + dummy_sex
                      p_q~1 + dummy_sex

                      Ext_comp_0 ~~ NA*Ext_comp_0
                      Ext_comp_1 ~~ NA*Ext_comp_1
                      Ext_comp_2 ~~ NA*Ext_comp_2
                      Ext_comp_3 ~~ NA*Ext_comp_3
                      Ext_comp_4 ~~ NA*Ext_comp_4
                      Ext_comp_5 ~~ NA*Ext_comp_5
                      Ext_comp_6 ~~ NA*Ext_comp_6

                      Ext_comp_0 ~ 0*1
                      Ext_comp_1 ~ 0*1
                      Ext_comp_2 ~ 0*1
                      Ext_comp_3 ~ 0*1
                      Ext_comp_4 ~ 0*1
                      Ext_comp_5 ~ 0*1
                      Ext_comp_6 ~ 0*1

                      # regression
                      p_i ~ g_i + a_i + pu_i
                      p_s ~ g_i + g_s + a_i + a_s + pu_i + pu_s + pu_q
                      p_q ~ g_i + g_s + a_i + a_s + pu_i + pu_s + pu_q
lavaan(Ext.pga_pu6.sex.model,
  data = readRDS("pga6_all_data_sex.rds"),
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = T,
  std.lv = T
) %>%
  saveRDS("pgcm_Ext_pga_pu6_sex_model.rds")
result
readRDS("pgcm_Ext_pga_pu6_sex_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pgcm_Ext_pga_pu6_sex_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pgcm_Ext_pga_pu6_sex_model.rds"), "cor.lv"))$value
 [1] 5.938453725 4.801088378 3.808011623 2.459030441 2.225633441 0.968685305
 [7] 0.931319825 0.613323981 0.573290207 0.229579268 0.217413136 0.198548263
[13] 0.188108644 0.160487970 0.154697871 0.133207643 0.095530934 0.082709241
[19] 0.074511618 0.060771645 0.041785198 0.024575528 0.016667977 0.002568137
readRDS("pgcm_Ext_pga_pu6_sex_result.rds")
lavaan 0.6-19 ended normally after 313 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       444
  Number of equality constraints                    87

  Number of observations                         11867
  Number of missing patterns                      2195

Model Test User Model:
                                                       
  Test statistic                              23163.459
  Degrees of freedom                               2415
  P-value (Chi-square)                            0.000

Model Test Baseline Model:

  Test statistic                            425000.453
  Degrees of freedom                              2628
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.951
  Tucker-Lewis Index (TLI)                       0.947
                                                      
  Robust Comparative Fit Index (CFI)             0.947
  Robust Tucker-Lewis Index (TLI)                0.943

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -715360.823
  Loglikelihood unrestricted model (H1)    -703779.094
                                                      
  Akaike (AIC)                             1431435.647
  Bayesian (BIC)                           1434070.848
  Sample-size adjusted Bayesian (SABIC)    1432936.343

Root Mean Square Error of Approximation:

  RMSEA                                          0.027
  90 Percent confidence interval - lower         0.027
  90 Percent confidence interval - upper         0.027
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.032
  90 Percent confidence interval - lower         0.031
  90 Percent confidence interval - upper         0.032
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.052

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.840    0.831
    asr___0 (l_AW)    0.894    0.007  126.190    0.000    0.751    0.733
    asr___0 (l_AS)    0.796    0.007  111.253    0.000    0.669    0.667
    asr___0 (l_AC)    0.933    0.007  124.630    0.000    0.784    0.752
    asr___0 (l_AH)    0.908    0.007  130.175    0.000    0.763    0.765
    asr___0 (l_AA)    0.787    0.008   98.168    0.000    0.662    0.634
    asr___0 (l_AR)    0.930    0.007  124.758    0.000    0.781    0.763
    asr___0 (l_AG)    0.490    0.008   59.696    0.000    0.412    0.399
  a_eta2 =~                                                             
    asr___2           1.000                               0.827    0.815
    asr___2 (l_AW)    0.894    0.007  126.190    0.000    0.740    0.729
    asr___2 (l_AS)    0.796    0.007  111.253    0.000    0.659    0.658
    asr___2 (l_AC)    0.933    0.007  124.630    0.000    0.771    0.769
    asr___2 (l_AH)    0.908    0.007  130.175    0.000    0.751    0.770
    asr___2 (l_AA)    0.787    0.008   98.168    0.000    0.651    0.645
    asr___2 (l_AR)    0.930    0.007  124.758    0.000    0.769    0.762
    asr___2 (l_AG)    0.490    0.008   59.696    0.000    0.406    0.409
  a_eta4 =~                                                             
    asr___4           1.000                               0.797    0.799
    asr___4 (l_AW)    0.894    0.007  126.190    0.000    0.712    0.724
    asr___4 (l_AS)    0.796    0.007  111.253    0.000    0.635    0.646
    asr___4 (l_AC)    0.933    0.007  124.630    0.000    0.743    0.768
    asr___4 (l_AH)    0.908    0.007  130.175    0.000    0.724    0.743
    asr___4 (l_AA)    0.787    0.008   98.168    0.000    0.627    0.645
    asr___4 (l_AR)    0.930    0.007  124.758    0.000    0.741    0.758
    asr___4 (l_AG)    0.490    0.008   59.696    0.000    0.391    0.399
  a_i =~                                                                
    a_etaB            1.000                               0.918    0.918
    a_eta2            1.000                               0.932    0.932
    a_eta4            1.000                               0.968    0.968
  a_s =~                                                                
    a_etaB            0.000                               0.000    0.000
    a_eta2            1.000                               0.294    0.294
    a_eta4            2.000                               0.610    0.610
  g_etaB =~                                                             
    flnkr_0           1.000                               0.404    0.439
    pttrn_0 (lm_R)    1.216    0.011  112.672    0.000    0.491    0.644
    pictr_0 (lm_M)    0.600    0.009   64.833    0.000    0.242    0.287
    pcvcb_0 (lm_P)    0.930    0.009  107.770    0.000    0.375    0.448
    redng_0 (lm_V)    0.981    0.009  111.444    0.000    0.396    0.464
  g_eta2 =~                                                             
    flnkr_2           1.000                               0.412    0.517
    pttrn_2 (lm_R)    1.216    0.011  112.672    0.000    0.501    0.650
    pictr_2 (lm_M)    0.600    0.009   64.833    0.000    0.247    0.278
    pcvcb_2 (lm_P)    0.930    0.009  107.770    0.000    0.383    0.439
    redng_2 (lm_V)    0.981    0.009  111.444    0.000    0.405    0.480
  g_eta4 =~                                                             
    flnkr_4           1.000                               0.443    0.558
    pttrn_4 (lm_R)    1.216    0.011  112.672    0.000    0.539    0.654
    pictr_4 (lm_M)    0.600    0.009   64.833    0.000    0.266    0.251
    pcvcb_4 (lm_P)    0.930    0.009  107.770    0.000    0.412    0.446
    redng_4 (lm_V)    0.981    0.009  111.444    0.000    0.435    0.471
  g_eta6 =~                                                             
    flnkr_6           1.000                               0.496    0.609
    pttrn_6 (lm_R)    1.216    0.011  112.672    0.000    0.604    0.704
    pictr_6 (lm_M)    0.600    0.009   64.833    0.000    0.298    0.281
    pcvcb_6 (lm_P)    0.930    0.009  107.770    0.000    0.462    0.494
    redng_6 (lm_V)    0.981    0.009  111.444    0.000    0.487    0.503
  g_i =~                                                                
    g_etaB            1.000                               0.958    0.958
    g_eta2            1.000                               0.939    0.939
    g_eta4            1.000                               0.873    0.873
    g_eta6            1.000                               0.779    0.779
  g_s =~                                                                
    g_etaB            0.000                               0.000    0.000
    g_eta2            1.000                               0.118    0.118
    g_eta4            2.000                               0.219    0.219
    g_eta6            3.000                               0.294    0.294
  pu_etaB =~                                                            
    p___001           1.000                               0.441    0.396
    p___002 (l_PR)    1.344    0.010  141.219    0.000    0.593    0.731
    p___003 (l_PM)    1.253    0.009  136.286    0.000    0.553    0.694
  pu_eta1 =~                                                            
    p___001           1.000                               0.483    0.471
    p___002 (l_PR)    1.344    0.010  141.219    0.000    0.648    0.758
    p___003 (l_PM)    1.253    0.009  136.286    0.000    0.605    0.685
  pu_eta2 =~                                                            
    p___001           1.000                               0.497    0.535
    p___002 (l_PR)    1.344    0.010  141.219    0.000    0.667    0.787
    p___003 (l_PM)    1.253    0.009  136.286    0.000    0.622    0.691
  pu_eta3 =~                                                            
    p___001           1.000                               0.495    0.586
    p___002 (l_PR)    1.344    0.010  141.219    0.000    0.665    0.831
    p___003 (l_PM)    1.253    0.009  136.286    0.000    0.620    0.712
  pu_eta4 =~                                                            
    p___001           1.000                               0.464    0.615
    p___002 (l_PR)    1.344    0.010  141.219    0.000    0.623    0.865
    p___003 (l_PM)    1.253    0.009  136.286    0.000    0.581    0.725
  pu_eta5 =~                                                            
    p___001           1.000                               0.402    0.576
    p___002 (l_PR)    1.344    0.010  141.219    0.000    0.541    0.860
    p___003 (l_PM)    1.253    0.009  136.286    0.000    0.504    0.699
  pu_eta6 =~                                                            
    p___001           1.000                               0.349    0.519
    p___002 (l_PR)    1.344    0.010  141.219    0.000    0.469    0.846
    p___003 (l_PM)    1.253    0.009  136.286    0.000    0.438    0.660
  pu_i =~                                                               
    pu_etaB           1.000                               0.974    0.974
    pu_eta1           1.000                               0.891    0.891
    pu_eta2           1.000                               0.865    0.865
    pu_eta3           1.000                               0.869    0.869
    pu_eta4           1.000                               0.927    0.927
    pu_eta5           1.000                               1.068    1.068
    pu_eta6           1.000                               1.231    1.231
  pu_s =~                                                               
    pu_etaB           0.000                               0.000    0.000
    pu_eta1           0.500                               0.413    0.413
    pu_eta2           1.000                               0.803    0.803
    pu_eta3           1.500                               1.208    1.208
    pu_eta4           2.000                               1.719    1.719
    pu_eta5           2.500                               2.476    2.476
    pu_eta6           3.000                               3.424    3.424
  pu_q =~                                                               
    pu_etaB           0.000                               0.000    0.000
    pu_eta1           0.250                               0.062    0.062
    pu_eta2           1.000                               0.240    0.240
    pu_eta3           2.250                               0.542    0.542
    pu_eta4           4.000                               1.028    1.028
    pu_eta5           6.250                               1.850    1.850
    pu_eta6           9.000                               3.070    3.070
  p_i =~                                                                
    Ext_c_0           1.000                               0.936    0.899
    Ext_c_1           1.000                               0.936    0.913
    Ext_c_2           1.000                               0.936    0.923
    Ext_c_3           1.000                               0.936    0.927
    Ext_c_4           1.000                               0.936    0.944
    Ext_c_5           1.000                               0.936    0.938
    Ext_c_6           1.000                               0.936    0.980
  p_s =~                                                                
    Ext_c_0           0.000                               0.000    0.000
    Ext_c_1           0.500                               0.283    0.276
    Ext_c_2           1.000                               0.566    0.558
    Ext_c_3           1.500                               0.849    0.841
    Ext_c_4           2.000                               1.132    1.141
    Ext_c_5           2.500                               1.415    1.417
    Ext_c_6           3.000                               1.698    1.777
  p_q =~                                                                
    Ext_c_0           0.000                               0.000    0.000
    Ext_c_1           0.250                               0.041    0.040
    Ext_c_2           1.000                               0.165    0.162
    Ext_c_3           2.250                               0.370    0.367
    Ext_c_4           4.000                               0.658    0.663
    Ext_c_5           6.250                               1.028    1.030
    Ext_c_6           9.000                               1.481    1.550

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_i ~                                                                 
    dummy_sex         0.031    0.016    1.933    0.053    0.040    0.020
  a_s ~                                                                 
    dummy_sex        -0.014    0.007   -1.923    0.054   -0.057   -0.028
  g_i ~                                                                 
    dummy_sex        -0.040    0.009   -4.356    0.000   -0.104   -0.052
  g_s ~                                                                 
    dummy_sex         0.004    0.003    1.222    0.222    0.087    0.043
  pu_i ~                                                                
    dummy_sex        -0.273    0.010  -28.337    0.000   -0.636   -0.318
  pu_s ~                                                                
    dummy_sex        -0.220    0.011  -19.402    0.000   -0.553   -0.276
  pu_q ~                                                                
    dummy_sex         0.062    0.004   16.904    0.000    0.518    0.259
  p_i ~                                                                 
    dummy_sex         0.243    0.018   13.283    0.000    0.259    0.129
  p_s ~                                                                 
    dummy_sex         0.018    0.026    0.696    0.487    0.032    0.016
  p_q ~                                                                 
    dummy_sex        -0.022    0.008   -2.724    0.006   -0.136   -0.068
  p_i ~                                                                 
    g_i              -0.338    0.027  -12.543    0.000   -0.140   -0.140
    a_i               0.672    0.013   49.990    0.000    0.553    0.553
    pu_i              0.098    0.025    3.938    0.000    0.045    0.045
  p_s ~                                                                 
    g_i               0.160    0.058    2.749    0.006    0.109    0.109
    g_s              -2.525    0.977   -2.585    0.010   -0.217   -0.217
    a_i               0.003    0.015    0.219    0.827    0.004    0.004
    a_s               1.455    0.088   16.501    0.000    0.625    0.625
    pu_i              0.041    0.051    0.810    0.418    0.031    0.031
    pu_s              0.244    0.136    1.789    0.074    0.172    0.172
    pu_q              0.582    0.473    1.230    0.219    0.122    0.122
  p_q ~                                                                 
    g_i              -0.039    0.017   -2.298    0.022   -0.091   -0.091
    g_s               0.583    0.278    2.100    0.036    0.172    0.172
    a_i              -0.013    0.005   -2.781    0.005   -0.062   -0.062
    a_s              -0.354    0.026  -13.812    0.000   -0.523   -0.523
    pu_i             -0.016    0.017   -0.949    0.343   -0.042   -0.042
    pu_s             -0.047    0.046   -1.032    0.302   -0.115   -0.115
    pu_q             -0.072    0.158   -0.457    0.648   -0.052   -0.052

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.186    0.005   37.234    0.000    0.186    0.563
   .asr_nxdp_cmp_4           0.170    0.005   33.023    0.000    0.170    0.504
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.207    0.006   37.621    0.000    0.207    0.588
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.227    0.006   36.998    0.000    0.227    0.471
   .asr_wthdp_cm_4           0.206    0.006   33.037    0.000    0.206    0.436
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.225    0.006   35.398    0.000    0.225    0.477
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.282    0.007   41.276    0.000    0.282    0.501
   .asr_soma_cmp_4           0.245    0.007   35.390    0.000    0.245    0.438
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.289    0.007   39.564    0.000    0.289    0.511
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.193    0.005   35.360    0.000    0.193    0.437
   .asr_thprb_cm_4           0.160    0.005   29.276    0.000    0.160    0.376
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.168    0.005   31.753    0.000    0.168    0.422
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.258    0.005   48.716    0.000    0.258    0.646
   .asr_ttprb_cm_4           0.252    0.006   45.103    0.000    0.252    0.603
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.272    0.006   47.772    0.000    0.272    0.670
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.298    0.007   40.846    0.000    0.298    0.478
   .asr_rlbrk_cm_4           0.255    0.007   35.284    0.000    0.255    0.424
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.276    0.007   38.097    0.000    0.276    0.481
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.236    0.006   42.251    0.000    0.236    0.545
   .asr_ggrss_cm_4           0.212    0.006   38.212    0.000    0.212    0.502
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.240    0.006   41.587    0.000    0.240    0.574
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.495    0.010   51.751    0.000    0.495    0.576
   .asr_intr_cmp_4           0.464    0.010   47.813    0.000    0.464    0.545
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.473    0.010   49.497    0.000    0.473    0.582
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.021    0.005    4.189    0.000    0.021    0.054
   .asr_soma_cmp_0           0.032    0.005    6.188    0.000    0.032    0.076
   .asr_wthdp_cm_2           0.021    0.005    4.290    0.000    0.021    0.054
   .asr_soma_cmp_2           0.038    0.005    7.288    0.000    0.038    0.089
   .asr_wthdp_cm_4           0.019    0.005    3.787    0.000    0.019    0.050
   .asr_soma_cmp_4           0.036    0.005    6.562    0.000    0.036    0.085
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2           0.011    0.005    2.243    0.025    0.011    0.028
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.030    0.005    5.802    0.000    0.030    0.069
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.038    0.005    7.215    0.000    0.038    0.093
   .asr_soma_cmp_2           0.052    0.006    9.363    0.000    0.052    0.117
   .asr_wthdp_cm_4           0.025    0.005    4.793    0.000    0.025    0.063
   .asr_soma_cmp_4           0.033    0.006    5.875    0.000    0.033    0.075
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4           0.003    0.005    0.596    0.551    0.003    0.008
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.029    0.006    5.240    0.000    0.029    0.065
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.019    0.005    3.484    0.000    0.019    0.045
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.049    0.006    8.482    0.000    0.049    0.108
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.045    0.006    7.964    0.000    0.045    0.109
   .asr_soma_cmp_4           0.065    0.006   10.785    0.000    0.065    0.144
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.029    0.006   -4.993    0.000   -0.029   -0.055
   .asr_soma_cmp_2          -0.017    0.006   -2.839    0.005   -0.017   -0.032
   .asr_soma_cmp_4          -0.032    0.006   -5.215    0.000   -0.032   -0.062
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.011    0.006   -1.930    0.054   -0.011   -0.022
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.012    0.006   -2.010    0.044   -0.012   -0.023
   .asr_soma_cmp_4          -0.020    0.006   -3.187    0.001   -0.020   -0.038
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.014    0.006   -2.330    0.020   -0.014   -0.027
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.017    0.006   -2.776    0.005   -0.017   -0.033
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.018    0.006   -2.879    0.004   -0.018   -0.035
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.129    0.007   19.232    0.000    0.129    0.205
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.065    0.006   10.898    0.000    0.065    0.121
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.082    0.006   12.750    0.000    0.082    0.137
   .asr_rlbrk_cm_2           0.017    0.006    3.034    0.002    0.017    0.034
   .asr_intr_cmp_4           0.090    0.007   13.580    0.000    0.090    0.152
   .asr_rlbrk_cm_4           0.025    0.006    4.317    0.000    0.025    0.050
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.091    0.007   13.723    0.000    0.091    0.146
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.043    0.006    7.385    0.000    0.043    0.082
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.133    0.007   20.296    0.000    0.133    0.225
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.037    0.006    6.440    0.000    0.037    0.073
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.104    0.007   15.516    0.000    0.104    0.177
   .asr_rlbrk_cm_4           0.035    0.006    6.027    0.000    0.035    0.072
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.093    0.007   13.730    0.000    0.093    0.154
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.049    0.006    8.190    0.000    0.049    0.096
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.099    0.007   15.020    0.000    0.099    0.172
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.039    0.006    6.554    0.000    0.039    0.078
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.134    0.007   19.665    0.000    0.134    0.233
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.056    0.006    9.467    0.000    0.056    0.117
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.117    0.008   15.199    0.000    0.117    0.153
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.065    0.007    8.730    0.000    0.065    0.089
   .asr_rlbrk_cm_4           0.070    0.008    9.204    0.000    0.070    0.099
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.070    0.008    9.264    0.000    0.070    0.095
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.109    0.007   14.825    0.000    0.109    0.155
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.068    0.007    9.237    0.000    0.068    0.101
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.083    0.008   10.693    0.000    0.083    0.115
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.075    0.008    9.910    0.000    0.075    0.109
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.107    0.008   14.226    0.000    0.107    0.160
 .a_i ~~                                                                       
   .a_s                     -0.074    0.005  -15.841    0.000   -0.395   -0.395
 .flanker_0 ~~                                                                 
   .flanker_2                0.138    0.007   18.781    0.000    0.138    0.244
   .flanker_4                0.098    0.007   13.045    0.000    0.098    0.179
   .flanker_6                0.087    0.009    9.327    0.000    0.087    0.162
 .flanker_2 ~~                                                                 
   .flanker_4                0.144    0.007   19.808    0.000    0.144    0.320
   .flanker_6                0.102    0.008   12.571    0.000    0.102    0.231
 .flanker_4 ~~                                                                 
   .flanker_6                0.153    0.009   16.862    0.000    0.153    0.358
 .pattern_0 ~~                                                                 
   .pattern_2                0.076    0.005   13.864    0.000    0.076    0.223
   .pattern_4                0.041    0.006    6.989    0.000    0.041    0.114
   .pattern_6                0.034    0.007    4.804    0.000    0.034    0.097
 .pattern_2 ~~                                                                 
   .pattern_4                0.107    0.007   15.623    0.000    0.107    0.294
   .pattern_6                0.076    0.008   10.083    0.000    0.076    0.214
 .pattern_4 ~~                                                                 
   .pattern_6                0.129    0.009   14.429    0.000    0.129    0.340
 .picture_0 ~~                                                                 
   .picture_2                0.252    0.007   33.855    0.000    0.252    0.364
   .picture_4                0.257    0.009   28.085    0.000    0.257    0.310
   .picture_6                0.281    0.012   23.533    0.000    0.281    0.343
 .picture_2 ~~                                                                 
   .picture_4                0.285    0.010   28.068    0.000    0.285    0.325
   .picture_6                0.266    0.013   19.858    0.000    0.266    0.306
 .picture_4 ~~                                                                 
   .picture_6                0.390    0.016   24.730    0.000    0.390    0.374
 .picvocab_0 ~~                                                                
   .picvocab_2               0.398    0.007   53.218    0.000    0.398    0.677
   .picvocab_4               0.401    0.008   50.646    0.000    0.401    0.647
   .picvocab_6               0.380    0.009   43.203    0.000    0.380    0.625
 .picvocab_2 ~~                                                                
   .picvocab_4               0.472    0.009   54.010    0.000    0.472    0.727
   .picvocab_6               0.459    0.010   47.388    0.000    0.459    0.720
 .picvocab_4 ~~                                                                
   .picvocab_6               0.507    0.010   48.360    0.000    0.507    0.756
 .reading_0 ~~                                                                 
   .reading_2                0.404    0.007   54.985    0.000    0.404    0.722
   .reading_4                0.408    0.008   50.798    0.000    0.408    0.661
   .reading_6                0.417    0.010   43.555    0.000    0.417    0.657
 .reading_2 ~~                                                                 
   .reading_4                0.416    0.008   51.290    0.000    0.416    0.692
   .reading_6                0.433    0.010   45.266    0.000    0.433    0.698
 .reading_4 ~~                                                                 
   .reading_6                0.456    0.011   42.920    0.000    0.456    0.669
 .picvocab_0 ~~                                                                
   .reading_0                0.233    0.006   35.922    0.000    0.233    0.411
   .reading_2                0.246    0.007   37.641    0.000    0.246    0.445
   .reading_4                0.264    0.007   36.180    0.000    0.264    0.434
   .reading_6                0.283    0.009   32.088    0.000    0.283    0.451
 .picvocab_2 ~~                                                                
   .reading_2                0.288    0.007   40.414    0.000    0.288    0.497
 .reading_0 ~~                                                                 
   .picvocab_2               0.267    0.007   38.307    0.000    0.267    0.450
 .picvocab_2 ~~                                                                
   .reading_4                0.313    0.008   39.479    0.000    0.313    0.490
   .reading_6                0.338    0.010   35.407    0.000    0.338    0.515
 .picvocab_4 ~~                                                                
   .reading_4                0.337    0.009   38.874    0.000    0.337    0.500
 .reading_0 ~~                                                                 
   .picvocab_4               0.275    0.007   36.722    0.000    0.275    0.440
 .reading_2 ~~                                                                 
   .picvocab_4               0.300    0.008   39.323    0.000    0.300    0.490
 .picvocab_4 ~~                                                                
   .reading_6                0.367    0.010   35.609    0.000    0.367    0.529
 .picvocab_6 ~~                                                                
   .reading_6                0.360    0.011   32.216    0.000    0.360    0.530
 .reading_0 ~~                                                                 
   .picvocab_6               0.256    0.009   29.845    0.000    0.256    0.417
 .reading_2 ~~                                                                 
   .picvocab_6               0.284    0.009   32.983    0.000    0.284    0.473
 .reading_4 ~~                                                                 
   .picvocab_6               0.322    0.010   33.321    0.000    0.322    0.488
 .g_i ~~                                                                       
   .g_s                      0.005    0.001    4.203    0.000    0.267    0.267
 .ph_p_pds_001_0 ~~                                                            
   .ph_p_pds_001_1           0.425    0.011   40.345    0.000    0.425    0.459
   .ph_p_pds_001_2           0.252    0.009   28.505    0.000    0.252    0.314
   .ph_p_pds_001_3           0.135    0.008   17.340    0.000    0.135    0.193
   .ph_p_pds_001_4           0.051    0.007    7.317    0.000    0.051    0.084
   .ph_p_pds_001_5           0.026    0.007    3.715    0.000    0.026    0.044
   .ph_p_pds_001_6           0.021    0.009    2.321    0.020    0.021    0.035
 .ph_p_pds_001_1 ~~                                                            
   .ph_p_pds_001_2           0.297    0.008   36.411    0.000    0.297    0.418
   .ph_p_pds_001_3           0.168    0.007   23.663    0.000    0.168    0.271
   .ph_p_pds_001_4           0.070    0.006   11.222    0.000    0.070    0.130
   .ph_p_pds_001_5           0.033    0.006    5.407    0.000    0.033    0.064
   .ph_p_pds_001_6           0.017    0.008    2.175    0.030    0.017    0.033
 .ph_p_pds_001_2 ~~                                                            
   .ph_p_pds_001_3           0.216    0.006   33.330    0.000    0.216    0.402
   .ph_p_pds_001_4           0.093    0.005   16.968    0.000    0.093    0.200
   .ph_p_pds_001_5           0.039    0.005    7.382    0.000    0.039    0.088
   .ph_p_pds_001_6           0.025    0.007    3.693    0.000    0.025    0.056
 .ph_p_pds_001_3 ~~                                                            
   .ph_p_pds_001_4           0.121    0.005   24.132    0.000    0.121    0.299
   .ph_p_pds_001_5           0.061    0.005   12.659    0.000    0.061    0.155
   .ph_p_pds_001_6           0.033    0.006    5.543    0.000    0.033    0.084
 .ph_p_pds_001_4 ~~                                                            
   .ph_p_pds_001_5           0.132    0.004   29.509    0.000    0.132    0.388
   .ph_p_pds_001_6           0.079    0.006   14.244    0.000    0.079    0.232
 .ph_p_pds_001_5 ~~                                                            
   .ph_p_pds_001_6           0.135    0.005   24.630    0.000    0.135    0.413
 .ph_p_pds_002_0 ~~                                                            
   .ph_p_pds_002_1           0.110    0.005   20.595    0.000    0.110    0.357
   .ph_p_pds_002_2           0.047    0.005    9.805    0.000    0.047    0.162
   .ph_p_pds_002_3           0.016    0.004    3.686    0.000    0.016    0.065
   .ph_p_pds_002_4           0.001    0.004    0.391    0.696    0.001    0.007
   .ph_p_pds_002_5          -0.005    0.003   -1.460    0.144   -0.005   -0.029
   .ph_p_pds_002_6          -0.006    0.004   -1.331    0.183   -0.006   -0.035
 .ph_p_pds_002_1 ~~                                                            
   .ph_p_pds_002_2           0.109    0.005   21.188    0.000    0.109    0.373
   .ph_p_pds_002_3           0.043    0.004    9.505    0.000    0.043    0.172
   .ph_p_pds_002_4          -0.000    0.004   -0.075    0.940   -0.000   -0.001
   .ph_p_pds_002_5          -0.005    0.004   -1.343    0.179   -0.005   -0.026
   .ph_p_pds_002_6           0.014    0.004    3.166    0.002    0.014    0.084
 .ph_p_pds_002_2 ~~                                                            
   .ph_p_pds_002_3           0.083    0.005   18.279    0.000    0.083    0.357
   .ph_p_pds_002_4           0.014    0.004    3.597    0.000    0.014    0.073
   .ph_p_pds_002_5          -0.005    0.003   -1.497    0.134   -0.005   -0.031
   .ph_p_pds_002_6           0.016    0.004    4.009    0.000    0.016    0.106
 .ph_p_pds_002_3 ~~                                                            
   .ph_p_pds_002_4           0.031    0.004    8.577    0.000    0.031    0.191
   .ph_p_pds_002_5           0.005    0.003    1.682    0.093    0.005    0.037
   .ph_p_pds_002_6           0.018    0.004    4.802    0.000    0.018    0.133
 .ph_p_pds_002_4 ~~                                                            
   .ph_p_pds_002_5           0.024    0.003    8.261    0.000    0.024    0.206
   .ph_p_pds_002_6           0.010    0.003    2.920    0.004    0.010    0.091
 .ph_p_pds_002_5 ~~                                                            
   .ph_p_pds_002_6           0.014    0.003    4.575    0.000    0.014    0.153
 .ph_p_pds_003_0 ~~                                                            
   .ph_p_pds_003_1           0.141    0.005   26.228    0.000    0.141    0.382
   .ph_p_pds_003_2           0.090    0.005   17.804    0.000    0.090    0.241
   .ph_p_pds_003_3           0.054    0.005   11.361    0.000    0.054    0.153
   .ph_p_pds_003_4           0.025    0.004    5.710    0.000    0.025    0.080
   .ph_p_pds_003_5           0.027    0.004    6.308    0.000    0.027    0.090
   .ph_p_pds_003_6           0.014    0.005    2.673    0.008    0.014    0.048
 .ph_p_pds_003_1 ~~                                                            
   .ph_p_pds_003_2           0.174    0.006   30.443    0.000    0.174    0.415
   .ph_p_pds_003_3           0.097    0.005   18.591    0.000    0.097    0.248
   .ph_p_pds_003_4           0.036    0.005    7.460    0.000    0.036    0.101
   .ph_p_pds_003_5           0.021    0.005    4.565    0.000    0.021    0.063
   .ph_p_pds_003_6           0.014    0.006    2.507    0.012    0.014    0.044
 .ph_p_pds_003_2 ~~                                                            
   .ph_p_pds_003_3           0.169    0.005   30.991    0.000    0.169    0.427
   .ph_p_pds_003_4           0.079    0.005   16.006    0.000    0.079    0.219
   .ph_p_pds_003_5           0.049    0.005   10.608    0.000    0.049    0.147
   .ph_p_pds_003_6           0.027    0.006    4.844    0.000    0.027    0.084
 .ph_p_pds_003_3 ~~                                                            
   .ph_p_pds_003_4           0.121    0.005   25.272    0.000    0.121    0.359
   .ph_p_pds_003_5           0.070    0.004   15.835    0.000    0.070    0.223
   .ph_p_pds_003_6           0.052    0.005    9.798    0.000    0.052    0.171
 .ph_p_pds_003_4 ~~                                                            
   .ph_p_pds_003_5           0.104    0.004   24.181    0.000    0.104    0.364
   .ph_p_pds_003_6           0.080    0.005   15.939    0.000    0.080    0.292
 .ph_p_pds_003_5 ~~                                                            
   .ph_p_pds_003_6           0.090    0.005   18.946    0.000    0.090    0.350
 .pu_i ~~                                                                      
   .pu_s                    -0.047    0.004  -10.456    0.000   -0.301   -0.301
   .pu_q                    -0.002    0.001   -1.360    0.174   -0.037   -0.037
 .pu_s ~~                                                                      
   .pu_q                    -0.040    0.002  -20.768    0.000   -0.912   -0.912
 .p_i ~~                                                                       
   .p_s                     -0.095    0.011   -9.050    0.000   -0.296   -0.296
   .p_q                      0.007    0.003    2.179    0.029    0.066    0.066
 .p_s ~~                                                                       
   .p_q                     -0.050    0.005   -9.824    0.000   -0.848   -0.848

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .asr___0 (t_AX)   -0.000    0.004   -0.106    0.915   -0.000   -0.000
   .asr___0 (t_AW)    0.007    0.005    1.377    0.168    0.007    0.007
   .asr___0 (t_AS)    0.002    0.005    0.398    0.691    0.002    0.002
   .asr___0 (t_AP)    0.005    0.005    1.091    0.275    0.005    0.005
   .asr___0 (t_AH)    0.004    0.005    0.890    0.373    0.004    0.004
   .asr___0 (t_AA)    0.010    0.005    1.897    0.058    0.010    0.010
   .asr___0 (t_AR)    0.006    0.005    1.246    0.213    0.006    0.006
   .asr___0 (t_AG)    0.002    0.007    0.282    0.778    0.002    0.002
   .asr___2 (t_AX)   -0.000    0.004   -0.106    0.915   -0.000   -0.000
   .asr___2 (t_AW)    0.007    0.005    1.377    0.168    0.007    0.007
   .asr___2 (t_AS)    0.002    0.005    0.398    0.691    0.002    0.002
   .asr___2 (t_AP)    0.005    0.005    1.091    0.275    0.005    0.005
   .asr___2 (t_AH)    0.004    0.005    0.890    0.373    0.004    0.005
   .asr___2 (t_AA)    0.010    0.005    1.897    0.058    0.010    0.010
   .asr___2 (t_AR)    0.006    0.005    1.246    0.213    0.006    0.006
   .asr___2 (t_AG)    0.002    0.007    0.282    0.778    0.002    0.002
   .asr___4 (t_AX)   -0.000    0.004   -0.106    0.915   -0.000   -0.000
   .asr___4 (t_AW)    0.007    0.005    1.377    0.168    0.007    0.007
   .asr___4 (t_AS)    0.002    0.005    0.398    0.691    0.002    0.002
   .asr___4 (t_AP)    0.005    0.005    1.091    0.275    0.005    0.005
   .asr___4 (t_AH)    0.004    0.005    0.890    0.373    0.004    0.005
   .asr___4 (t_AA)    0.010    0.005    1.897    0.058    0.010    0.011
   .asr___4 (t_AR)    0.006    0.005    1.246    0.213    0.006    0.006
   .asr___4 (t_AG)    0.002    0.007    0.282    0.778    0.002    0.002
   .a_i               0.004    0.011    0.375    0.708    0.005    0.005
   .a_s              -0.016    0.005   -3.092    0.002   -0.067   -0.067
   .a_etaB            0.000                               0.000    0.000
   .a_eta2            0.000                               0.000    0.000
   .a_eta4            0.000                               0.000    0.000
   .flnkr_0 (ta_S)    0.091    0.006   14.089    0.000    0.091    0.098
   .flnkr_2 (ta_S)    0.091    0.006   14.089    0.000    0.091    0.114
   .flnkr_4 (ta_S)    0.091    0.006   14.089    0.000    0.091    0.114
   .flnkr_6 (ta_S)    0.091    0.006   14.089    0.000    0.091    0.111
   .pttrn_0 (ta_R)    0.104    0.007   15.276    0.000    0.104    0.137
   .pttrn_2 (ta_R)    0.104    0.007   15.276    0.000    0.104    0.135
   .pttrn_4 (ta_R)    0.104    0.007   15.276    0.000    0.104    0.127
   .pttrn_6 (ta_R)    0.104    0.007   15.276    0.000    0.104    0.122
   .pictr_0 (ta_M)    0.047    0.007    6.901    0.000    0.047    0.056
   .pictr_2 (ta_M)    0.047    0.007    6.901    0.000    0.047    0.053
   .pictr_4 (ta_M)    0.047    0.007    6.901    0.000    0.047    0.045
   .pictr_6 (ta_M)    0.047    0.007    6.901    0.000    0.047    0.045
   .pcvcb_0 (ta_P)    0.040    0.006    6.130    0.000    0.040    0.047
   .pcvcb_2 (ta_P)    0.040    0.006    6.130    0.000    0.040    0.045
   .pcvcb_4 (ta_P)    0.040    0.006    6.130    0.000    0.040    0.043
   .pcvcb_6 (ta_P)    0.040    0.006    6.130    0.000    0.040    0.043
   .redng_0 (ta_V)    0.050    0.006    7.646    0.000    0.050    0.058
   .redng_2 (ta_V)    0.050    0.006    7.646    0.000    0.050    0.059
   .redng_4 (ta_V)    0.050    0.006    7.646    0.000    0.050    0.054
   .redng_6 (ta_V)    0.050    0.006    7.646    0.000    0.050    0.051
   .g_i              -0.623    0.009  -69.054    0.000   -1.609   -1.609
   .g_s               0.470    0.004  115.420    0.000    9.668    9.668
   .g_etaB            0.000                               0.000    0.000
   .g_eta2            0.000                               0.000    0.000
   .g_eta4            0.000                               0.000    0.000
   .g_eta6            0.000                               0.000    0.000
   .p___001 (t_PS)    0.051    0.004   13.966    0.000    0.051    0.046
   .p___001 (t_PS)    0.051    0.004   13.966    0.000    0.051    0.050
   .p___001 (t_PS)    0.051    0.004   13.966    0.000    0.051    0.055
   .p___001 (t_PS)    0.051    0.004   13.966    0.000    0.051    0.061
   .p___001 (t_PS)    0.051    0.004   13.966    0.000    0.051    0.068
   .p___001 (t_PS)    0.051    0.004   13.966    0.000    0.051    0.073
   .p___001 (t_PS)    0.051    0.004   13.966    0.000    0.051    0.076
   .p___002 (t_PR)    0.106    0.002   43.605    0.000    0.106    0.131
   .p___002 (t_PR)    0.106    0.002   43.605    0.000    0.106    0.124
   .p___002 (t_PR)    0.106    0.002   43.605    0.000    0.106    0.126
   .p___002 (t_PR)    0.106    0.002   43.605    0.000    0.106    0.133
   .p___002 (t_PR)    0.106    0.002   43.605    0.000    0.106    0.148
   .p___002 (t_PR)    0.106    0.002   43.605    0.000    0.106    0.169
   .p___002 (t_PR)    0.106    0.002   43.605    0.000    0.106    0.192
   .p___003 (t_PM)    0.097    0.003   35.389    0.000    0.097    0.121
   .p___003 (t_PM)    0.097    0.003   35.389    0.000    0.097    0.110
   .p___003 (t_PM)    0.097    0.003   35.389    0.000    0.097    0.107
   .p___003 (t_PM)    0.097    0.003   35.389    0.000    0.097    0.111
   .p___003 (t_PM)    0.097    0.003   35.389    0.000    0.097    0.121
   .p___003 (t_PM)    0.097    0.003   35.389    0.000    0.097    0.134
   .p___003 (t_PM)    0.097    0.003   35.389    0.000    0.097    0.146
   .pu_i             -0.587    0.008  -76.941    0.000   -1.365   -1.365
   .pu_s              0.713    0.009   78.094    0.000    1.789    1.789
   .pu_q             -0.076    0.003  -28.550    0.000   -0.640   -0.640
   .pu_etaB           0.000                               0.000    0.000
   .pu_eta1           0.000                               0.000    0.000
   .pu_eta2           0.000                               0.000    0.000
   .pu_eta3           0.000                               0.000    0.000
   .pu_eta4           0.000                               0.000    0.000
   .pu_eta5           0.000                               0.000    0.000
   .pu_eta6           0.000                               0.000    0.000
   .p_i              -0.197    0.025   -7.774    0.000   -0.211   -0.211
   .p_s               1.173    0.490    2.397    0.017    2.074    2.074
   .p_q              -0.284    0.139   -2.043    0.041   -1.728   -1.728
   .Ext_c_0           0.000                               0.000    0.000
   .Ext_c_1           0.000                               0.000    0.000
   .Ext_c_2           0.000                               0.000    0.000
   .Ext_c_3           0.000                               0.000    0.000
   .Ext_c_4           0.000                               0.000    0.000
   .Ext_c_5           0.000                               0.000    0.000
   .Ext_c_6           0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .a_etaB            0.112    0.007   16.240    0.000    0.158    0.158
   .a_eta2            0.179    0.005   37.506    0.000    0.261    0.261
   .a_eta4            0.100    0.008   13.249    0.000    0.158    0.158
   .asr_nxdp_cmp_0    0.316    0.006   53.161    0.000    0.316    0.309
   .asr_wthdp_cm_0    0.486    0.008   62.784    0.000    0.486    0.463
   .asr_soma_cmp_0    0.558    0.008   66.519    0.000    0.558    0.555
   .asr_thprb_cm_0    0.472    0.007   65.037    0.000    0.472    0.435
   .asr_ttprb_cm_0    0.412    0.006   64.328    0.000    0.412    0.414
   .asr_rlbrk_cm_0    0.652    0.009   69.321    0.000    0.652    0.598
   .asr_ggrss_cm_0    0.439    0.007   63.472    0.000    0.439    0.418
   .asr_intr_cmp_0    0.898    0.012   74.818    0.000    0.898    0.841
   .asr_nxdp_cmp_2    0.346    0.006   53.492    0.000    0.346    0.336
   .asr_wthdp_cm_2    0.481    0.008   60.946    0.000    0.481    0.468
   .asr_soma_cmp_2    0.567    0.009   64.684    0.000    0.567    0.567
   .asr_thprb_cm_2    0.412    0.007   61.575    0.000    0.412    0.409
   .asr_ttprb_cm_2    0.387    0.006   61.204    0.000    0.387    0.407
   .asr_rlbrk_cm_2    0.596    0.009   66.275    0.000    0.596    0.584
   .asr_ggrss_cm_2    0.427    0.007   61.389    0.000    0.427    0.419
   .asr_intr_cmp_2    0.821    0.011   71.971    0.000    0.821    0.833
   .asr_nxdp_cmp_4    0.360    0.007   50.874    0.000    0.360    0.362
   .asr_wthdp_cm_4    0.462    0.008   57.092    0.000    0.462    0.476
   .asr_soma_cmp_4    0.561    0.009   60.456    0.000    0.561    0.582
   .asr_thprb_cm_4    0.384    0.007   56.996    0.000    0.384    0.410
   .asr_ttprb_cm_4    0.425    0.007   58.502    0.000    0.425    0.448
   .asr_rlbrk_cm_4    0.554    0.009   61.493    0.000    0.554    0.584
   .asr_ggrss_cm_4    0.407    0.007   57.279    0.000    0.407    0.426
   .asr_intr_cmp_4    0.805    0.012   67.679    0.000    0.805    0.841
   .a_i               0.594    0.013   47.494    0.000    1.000    1.000
   .a_s               0.059    0.003   17.068    0.000    0.999    0.999
   .g_etaB            0.013    0.002    5.880    0.000    0.081    0.081
   .g_eta2            0.008    0.002    5.055    0.000    0.047    0.047
   .g_eta4            0.017    0.002    8.242    0.000    0.088    0.088
   .g_eta6            0.046    0.004   11.552    0.000    0.186    0.186
   .flanker_0         0.684    0.010   68.027    0.000    0.684    0.808
   .flanker_2         0.466    0.009   54.401    0.000    0.466    0.733
   .flanker_4         0.434    0.009   49.429    0.000    0.434    0.689
   .flanker_6         0.417    0.011   38.678    0.000    0.417    0.629
   .pattern_0         0.340    0.006   52.673    0.000    0.340    0.585
   .pattern_2         0.343    0.008   45.371    0.000    0.343    0.577
   .pattern_4         0.389    0.009   42.999    0.000    0.389    0.573
   .pattern_6         0.370    0.011   33.110    0.000    0.370    0.504
   .picture_0         0.652    0.009   73.349    0.000    0.652    0.917
   .picture_2         0.732    0.011   69.141    0.000    0.732    0.923
   .picture_4         1.054    0.016   66.181    0.000    1.054    0.937
   .picture_6         1.034    0.022   47.825    0.000    1.034    0.921
   .picvocab_0        0.560    0.008   68.949    0.000    0.560    0.799
   .picvocab_2        0.616    0.009   66.195    0.000    0.616    0.807
   .picvocab_4        0.684    0.011   63.040    0.000    0.684    0.801
   .picvocab_6        0.659    0.013   49.232    0.000    0.659    0.755
   .reading_0         0.573    0.008   68.310    0.000    0.573    0.785
   .reading_2         0.547    0.008   64.903    0.000    0.547    0.770
   .reading_4         0.662    0.011   62.038    0.000    0.662    0.778
   .reading_6         0.702    0.015   47.887    0.000    0.702    0.747
   .g_i               0.149    0.004   35.794    0.000    0.997    0.997
   .g_s               0.002    0.001    3.703    0.000    0.998    0.998
   .pu_etaB           0.010    0.003    3.100    0.002    0.051    0.051
   .pu_eta1           0.053    0.002   23.494    0.000    0.229    0.229
   .pu_eta2           0.052    0.002   24.064    0.000    0.211    0.211
   .pu_eta3           0.048    0.002   23.745    0.000    0.195    0.195
   .pu_eta4           0.041    0.002   23.047    0.000    0.190    0.190
   .pu_eta5           0.027    0.002   17.715    0.000    0.165    0.165
   .pu_eta6           0.011    0.003    4.442    0.000    0.093    0.093
   .ph_p_pds_001_0    1.049    0.015   70.011    0.000    1.049    0.843
   .ph_p_pds_002_0    0.307    0.006   47.201    0.000    0.307    0.466
   .ph_p_pds_003_0    0.329    0.006   52.817    0.000    0.329    0.518
   .ph_p_pds_001_1    0.818    0.012   68.713    0.000    0.818    0.779
   .ph_p_pds_002_1    0.311    0.007   43.935    0.000    0.311    0.425
   .ph_p_pds_003_1    0.414    0.007   55.290    0.000    0.414    0.531
   .ph_p_pds_001_2    0.616    0.009   66.090    0.000    0.616    0.714
   .ph_p_pds_002_2    0.274    0.007   41.939    0.000    0.274    0.381
   .ph_p_pds_003_2    0.423    0.007   57.208    0.000    0.423    0.522
   .ph_p_pds_001_3    0.468    0.007   62.966    0.000    0.468    0.656
   .ph_p_pds_002_3    0.198    0.005   36.680    0.000    0.198    0.309
   .ph_p_pds_003_3    0.373    0.007   56.130    0.000    0.373    0.492
   .ph_p_pds_001_4    0.353    0.006   60.971    0.000    0.353    0.622
   .ph_p_pds_002_4    0.131    0.004   31.688    0.000    0.131    0.252
   .ph_p_pds_003_4    0.305    0.006   53.532    0.000    0.305    0.475
   .ph_p_pds_001_5    0.326    0.006   58.984    0.000    0.326    0.668
   .ph_p_pds_002_5    0.103    0.003   29.999    0.000    0.103    0.261
   .ph_p_pds_003_5    0.266    0.005   52.866    0.000    0.266    0.512
   .ph_p_pds_001_6    0.331    0.007   44.745    0.000    0.331    0.730
   .ph_p_pds_002_6    0.087    0.004   21.969    0.000    0.087    0.284
   .ph_p_pds_003_6    0.249    0.006   41.017    0.000    0.249    0.565
   .pu_i              0.166    0.005   35.485    0.000    0.899    0.899
   .pu_s              0.147    0.007   22.523    0.000    0.924    0.924
   .pu_q              0.013    0.001   21.359    0.000    0.933    0.933
   .p_i               0.574    0.012   48.511    0.000    0.655    0.655
   .p_s               0.180    0.017   10.389    0.000    0.561    0.561
   .p_q               0.019    0.002   12.062    0.000    0.715    0.715
   .Ext_comp_0        0.208    0.007   28.785    0.000    0.208    0.192
   .Ext_comp_1        0.277    0.005   57.130    0.000    0.277    0.263
   .Ext_comp_2        0.277    0.005   57.106    0.000    0.277    0.269
   .Ext_comp_3        0.273    0.005   54.002    0.000    0.273    0.268
   .Ext_comp_4        0.249    0.005   52.090    0.000    0.249    0.253
   .Ext_comp_5        0.260    0.006   47.033    0.000    0.260    0.260
   .Ext_comp_6        0.101    0.008   12.288    0.000    0.101    0.111

R-Square:
                   Estimate
    a_etaB            0.842
    a_eta2            0.739
    a_eta4            0.842
    asr_nxdp_cmp_0    0.691
    asr_wthdp_cm_0    0.537
    asr_soma_cmp_0    0.445
    asr_thprb_cm_0    0.565
    asr_ttprb_cm_0    0.586
    asr_rlbrk_cm_0    0.402
    asr_ggrss_cm_0    0.582
    asr_intr_cmp_0    0.159
    asr_nxdp_cmp_2    0.664
    asr_wthdp_cm_2    0.532
    asr_soma_cmp_2    0.433
    asr_thprb_cm_2    0.591
    asr_ttprb_cm_2    0.593
    asr_rlbrk_cm_2    0.416
    asr_ggrss_cm_2    0.581
    asr_intr_cmp_2    0.167
    asr_nxdp_cmp_4    0.638
    asr_wthdp_cm_4    0.524
    asr_soma_cmp_4    0.418
    asr_thprb_cm_4    0.590
    asr_ttprb_cm_4    0.552
    asr_rlbrk_cm_4    0.416
    asr_ggrss_cm_4    0.574
    asr_intr_cmp_4    0.159
    a_i               0.000
    a_s               0.001
    g_etaB            0.919
    g_eta2            0.953
    g_eta4            0.912
    g_eta6            0.814
    flanker_0         0.192
    flanker_2         0.267
    flanker_4         0.311
    flanker_6         0.371
    pattern_0         0.415
    pattern_2         0.423
    pattern_4         0.427
    pattern_6         0.496
    picture_0         0.083
    picture_2         0.077
    picture_4         0.063
    picture_6         0.079
    picvocab_0        0.201
    picvocab_2        0.193
    picvocab_4        0.199
    picvocab_6        0.245
    reading_0         0.215
    reading_2         0.230
    reading_4         0.222
    reading_6         0.253
    g_i               0.003
    g_s               0.002
    pu_etaB           0.949
    pu_eta1           0.771
    pu_eta2           0.789
    pu_eta3           0.805
    pu_eta4           0.810
    pu_eta5           0.835
    pu_eta6           0.907
    ph_p_pds_001_0    0.157
    ph_p_pds_002_0    0.534
    ph_p_pds_003_0    0.482
    ph_p_pds_001_1    0.221
    ph_p_pds_002_1    0.575
    ph_p_pds_003_1    0.469
    ph_p_pds_001_2    0.286
    ph_p_pds_002_2    0.619
    ph_p_pds_003_2    0.478
    ph_p_pds_001_3    0.344
    ph_p_pds_002_3    0.691
    ph_p_pds_003_3    0.508
    ph_p_pds_001_4    0.378
    ph_p_pds_002_4    0.748
    ph_p_pds_003_4    0.525
    ph_p_pds_001_5    0.332
    ph_p_pds_002_5    0.739
    ph_p_pds_003_5    0.488
    ph_p_pds_001_6    0.270
    ph_p_pds_002_6    0.716
    ph_p_pds_003_6    0.435
    pu_i              0.101
    pu_s              0.076
    pu_q              0.067
    p_i               0.345
    p_s               0.439
    p_q               0.285
    Ext_comp_0        0.808
    Ext_comp_1        0.737
    Ext_comp_2        0.731
    Ext_comp_3        0.732
    Ext_comp_4        0.747
    Ext_comp_5        0.740
    Ext_comp_6        0.889

Internalizing symptoms

Int ~ pp + g + pu model

Children’s Internalizing symptoms (Int) was regressed on parental psychopathology (pp), children’s cognitive functioning (g) and children’s puberty (pu).

model fit
Int.pga_pu6.model <- "# second-order pp factor
               #factor loadings (with constraints)
               a_etaB =~ 1*asr_anxdep_comp_0+
                       lambda_AW*asr_withdep_comp_0+
                       lambda_AS*asr_soma_comp_0+
                       lambda_AC*asr_thouprob_comp_0+
                       lambda_AH*asr_attprob_comp_0+
                       lambda_AA*asr_rulebreak_comp_0+
                       lambda_AR*asr_aggress_comp_0+
                       lambda_AG*asr_intru_comp_0
               a_eta2 =~ 1*asr_anxdep_comp_2+
                       lambda_AW*asr_withdep_comp_2+
                       lambda_AS*asr_soma_comp_2+
                       lambda_AC*asr_thouprob_comp_2+
                       lambda_AH*asr_attprob_comp_2+
                       lambda_AA*asr_rulebreak_comp_2+
                       lambda_AR*asr_aggress_comp_2+
                       lambda_AG*asr_intru_comp_2
               a_eta4 =~ 1*asr_anxdep_comp_4+
                       lambda_AW*asr_withdep_comp_4+
                       lambda_AS*asr_soma_comp_4+
                       lambda_AC*asr_thouprob_comp_4+
                       lambda_AH*asr_attprob_comp_4+
                       lambda_AA*asr_rulebreak_comp_4+
                       lambda_AR*asr_aggress_comp_4+
                       lambda_AG*asr_intru_comp_4

              #latent variable variances
                      a_etaB~~NA*a_etaB
                      a_eta2~~NA*a_eta2
                      a_eta4~~NA*a_eta4

              #unique variances # No need to constrict these
                      asr_anxdep_comp_0~~asr_anxdep_comp_0
                      asr_withdep_comp_0~~asr_withdep_comp_0
                      asr_soma_comp_0~~asr_soma_comp_0
                      asr_thouprob_comp_0~~asr_thouprob_comp_0
                      asr_attprob_comp_0~~asr_attprob_comp_0
                      asr_rulebreak_comp_0~~asr_rulebreak_comp_0
                      asr_aggress_comp_0~~asr_aggress_comp_0
                      asr_intru_comp_0~~asr_intru_comp_0

                      asr_anxdep_comp_2~~asr_anxdep_comp_2
                      asr_withdep_comp_2~~asr_withdep_comp_2
                      asr_soma_comp_2~~asr_soma_comp_2
                      asr_thouprob_comp_2~~asr_thouprob_comp_2
                      asr_attprob_comp_2~~asr_attprob_comp_2
                      asr_rulebreak_comp_2~~asr_rulebreak_comp_2
                      asr_aggress_comp_2~~asr_aggress_comp_2
                      asr_intru_comp_2~~asr_intru_comp_2

                      asr_anxdep_comp_4~~asr_anxdep_comp_4
                      asr_withdep_comp_4~~asr_withdep_comp_4
                      asr_soma_comp_4~~asr_soma_comp_4
                      asr_thouprob_comp_4~~asr_thouprob_comp_4
                      asr_attprob_comp_4~~asr_attprob_comp_4
                      asr_rulebreak_comp_4~~asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_aggress_comp_4
                      asr_intru_comp_4~~asr_intru_comp_4

              #unique covariances
                      # Scores arcoss times
                      asr_anxdep_comp_0~~ asr_anxdep_comp_2 + asr_anxdep_comp_4
                      asr_anxdep_comp_2~~ asr_anxdep_comp_4

                      asr_withdep_comp_0 ~~ asr_withdep_comp_2 + asr_withdep_comp_4
                      asr_withdep_comp_2 ~~ asr_withdep_comp_4

                      asr_soma_comp_0~~ asr_soma_comp_2 + asr_soma_comp_4
                      asr_soma_comp_2~~ asr_soma_comp_4

                      asr_thouprob_comp_0~~ asr_thouprob_comp_2 + asr_thouprob_comp_4
                      asr_thouprob_comp_2~~ asr_thouprob_comp_4

                      asr_attprob_comp_0~~ asr_attprob_comp_2 + asr_attprob_comp_4
                      asr_attprob_comp_2~~ asr_attprob_comp_4

                      asr_rulebreak_comp_0~~ asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_rulebreak_comp_2~~ asr_rulebreak_comp_4

                      asr_aggress_comp_0~~ asr_aggress_comp_2 + asr_aggress_comp_4
                      asr_aggress_comp_2~~ asr_aggress_comp_4

                      asr_intru_comp_0~~ asr_intru_comp_2 + asr_intru_comp_4
                      asr_intru_comp_2~~ asr_intru_comp_4

                      # Internalizeing subscale covariances
                      asr_anxdep_comp_0~~asr_withdep_comp_0 + asr_soma_comp_0 + asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_2~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_4~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4

                      asr_withdep_comp_0~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_2~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_4~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4

                      # Externalizeing subscale covariances
                      asr_aggress_comp_0~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_2~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4

                      asr_intru_comp_0~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_2~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_4~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4

              #observed variable intercepts
                      asr_anxdep_comp_0~tau_AX*1
                      asr_withdep_comp_0~tau_AW*1
                      asr_soma_comp_0~tau_AS*1
                      asr_thouprob_comp_0~tau_AP*1
                      asr_attprob_comp_0~tau_AH*1
                      asr_rulebreak_comp_0~tau_AA*1
                      asr_aggress_comp_0~tau_AR*1
                      asr_intru_comp_0~tau_AG*1

                      asr_anxdep_comp_2~tau_AX*1
                      asr_withdep_comp_2~tau_AW*1
                      asr_soma_comp_2~tau_AS*1
                      asr_thouprob_comp_2~tau_AP*1
                      asr_attprob_comp_2~tau_AH*1
                      asr_rulebreak_comp_2~tau_AA*1
                      asr_aggress_comp_2~tau_AR*1
                      asr_intru_comp_2~tau_AG*1

                      asr_anxdep_comp_4~tau_AX*1
                      asr_withdep_comp_4~tau_AW*1
                      asr_soma_comp_4~tau_AS*1
                      asr_thouprob_comp_4~tau_AP*1
                      asr_attprob_comp_4~tau_AH*1
                      asr_rulebreak_comp_4~tau_AA*1
                      asr_aggress_comp_4~tau_AR*1
                      asr_intru_comp_4~tau_AG*1

                      #latent basis model
                      a_i =~ 1*a_etaB+1*a_eta2+1*a_eta4
                      a_s =~ 0*a_etaB+1*a_eta2+2*a_eta4
                      a_i~~NA*a_i
                      a_s~~NA*a_s
                      a_i~~a_s
                      a_i~1
                      a_s~1
                      a_etaB~0*1
                      a_eta2~0*1
                      a_eta4~0*1

               # second-order g factor
               #factor loadings # S & S2
               g_etaB =~ 1*flanker_0+
                       lambda_R*pattern_0+
                       lambda_M*picture_0+
                       lambda_P*picvocab_0+
                       lambda_V*reading_0
               g_eta2 =~ 1*flanker_2+
                       lambda_R*pattern_2+
                       lambda_M*picture_2+
                       lambda_P*picvocab_2+
                       lambda_V*reading_2
               g_eta4 =~ 1*flanker_4+
                       lambda_R*pattern_4+
                       lambda_M*picture_4+
                       lambda_P*picvocab_4+
                       lambda_V*reading_4
               g_eta6 =~ 1*flanker_6+
                       lambda_R*pattern_6+
                       lambda_M*picture_6+
                       lambda_P*picvocab_6+
                       lambda_V*reading_6

              #latent variable variances
                       g_etaB~~NA*g_etaB
                       g_eta2~~NA*g_eta2
                       g_eta4~~NA*g_eta4
                       g_eta6~~NA*g_eta6

              #unique variances
                      flanker_0~~flanker_0
                      flanker_2~~flanker_2
                      flanker_4~~flanker_4
                      flanker_6~~flanker_6

                      pattern_0~~pattern_0
                      pattern_2~~pattern_2
                      pattern_4~~pattern_4
                      pattern_6~~pattern_6

                      picture_0~~picture_0
                      picture_2~~picture_2
                      picture_4~~picture_4
                      picture_6~~picture_6

                      picvocab_0~~picvocab_0
                      picvocab_2~~picvocab_2
                      picvocab_4~~picvocab_4
                      picvocab_6~~picvocab_6

                      reading_0~~reading_0
                      reading_2~~reading_2
                      reading_4~~reading_4
                      reading_6~~reading_6

              #unique covariances
                      # Task across times
                      flanker_0~~flanker_2 + flanker_4 + flanker_6
                      flanker_2~~flanker_4 + flanker_6
                      flanker_4~~flanker_6

                      pattern_0~~pattern_2 + pattern_4 + pattern_6
                      pattern_2~~pattern_4 + pattern_6
                      pattern_4~~pattern_6

                      picture_0~~picture_2 + picture_4 + picture_6
                      picture_2~~picture_4 + picture_6
                      picture_4~~picture_6

                      picvocab_0~~picvocab_2 + picvocab_4 + picvocab_6
                      picvocab_2~~picvocab_4 + picvocab_6
                      picvocab_4~~picvocab_6

                      reading_0~~reading_2 + reading_4 + reading_6
                      reading_2~~reading_4 + reading_6
                      reading_4~~reading_6

                      #Language
                      picvocab_0~~reading_0 + reading_2 + reading_4 + reading_6
                      picvocab_2~~reading_2 + reading_0 + reading_4 + reading_6
                      picvocab_4~~reading_4 + reading_0 + reading_2 + reading_6
                      picvocab_6~~reading_6 + reading_0 + reading_2 + reading_4

              #observed variable intercepts # S & S2
                      flanker_0~tau_S*1
                      flanker_2~tau_S*1
                      flanker_4~tau_S*1
                      flanker_6~tau_S*1
                      pattern_0~tau_R*1
                      pattern_2~tau_R*1
                      pattern_4~tau_R*1
                      pattern_6~tau_R*1
                      picture_0~tau_M*1
                      picture_2~tau_M*1
                      picture_4~tau_M*1
                      picture_6~tau_M*1
                      picvocab_0~tau_P*1
                      picvocab_2~tau_P*1
                      picvocab_4~tau_P*1
                      picvocab_6~tau_P*1
                      reading_0~tau_V*1
                      reading_2~tau_V*1
                      reading_4~tau_V*1
                      reading_6~tau_V*1

              #latent basis model
                      g_i =~    1*g_etaB + 1*g_eta2 + 1*g_eta4 + 1*g_eta6
                      g_s =~    0*g_etaB + 1*g_eta2 + 2*g_eta4 + 3*g_eta6

                      g_i~~NA*g_i
                      g_s~~NA*g_s

                      g_i~~g_s

                      g_i~1
                      g_s~1

                      g_etaB~0*1
                      g_eta2~0*1
                      g_eta4~0*1
                      g_eta6~0*1

               # second-order puberty factor
               #factor loadings
               pu_etaB =~ 1*ph_p_pds_001_0 +
                          lambda_PR*ph_p_pds_002_0 +
                          lambda_PM*ph_p_pds_003_0

               pu_eta1 =~ 1*ph_p_pds_001_1 +
                          lambda_PR*ph_p_pds_002_1 +
                          lambda_PM*ph_p_pds_003_1

               pu_eta2 =~ 1*ph_p_pds_001_2 +
                          lambda_PR*ph_p_pds_002_2 +
                          lambda_PM*ph_p_pds_003_2

               pu_eta3 =~ 1*ph_p_pds_001_3 +
                          lambda_PR*ph_p_pds_002_3 +
                          lambda_PM*ph_p_pds_003_3

               pu_eta4 =~ 1*ph_p_pds_001_4 +
                          lambda_PR*ph_p_pds_002_4 +
                          lambda_PM*ph_p_pds_003_4

               pu_eta5 =~ 1*ph_p_pds_001_5 +
                          lambda_PR*ph_p_pds_002_5 +
                          lambda_PM*ph_p_pds_003_5

               pu_eta6 =~ 1*ph_p_pds_001_6 +
                          lambda_PR*ph_p_pds_002_6 +
                          lambda_PM*ph_p_pds_003_6

              #latent variable variances
                      pu_etaB~~NA*pu_etaB
                      pu_eta1~~NA*pu_eta1
                      pu_eta2~~NA*pu_eta2
                      pu_eta3~~NA*pu_eta3
                      pu_eta4~~NA*pu_eta4
                      pu_eta5~~NA*pu_eta5
                      pu_eta6~~NA*pu_eta6

              #unique variances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_0
                      ph_p_pds_002_0 ~~ ph_p_pds_002_0
                      ph_p_pds_003_0 ~~ ph_p_pds_003_0

                      ph_p_pds_001_1 ~~ ph_p_pds_001_1
                      ph_p_pds_002_1 ~~ ph_p_pds_002_1
                      ph_p_pds_003_1 ~~ ph_p_pds_003_1

                      ph_p_pds_001_2 ~~ ph_p_pds_001_2
                      ph_p_pds_002_2 ~~ ph_p_pds_002_2
                      ph_p_pds_003_2 ~~ ph_p_pds_003_2

                      ph_p_pds_001_3 ~~ ph_p_pds_001_3
                      ph_p_pds_002_3 ~~ ph_p_pds_002_3
                      ph_p_pds_003_3 ~~ ph_p_pds_003_3

                      ph_p_pds_001_4 ~~ ph_p_pds_001_4
                      ph_p_pds_002_4 ~~ ph_p_pds_002_4
                      ph_p_pds_003_4 ~~ ph_p_pds_003_4

                      ph_p_pds_001_5 ~~ ph_p_pds_001_5
                      ph_p_pds_002_5 ~~ ph_p_pds_002_5
                      ph_p_pds_003_5 ~~ ph_p_pds_003_5

                      ph_p_pds_001_6 ~~ ph_p_pds_001_6
                      ph_p_pds_002_6 ~~ ph_p_pds_002_6
                      ph_p_pds_003_6 ~~ ph_p_pds_003_6

              #unique covariances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_1 + ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_1 ~~ ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_2 ~~ ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_3 ~~ ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_4 ~~ ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_5 ~~ ph_p_pds_001_6

                      ph_p_pds_002_0 ~~ ph_p_pds_002_1 + ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_1 ~~ ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_2 ~~ ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_3 ~~ ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_4 ~~ ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_5 ~~ ph_p_pds_002_6

                      ph_p_pds_003_0 ~~ ph_p_pds_003_1 + ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_1 ~~ ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_2 ~~ ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_3 ~~ ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_4 ~~ ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_5 ~~ ph_p_pds_003_6

              #observed variable intercepts
                      ph_p_pds_001_0 ~ tau_PS*1
                      ph_p_pds_001_1 ~ tau_PS*1
                      ph_p_pds_001_2 ~ tau_PS*1
                      ph_p_pds_001_3 ~ tau_PS*1
                      ph_p_pds_001_4 ~ tau_PS*1
                      ph_p_pds_001_5 ~ tau_PS*1
                      ph_p_pds_001_6 ~ tau_PS*1

                      ph_p_pds_002_0 ~ tau_PR*1
                      ph_p_pds_002_1 ~ tau_PR*1
                      ph_p_pds_002_2 ~ tau_PR*1
                      ph_p_pds_002_3 ~ tau_PR*1
                      ph_p_pds_002_4 ~ tau_PR*1
                      ph_p_pds_002_5 ~ tau_PR*1
                      ph_p_pds_002_6 ~ tau_PR*1

                      ph_p_pds_003_0 ~ tau_PM*1
                      ph_p_pds_003_1 ~ tau_PM*1
                      ph_p_pds_003_2 ~ tau_PM*1
                      ph_p_pds_003_3 ~ tau_PM*1
                      ph_p_pds_003_4 ~ tau_PM*1
                      ph_p_pds_003_5 ~ tau_PM*1
                      ph_p_pds_003_6 ~ tau_PM*1

              #latent basis model
                      pu_i =~ 1*pu_etaB + 1*pu_eta1 + 1*pu_eta2 + 1*pu_eta3 + 1*pu_eta4 + 1*pu_eta5 + 1*pu_eta6
                      pu_s =~ 0*pu_etaB + 0.5*pu_eta1 + 1*pu_eta2 + 1.5*pu_eta3 + 2*pu_eta4 + 2.5*pu_eta5 + 3*pu_eta6
                      pu_q =~ 0*pu_etaB + 0.25*pu_eta1 + 1*pu_eta2 + 2.25*pu_eta3 + 4*pu_eta4 + 6.25*pu_eta5 + 9*pu_eta6

                      pu_i~~NA*pu_i
                      pu_s~~NA*pu_s
                      pu_q~~NA*pu_q

                      pu_i~~pu_s + pu_q
                      pu_s~~pu_q

                      pu_i~1
                      pu_s~1
                      pu_q~1

                      pu_etaB~0*1
                      pu_eta1~0*1
                      pu_eta2~0*1
                      pu_eta3~0*1
                      pu_eta4~0*1
                      pu_eta5~0*1
                      pu_eta6~0*1

              # Internalizing model
                      p_i =~ 1*Int_comp_0 + 1*Int_comp_1 + 1*Int_comp_2 + 1*Int_comp_3 + 1*Int_comp_4 + 1*Int_comp_5 + 1*Int_comp_6
                      p_s =~ 0*Int_comp_0 + .5*Int_comp_1 + 1*Int_comp_2 + 1.5*Int_comp_3 + 2*Int_comp_4 + 2.5*Int_comp_5 + 3*Int_comp_6
                      p_q =~ 0*Int_comp_0 + .25*Int_comp_1 + 1*Int_comp_2 + 2.25*Int_comp_3 + 4*Int_comp_4 + 6.25*Int_comp_5 + 9*Int_comp_6

                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q

                      p_i~~p_s + p_q
                      p_s~~p_q

                      p_i~1
                      p_s~1
                      p_q~1

                      Int_comp_0 ~~ NA*Int_comp_0
                      Int_comp_1 ~~ NA*Int_comp_1
                      Int_comp_2 ~~ NA*Int_comp_2
                      Int_comp_3 ~~ NA*Int_comp_3
                      Int_comp_4 ~~ NA*Int_comp_4
                      Int_comp_5 ~~ NA*Int_comp_5
                      Int_comp_6 ~~ NA*Int_comp_6

                      Int_comp_0 ~ 0*1
                      Int_comp_1 ~ 0*1
                      Int_comp_2 ~ 0*1
                      Int_comp_3 ~ 0*1
                      Int_comp_4 ~ 0*1
                      Int_comp_5 ~ 0*1
                      Int_comp_6 ~ 0*1

                      # regression
                      p_i ~ g_i + a_i + pu_i
                      p_s ~ g_i + g_s + a_i + a_s + pu_i + pu_s + pu_q
                      p_q ~ g_i + g_s + a_i + a_s + pu_i + pu_s + pu_q"
lavaan(Int.pga_pu6.model,
  data = readRDS("pga6_all_data.rds"),
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = FALSE,
  std.lv = T
) %>%
  saveRDS("pgcm_Int_pga_pu6_model.rds")
result
readRDS("pgcm_Int_pga_pu6_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pgcm_Int_pga_pu6_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pgcm_Int_pga_pu6_model.rds"), "cor.lv"))$value
 [1] 5.874310680 4.760674176 3.879318347 2.419086008 2.269518918 0.979826484
 [7] 0.949152440 0.673384142 0.505511967 0.227658198 0.221575234 0.200516767
[13] 0.189536338 0.158594418 0.157972191 0.128216038 0.096272979 0.088430375
[19] 0.079837203 0.059683264 0.039888790 0.021763540 0.016575655 0.002695849
readRDS("pgcm_Int_pga_pu6_result.rds")
lavaan 0.6-19 ended normally after 298 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       434
  Number of equality constraints                    87

                                                  Used       Total
  Number of observations                         11866       11867
  Number of missing patterns                      2190            

Model Test User Model:
                                                       
  Test statistic                              22690.383
  Degrees of freedom                               2353
  P-value (Chi-square)                            0.000

Model Test Baseline Model:

  Test statistic                            415182.707
  Degrees of freedom                              2556
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.951
  Tucker-Lewis Index (TLI)                       0.946
                                                      
  Robust Comparative Fit Index (CFI)             0.947
  Robust Tucker-Lewis Index (TLI)                0.942

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -719826.231
  Loglikelihood unrestricted model (H1)    -708481.039
                                                      
  Akaike (AIC)                             1440346.462
  Bayesian (BIC)                           1442907.819
  Sample-size adjusted Bayesian (SABIC)    1441805.092

Root Mean Square Error of Approximation:

  RMSEA                                          0.027
  90 Percent confidence interval - lower         0.027
  90 Percent confidence interval - upper         0.027
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.032
  90 Percent confidence interval - lower         0.032
  90 Percent confidence interval - upper         0.032
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.052

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.851    0.844
    asr___0 (l_AW)    0.887    0.007  127.142    0.000    0.755    0.737
    asr___0 (l_AS)    0.799    0.007  112.967    0.000    0.680    0.680
    asr___0 (l_AC)    0.914    0.007  125.311    0.000    0.778    0.746
    asr___0 (l_AH)    0.897    0.007  131.615    0.000    0.764    0.766
    asr___0 (l_AA)    0.763    0.008   97.362    0.000    0.649    0.621
    asr___0 (l_AR)    0.905    0.007  125.111    0.000    0.770    0.751
    asr___0 (l_AG)    0.476    0.008   59.064    0.000    0.405    0.392
  a_eta2 =~                                                             
    asr___2           1.000                               0.839    0.828
    asr___2 (l_AW)    0.887    0.007  127.142    0.000    0.745    0.734
    asr___2 (l_AS)    0.799    0.007  112.967    0.000    0.671    0.671
    asr___2 (l_AC)    0.914    0.007  125.311    0.000    0.767    0.764
    asr___2 (l_AH)    0.897    0.007  131.615    0.000    0.753    0.772
    asr___2 (l_AA)    0.763    0.008   97.362    0.000    0.640    0.633
    asr___2 (l_AR)    0.905    0.007  125.111    0.000    0.760    0.751
    asr___2 (l_AG)    0.476    0.008   59.064    0.000    0.399    0.402
  a_eta4 =~                                                             
    asr___4           1.000                               0.809    0.814
    asr___4 (l_AW)    0.887    0.007  127.142    0.000    0.718    0.730
    asr___4 (l_AS)    0.799    0.007  112.967    0.000    0.647    0.659
    asr___4 (l_AC)    0.914    0.007  125.311    0.000    0.739    0.763
    asr___4 (l_AH)    0.897    0.007  131.615    0.000    0.726    0.746
    asr___4 (l_AA)    0.763    0.008   97.362    0.000    0.617    0.633
    asr___4 (l_AR)    0.905    0.007  125.111    0.000    0.732    0.746
    asr___4 (l_AG)    0.476    0.008   59.064    0.000    0.385    0.393
  a_i =~                                                                
    a_etaB            1.000                               0.923    0.923
    a_eta2            1.000                               0.936    0.936
    a_eta4            1.000                               0.971    0.971
  a_s =~                                                                
    a_etaB            0.000                               0.000    0.000
    a_eta2            1.000                               0.300    0.300
    a_eta4            2.000                               0.622    0.622
  g_etaB =~                                                             
    flnkr_0           1.000                               0.403    0.438
    pttrn_0 (lm_R)    1.218    0.011  112.690    0.000    0.491    0.646
    pictr_0 (lm_M)    0.598    0.009   64.689    0.000    0.241    0.286
    pcvcb_0 (lm_P)    0.929    0.009  107.713    0.000    0.375    0.448
    redng_0 (lm_V)    0.981    0.009  111.411    0.000    0.396    0.463
  g_eta2 =~                                                             
    flnkr_2           1.000                               0.412    0.517
    pttrn_2 (lm_R)    1.218    0.011  112.690    0.000    0.502    0.653
    pictr_2 (lm_M)    0.598    0.009   64.689    0.000    0.246    0.276
    pcvcb_2 (lm_P)    0.929    0.009  107.713    0.000    0.383    0.438
    redng_2 (lm_V)    0.981    0.009  111.411    0.000    0.404    0.479
  g_eta4 =~                                                             
    flnkr_4           1.000                               0.442    0.557
    pttrn_4 (lm_R)    1.218    0.011  112.690    0.000    0.539    0.655
    pictr_4 (lm_M)    0.598    0.009   64.689    0.000    0.264    0.249
    pcvcb_4 (lm_P)    0.929    0.009  107.713    0.000    0.411    0.444
    redng_4 (lm_V)    0.981    0.009  111.411    0.000    0.434    0.470
  g_eta6 =~                                                             
    flnkr_6           1.000                               0.495    0.609
    pttrn_6 (lm_R)    1.218    0.011  112.690    0.000    0.603    0.705
    pictr_6 (lm_M)    0.598    0.009   64.689    0.000    0.296    0.279
    pcvcb_6 (lm_P)    0.929    0.009  107.713    0.000    0.460    0.492
    redng_6 (lm_V)    0.981    0.009  111.411    0.000    0.486    0.501
  g_i =~                                                                
    g_etaB            1.000                               0.962    0.962
    g_eta2            1.000                               0.941    0.941
    g_eta4            1.000                               0.878    0.878
    g_eta6            1.000                               0.784    0.784
  g_s =~                                                                
    g_etaB            0.000                               0.000    0.000
    g_eta2            1.000                               0.125    0.125
    g_eta4            2.000                               0.234    0.234
    g_eta6            3.000                               0.313    0.313
  pu_etaB =~                                                            
    p___001           1.000                               0.439    0.394
    p___002 (l_PR)    1.335    0.010  140.306    0.000    0.586    0.724
    p___003 (l_PM)    1.262    0.009  135.005    0.000    0.554    0.699
  pu_eta1 =~                                                            
    p___001           1.000                               0.482    0.470
    p___002 (l_PR)    1.335    0.010  140.306    0.000    0.643    0.748
    p___003 (l_PM)    1.262    0.009  135.005    0.000    0.608    0.691
  pu_eta2 =~                                                            
    p___001           1.000                               0.494    0.533
    p___002 (l_PR)    1.335    0.010  140.306    0.000    0.660    0.774
    p___003 (l_PM)    1.262    0.009  135.005    0.000    0.624    0.698
  pu_eta3 =~                                                            
    p___001           1.000                               0.490    0.584
    p___002 (l_PR)    1.335    0.010  140.306    0.000    0.654    0.816
    p___003 (l_PM)    1.262    0.009  135.005    0.000    0.619    0.719
  pu_eta4 =~                                                            
    p___001           1.000                               0.458    0.611
    p___002 (l_PR)    1.335    0.010  140.306    0.000    0.612    0.848
    p___003 (l_PM)    1.262    0.009  135.005    0.000    0.578    0.734
  pu_eta5 =~                                                            
    p___001           1.000                               0.397    0.568
    p___002 (l_PR)    1.335    0.010  140.306    0.000    0.530    0.841
    p___003 (l_PM)    1.262    0.009  135.005    0.000    0.501    0.709
  pu_eta6 =~                                                            
    p___001           1.000                               0.346    0.512
    p___002 (l_PR)    1.335    0.010  140.306    0.000    0.462    0.825
    p___003 (l_PM)    1.262    0.009  135.005    0.000    0.437    0.671
  pu_i =~                                                               
    pu_etaB           1.000                               0.977    0.977
    pu_eta1           1.000                               0.892    0.892
    pu_eta2           1.000                               0.869    0.869
    pu_eta3           1.000                               0.876    0.876
    pu_eta4           1.000                               0.937    0.937
    pu_eta5           1.000                               1.082    1.082
    pu_eta6           1.000                               1.240    1.240
  pu_s =~                                                               
    pu_etaB           0.000                               0.000    0.000
    pu_eta1           0.500                               0.414    0.414
    pu_eta2           1.000                               0.807    0.807
    pu_eta3           1.500                               1.221    1.221
    pu_eta4           2.000                               1.742    1.742
    pu_eta5           2.500                               2.514    2.514
    pu_eta6           3.000                               3.458    3.458
  pu_q =~                                                               
    pu_etaB           0.000                               0.000    0.000
    pu_eta1           0.250                               0.062    0.062
    pu_eta2           1.000                               0.242    0.242
    pu_eta3           2.250                               0.548    0.548
    pu_eta4           4.000                               1.043    1.043
    pu_eta5           6.250                               1.881    1.881
    pu_eta6           9.000                               3.106    3.106
  p_i =~                                                                
    Int_c_0           1.000                               0.803    0.885
    Int_c_1           1.000                               0.803    0.851
    Int_c_2           1.000                               0.803    0.823
    Int_c_3           1.000                               0.803    0.787
    Int_c_4           1.000                               0.803    0.758
    Int_c_5           1.000                               0.803    0.716
    Int_c_6           1.000                               0.803    0.699
  p_s =~                                                                
    Int_c_0           0.000                               0.000    0.000
    Int_c_1           0.500                               0.309    0.328
    Int_c_2           1.000                               0.618    0.634
    Int_c_3           1.500                               0.927    0.909
    Int_c_4           2.000                               1.236    1.167
    Int_c_5           2.500                               1.546    1.378
    Int_c_6           3.000                               1.855    1.615
  p_q =~                                                                
    Int_c_0           0.000                               0.000    0.000
    Int_c_1           0.250                               0.046    0.049
    Int_c_2           1.000                               0.184    0.189
    Int_c_3           2.250                               0.415    0.406
    Int_c_4           4.000                               0.737    0.696
    Int_c_5           6.250                               1.152    1.027
    Int_c_6           9.000                               1.659    1.445

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  p_i ~                                                                 
    g_i              -0.027    0.022   -1.206    0.228   -0.013   -0.013
    a_i               0.672    0.011   59.603    0.000    0.657    0.657
    pu_i              0.033    0.020    1.703    0.088    0.018    0.018
  p_s ~                                                                 
    g_i               0.126    0.038    3.310    0.001    0.079    0.079
    g_s              -0.187    0.577   -0.324    0.746   -0.016   -0.016
    a_i               0.087    0.016    5.522    0.000    0.110    0.110
    a_s               1.588    0.083   19.070    0.000    0.646    0.646
    pu_i              0.117    0.044    2.684    0.007    0.082    0.082
    pu_s              0.201    0.121    1.652    0.099    0.130    0.130
    pu_q              0.342    0.439    0.778    0.436    0.066    0.066
  p_q ~                                                                 
    g_i              -0.046    0.014   -3.331    0.001   -0.097   -0.097
    g_s               0.184    0.213    0.863    0.388    0.052    0.052
    a_i              -0.018    0.005   -3.422    0.001   -0.075   -0.075
    a_s              -0.356    0.025  -14.312    0.000   -0.486   -0.486
    pu_i              0.015    0.015    0.989    0.323    0.035    0.035
    pu_s              0.099    0.043    2.312    0.021    0.215    0.215
    pu_q              0.354    0.155    2.292    0.022    0.230    0.230

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.166    0.005   34.759    0.000    0.166    0.540
   .asr_nxdp_cmp_4           0.151    0.005   30.751    0.000    0.151    0.483
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.185    0.005   35.274    0.000    0.185    0.565
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.223    0.006   36.493    0.000    0.223    0.466
   .asr_wthdp_cm_4           0.201    0.006   32.593    0.000    0.201    0.433
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.219    0.006   34.789    0.000    0.219    0.472
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.265    0.007   39.947    0.000    0.265    0.488
   .asr_soma_cmp_4           0.230    0.007   34.119    0.000    0.230    0.425
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.272    0.007   38.264    0.000    0.272    0.498
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.199    0.005   36.236    0.000    0.199    0.443
   .asr_thprb_cm_4           0.167    0.006   30.287    0.000    0.167    0.384
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.175    0.005   32.836    0.000    0.175    0.432
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.255    0.005   48.775    0.000    0.255    0.644
   .asr_ttprb_cm_4           0.248    0.006   45.084    0.000    0.248    0.599
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.267    0.006   47.838    0.000    0.267    0.666
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.313    0.007   42.055    0.000    0.313    0.488
   .asr_rlbrk_cm_4           0.269    0.007   36.515    0.000    0.269    0.434
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.291    0.007   39.450    0.000    0.291    0.493
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.252    0.006   44.260    0.000    0.252    0.558
   .asr_ggrss_cm_4           0.228    0.006   40.141    0.000    0.228    0.515
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.257    0.006   43.684    0.000    0.257    0.590
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.500    0.010   52.015    0.000    0.500    0.578
   .asr_intr_cmp_4           0.469    0.010   48.107    0.000    0.469    0.547
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.479    0.010   49.833    0.000    0.479    0.584
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.007    0.005    1.494    0.135    0.007    0.019
   .asr_soma_cmp_0           0.011    0.005    2.227    0.026    0.011    0.028
   .asr_wthdp_cm_2           0.010    0.005    2.087    0.037    0.010    0.027
   .asr_soma_cmp_2           0.020    0.005    3.902    0.000    0.020    0.049
   .asr_wthdp_cm_4           0.008    0.005    1.640    0.101    0.008    0.022
   .asr_soma_cmp_4           0.019    0.005    3.524    0.000    0.019    0.046
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2          -0.001    0.005   -0.158    0.875   -0.001   -0.002
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.013    0.005    2.489    0.013    0.013    0.030
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.024    0.005    4.741    0.000    0.024    0.062
   .asr_soma_cmp_2           0.031    0.005    5.848    0.000    0.031    0.075
   .asr_wthdp_cm_4           0.011    0.005    2.143    0.032    0.011    0.029
   .asr_soma_cmp_4           0.014    0.005    2.592    0.010    0.014    0.034
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4          -0.008    0.005   -1.539    0.124   -0.008   -0.020
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.013    0.005    2.365    0.018    0.013    0.030
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.006    0.005    1.231    0.218    0.006    0.016
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.029    0.006    5.279    0.000    0.029    0.068
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.027    0.005    5.059    0.000    0.027    0.071
   .asr_soma_cmp_4           0.043    0.006    7.436    0.000    0.043    0.101
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.042    0.006   -7.475    0.000   -0.042   -0.084
   .asr_soma_cmp_2          -0.028    0.006   -4.895    0.000   -0.028   -0.055
   .asr_soma_cmp_4          -0.043    0.006   -7.034    0.000   -0.043   -0.084
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.022    0.006   -3.811    0.000   -0.022   -0.043
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.025    0.006   -4.207    0.000   -0.025   -0.048
   .asr_soma_cmp_4          -0.031    0.006   -5.029    0.000   -0.031   -0.060
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.024    0.006   -4.094    0.000   -0.024   -0.049
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.030    0.006   -4.983    0.000   -0.030   -0.060
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.032    0.006   -5.315    0.000   -0.032   -0.065
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.140    0.007   20.615    0.000    0.140    0.218
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.084    0.006   13.887    0.000    0.084    0.151
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.091    0.007   13.942    0.000    0.091    0.148
   .asr_rlbrk_cm_2           0.033    0.006    5.651    0.000    0.033    0.062
   .asr_intr_cmp_4           0.100    0.007   14.779    0.000    0.100    0.163
   .asr_rlbrk_cm_4           0.040    0.006    6.765    0.000    0.040    0.078
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.100    0.007   14.946    0.000    0.100    0.158
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.059    0.006    9.847    0.000    0.059    0.108
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.144    0.007   21.591    0.000    0.144    0.237
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.054    0.006    9.270    0.000    0.054    0.104
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.115    0.007   16.873    0.000    0.115    0.191
   .asr_rlbrk_cm_4           0.052    0.006    8.708    0.000    0.052    0.102
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.102    0.007   14.871    0.000    0.102    0.165
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.064    0.006   10.430    0.000    0.064    0.119
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.109    0.007   16.283    0.000    0.109    0.184
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.055    0.006    9.140    0.000    0.055    0.108
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.146    0.007   21.173    0.000    0.146    0.248
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.074    0.006   12.401    0.000    0.074    0.150
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.128    0.008   16.405    0.000    0.128    0.164
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.074    0.008    9.799    0.000    0.074    0.099
   .asr_rlbrk_cm_4           0.079    0.008   10.228    0.000    0.079    0.109
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.078    0.008   10.271    0.000    0.078    0.105
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.119    0.007   15.978    0.000    0.119    0.167
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.078    0.007   10.384    0.000    0.078    0.113
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.092    0.008   11.679    0.000    0.092    0.124
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.085    0.008   11.074    0.000    0.085    0.121
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.118    0.008   15.566    0.000    0.118    0.174
  a_i ~~                                                                       
    a_s                     -0.080    0.005  -17.698    0.000   -0.404   -0.404
 .flanker_0 ~~                                                                 
   .flanker_2                0.138    0.007   18.754    0.000    0.138    0.244
   .flanker_4                0.098    0.008   13.083    0.000    0.098    0.180
   .flanker_6                0.087    0.009    9.332    0.000    0.087    0.162
 .flanker_2 ~~                                                                 
   .flanker_4                0.144    0.007   19.874    0.000    0.144    0.321
   .flanker_6                0.102    0.008   12.569    0.000    0.102    0.231
 .flanker_4 ~~                                                                 
   .flanker_6                0.153    0.009   16.853    0.000    0.153    0.358
 .pattern_0 ~~                                                                 
   .pattern_2                0.073    0.005   13.390    0.000    0.073    0.216
   .pattern_4                0.040    0.006    6.758    0.000    0.040    0.111
   .pattern_6                0.033    0.007    4.606    0.000    0.033    0.093
 .pattern_2 ~~                                                                 
   .pattern_4                0.105    0.007   15.303    0.000    0.105    0.289
   .pattern_6                0.074    0.008    9.810    0.000    0.074    0.209
 .pattern_4 ~~                                                                 
   .pattern_6                0.127    0.009   14.175    0.000    0.127    0.336
 .picture_0 ~~                                                                 
   .picture_2                0.253    0.007   33.988    0.000    0.253    0.365
   .picture_4                0.259    0.009   28.233    0.000    0.259    0.312
   .picture_6                0.284    0.012   23.734    0.000    0.284    0.345
 .picture_2 ~~                                                                 
   .picture_4                0.288    0.010   28.238    0.000    0.288    0.327
   .picture_6                0.269    0.013   20.063    0.000    0.269    0.309
 .picture_4 ~~                                                                 
   .picture_6                0.393    0.016   24.845    0.000    0.393    0.375
 .picvocab_0 ~~                                                                
   .picvocab_2               0.399    0.007   53.242    0.000    0.399    0.677
   .picvocab_4               0.402    0.008   50.708    0.000    0.402    0.648
   .picvocab_6               0.381    0.009   43.289    0.000    0.381    0.626
 .picvocab_2 ~~                                                                
   .picvocab_4               0.474    0.009   54.099    0.000    0.474    0.728
   .picvocab_6               0.461    0.010   47.492    0.000    0.461    0.721
 .picvocab_4 ~~                                                                
   .picvocab_6               0.510    0.011   48.403    0.000    0.510    0.757
 .reading_0 ~~                                                                 
   .reading_2                0.406    0.007   55.013    0.000    0.406    0.723
   .reading_4                0.409    0.008   50.848    0.000    0.409    0.662
   .reading_6                0.418    0.010   43.629    0.000    0.418    0.657
 .reading_2 ~~                                                                 
   .reading_4                0.419    0.008   51.351    0.000    0.419    0.693
   .reading_6                0.435    0.010   45.338    0.000    0.435    0.699
 .reading_4 ~~                                                                 
   .reading_6                0.458    0.011   42.953    0.000    0.458    0.670
 .picvocab_0 ~~                                                                
   .reading_0                0.234    0.007   36.030    0.000    0.234    0.413
   .reading_2                0.247    0.007   37.724    0.000    0.247    0.446
   .reading_4                0.266    0.007   36.278    0.000    0.266    0.435
   .reading_6                0.284    0.009   32.203    0.000    0.284    0.452
 .picvocab_2 ~~                                                                
   .reading_2                0.290    0.007   40.536    0.000    0.290    0.499
 .reading_0 ~~                                                                 
   .picvocab_2               0.269    0.007   38.396    0.000    0.269    0.451
 .picvocab_2 ~~                                                                
   .reading_4                0.315    0.008   39.609    0.000    0.315    0.492
   .reading_6                0.341    0.010   35.535    0.000    0.341    0.516
 .picvocab_4 ~~                                                                
   .reading_4                0.339    0.009   38.971    0.000    0.339    0.502
 .reading_0 ~~                                                                 
   .picvocab_4               0.277    0.008   36.845    0.000    0.277    0.441
 .reading_2 ~~                                                                 
   .picvocab_4               0.302    0.008   39.475    0.000    0.302    0.492
 .picvocab_4 ~~                                                                
   .reading_6                0.369    0.010   35.679    0.000    0.369    0.530
 .picvocab_6 ~~                                                                
   .reading_6                0.363    0.011   32.315    0.000    0.363    0.531
 .reading_0 ~~                                                                 
   .picvocab_6               0.258    0.009   29.966    0.000    0.258    0.418
 .reading_2 ~~                                                                 
   .picvocab_6               0.286    0.009   33.130    0.000    0.286    0.475
 .reading_4 ~~                                                                 
   .picvocab_6               0.324    0.010   33.428    0.000    0.324    0.490
  g_i ~~                                                                       
    g_s                      0.004    0.001    3.511    0.000    0.212    0.212
 .ph_p_pds_001_0 ~~                                                            
   .ph_p_pds_001_1           0.426    0.011   40.298    0.000    0.426    0.460
   .ph_p_pds_001_2           0.253    0.009   28.440    0.000    0.253    0.315
   .ph_p_pds_001_3           0.135    0.008   17.254    0.000    0.135    0.193
   .ph_p_pds_001_4           0.052    0.007    7.321    0.000    0.052    0.085
   .ph_p_pds_001_5           0.027    0.007    3.880    0.000    0.027    0.046
   .ph_p_pds_001_6           0.023    0.009    2.594    0.009    0.023    0.039
 .ph_p_pds_001_1 ~~                                                            
   .ph_p_pds_001_2           0.296    0.008   36.173    0.000    0.296    0.418
   .ph_p_pds_001_3           0.166    0.007   23.359    0.000    0.166    0.269
   .ph_p_pds_001_4           0.069    0.006   11.022    0.000    0.069    0.129
   .ph_p_pds_001_5           0.034    0.006    5.482    0.000    0.034    0.065
   .ph_p_pds_001_6           0.019    0.008    2.379    0.017    0.019    0.036
 .ph_p_pds_001_2 ~~                                                            
   .ph_p_pds_001_3           0.214    0.007   32.904    0.000    0.214    0.400
   .ph_p_pds_001_4           0.092    0.006   16.705    0.000    0.092    0.198
   .ph_p_pds_001_5           0.040    0.005    7.508    0.000    0.040    0.090
   .ph_p_pds_001_6           0.028    0.007    4.054    0.000    0.028    0.062
 .ph_p_pds_001_3 ~~                                                            
   .ph_p_pds_001_4           0.120    0.005   23.640    0.000    0.120    0.295
   .ph_p_pds_001_5           0.061    0.005   12.563    0.000    0.061    0.156
   .ph_p_pds_001_6           0.035    0.006    5.745    0.000    0.035    0.088
 .ph_p_pds_001_4 ~~                                                            
   .ph_p_pds_001_5           0.134    0.005   29.374    0.000    0.134    0.391
   .ph_p_pds_001_6           0.083    0.006   14.638    0.000    0.083    0.241
 .ph_p_pds_001_5 ~~                                                            
   .ph_p_pds_001_6           0.141    0.006   24.920    0.000    0.141    0.423
 .ph_p_pds_002_0 ~~                                                            
   .ph_p_pds_002_1           0.119    0.005   21.791    0.000    0.119    0.373
   .ph_p_pds_002_2           0.056    0.005   11.371    0.000    0.056    0.186
   .ph_p_pds_002_3           0.024    0.004    5.296    0.000    0.024    0.091
   .ph_p_pds_002_4           0.008    0.004    1.936    0.053    0.008    0.036
   .ph_p_pds_002_5           0.001    0.004    0.270    0.787    0.001    0.005
   .ph_p_pds_002_6           0.000    0.005    0.101    0.920    0.000    0.003
 .ph_p_pds_002_1 ~~                                                            
   .ph_p_pds_002_2           0.124    0.005   23.166    0.000    0.124    0.401
   .ph_p_pds_002_3           0.057    0.005   12.069    0.000    0.057    0.215
   .ph_p_pds_002_4           0.012    0.004    3.029    0.002    0.012    0.056
   .ph_p_pds_002_5           0.008    0.004    2.050    0.040    0.008    0.040
   .ph_p_pds_002_6           0.026    0.005    5.623    0.000    0.026    0.143
 .ph_p_pds_002_2 ~~                                                            
   .ph_p_pds_002_3           0.100    0.005   20.815    0.000    0.100    0.398
   .ph_p_pds_002_4           0.029    0.004    7.177    0.000    0.029    0.142
   .ph_p_pds_002_5           0.010    0.004    2.742    0.006    0.010    0.055
   .ph_p_pds_002_6           0.032    0.004    7.318    0.000    0.032    0.187
 .ph_p_pds_002_3 ~~                                                            
   .ph_p_pds_002_4           0.045    0.004   11.689    0.000    0.045    0.255
   .ph_p_pds_002_5           0.019    0.003    5.554    0.000    0.019    0.122
   .ph_p_pds_002_6           0.032    0.004    8.119    0.000    0.032    0.218
 .ph_p_pds_002_4 ~~                                                            
   .ph_p_pds_002_5           0.037    0.003   11.409    0.000    0.037    0.284
   .ph_p_pds_002_6           0.023    0.004    6.282    0.000    0.023    0.190
 .ph_p_pds_002_5 ~~                                                            
   .ph_p_pds_002_6           0.028    0.003    7.960    0.000    0.028    0.257
 .ph_p_pds_003_0 ~~                                                            
   .ph_p_pds_003_1           0.134    0.005   24.748    0.000    0.134    0.370
   .ph_p_pds_003_2           0.082    0.005   16.227    0.000    0.082    0.226
   .ph_p_pds_003_3           0.046    0.005    9.733    0.000    0.046    0.135
   .ph_p_pds_003_4           0.018    0.004    4.039    0.000    0.018    0.058
   .ph_p_pds_003_5           0.020    0.004    4.690    0.000    0.020    0.069
   .ph_p_pds_003_6           0.006    0.005    1.261    0.207    0.006    0.024
 .ph_p_pds_003_1 ~~                                                            
   .ph_p_pds_003_2           0.165    0.006   28.794    0.000    0.165    0.405
   .ph_p_pds_003_3           0.089    0.005   16.878    0.000    0.089    0.233
   .ph_p_pds_003_4           0.027    0.005    5.589    0.000    0.027    0.078
   .ph_p_pds_003_5           0.013    0.005    2.766    0.006    0.013    0.040
   .ph_p_pds_003_6           0.007    0.006    1.212    0.226    0.007    0.022
 .ph_p_pds_003_2 ~~                                                            
   .ph_p_pds_003_3           0.157    0.005   28.668    0.000    0.157    0.410
   .ph_p_pds_003_4           0.066    0.005   13.384    0.000    0.066    0.191
   .ph_p_pds_003_5           0.037    0.005    8.021    0.000    0.037    0.116
   .ph_p_pds_003_6           0.016    0.006    2.772    0.006    0.016    0.051
 .ph_p_pds_003_3 ~~                                                            
   .ph_p_pds_003_4           0.106    0.005   22.094    0.000    0.106    0.331
   .ph_p_pds_003_5           0.056    0.004   12.559    0.000    0.056    0.187
   .ph_p_pds_003_6           0.039    0.005    7.275    0.000    0.039    0.133
 .ph_p_pds_003_4 ~~                                                            
   .ph_p_pds_003_5           0.086    0.004   20.040    0.000    0.086    0.324
   .ph_p_pds_003_6           0.064    0.005   12.627    0.000    0.064    0.247
 .ph_p_pds_003_5 ~~                                                            
   .ph_p_pds_003_6           0.074    0.005   15.618    0.000    0.074    0.308
  pu_i ~~                                                                      
    pu_s                    -0.034    0.005   -7.354    0.000   -0.197   -0.197
    pu_q                    -0.006    0.001   -4.215    0.000   -0.109   -0.109
  pu_s ~~                                                                      
    pu_q                    -0.044    0.002  -21.807    0.000   -0.918   -0.918
 .p_i ~~                                                                       
   .p_s                     -0.069    0.010   -6.791    0.000   -0.234   -0.234
   .p_q                      0.008    0.003    2.494    0.013    0.081    0.081
 .p_s ~~                                                                       
   .p_q                     -0.067    0.005  -12.595    0.000   -0.855   -0.855

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .asr___0 (t_AX)   -0.002    0.004   -0.348    0.728   -0.002   -0.002
   .asr___0 (t_AW)    0.006    0.005    1.152    0.249    0.006    0.006
   .asr___0 (t_AS)    0.001    0.005    0.195    0.845    0.001    0.001
   .asr___0 (t_AP)    0.003    0.005    0.707    0.480    0.003    0.003
   .asr___0 (t_AH)    0.003    0.005    0.665    0.506    0.003    0.003
   .asr___0 (t_AA)    0.009    0.006    1.640    0.101    0.009    0.009
   .asr___0 (t_AR)    0.005    0.005    0.951    0.341    0.005    0.005
   .asr___0 (t_AG)    0.001    0.007    0.205    0.837    0.001    0.001
   .asr___2 (t_AX)   -0.002    0.004   -0.348    0.728   -0.002   -0.002
   .asr___2 (t_AW)    0.006    0.005    1.152    0.249    0.006    0.006
   .asr___2 (t_AS)    0.001    0.005    0.195    0.845    0.001    0.001
   .asr___2 (t_AP)    0.003    0.005    0.707    0.480    0.003    0.003
   .asr___2 (t_AH)    0.003    0.005    0.665    0.506    0.003    0.003
   .asr___2 (t_AA)    0.009    0.006    1.640    0.101    0.009    0.009
   .asr___2 (t_AR)    0.005    0.005    0.951    0.341    0.005    0.005
   .asr___2 (t_AG)    0.001    0.007    0.205    0.837    0.001    0.001
   .asr___4 (t_AX)   -0.002    0.004   -0.348    0.728   -0.002   -0.002
   .asr___4 (t_AW)    0.006    0.005    1.152    0.249    0.006    0.006
   .asr___4 (t_AS)    0.001    0.005    0.195    0.845    0.001    0.001
   .asr___4 (t_AP)    0.003    0.005    0.707    0.480    0.003    0.004
   .asr___4 (t_AH)    0.003    0.005    0.665    0.506    0.003    0.003
   .asr___4 (t_AA)    0.009    0.006    1.640    0.101    0.009    0.009
   .asr___4 (t_AR)    0.005    0.005    0.951    0.341    0.005    0.005
   .asr___4 (t_AG)    0.001    0.007    0.205    0.837    0.001    0.001
    a_i               0.021    0.008    2.665    0.008    0.027    0.027
    a_s              -0.023    0.004   -6.252    0.000   -0.091   -0.091
   .a_etaB            0.000                               0.000    0.000
   .a_eta2            0.000                               0.000    0.000
   .a_eta4            0.000                               0.000    0.000
   .flnkr_0 (ta_S)    0.100    0.005   19.039    0.000    0.100    0.108
   .flnkr_2 (ta_S)    0.100    0.005   19.039    0.000    0.100    0.125
   .flnkr_4 (ta_S)    0.100    0.005   19.039    0.000    0.100    0.126
   .flnkr_6 (ta_S)    0.100    0.005   19.039    0.000    0.100    0.123
   .pttrn_0 (ta_R)    0.116    0.005   22.930    0.000    0.116    0.153
   .pttrn_2 (ta_R)    0.116    0.005   22.930    0.000    0.116    0.151
   .pttrn_4 (ta_R)    0.116    0.005   22.930    0.000    0.116    0.141
   .pttrn_6 (ta_R)    0.116    0.005   22.930    0.000    0.116    0.136
   .pictr_0 (ta_M)    0.052    0.006    8.021    0.000    0.052    0.062
   .pictr_2 (ta_M)    0.052    0.006    8.021    0.000    0.052    0.058
   .pictr_4 (ta_M)    0.052    0.006    8.021    0.000    0.052    0.049
   .pictr_6 (ta_M)    0.052    0.006    8.021    0.000    0.052    0.049
   .pcvcb_0 (ta_P)    0.048    0.006    8.680    0.000    0.048    0.057
   .pcvcb_2 (ta_P)    0.048    0.006    8.680    0.000    0.048    0.055
   .pcvcb_4 (ta_P)    0.048    0.006    8.680    0.000    0.048    0.052
   .pcvcb_6 (ta_P)    0.048    0.006    8.680    0.000    0.048    0.051
   .redng_0 (ta_V)    0.058    0.005   10.851    0.000    0.058    0.068
   .redng_2 (ta_V)    0.058    0.005   10.851    0.000    0.058    0.069
   .redng_4 (ta_V)    0.058    0.005   10.851    0.000    0.058    0.063
   .redng_6 (ta_V)    0.058    0.005   10.851    0.000    0.058    0.060
    g_i              -0.653    0.007  -97.707    0.000   -1.684   -1.684
    g_s               0.473    0.004  128.143    0.000    9.145    9.145
   .g_etaB            0.000                               0.000    0.000
   .g_eta2            0.000                               0.000    0.000
   .g_eta4            0.000                               0.000    0.000
   .g_eta6            0.000                               0.000    0.000
   .p___001 (t_PS)    0.044    0.004   11.586    0.000    0.044    0.039
   .p___001 (t_PS)    0.044    0.004   11.586    0.000    0.044    0.043
   .p___001 (t_PS)    0.044    0.004   11.586    0.000    0.044    0.047
   .p___001 (t_PS)    0.044    0.004   11.586    0.000    0.044    0.052
   .p___001 (t_PS)    0.044    0.004   11.586    0.000    0.044    0.058
   .p___001 (t_PS)    0.044    0.004   11.586    0.000    0.044    0.063
   .p___001 (t_PS)    0.044    0.004   11.586    0.000    0.044    0.065
   .p___002 (t_PR)    0.100    0.003   37.330    0.000    0.100    0.123
   .p___002 (t_PR)    0.100    0.003   37.330    0.000    0.100    0.116
   .p___002 (t_PR)    0.100    0.003   37.330    0.000    0.100    0.117
   .p___002 (t_PR)    0.100    0.003   37.330    0.000    0.100    0.125
   .p___002 (t_PR)    0.100    0.003   37.330    0.000    0.100    0.138
   .p___002 (t_PR)    0.100    0.003   37.330    0.000    0.100    0.159
   .p___002 (t_PR)    0.100    0.003   37.330    0.000    0.100    0.178
   .p___003 (t_PM)    0.091    0.003   32.144    0.000    0.091    0.114
   .p___003 (t_PM)    0.091    0.003   32.144    0.000    0.091    0.103
   .p___003 (t_PM)    0.091    0.003   32.144    0.000    0.091    0.101
   .p___003 (t_PM)    0.091    0.003   32.144    0.000    0.091    0.105
   .p___003 (t_PM)    0.091    0.003   32.144    0.000    0.091    0.115
   .p___003 (t_PM)    0.091    0.003   32.144    0.000    0.091    0.128
   .p___003 (t_PM)    0.091    0.003   32.144    0.000    0.091    0.139
    pu_i             -0.724    0.007 -108.272    0.000   -1.686   -1.686
    pu_s              0.596    0.007   86.633    0.000    1.495    1.495
    pu_q             -0.043    0.002  -22.468    0.000   -0.360   -0.360
   .pu_etaB           0.000                               0.000    0.000
   .pu_eta1           0.000                               0.000    0.000
   .pu_eta2           0.000                               0.000    0.000
   .pu_eta3           0.000                               0.000    0.000
   .pu_eta4           0.000                               0.000    0.000
   .pu_eta5           0.000                               0.000    0.000
   .pu_eta6           0.000                               0.000    0.000
   .p_i              -0.053    0.022   -2.445    0.014   -0.066   -0.066
   .p_s               0.219    0.290    0.756    0.450    0.354    0.354
   .p_q              -0.154    0.107   -1.442    0.149   -0.838   -0.838
   .Int_c_0           0.000                               0.000    0.000
   .Int_c_1           0.000                               0.000    0.000
   .Int_c_2           0.000                               0.000    0.000
   .Int_c_3           0.000                               0.000    0.000
   .Int_c_4           0.000                               0.000    0.000
   .Int_c_5           0.000                               0.000    0.000
   .Int_c_6           0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .a_etaB            0.107    0.006   16.898    0.000    0.148    0.148
   .a_eta2            0.184    0.005   39.164    0.000    0.261    0.261
   .a_eta4            0.104    0.007   14.146    0.000    0.159    0.159
   .asr_nxdp_cmp_0    0.294    0.006   51.200    0.000    0.294    0.288
   .asr_wthdp_cm_0    0.479    0.008   62.298    0.000    0.479    0.456
   .asr_soma_cmp_0    0.538    0.008   65.701    0.000    0.538    0.538
   .asr_thprb_cm_0    0.481    0.007   65.764    0.000    0.481    0.443
   .asr_ttprb_cm_0    0.410    0.006   64.479    0.000    0.410    0.413
   .asr_rlbrk_cm_0    0.671    0.010   70.147    0.000    0.671    0.614
   .asr_ggrss_cm_0    0.459    0.007   65.216    0.000    0.459    0.436
   .asr_intr_cmp_0    0.904    0.012   75.005    0.000    0.904    0.846
   .asr_nxdp_cmp_2    0.323    0.006   51.806    0.000    0.323    0.314
   .asr_wthdp_cm_2    0.475    0.008   60.556    0.000    0.475    0.461
   .asr_soma_cmp_2    0.549    0.009   64.029    0.000    0.549    0.550
   .asr_thprb_cm_2    0.419    0.007   62.277    0.000    0.419    0.416
   .asr_ttprb_cm_2    0.384    0.006   61.448    0.000    0.384    0.404
   .asr_rlbrk_cm_2    0.612    0.009   67.049    0.000    0.612    0.599
   .asr_ggrss_cm_2    0.445    0.007   62.971    0.000    0.445    0.435
   .asr_intr_cmp_2    0.827    0.011   72.171    0.000    0.827    0.838
   .asr_nxdp_cmp_4    0.334    0.007   49.279    0.000    0.334    0.338
   .asr_wthdp_cm_4    0.452    0.008   56.596    0.000    0.452    0.467
   .asr_soma_cmp_4    0.543    0.009   59.873    0.000    0.543    0.565
   .asr_thprb_cm_4    0.392    0.007   57.767    0.000    0.392    0.418
   .asr_ttprb_cm_4    0.419    0.007   58.850    0.000    0.419    0.443
   .asr_rlbrk_cm_4    0.571    0.009   62.328    0.000    0.571    0.600
   .asr_ggrss_cm_4    0.428    0.007   58.927    0.000    0.428    0.444
   .asr_intr_cmp_4    0.813    0.012   67.935    0.000    0.813    0.846
    a_i               0.617    0.012   49.406    0.000    1.000    1.000
    a_s               0.063    0.003   19.595    0.000    1.000    1.000
   .g_etaB            0.012    0.002    5.321    0.000    0.075    0.075
   .g_eta2            0.008    0.002    5.234    0.000    0.048    0.048
   .g_eta4            0.017    0.002    8.204    0.000    0.088    0.088
   .g_eta6            0.045    0.004   11.350    0.000    0.184    0.184
   .flanker_0         0.684    0.010   68.035    0.000    0.684    0.808
   .flanker_2         0.466    0.009   54.406    0.000    0.466    0.733
   .flanker_4         0.435    0.009   49.464    0.000    0.435    0.690
   .flanker_6         0.417    0.011   38.672    0.000    0.417    0.630
   .pattern_0         0.337    0.006   52.425    0.000    0.337    0.583
   .pattern_2         0.339    0.008   45.091    0.000    0.339    0.574
   .pattern_4         0.387    0.009   42.822    0.000    0.387    0.572
   .pattern_6         0.367    0.011   32.935    0.000    0.367    0.502
   .picture_0         0.654    0.009   73.393    0.000    0.654    0.918
   .picture_2         0.734    0.011   69.176    0.000    0.734    0.924
   .picture_4         1.056    0.016   66.198    0.000    1.056    0.938
   .picture_6         1.036    0.022   47.862    0.000    1.036    0.922
   .picvocab_0        0.561    0.008   68.958    0.000    0.561    0.800
   .picvocab_2        0.618    0.009   66.213    0.000    0.618    0.808
   .picvocab_4        0.686    0.011   63.054    0.000    0.686    0.803
   .picvocab_6        0.661    0.013   49.270    0.000    0.661    0.758
   .reading_0         0.575    0.008   68.331    0.000    0.575    0.786
   .reading_2         0.549    0.008   64.907    0.000    0.549    0.771
   .reading_4         0.664    0.011   62.005    0.000    0.664    0.779
   .reading_6         0.704    0.015   47.900    0.000    0.704    0.749
    g_i               0.151    0.004   35.985    0.000    1.000    1.000
    g_s               0.003    0.001    4.132    0.000    1.000    1.000
   .pu_etaB           0.009    0.003    2.668    0.008    0.045    0.045
   .pu_eta1           0.054    0.002   23.658    0.000    0.234    0.234
   .pu_eta2           0.052    0.002   24.144    0.000    0.215    0.215
   .pu_eta3           0.047    0.002   23.348    0.000    0.196    0.196
   .pu_eta4           0.040    0.002   22.434    0.000    0.191    0.191
   .pu_eta5           0.026    0.002   17.139    0.000    0.168    0.168
   .pu_eta6           0.012    0.003    4.715    0.000    0.104    0.104
   .ph_p_pds_001_0    1.052    0.015   69.920    0.000    1.052    0.845
   .ph_p_pds_002_0    0.313    0.007   47.808    0.000    0.313    0.476
   .ph_p_pds_003_0    0.321    0.006   51.633    0.000    0.321    0.511
   .ph_p_pds_001_1    0.818    0.012   68.480    0.000    0.818    0.779
   .ph_p_pds_002_1    0.326    0.007   44.810    0.000    0.326    0.441
   .ph_p_pds_003_1    0.405    0.008   53.811    0.000    0.405    0.523
   .ph_p_pds_001_2    0.615    0.009   65.688    0.000    0.615    0.716
   .ph_p_pds_002_2    0.292    0.007   43.060    0.000    0.292    0.401
   .ph_p_pds_003_2    0.410    0.007   55.293    0.000    0.410    0.513
   .ph_p_pds_001_3    0.465    0.007   62.391    0.000    0.465    0.659
   .ph_p_pds_002_3    0.215    0.006   37.977    0.000    0.215    0.334
   .ph_p_pds_003_3    0.358    0.007   53.837    0.000    0.358    0.483
   .ph_p_pds_001_4    0.353    0.006   60.371    0.000    0.353    0.627
   .ph_p_pds_002_4    0.146    0.004   32.885    0.000    0.146    0.281
   .ph_p_pds_003_4    0.286    0.006   50.377    0.000    0.286    0.461
   .ph_p_pds_001_5    0.330    0.006   58.202    0.000    0.330    0.677
   .ph_p_pds_002_5    0.116    0.004   30.659    0.000    0.116    0.292
   .ph_p_pds_003_5    0.249    0.005   49.480    0.000    0.249    0.498
   .ph_p_pds_001_6    0.338    0.008   44.192    0.000    0.338    0.738
   .ph_p_pds_002_6    0.100    0.004   22.763    0.000    0.100    0.319
   .ph_p_pds_003_6    0.233    0.006   38.603    0.000    0.233    0.550
    pu_i              0.184    0.005   37.344    0.000    1.000    1.000
    pu_s              0.159    0.007   23.561    0.000    1.000    1.000
    pu_q              0.014    0.001   22.243    0.000    1.000    1.000
   .p_i               0.366    0.009   39.516    0.000    0.568    0.568
   .p_s               0.235    0.017   13.718    0.000    0.615    0.615
   .p_q               0.026    0.002   14.575    0.000    0.773    0.773
   .Int_comp_0        0.179    0.007   25.939    0.000    0.179    0.217
   .Int_comp_1        0.280    0.005   58.282    0.000    0.280    0.315
   .Int_comp_2        0.287    0.005   56.481    0.000    0.287    0.302
   .Int_comp_3        0.305    0.006   53.745    0.000    0.305    0.293
   .Int_comp_4        0.321    0.006   52.400    0.000    0.321    0.286
   .Int_comp_5        0.369    0.008   46.980    0.000    0.369    0.293
   .Int_comp_6        0.241    0.013   18.361    0.000    0.241    0.183

R-Square:
                   Estimate
    a_etaB            0.852
    a_eta2            0.739
    a_eta4            0.841
    asr_nxdp_cmp_0    0.712
    asr_wthdp_cm_0    0.544
    asr_soma_cmp_0    0.462
    asr_thprb_cm_0    0.557
    asr_ttprb_cm_0    0.587
    asr_rlbrk_cm_0    0.386
    asr_ggrss_cm_0    0.564
    asr_intr_cmp_0    0.154
    asr_nxdp_cmp_2    0.686
    asr_wthdp_cm_2    0.539
    asr_soma_cmp_2    0.450
    asr_thprb_cm_2    0.584
    asr_ttprb_cm_2    0.596
    asr_rlbrk_cm_2    0.401
    asr_ggrss_cm_2    0.565
    asr_intr_cmp_2    0.162
    asr_nxdp_cmp_4    0.662
    asr_wthdp_cm_4    0.533
    asr_soma_cmp_4    0.435
    asr_thprb_cm_4    0.582
    asr_ttprb_cm_4    0.557
    asr_rlbrk_cm_4    0.400
    asr_ggrss_cm_4    0.556
    asr_intr_cmp_4    0.154
    g_etaB            0.925
    g_eta2            0.952
    g_eta4            0.912
    g_eta6            0.816
    flanker_0         0.192
    flanker_2         0.267
    flanker_4         0.310
    flanker_6         0.370
    pattern_0         0.417
    pattern_2         0.426
    pattern_4         0.428
    pattern_6         0.498
    picture_0         0.082
    picture_2         0.076
    picture_4         0.062
    picture_6         0.078
    picvocab_0        0.200
    picvocab_2        0.192
    picvocab_4        0.197
    picvocab_6        0.242
    reading_0         0.214
    reading_2         0.229
    reading_4         0.221
    reading_6         0.251
    pu_etaB           0.955
    pu_eta1           0.766
    pu_eta2           0.785
    pu_eta3           0.804
    pu_eta4           0.809
    pu_eta5           0.832
    pu_eta6           0.896
    ph_p_pds_001_0    0.155
    ph_p_pds_002_0    0.524
    ph_p_pds_003_0    0.489
    ph_p_pds_001_1    0.221
    ph_p_pds_002_1    0.559
    ph_p_pds_003_1    0.477
    ph_p_pds_001_2    0.284
    ph_p_pds_002_2    0.599
    ph_p_pds_003_2    0.487
    ph_p_pds_001_3    0.341
    ph_p_pds_002_3    0.666
    ph_p_pds_003_3    0.517
    ph_p_pds_001_4    0.373
    ph_p_pds_002_4    0.719
    ph_p_pds_003_4    0.539
    ph_p_pds_001_5    0.323
    ph_p_pds_002_5    0.708
    ph_p_pds_003_5    0.502
    ph_p_pds_001_6    0.262
    ph_p_pds_002_6    0.681
    ph_p_pds_003_6    0.450
    p_i               0.432
    p_s               0.385
    p_q               0.227
    Int_comp_0        0.783
    Int_comp_1        0.685
    Int_comp_2        0.698
    Int_comp_3        0.707
    Int_comp_4        0.714
    Int_comp_5        0.707
    Int_comp_6        0.817
Int ~ pp + g + pu model with sex

Children’s Internalizing symptoms (Int) was regressed on parental psychopathology (pp), children’s cognitive functioning (g) and children’s puberty (pu), with sex as covariate.

model fit
# Add sex as covariate
Int.pga_pu6.sex.model <- Int.pga_pu6.model %>%
  str_replace_all(
    c(
      "_i ~ 1" = "_i ~ 1 + dummy_sex",
      "_s ~ 1" = "_s ~ 1 + dummy_sex",
      "_q ~ 1" = "_q ~ 1 + dummy_sex",
      "_i~1" = "_i~1 + dummy_sex",
      "_s~1" = "_s~1 + dummy_sex",
      "_q~1" = "_q~1 + dummy_sex"
    )
  )

writeLines(Int.pga_pu6.sex.model)
# second-order pp factor
               #factor loadings (with constraints)
               a_etaB =~ 1*asr_anxdep_comp_0+
                       lambda_AW*asr_withdep_comp_0+
                       lambda_AS*asr_soma_comp_0+
                       lambda_AC*asr_thouprob_comp_0+
                       lambda_AH*asr_attprob_comp_0+
                       lambda_AA*asr_rulebreak_comp_0+
                       lambda_AR*asr_aggress_comp_0+
                       lambda_AG*asr_intru_comp_0
               a_eta2 =~ 1*asr_anxdep_comp_2+
                       lambda_AW*asr_withdep_comp_2+
                       lambda_AS*asr_soma_comp_2+
                       lambda_AC*asr_thouprob_comp_2+
                       lambda_AH*asr_attprob_comp_2+
                       lambda_AA*asr_rulebreak_comp_2+
                       lambda_AR*asr_aggress_comp_2+
                       lambda_AG*asr_intru_comp_2
               a_eta4 =~ 1*asr_anxdep_comp_4+
                       lambda_AW*asr_withdep_comp_4+
                       lambda_AS*asr_soma_comp_4+
                       lambda_AC*asr_thouprob_comp_4+
                       lambda_AH*asr_attprob_comp_4+
                       lambda_AA*asr_rulebreak_comp_4+
                       lambda_AR*asr_aggress_comp_4+
                       lambda_AG*asr_intru_comp_4

              #latent variable variances
                      a_etaB~~NA*a_etaB
                      a_eta2~~NA*a_eta2
                      a_eta4~~NA*a_eta4

              #unique variances # No need to constrict these
                      asr_anxdep_comp_0~~asr_anxdep_comp_0
                      asr_withdep_comp_0~~asr_withdep_comp_0
                      asr_soma_comp_0~~asr_soma_comp_0
                      asr_thouprob_comp_0~~asr_thouprob_comp_0
                      asr_attprob_comp_0~~asr_attprob_comp_0
                      asr_rulebreak_comp_0~~asr_rulebreak_comp_0
                      asr_aggress_comp_0~~asr_aggress_comp_0
                      asr_intru_comp_0~~asr_intru_comp_0

                      asr_anxdep_comp_2~~asr_anxdep_comp_2
                      asr_withdep_comp_2~~asr_withdep_comp_2
                      asr_soma_comp_2~~asr_soma_comp_2
                      asr_thouprob_comp_2~~asr_thouprob_comp_2
                      asr_attprob_comp_2~~asr_attprob_comp_2
                      asr_rulebreak_comp_2~~asr_rulebreak_comp_2
                      asr_aggress_comp_2~~asr_aggress_comp_2
                      asr_intru_comp_2~~asr_intru_comp_2

                      asr_anxdep_comp_4~~asr_anxdep_comp_4
                      asr_withdep_comp_4~~asr_withdep_comp_4
                      asr_soma_comp_4~~asr_soma_comp_4
                      asr_thouprob_comp_4~~asr_thouprob_comp_4
                      asr_attprob_comp_4~~asr_attprob_comp_4
                      asr_rulebreak_comp_4~~asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_aggress_comp_4
                      asr_intru_comp_4~~asr_intru_comp_4

              #unique covariances
                      # Scores arcoss times
                      asr_anxdep_comp_0~~ asr_anxdep_comp_2 + asr_anxdep_comp_4
                      asr_anxdep_comp_2~~ asr_anxdep_comp_4

                      asr_withdep_comp_0 ~~ asr_withdep_comp_2 + asr_withdep_comp_4
                      asr_withdep_comp_2 ~~ asr_withdep_comp_4

                      asr_soma_comp_0~~ asr_soma_comp_2 + asr_soma_comp_4
                      asr_soma_comp_2~~ asr_soma_comp_4

                      asr_thouprob_comp_0~~ asr_thouprob_comp_2 + asr_thouprob_comp_4
                      asr_thouprob_comp_2~~ asr_thouprob_comp_4

                      asr_attprob_comp_0~~ asr_attprob_comp_2 + asr_attprob_comp_4
                      asr_attprob_comp_2~~ asr_attprob_comp_4

                      asr_rulebreak_comp_0~~ asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_rulebreak_comp_2~~ asr_rulebreak_comp_4

                      asr_aggress_comp_0~~ asr_aggress_comp_2 + asr_aggress_comp_4
                      asr_aggress_comp_2~~ asr_aggress_comp_4

                      asr_intru_comp_0~~ asr_intru_comp_2 + asr_intru_comp_4
                      asr_intru_comp_2~~ asr_intru_comp_4

                      # Internalizeing subscale covariances
                      asr_anxdep_comp_0~~asr_withdep_comp_0 + asr_soma_comp_0 + asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_2~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4
                      asr_anxdep_comp_4~~asr_withdep_comp_0 + asr_soma_comp_0 +  asr_withdep_comp_2 + asr_soma_comp_2 + asr_withdep_comp_4 + asr_soma_comp_4

                      asr_withdep_comp_0~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_2~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4
                      asr_withdep_comp_4~~asr_soma_comp_0 + asr_soma_comp_2 + asr_soma_comp_4

                      # Externalizeing subscale covariances
                      asr_aggress_comp_0~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_2~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4
                      asr_aggress_comp_4~~asr_intru_comp_0 + asr_rulebreak_comp_0 + asr_intru_comp_2 + asr_rulebreak_comp_2 + asr_intru_comp_4 + asr_rulebreak_comp_4

                      asr_intru_comp_0~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_2~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4
                      asr_intru_comp_4~~asr_rulebreak_comp_0 + asr_rulebreak_comp_2 + asr_rulebreak_comp_4

              #observed variable intercepts
                      asr_anxdep_comp_0~tau_AX*1
                      asr_withdep_comp_0~tau_AW*1
                      asr_soma_comp_0~tau_AS*1
                      asr_thouprob_comp_0~tau_AP*1
                      asr_attprob_comp_0~tau_AH*1
                      asr_rulebreak_comp_0~tau_AA*1
                      asr_aggress_comp_0~tau_AR*1
                      asr_intru_comp_0~tau_AG*1

                      asr_anxdep_comp_2~tau_AX*1
                      asr_withdep_comp_2~tau_AW*1
                      asr_soma_comp_2~tau_AS*1
                      asr_thouprob_comp_2~tau_AP*1
                      asr_attprob_comp_2~tau_AH*1
                      asr_rulebreak_comp_2~tau_AA*1
                      asr_aggress_comp_2~tau_AR*1
                      asr_intru_comp_2~tau_AG*1

                      asr_anxdep_comp_4~tau_AX*1
                      asr_withdep_comp_4~tau_AW*1
                      asr_soma_comp_4~tau_AS*1
                      asr_thouprob_comp_4~tau_AP*1
                      asr_attprob_comp_4~tau_AH*1
                      asr_rulebreak_comp_4~tau_AA*1
                      asr_aggress_comp_4~tau_AR*1
                      asr_intru_comp_4~tau_AG*1

                      #latent basis model
                      a_i =~ 1*a_etaB+1*a_eta2+1*a_eta4
                      a_s =~ 0*a_etaB+1*a_eta2+2*a_eta4
                      a_i~~NA*a_i
                      a_s~~NA*a_s
                      a_i~~a_s
                      a_i~1 + dummy_sex
                      a_s~1 + dummy_sex
                      a_etaB~0*1
                      a_eta2~0*1
                      a_eta4~0*1

               # second-order g factor
               #factor loadings # S & S2
               g_etaB =~ 1*flanker_0+
                       lambda_R*pattern_0+
                       lambda_M*picture_0+
                       lambda_P*picvocab_0+
                       lambda_V*reading_0
               g_eta2 =~ 1*flanker_2+
                       lambda_R*pattern_2+
                       lambda_M*picture_2+
                       lambda_P*picvocab_2+
                       lambda_V*reading_2
               g_eta4 =~ 1*flanker_4+
                       lambda_R*pattern_4+
                       lambda_M*picture_4+
                       lambda_P*picvocab_4+
                       lambda_V*reading_4
               g_eta6 =~ 1*flanker_6+
                       lambda_R*pattern_6+
                       lambda_M*picture_6+
                       lambda_P*picvocab_6+
                       lambda_V*reading_6

              #latent variable variances
                       g_etaB~~NA*g_etaB
                       g_eta2~~NA*g_eta2
                       g_eta4~~NA*g_eta4
                       g_eta6~~NA*g_eta6

              #unique variances
                      flanker_0~~flanker_0
                      flanker_2~~flanker_2
                      flanker_4~~flanker_4
                      flanker_6~~flanker_6

                      pattern_0~~pattern_0
                      pattern_2~~pattern_2
                      pattern_4~~pattern_4
                      pattern_6~~pattern_6

                      picture_0~~picture_0
                      picture_2~~picture_2
                      picture_4~~picture_4
                      picture_6~~picture_6

                      picvocab_0~~picvocab_0
                      picvocab_2~~picvocab_2
                      picvocab_4~~picvocab_4
                      picvocab_6~~picvocab_6

                      reading_0~~reading_0
                      reading_2~~reading_2
                      reading_4~~reading_4
                      reading_6~~reading_6

              #unique covariances
                      # Task across times
                      flanker_0~~flanker_2 + flanker_4 + flanker_6
                      flanker_2~~flanker_4 + flanker_6
                      flanker_4~~flanker_6

                      pattern_0~~pattern_2 + pattern_4 + pattern_6
                      pattern_2~~pattern_4 + pattern_6
                      pattern_4~~pattern_6

                      picture_0~~picture_2 + picture_4 + picture_6
                      picture_2~~picture_4 + picture_6
                      picture_4~~picture_6

                      picvocab_0~~picvocab_2 + picvocab_4 + picvocab_6
                      picvocab_2~~picvocab_4 + picvocab_6
                      picvocab_4~~picvocab_6

                      reading_0~~reading_2 + reading_4 + reading_6
                      reading_2~~reading_4 + reading_6
                      reading_4~~reading_6

                      #Language
                      picvocab_0~~reading_0 + reading_2 + reading_4 + reading_6
                      picvocab_2~~reading_2 + reading_0 + reading_4 + reading_6
                      picvocab_4~~reading_4 + reading_0 + reading_2 + reading_6
                      picvocab_6~~reading_6 + reading_0 + reading_2 + reading_4

              #observed variable intercepts # S & S2
                      flanker_0~tau_S*1
                      flanker_2~tau_S*1
                      flanker_4~tau_S*1
                      flanker_6~tau_S*1
                      pattern_0~tau_R*1
                      pattern_2~tau_R*1
                      pattern_4~tau_R*1
                      pattern_6~tau_R*1
                      picture_0~tau_M*1
                      picture_2~tau_M*1
                      picture_4~tau_M*1
                      picture_6~tau_M*1
                      picvocab_0~tau_P*1
                      picvocab_2~tau_P*1
                      picvocab_4~tau_P*1
                      picvocab_6~tau_P*1
                      reading_0~tau_V*1
                      reading_2~tau_V*1
                      reading_4~tau_V*1
                      reading_6~tau_V*1

              #latent basis model
                      g_i =~    1*g_etaB + 1*g_eta2 + 1*g_eta4 + 1*g_eta6
                      g_s =~    0*g_etaB + 1*g_eta2 + 2*g_eta4 + 3*g_eta6

                      g_i~~NA*g_i
                      g_s~~NA*g_s

                      g_i~~g_s

                      g_i~1 + dummy_sex
                      g_s~1 + dummy_sex

                      g_etaB~0*1
                      g_eta2~0*1
                      g_eta4~0*1
                      g_eta6~0*1

               # second-order puberty factor
               #factor loadings
               pu_etaB =~ 1*ph_p_pds_001_0 +
                          lambda_PR*ph_p_pds_002_0 +
                          lambda_PM*ph_p_pds_003_0

               pu_eta1 =~ 1*ph_p_pds_001_1 +
                          lambda_PR*ph_p_pds_002_1 +
                          lambda_PM*ph_p_pds_003_1

               pu_eta2 =~ 1*ph_p_pds_001_2 +
                          lambda_PR*ph_p_pds_002_2 +
                          lambda_PM*ph_p_pds_003_2

               pu_eta3 =~ 1*ph_p_pds_001_3 +
                          lambda_PR*ph_p_pds_002_3 +
                          lambda_PM*ph_p_pds_003_3

               pu_eta4 =~ 1*ph_p_pds_001_4 +
                          lambda_PR*ph_p_pds_002_4 +
                          lambda_PM*ph_p_pds_003_4

               pu_eta5 =~ 1*ph_p_pds_001_5 +
                          lambda_PR*ph_p_pds_002_5 +
                          lambda_PM*ph_p_pds_003_5

               pu_eta6 =~ 1*ph_p_pds_001_6 +
                          lambda_PR*ph_p_pds_002_6 +
                          lambda_PM*ph_p_pds_003_6

              #latent variable variances
                      pu_etaB~~NA*pu_etaB
                      pu_eta1~~NA*pu_eta1
                      pu_eta2~~NA*pu_eta2
                      pu_eta3~~NA*pu_eta3
                      pu_eta4~~NA*pu_eta4
                      pu_eta5~~NA*pu_eta5
                      pu_eta6~~NA*pu_eta6

              #unique variances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_0
                      ph_p_pds_002_0 ~~ ph_p_pds_002_0
                      ph_p_pds_003_0 ~~ ph_p_pds_003_0

                      ph_p_pds_001_1 ~~ ph_p_pds_001_1
                      ph_p_pds_002_1 ~~ ph_p_pds_002_1
                      ph_p_pds_003_1 ~~ ph_p_pds_003_1

                      ph_p_pds_001_2 ~~ ph_p_pds_001_2
                      ph_p_pds_002_2 ~~ ph_p_pds_002_2
                      ph_p_pds_003_2 ~~ ph_p_pds_003_2

                      ph_p_pds_001_3 ~~ ph_p_pds_001_3
                      ph_p_pds_002_3 ~~ ph_p_pds_002_3
                      ph_p_pds_003_3 ~~ ph_p_pds_003_3

                      ph_p_pds_001_4 ~~ ph_p_pds_001_4
                      ph_p_pds_002_4 ~~ ph_p_pds_002_4
                      ph_p_pds_003_4 ~~ ph_p_pds_003_4

                      ph_p_pds_001_5 ~~ ph_p_pds_001_5
                      ph_p_pds_002_5 ~~ ph_p_pds_002_5
                      ph_p_pds_003_5 ~~ ph_p_pds_003_5

                      ph_p_pds_001_6 ~~ ph_p_pds_001_6
                      ph_p_pds_002_6 ~~ ph_p_pds_002_6
                      ph_p_pds_003_6 ~~ ph_p_pds_003_6

              #unique covariances
                      ph_p_pds_001_0 ~~ ph_p_pds_001_1 + ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_1 ~~ ph_p_pds_001_2 + ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_2 ~~ ph_p_pds_001_3 + ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_3 ~~ ph_p_pds_001_4 + ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_4 ~~ ph_p_pds_001_5 + ph_p_pds_001_6
                      ph_p_pds_001_5 ~~ ph_p_pds_001_6

                      ph_p_pds_002_0 ~~ ph_p_pds_002_1 + ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_1 ~~ ph_p_pds_002_2 + ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_2 ~~ ph_p_pds_002_3 + ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_3 ~~ ph_p_pds_002_4 + ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_4 ~~ ph_p_pds_002_5 + ph_p_pds_002_6
                      ph_p_pds_002_5 ~~ ph_p_pds_002_6

                      ph_p_pds_003_0 ~~ ph_p_pds_003_1 + ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_1 ~~ ph_p_pds_003_2 + ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_2 ~~ ph_p_pds_003_3 + ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_3 ~~ ph_p_pds_003_4 + ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_4 ~~ ph_p_pds_003_5 + ph_p_pds_003_6
                      ph_p_pds_003_5 ~~ ph_p_pds_003_6

              #observed variable intercepts
                      ph_p_pds_001_0 ~ tau_PS*1
                      ph_p_pds_001_1 ~ tau_PS*1
                      ph_p_pds_001_2 ~ tau_PS*1
                      ph_p_pds_001_3 ~ tau_PS*1
                      ph_p_pds_001_4 ~ tau_PS*1
                      ph_p_pds_001_5 ~ tau_PS*1
                      ph_p_pds_001_6 ~ tau_PS*1

                      ph_p_pds_002_0 ~ tau_PR*1
                      ph_p_pds_002_1 ~ tau_PR*1
                      ph_p_pds_002_2 ~ tau_PR*1
                      ph_p_pds_002_3 ~ tau_PR*1
                      ph_p_pds_002_4 ~ tau_PR*1
                      ph_p_pds_002_5 ~ tau_PR*1
                      ph_p_pds_002_6 ~ tau_PR*1

                      ph_p_pds_003_0 ~ tau_PM*1
                      ph_p_pds_003_1 ~ tau_PM*1
                      ph_p_pds_003_2 ~ tau_PM*1
                      ph_p_pds_003_3 ~ tau_PM*1
                      ph_p_pds_003_4 ~ tau_PM*1
                      ph_p_pds_003_5 ~ tau_PM*1
                      ph_p_pds_003_6 ~ tau_PM*1

              #latent basis model
                      pu_i =~ 1*pu_etaB + 1*pu_eta1 + 1*pu_eta2 + 1*pu_eta3 + 1*pu_eta4 + 1*pu_eta5 + 1*pu_eta6
                      pu_s =~ 0*pu_etaB + 0.5*pu_eta1 + 1*pu_eta2 + 1.5*pu_eta3 + 2*pu_eta4 + 2.5*pu_eta5 + 3*pu_eta6
                      pu_q =~ 0*pu_etaB + 0.25*pu_eta1 + 1*pu_eta2 + 2.25*pu_eta3 + 4*pu_eta4 + 6.25*pu_eta5 + 9*pu_eta6

                      pu_i~~NA*pu_i
                      pu_s~~NA*pu_s
                      pu_q~~NA*pu_q

                      pu_i~~pu_s + pu_q
                      pu_s~~pu_q

                      pu_i~1 + dummy_sex
                      pu_s~1 + dummy_sex
                      pu_q~1 + dummy_sex

                      pu_etaB~0*1
                      pu_eta1~0*1
                      pu_eta2~0*1
                      pu_eta3~0*1
                      pu_eta4~0*1
                      pu_eta5~0*1
                      pu_eta6~0*1

              # Internalizing model
                      p_i =~ 1*Int_comp_0 + 1*Int_comp_1 + 1*Int_comp_2 + 1*Int_comp_3 + 1*Int_comp_4 + 1*Int_comp_5 + 1*Int_comp_6
                      p_s =~ 0*Int_comp_0 + .5*Int_comp_1 + 1*Int_comp_2 + 1.5*Int_comp_3 + 2*Int_comp_4 + 2.5*Int_comp_5 + 3*Int_comp_6
                      p_q =~ 0*Int_comp_0 + .25*Int_comp_1 + 1*Int_comp_2 + 2.25*Int_comp_3 + 4*Int_comp_4 + 6.25*Int_comp_5 + 9*Int_comp_6

                      p_i~~NA*p_i
                      p_s~~NA*p_s
                      p_q~~NA*p_q

                      p_i~~p_s + p_q
                      p_s~~p_q

                      p_i~1 + dummy_sex
                      p_s~1 + dummy_sex
                      p_q~1 + dummy_sex

                      Int_comp_0 ~~ NA*Int_comp_0
                      Int_comp_1 ~~ NA*Int_comp_1
                      Int_comp_2 ~~ NA*Int_comp_2
                      Int_comp_3 ~~ NA*Int_comp_3
                      Int_comp_4 ~~ NA*Int_comp_4
                      Int_comp_5 ~~ NA*Int_comp_5
                      Int_comp_6 ~~ NA*Int_comp_6

                      Int_comp_0 ~ 0*1
                      Int_comp_1 ~ 0*1
                      Int_comp_2 ~ 0*1
                      Int_comp_3 ~ 0*1
                      Int_comp_4 ~ 0*1
                      Int_comp_5 ~ 0*1
                      Int_comp_6 ~ 0*1

                      # regression
                      p_i ~ g_i + a_i + pu_i
                      p_s ~ g_i + g_s + a_i + a_s + pu_i + pu_s + pu_q
                      p_q ~ g_i + g_s + a_i + a_s + pu_i + pu_s + pu_q
lavaan(Int.pga_pu6.sex.model,
  data = readRDS("pga6_all_data_sex.rds"),
  meanstructure = TRUE,
  estimator = "ML",
  missing = "fiml",
  fixed.x = T,
  std.lv = T
) %>%
  saveRDS("pgcm_Int_pga_pu6_sex_model.rds")
result
readRDS("pgcm_Int_pga_pu6_sex_model.rds") %>%
  summary(
    std = T,
    fit.measures = TRUE,
    rsq = T
  ) %>%
  saveRDS("pgcm_Int_pga_pu6_sex_result.rds")
# Check for Haywood case
eigen(inspect(readRDS("pgcm_Int_pga_pu6_sex_model.rds"), "cor.lv"))$value
 [1] 5.942091026 4.746105053 3.876523840 2.419837580 2.246679982 0.969015904
 [7] 0.942657463 0.670618822 0.505330318 0.227635470 0.217510227 0.198560158
[13] 0.188207466 0.158237667 0.154725393 0.128552373 0.095445901 0.088727282
[19] 0.080053096 0.059763781 0.039961825 0.024636482 0.016578654 0.002544238
readRDS("pgcm_Int_pga_pu6_sex_result.rds")
lavaan 0.6-19 ended normally after 297 iterations

  Estimator                                         ML
  Optimization method                           NLMINB
  Number of model parameters                       444
  Number of equality constraints                    87

  Number of observations                         11867
  Number of missing patterns                      2191

Model Test User Model:
                                                       
  Test statistic                              23578.211
  Degrees of freedom                               2415
  P-value (Chi-square)                            0.000

Model Test Baseline Model:

  Test statistic                            420003.159
  Degrees of freedom                              2628
  P-value                                        0.000

User Model versus Baseline Model:

  Comparative Fit Index (CFI)                    0.949
  Tucker-Lewis Index (TLI)                       0.945
                                                      
  Robust Comparative Fit Index (CFI)             0.945
  Robust Tucker-Lewis Index (TLI)                0.940

Loglikelihood and Information Criteria:

  Loglikelihood user model (H0)            -717859.919
  Loglikelihood unrestricted model (H1)    -706070.813
                                                      
  Akaike (AIC)                             1436433.838
  Bayesian (BIC)                           1439069.039
  Sample-size adjusted Bayesian (SABIC)    1437934.534

Root Mean Square Error of Approximation:

  RMSEA                                          0.027
  90 Percent confidence interval - lower         0.027
  90 Percent confidence interval - upper         0.027
  P-value H_0: RMSEA <= 0.050                    1.000
  P-value H_0: RMSEA >= 0.080                    0.000
                                                      
  Robust RMSEA                                   0.032
  90 Percent confidence interval - lower         0.032
  90 Percent confidence interval - upper         0.033
  P-value H_0: Robust RMSEA <= 0.050             1.000
  P-value H_0: Robust RMSEA >= 0.080             0.000

Standardized Root Mean Square Residual:

  SRMR                                           0.052

Parameter Estimates:

  Standard errors                             Standard
  Information                                 Observed
  Observed information based on                Hessian

Latent Variables:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_etaB =~                                                             
    asr___0           1.000                               0.851    0.844
    asr___0 (l_AW)    0.887    0.007  127.138    0.000    0.755    0.737
    asr___0 (l_AS)    0.799    0.007  112.979    0.000    0.680    0.680
    asr___0 (l_AC)    0.914    0.007  125.316    0.000    0.778    0.746
    asr___0 (l_AH)    0.897    0.007  131.639    0.000    0.764    0.766
    asr___0 (l_AA)    0.763    0.008   97.362    0.000    0.649    0.621
    asr___0 (l_AR)    0.905    0.007  125.124    0.000    0.770    0.751
    asr___0 (l_AG)    0.476    0.008   59.069    0.000    0.405    0.392
  a_eta2 =~                                                             
    asr___2           1.000                               0.840    0.828
    asr___2 (l_AW)    0.887    0.007  127.138    0.000    0.745    0.734
    asr___2 (l_AS)    0.799    0.007  112.979    0.000    0.671    0.671
    asr___2 (l_AC)    0.914    0.007  125.316    0.000    0.767    0.764
    asr___2 (l_AH)    0.897    0.007  131.639    0.000    0.753    0.772
    asr___2 (l_AA)    0.763    0.008   97.362    0.000    0.640    0.633
    asr___2 (l_AR)    0.905    0.007  125.124    0.000    0.760    0.751
    asr___2 (l_AG)    0.476    0.008   59.069    0.000    0.399    0.402
  a_eta4 =~                                                             
    asr___4           1.000                               0.810    0.814
    asr___4 (l_AW)    0.887    0.007  127.138    0.000    0.718    0.730
    asr___4 (l_AS)    0.799    0.007  112.979    0.000    0.647    0.660
    asr___4 (l_AC)    0.914    0.007  125.316    0.000    0.740    0.763
    asr___4 (l_AH)    0.897    0.007  131.639    0.000    0.726    0.746
    asr___4 (l_AA)    0.763    0.008   97.362    0.000    0.617    0.633
    asr___4 (l_AR)    0.905    0.007  125.124    0.000    0.732    0.746
    asr___4 (l_AG)    0.476    0.008   59.069    0.000    0.385    0.393
  a_i =~                                                                
    a_etaB            1.000                               0.923    0.923
    a_eta2            1.000                               0.936    0.936
    a_eta4            1.000                               0.970    0.970
  a_s =~                                                                
    a_etaB            0.000                               0.000    0.000
    a_eta2            1.000                               0.299    0.299
    a_eta4            2.000                               0.621    0.621
  g_etaB =~                                                             
    flnkr_0           1.000                               0.403    0.438
    pttrn_0 (lm_R)    1.220    0.011  112.455    0.000    0.492    0.647
    pictr_0 (lm_M)    0.598    0.009   64.681    0.000    0.241    0.286
    pcvcb_0 (lm_P)    0.930    0.009  107.662    0.000    0.375    0.447
    redng_0 (lm_V)    0.982    0.009  111.348    0.000    0.395    0.462
  g_eta2 =~                                                             
    flnkr_2           1.000                               0.412    0.516
    pttrn_2 (lm_R)    1.220    0.011  112.455    0.000    0.502    0.654
    pictr_2 (lm_M)    0.598    0.009   64.681    0.000    0.246    0.276
    pcvcb_2 (lm_P)    0.930    0.009  107.662    0.000    0.383    0.437
    redng_2 (lm_V)    0.982    0.009  111.348    0.000    0.404    0.479
  g_eta4 =~                                                             
    flnkr_4           1.000                               0.441    0.556
    pttrn_4 (lm_R)    1.220    0.011  112.455    0.000    0.539    0.656
    pictr_4 (lm_M)    0.598    0.009   64.681    0.000    0.264    0.249
    pcvcb_4 (lm_P)    0.930    0.009  107.662    0.000    0.410    0.444
    redng_4 (lm_V)    0.982    0.009  111.348    0.000    0.433    0.469
  g_eta6 =~                                                             
    flnkr_6           1.000                               0.494    0.608
    pttrn_6 (lm_R)    1.220    0.011  112.455    0.000    0.603    0.706
    pictr_6 (lm_M)    0.598    0.009   64.681    0.000    0.296    0.279
    pcvcb_6 (lm_P)    0.930    0.009  107.662    0.000    0.460    0.492
    redng_6 (lm_V)    0.982    0.009  111.348    0.000    0.485    0.500
  g_i =~                                                                
    g_etaB            1.000                               0.962    0.962
    g_eta2            1.000                               0.941    0.941
    g_eta4            1.000                               0.878    0.878
    g_eta6            1.000                               0.784    0.784
  g_s =~                                                                
    g_etaB            0.000                               0.000    0.000
    g_eta2            1.000                               0.125    0.125
    g_eta4            2.000                               0.233    0.233
    g_eta6            3.000                               0.313    0.313
  pu_etaB =~                                                            
    p___001           1.000                               0.441    0.396
    p___002 (l_PR)    1.343    0.010  141.257    0.000    0.593    0.730
    p___003 (l_PM)    1.253    0.009  136.297    0.000    0.553    0.694
  pu_eta1 =~                                                            
    p___001           1.000                               0.483    0.471
    p___002 (l_PR)    1.343    0.010  141.257    0.000    0.648    0.758
    p___003 (l_PM)    1.253    0.009  136.297    0.000    0.605    0.685
  pu_eta2 =~                                                            
    p___001           1.000                               0.497    0.535
    p___002 (l_PR)    1.343    0.010  141.257    0.000    0.667    0.787
    p___003 (l_PM)    1.253    0.009  136.297    0.000    0.622    0.692
  pu_eta3 =~                                                            
    p___001           1.000                               0.495    0.586
    p___002 (l_PR)    1.343    0.010  141.257    0.000    0.665    0.831
    p___003 (l_PM)    1.253    0.009  136.297    0.000    0.620    0.713
  pu_eta4 =~                                                            
    p___001           1.000                               0.464    0.615
    p___002 (l_PR)    1.343    0.010  141.257    0.000    0.623    0.864
    p___003 (l_PM)    1.253    0.009  136.297    0.000    0.581    0.725
  pu_eta5 =~                                                            
    p___001           1.000                               0.402    0.576
    p___002 (l_PR)    1.343    0.010  141.257    0.000    0.541    0.860
    p___003 (l_PM)    1.253    0.009  136.297    0.000    0.504    0.699
  pu_eta6 =~                                                            
    p___001           1.000                               0.349    0.519
    p___002 (l_PR)    1.343    0.010  141.257    0.000    0.469    0.846
    p___003 (l_PM)    1.253    0.009  136.297    0.000    0.437    0.659
  pu_i =~                                                               
    pu_etaB           1.000                               0.974    0.974
    pu_eta1           1.000                               0.890    0.890
    pu_eta2           1.000                               0.865    0.865
    pu_eta3           1.000                               0.868    0.868
    pu_eta4           1.000                               0.927    0.927
    pu_eta5           1.000                               1.068    1.068
    pu_eta6           1.000                               1.231    1.231
  pu_s =~                                                               
    pu_etaB           0.000                               0.000    0.000
    pu_eta1           0.500                               0.413    0.413
    pu_eta2           1.000                               0.802    0.802
    pu_eta3           1.500                               1.208    1.208
    pu_eta4           2.000                               1.719    1.719
    pu_eta5           2.500                               2.475    2.475
    pu_eta6           3.000                               3.423    3.423
  pu_q =~                                                               
    pu_etaB           0.000                               0.000    0.000
    pu_eta1           0.250                               0.062    0.062
    pu_eta2           1.000                               0.240    0.240
    pu_eta3           2.250                               0.542    0.542
    pu_eta4           4.000                               1.028    1.028
    pu_eta5           6.250                               1.850    1.850
    pu_eta6           9.000                               3.070    3.070
  p_i =~                                                                
    Int_c_0           1.000                               0.802    0.884
    Int_c_1           1.000                               0.802    0.851
    Int_c_2           1.000                               0.802    0.822
    Int_c_3           1.000                               0.802    0.786
    Int_c_4           1.000                               0.802    0.757
    Int_c_5           1.000                               0.802    0.716
    Int_c_6           1.000                               0.802    0.697
  p_s =~                                                                
    Int_c_0           0.000                               0.000    0.000
    Int_c_1           0.500                               0.308    0.327
    Int_c_2           1.000                               0.617    0.632
    Int_c_3           1.500                               0.925    0.906
    Int_c_4           2.000                               1.234    1.164
    Int_c_5           2.500                               1.542    1.376
    Int_c_6           3.000                               1.851    1.608
  p_q =~                                                                
    Int_c_0           0.000                               0.000    0.000
    Int_c_1           0.250                               0.046    0.049
    Int_c_2           1.000                               0.183    0.188
    Int_c_3           2.250                               0.413    0.404
    Int_c_4           4.000                               0.733    0.692
    Int_c_5           6.250                               1.146    1.022
    Int_c_6           9.000                               1.650    1.434

Regressions:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
  a_i ~                                                                 
    dummy_sex         0.031    0.016    1.924    0.054    0.040    0.020
  a_s ~                                                                 
    dummy_sex        -0.014    0.007   -1.982    0.047   -0.058   -0.029
  g_i ~                                                                 
    dummy_sex        -0.041    0.009   -4.417    0.000   -0.105   -0.053
  g_s ~                                                                 
    dummy_sex         0.004    0.003    1.135    0.256    0.076    0.038
  pu_i ~                                                                
    dummy_sex        -0.273    0.010  -28.321    0.000   -0.636   -0.318
  pu_s ~                                                                
    dummy_sex        -0.220    0.011  -19.414    0.000   -0.553   -0.276
  pu_q ~                                                                
    dummy_sex         0.062    0.004   16.909    0.000    0.518    0.259
  p_i ~                                                                 
    dummy_sex         0.024    0.015    1.532    0.125    0.029    0.015
  p_s ~                                                                 
    dummy_sex        -0.076    0.025   -3.035    0.002   -0.124   -0.062
  p_q ~                                                                 
    dummy_sex        -0.011    0.009   -1.307    0.191   -0.062   -0.031
  p_i ~                                                                 
    g_i              -0.024    0.022   -1.069    0.285   -0.011   -0.011
    a_i               0.671    0.011   59.540    0.000    0.657    0.657
    pu_i              0.046    0.021    2.177    0.030    0.025    0.025
  p_s ~                                                                 
    g_i               0.125    0.038    3.250    0.001    0.078    0.078
    g_s              -0.223    0.583   -0.383    0.701   -0.019   -0.019
    a_i               0.089    0.016    5.652    0.000    0.113    0.113
    a_s               1.591    0.083   19.065    0.000    0.648    0.648
    pu_i              0.040    0.053    0.760    0.447    0.028    0.028
    pu_s              0.046    0.142    0.320    0.749    0.029    0.029
    pu_q             -0.078    0.492   -0.158    0.874   -0.015   -0.015
  p_q ~                                                                 
    g_i              -0.044    0.014   -3.185    0.001   -0.094   -0.094
    g_s               0.181    0.215    0.844    0.399    0.051    0.051
    a_i              -0.018    0.005   -3.510    0.000   -0.077   -0.077
    a_s              -0.356    0.025  -14.301    0.000   -0.489   -0.489
    pu_i              0.005    0.019    0.242    0.809    0.011    0.011
    pu_s              0.067    0.050    1.336    0.182    0.146    0.146
    pu_q              0.263    0.173    1.519    0.129    0.171    0.171

Covariances:
                          Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
 .asr_anxdep_comp_0 ~~                                                         
   .asr_nxdp_cmp_2           0.166    0.005   34.752    0.000    0.166    0.540
   .asr_nxdp_cmp_4           0.151    0.005   30.747    0.000    0.151    0.483
 .asr_anxdep_comp_2 ~~                                                         
   .asr_nxdp_cmp_4           0.185    0.005   35.258    0.000    0.185    0.565
 .asr_withdep_comp_0 ~~                                                        
   .asr_wthdp_cm_2           0.223    0.006   36.502    0.000    0.223    0.467
   .asr_wthdp_cm_4           0.201    0.006   32.613    0.000    0.201    0.433
 .asr_withdep_comp_2 ~~                                                        
   .asr_wthdp_cm_4           0.219    0.006   34.804    0.000    0.219    0.472
 .asr_soma_comp_0 ~~                                                           
   .asr_soma_cmp_2           0.265    0.007   39.941    0.000    0.265    0.488
   .asr_soma_cmp_4           0.230    0.007   34.105    0.000    0.230    0.425
 .asr_soma_comp_2 ~~                                                           
   .asr_soma_cmp_4           0.272    0.007   38.264    0.000    0.272    0.498
 .asr_thouprob_comp_0 ~~                                                       
   .asr_thprb_cm_2           0.199    0.005   36.253    0.000    0.199    0.444
   .asr_thprb_cm_4           0.167    0.006   30.308    0.000    0.167    0.385
 .asr_thouprob_comp_2 ~~                                                       
   .asr_thprb_cm_4           0.175    0.005   32.861    0.000    0.175    0.432
 .asr_attprob_comp_0 ~~                                                        
   .asr_ttprb_cm_2           0.255    0.005   48.763    0.000    0.255    0.644
   .asr_ttprb_cm_4           0.248    0.006   45.069    0.000    0.248    0.599
 .asr_attprob_comp_2 ~~                                                        
   .asr_ttprb_cm_4           0.267    0.006   47.823    0.000    0.267    0.666
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_rlbrk_cm_2           0.313    0.007   42.061    0.000    0.313    0.488
   .asr_rlbrk_cm_4           0.269    0.007   36.524    0.000    0.269    0.434
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_rlbrk_cm_4           0.292    0.007   39.459    0.000    0.292    0.493
 .asr_aggress_comp_0 ~~                                                        
   .asr_ggrss_cm_2           0.252    0.006   44.254    0.000    0.252    0.558
   .asr_ggrss_cm_4           0.228    0.006   40.134    0.000    0.228    0.514
 .asr_aggress_comp_2 ~~                                                        
   .asr_ggrss_cm_4           0.257    0.006   43.690    0.000    0.257    0.590
 .asr_intru_comp_0 ~~                                                          
   .asr_intr_cmp_2           0.500    0.010   52.016    0.000    0.500    0.578
   .asr_intr_cmp_4           0.469    0.010   48.109    0.000    0.469    0.547
 .asr_intru_comp_2 ~~                                                          
   .asr_intr_cmp_4           0.479    0.010   49.834    0.000    0.479    0.584
 .asr_anxdep_comp_0 ~~                                                         
   .asr_wthdp_cm_0           0.007    0.005    1.501    0.133    0.007    0.020
   .asr_soma_cmp_0           0.011    0.005    2.220    0.026    0.011    0.028
   .asr_wthdp_cm_2           0.010    0.005    2.087    0.037    0.010    0.027
   .asr_soma_cmp_2           0.020    0.005    3.900    0.000    0.020    0.049
   .asr_wthdp_cm_4           0.008    0.005    1.654    0.098    0.008    0.022
   .asr_soma_cmp_4           0.019    0.005    3.516    0.000    0.019    0.046
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_2          -0.001    0.005   -0.152    0.879   -0.001   -0.002
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_2           0.013    0.005    2.468    0.014    0.013    0.030
 .asr_anxdep_comp_2 ~~                                                         
   .asr_wthdp_cm_2           0.024    0.005    4.737    0.000    0.024    0.062
   .asr_soma_cmp_2           0.031    0.005    5.836    0.000    0.031    0.074
   .asr_wthdp_cm_4           0.011    0.005    2.147    0.032    0.011    0.029
   .asr_soma_cmp_4           0.014    0.005    2.565    0.010    0.014    0.033
 .asr_withdep_comp_0 ~~                                                        
   .asr_nxdp_cmp_4          -0.008    0.005   -1.528    0.126   -0.008   -0.020
 .asr_soma_comp_0 ~~                                                           
   .asr_nxdp_cmp_4           0.012    0.005    2.329    0.020    0.012    0.029
 .asr_withdep_comp_2 ~~                                                        
   .asr_nxdp_cmp_4           0.006    0.005    1.223    0.221    0.006    0.016
 .asr_soma_comp_2 ~~                                                           
   .asr_nxdp_cmp_4           0.029    0.006    5.262    0.000    0.029    0.068
 .asr_anxdep_comp_4 ~~                                                         
   .asr_wthdp_cm_4           0.027    0.005    5.060    0.000    0.027    0.071
   .asr_soma_cmp_4           0.043    0.006    7.394    0.000    0.043    0.100
 .asr_withdep_comp_0 ~~                                                        
   .asr_soma_cmp_0          -0.042    0.006   -7.469    0.000   -0.042   -0.083
   .asr_soma_cmp_2          -0.028    0.006   -4.883    0.000   -0.028   -0.055
   .asr_soma_cmp_4          -0.043    0.006   -7.022    0.000   -0.043   -0.084
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_2          -0.022    0.006   -3.819    0.000   -0.022   -0.043
 .asr_withdep_comp_2 ~~                                                        
   .asr_soma_cmp_2          -0.025    0.006   -4.205    0.000   -0.025   -0.048
   .asr_soma_cmp_4          -0.031    0.006   -5.033    0.000   -0.031   -0.060
 .asr_soma_comp_0 ~~                                                           
   .asr_wthdp_cm_4          -0.024    0.006   -4.103    0.000   -0.024   -0.049
 .asr_soma_comp_2 ~~                                                           
   .asr_wthdp_cm_4          -0.030    0.006   -4.969    0.000   -0.030   -0.060
 .asr_withdep_comp_4 ~~                                                        
   .asr_soma_cmp_4          -0.032    0.006   -5.314    0.000   -0.032   -0.065
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_0           0.140    0.007   20.614    0.000    0.140    0.218
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_0           0.084    0.006   13.890    0.000    0.084    0.151
 .asr_aggress_comp_0 ~~                                                        
   .asr_intr_cmp_2           0.091    0.007   13.940    0.000    0.091    0.148
   .asr_rlbrk_cm_2           0.033    0.006    5.650    0.000    0.033    0.062
   .asr_intr_cmp_4           0.100    0.007   14.775    0.000    0.100    0.163
   .asr_rlbrk_cm_4           0.040    0.006    6.765    0.000    0.040    0.078
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_2           0.100    0.007   14.948    0.000    0.100    0.158
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_2           0.059    0.006    9.854    0.000    0.059    0.108
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_2           0.144    0.007   21.593    0.000    0.144    0.237
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_2           0.054    0.006    9.276    0.000    0.054    0.104
 .asr_aggress_comp_2 ~~                                                        
   .asr_intr_cmp_4           0.115    0.007   16.874    0.000    0.115    0.191
   .asr_rlbrk_cm_4           0.052    0.006    8.721    0.000    0.052    0.103
 .asr_intru_comp_0 ~~                                                          
   .asr_ggrss_cm_4           0.102    0.007   14.875    0.000    0.102    0.165
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_ggrss_cm_4           0.064    0.006   10.443    0.000    0.064    0.120
 .asr_intru_comp_2 ~~                                                          
   .asr_ggrss_cm_4           0.109    0.007   16.286    0.000    0.109    0.184
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_ggrss_cm_4           0.055    0.006    9.151    0.000    0.055    0.108
 .asr_aggress_comp_4 ~~                                                        
   .asr_intr_cmp_4           0.146    0.007   21.176    0.000    0.146    0.248
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_ggrss_cm_4           0.075    0.006   12.425    0.000    0.075    0.151
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_0           0.128    0.008   16.408    0.000    0.128    0.164
 .asr_intru_comp_0 ~~                                                          
   .asr_rlbrk_cm_2           0.074    0.008    9.803    0.000    0.074    0.099
   .asr_rlbrk_cm_4           0.079    0.008   10.233    0.000    0.079    0.110
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_2           0.078    0.008   10.275    0.000    0.078    0.105
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_2           0.119    0.007   15.981    0.000    0.119    0.167
 .asr_intru_comp_2 ~~                                                          
   .asr_rlbrk_cm_4           0.078    0.007   10.388    0.000    0.078    0.113
 .asr_rulebreak_comp_0 ~~                                                      
   .asr_intr_cmp_4           0.092    0.008   11.684    0.000    0.092    0.124
 .asr_rulebreak_comp_2 ~~                                                      
   .asr_intr_cmp_4           0.085    0.008   11.077    0.000    0.085    0.121
 .asr_rulebreak_comp_4 ~~                                                      
   .asr_intr_cmp_4           0.118    0.008   15.572    0.000    0.118    0.174
 .a_i ~~                                                                       
   .a_s                     -0.080    0.005  -17.646    0.000   -0.403   -0.403
 .flanker_0 ~~                                                                 
   .flanker_2                0.139    0.007   18.883    0.000    0.139    0.246
   .flanker_4                0.100    0.008   13.251    0.000    0.100    0.182
   .flanker_6                0.088    0.009    9.469    0.000    0.088    0.164
 .flanker_2 ~~                                                                 
   .flanker_4                0.146    0.007   20.018    0.000    0.146    0.323
   .flanker_6                0.103    0.008   12.712    0.000    0.103    0.234
 .flanker_4 ~~                                                                 
   .flanker_6                0.154    0.009   16.948    0.000    0.154    0.360
 .pattern_0 ~~                                                                 
   .pattern_2                0.072    0.005   13.108    0.000    0.072    0.213
   .pattern_4                0.038    0.006    6.483    0.000    0.038    0.107
   .pattern_6                0.031    0.007    4.414    0.000    0.031    0.090
 .pattern_2 ~~                                                                 
   .pattern_4                0.103    0.007   15.041    0.000    0.103    0.286
   .pattern_6                0.072    0.008    9.609    0.000    0.072    0.206
 .pattern_4 ~~                                                                 
   .pattern_6                0.125    0.009   14.008    0.000    0.125    0.334
 .picture_0 ~~                                                                 
   .picture_2                0.253    0.007   33.976    0.000    0.253    0.365
   .picture_4                0.259    0.009   28.224    0.000    0.259    0.312
   .picture_6                0.284    0.012   23.696    0.000    0.284    0.345
 .picture_2 ~~                                                                 
   .picture_4                0.288    0.010   28.231    0.000    0.288    0.327
   .picture_6                0.269    0.013   20.037    0.000    0.269    0.308
 .picture_4 ~~                                                                 
   .picture_6                0.393    0.016   24.836    0.000    0.393    0.375
 .picvocab_0 ~~                                                                
   .picvocab_2               0.400    0.008   53.264    0.000    0.400    0.678
   .picvocab_4               0.403    0.008   50.725    0.000    0.403    0.649
   .picvocab_6               0.382    0.009   43.325    0.000    0.382    0.627
 .picvocab_2 ~~                                                                
   .picvocab_4               0.475    0.009   54.102    0.000    0.475    0.728
   .picvocab_6               0.462    0.010   47.507    0.000    0.462    0.721
 .picvocab_4 ~~                                                                
   .picvocab_6               0.511    0.011   48.408    0.000    0.511    0.757
 .reading_0 ~~                                                                 
   .reading_2                0.407    0.007   55.027    0.000    0.407    0.723
   .reading_4                0.410    0.008   50.861    0.000    0.410    0.663
   .reading_6                0.419    0.010   43.662    0.000    0.419    0.658
 .reading_2 ~~                                                                 
   .reading_4                0.419    0.008   51.359    0.000    0.419    0.694
   .reading_6                0.436    0.010   45.359    0.000    0.436    0.700
 .reading_4 ~~                                                                 
   .reading_6                0.459    0.011   42.970    0.000    0.459    0.670
 .picvocab_0 ~~                                                                
   .reading_0                0.235    0.007   36.094    0.000    0.235    0.414
   .reading_2                0.248    0.007   37.773    0.000    0.248    0.447
   .reading_4                0.266    0.007   36.313    0.000    0.266    0.436
   .reading_6                0.285    0.009   32.241    0.000    0.285    0.453
 .picvocab_2 ~~                                                                
   .reading_2                0.291    0.007   40.580    0.000    0.291    0.499
 .reading_0 ~~                                                                 
   .picvocab_2               0.270    0.007   38.457    0.000    0.270    0.452
 .picvocab_2 ~~                                                                
   .reading_4                0.316    0.008   39.634    0.000    0.316    0.493
   .reading_6                0.341    0.010   35.561    0.000    0.341    0.517
 .picvocab_4 ~~                                                                
   .reading_4                0.340    0.009   38.993    0.000    0.340    0.503
 .reading_0 ~~                                                                 
   .picvocab_4               0.278    0.008   36.898    0.000    0.278    0.442
 .reading_2 ~~                                                                 
   .picvocab_4               0.303    0.008   39.511    0.000    0.303    0.493
 .picvocab_4 ~~                                                                
   .reading_6                0.370    0.010   35.700    0.000    0.370    0.531
 .picvocab_6 ~~                                                                
   .reading_6                0.363    0.011   32.333    0.000    0.363    0.532
 .reading_0 ~~                                                                 
   .picvocab_6               0.259    0.009   30.036    0.000    0.259    0.419
 .reading_2 ~~                                                                 
   .picvocab_6               0.287    0.009   33.180    0.000    0.287    0.476
 .reading_4 ~~                                                                 
   .picvocab_6               0.325    0.010   33.463    0.000    0.325    0.490
 .g_i ~~                                                                       
   .g_s                      0.004    0.001    3.541    0.000    0.214    0.214
 .ph_p_pds_001_0 ~~                                                            
   .ph_p_pds_001_1           0.425    0.011   40.345    0.000    0.425    0.459
   .ph_p_pds_001_2           0.253    0.009   28.506    0.000    0.253    0.314
   .ph_p_pds_001_3           0.135    0.008   17.351    0.000    0.135    0.193
   .ph_p_pds_001_4           0.051    0.007    7.325    0.000    0.051    0.084
   .ph_p_pds_001_5           0.026    0.007    3.729    0.000    0.026    0.044
   .ph_p_pds_001_6           0.021    0.009    2.343    0.019    0.021    0.035
 .ph_p_pds_001_1 ~~                                                            
   .ph_p_pds_001_2           0.297    0.008   36.414    0.000    0.297    0.418
   .ph_p_pds_001_3           0.168    0.007   23.670    0.000    0.168    0.271
   .ph_p_pds_001_4           0.070    0.006   11.228    0.000    0.070    0.130
   .ph_p_pds_001_5           0.033    0.006    5.425    0.000    0.033    0.064
   .ph_p_pds_001_6           0.017    0.008    2.188    0.029    0.017    0.033
 .ph_p_pds_001_2 ~~                                                            
   .ph_p_pds_001_3           0.216    0.006   33.330    0.000    0.216    0.402
   .ph_p_pds_001_4           0.093    0.005   16.967    0.000    0.093    0.200
   .ph_p_pds_001_5           0.039    0.005    7.393    0.000    0.039    0.088
   .ph_p_pds_001_6           0.025    0.007    3.704    0.000    0.025    0.056
 .ph_p_pds_001_3 ~~                                                            
   .ph_p_pds_001_4           0.121    0.005   24.118    0.000    0.121    0.298
   .ph_p_pds_001_5           0.061    0.005   12.658    0.000    0.061    0.155
   .ph_p_pds_001_6           0.033    0.006    5.547    0.000    0.033    0.084
 .ph_p_pds_001_4 ~~                                                            
   .ph_p_pds_001_5           0.132    0.004   29.505    0.000    0.132    0.388
   .ph_p_pds_001_6           0.079    0.006   14.239    0.000    0.079    0.232
 .ph_p_pds_001_5 ~~                                                            
   .ph_p_pds_001_6           0.135    0.005   24.616    0.000    0.135    0.412
 .ph_p_pds_002_0 ~~                                                            
   .ph_p_pds_002_1           0.111    0.005   20.666    0.000    0.111    0.358
   .ph_p_pds_002_2           0.047    0.005    9.869    0.000    0.047    0.163
   .ph_p_pds_002_3           0.016    0.004    3.751    0.000    0.016    0.066
   .ph_p_pds_002_4           0.002    0.004    0.423    0.672    0.002    0.008
   .ph_p_pds_002_5          -0.005    0.003   -1.402    0.161   -0.005   -0.028
   .ph_p_pds_002_6          -0.006    0.004   -1.306    0.192   -0.006   -0.035
 .ph_p_pds_002_1 ~~                                                            
   .ph_p_pds_002_2           0.109    0.005   21.248    0.000    0.109    0.373
   .ph_p_pds_002_3           0.043    0.004    9.572    0.000    0.043    0.173
   .ph_p_pds_002_4          -0.000    0.004   -0.027    0.979   -0.000   -0.001
   .ph_p_pds_002_5          -0.005    0.004   -1.276    0.202   -0.005   -0.025
   .ph_p_pds_002_6           0.014    0.004    3.200    0.001    0.014    0.084
 .ph_p_pds_002_2 ~~                                                            
   .ph_p_pds_002_3           0.083    0.005   18.342    0.000    0.083    0.358
   .ph_p_pds_002_4           0.014    0.004    3.644    0.000    0.014    0.074
   .ph_p_pds_002_5          -0.005    0.003   -1.427    0.154   -0.005   -0.029
   .ph_p_pds_002_6           0.017    0.004    4.072    0.000    0.017    0.108
 .ph_p_pds_002_3 ~~                                                            
   .ph_p_pds_002_4           0.031    0.004    8.641    0.000    0.031    0.192
   .ph_p_pds_002_5           0.006    0.003    1.748    0.080    0.006    0.039
   .ph_p_pds_002_6           0.018    0.004    4.827    0.000    0.018    0.134
 .ph_p_pds_002_4 ~~                                                            
   .ph_p_pds_002_5           0.024    0.003    8.334    0.000    0.024    0.208
   .ph_p_pds_002_6           0.010    0.003    2.957    0.003    0.010    0.092
 .ph_p_pds_002_5 ~~                                                            
   .ph_p_pds_002_6           0.014    0.003    4.578    0.000    0.014    0.153
 .ph_p_pds_003_0 ~~                                                            
   .ph_p_pds_003_1           0.141    0.005   26.166    0.000    0.141    0.382
   .ph_p_pds_003_2           0.089    0.005   17.728    0.000    0.089    0.240
   .ph_p_pds_003_3           0.053    0.005   11.292    0.000    0.053    0.152
   .ph_p_pds_003_4           0.025    0.004    5.652    0.000    0.025    0.079
   .ph_p_pds_003_5           0.026    0.004    6.235    0.000    0.026    0.089
   .ph_p_pds_003_6           0.014    0.005    2.643    0.008    0.014    0.048
 .ph_p_pds_003_1 ~~                                                            
   .ph_p_pds_003_2           0.173    0.006   30.384    0.000    0.173    0.415
   .ph_p_pds_003_3           0.097    0.005   18.533    0.000    0.097    0.248
   .ph_p_pds_003_4           0.035    0.005    7.410    0.000    0.035    0.100
   .ph_p_pds_003_5           0.021    0.005    4.495    0.000    0.021    0.062
   .ph_p_pds_003_6           0.014    0.006    2.483    0.013    0.014    0.044
 .ph_p_pds_003_2 ~~                                                            
   .ph_p_pds_003_3           0.169    0.005   30.941    0.000    0.169    0.427
   .ph_p_pds_003_4           0.078    0.005   15.965    0.000    0.078    0.218
   .ph_p_pds_003_5           0.049    0.005   10.549    0.000    0.049    0.146
   .ph_p_pds_003_6           0.027    0.006    4.812    0.000    0.027    0.084
 .ph_p_pds_003_3 ~~                                                            
   .ph_p_pds_003_4           0.121    0.005   25.237    0.000    0.121    0.359
   .ph_p_pds_003_5           0.070    0.004   15.781    0.000    0.070    0.222
   .ph_p_pds_003_6           0.052    0.005    9.786    0.000    0.052    0.171
 .ph_p_pds_003_4 ~~                                                            
   .ph_p_pds_003_5           0.104    0.004   24.158    0.000    0.104    0.364
   .ph_p_pds_003_6           0.080    0.005   15.933    0.000    0.080    0.292
 .ph_p_pds_003_5 ~~                                                            
   .ph_p_pds_003_6           0.090    0.005   18.951    0.000    0.090    0.350
 .pu_i ~~                                                                      
   .pu_s                    -0.047    0.005  -10.417    0.000   -0.301   -0.301
   .pu_q                    -0.002    0.001   -1.373    0.170   -0.038   -0.038
 .pu_s ~~                                                                      
   .pu_q                    -0.040    0.002  -20.732    0.000   -0.912   -0.912
 .p_i ~~                                                                       
   .p_s                     -0.067    0.010   -6.659    0.000   -0.232   -0.232
   .p_q                      0.008    0.003    2.471    0.013    0.081    0.081
 .p_s ~~                                                                       
   .p_q                     -0.066    0.005  -12.480    0.000   -0.857   -0.857

Intercepts:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .asr___0 (t_AX)   -0.006    0.004   -1.402    0.161   -0.006   -0.006
   .asr___0 (t_AW)    0.002    0.005    0.327    0.744    0.002    0.002
   .asr___0 (t_AS)   -0.003    0.005   -0.494    0.622   -0.003   -0.003
   .asr___0 (t_AP)   -0.001    0.005   -0.186    0.853   -0.001   -0.001
   .asr___0 (t_AH)   -0.001    0.005   -0.173    0.863   -0.001   -0.001
   .asr___0 (t_AA)    0.006    0.006    0.995    0.320    0.006    0.005
   .asr___0 (t_AR)    0.000    0.005    0.078    0.938    0.000    0.000
   .asr___0 (t_AG)   -0.001    0.007   -0.116    0.908   -0.001   -0.001
   .asr___2 (t_AX)   -0.006    0.004   -1.402    0.161   -0.006   -0.006
   .asr___2 (t_AW)    0.002    0.005    0.327    0.744    0.002    0.002
   .asr___2 (t_AS)   -0.003    0.005   -0.494    0.622   -0.003   -0.003
   .asr___2 (t_AP)   -0.001    0.005   -0.186    0.853   -0.001   -0.001
   .asr___2 (t_AH)   -0.001    0.005   -0.173    0.863   -0.001   -0.001
   .asr___2 (t_AA)    0.006    0.006    0.995    0.320    0.006    0.006
   .asr___2 (t_AR)    0.000    0.005    0.078    0.938    0.000    0.000
   .asr___2 (t_AG)   -0.001    0.007   -0.116    0.908   -0.001   -0.001
   .asr___4 (t_AX)   -0.006    0.004   -1.402    0.161   -0.006   -0.006
   .asr___4 (t_AW)    0.002    0.005    0.327    0.744    0.002    0.002
   .asr___4 (t_AS)   -0.003    0.005   -0.494    0.622   -0.003   -0.003
   .asr___4 (t_AP)   -0.001    0.005   -0.186    0.853   -0.001   -0.001
   .asr___4 (t_AH)   -0.001    0.005   -0.173    0.863   -0.001   -0.001
   .asr___4 (t_AA)    0.006    0.006    0.995    0.320    0.006    0.006
   .asr___4 (t_AR)    0.000    0.005    0.078    0.938    0.000    0.000
   .asr___4 (t_AG)   -0.001    0.007   -0.116    0.908   -0.001   -0.001
   .a_i               0.009    0.011    0.834    0.404    0.012    0.012
   .a_s              -0.015    0.005   -2.888    0.004   -0.061   -0.061
   .a_etaB            0.000                               0.000    0.000
   .a_eta2            0.000                               0.000    0.000
   .a_eta4            0.000                               0.000    0.000
   .flnkr_0 (ta_S)    0.095    0.005   18.023    0.000    0.095    0.103
   .flnkr_2 (ta_S)    0.095    0.005   18.023    0.000    0.095    0.118
   .flnkr_4 (ta_S)    0.095    0.005   18.023    0.000    0.095    0.119
   .flnkr_6 (ta_S)    0.095    0.005   18.023    0.000    0.095    0.116
   .pttrn_0 (ta_R)    0.110    0.005   21.754    0.000    0.110    0.145
   .pttrn_2 (ta_R)    0.110    0.005   21.754    0.000    0.110    0.143
   .pttrn_4 (ta_R)    0.110    0.005   21.754    0.000    0.110    0.134
   .pttrn_6 (ta_R)    0.110    0.005   21.754    0.000    0.110    0.129
   .pictr_0 (ta_M)    0.049    0.006    7.565    0.000    0.049    0.058
   .pictr_2 (ta_M)    0.049    0.006    7.565    0.000    0.049    0.055
   .pictr_4 (ta_M)    0.049    0.006    7.565    0.000    0.049    0.046
   .pictr_6 (ta_M)    0.049    0.006    7.565    0.000    0.049    0.046
   .pcvcb_0 (ta_P)    0.043    0.006    7.785    0.000    0.043    0.051
   .pcvcb_2 (ta_P)    0.043    0.006    7.785    0.000    0.043    0.049
   .pcvcb_4 (ta_P)    0.043    0.006    7.785    0.000    0.043    0.046
   .pcvcb_6 (ta_P)    0.043    0.006    7.785    0.000    0.043    0.046
   .redng_0 (ta_V)    0.053    0.005    9.893    0.000    0.053    0.062
   .redng_2 (ta_V)    0.053    0.005    9.893    0.000    0.053    0.063
   .redng_4 (ta_V)    0.053    0.005    9.893    0.000    0.053    0.058
   .redng_6 (ta_V)    0.053    0.005    9.893    0.000    0.053    0.055
   .g_i              -0.626    0.008  -77.277    0.000   -1.616   -1.616
   .g_s               0.470    0.004  115.299    0.000    9.127    9.127
   .g_etaB            0.000                               0.000    0.000
   .g_eta2            0.000                               0.000    0.000
   .g_eta4            0.000                               0.000    0.000
   .g_eta6            0.000                               0.000    0.000
   .p___001 (t_PS)    0.052    0.004   14.261    0.000    0.052    0.046
   .p___001 (t_PS)    0.052    0.004   14.261    0.000    0.052    0.050
   .p___001 (t_PS)    0.052    0.004   14.261    0.000    0.052    0.056
   .p___001 (t_PS)    0.052    0.004   14.261    0.000    0.052    0.061
   .p___001 (t_PS)    0.052    0.004   14.261    0.000    0.052    0.069
   .p___001 (t_PS)    0.052    0.004   14.261    0.000    0.052    0.074
   .p___001 (t_PS)    0.052    0.004   14.261    0.000    0.052    0.077
   .p___002 (t_PR)    0.107    0.002   46.481    0.000    0.107    0.132
   .p___002 (t_PR)    0.107    0.002   46.481    0.000    0.107    0.125
   .p___002 (t_PR)    0.107    0.002   46.481    0.000    0.107    0.126
   .p___002 (t_PR)    0.107    0.002   46.481    0.000    0.107    0.134
   .p___002 (t_PR)    0.107    0.002   46.481    0.000    0.107    0.149
   .p___002 (t_PR)    0.107    0.002   46.481    0.000    0.107    0.170
   .p___002 (t_PR)    0.107    0.002   46.481    0.000    0.107    0.193
   .p___003 (t_PM)    0.097    0.003   37.045    0.000    0.097    0.122
   .p___003 (t_PM)    0.097    0.003   37.045    0.000    0.097    0.110
   .p___003 (t_PM)    0.097    0.003   37.045    0.000    0.097    0.108
   .p___003 (t_PM)    0.097    0.003   37.045    0.000    0.097    0.112
   .p___003 (t_PM)    0.097    0.003   37.045    0.000    0.097    0.121
   .p___003 (t_PM)    0.097    0.003   37.045    0.000    0.097    0.135
   .p___003 (t_PM)    0.097    0.003   37.045    0.000    0.097    0.146
   .pu_i             -0.587    0.008  -77.244    0.000   -1.367   -1.367
   .pu_s              0.713    0.009   78.111    0.000    1.789    1.789
   .pu_q             -0.076    0.003  -28.546    0.000   -0.640   -0.640
   .pu_etaB           0.000                               0.000    0.000
   .pu_eta1           0.000                               0.000    0.000
   .pu_eta2           0.000                               0.000    0.000
   .pu_eta3           0.000                               0.000    0.000
   .pu_eta4           0.000                               0.000    0.000
   .pu_eta5           0.000                               0.000    0.000
   .pu_eta6           0.000                               0.000    0.000
   .p_i              -0.057    0.021   -2.649    0.008   -0.071   -0.071
   .p_s               0.293    0.292    1.004    0.315    0.476    0.476
   .p_q              -0.138    0.108   -1.284    0.199   -0.754   -0.754
   .Int_c_0           0.000                               0.000    0.000
   .Int_c_1           0.000                               0.000    0.000
   .Int_c_2           0.000                               0.000    0.000
   .Int_c_3           0.000                               0.000    0.000
   .Int_c_4           0.000                               0.000    0.000
   .Int_c_5           0.000                               0.000    0.000
   .Int_c_6           0.000                               0.000    0.000

Variances:
                   Estimate  Std.Err  z-value  P(>|z|)   Std.lv  Std.all
   .a_etaB            0.108    0.006   16.926    0.000    0.148    0.148
   .a_eta2            0.184    0.005   39.154    0.000    0.261    0.261
   .a_eta4            0.104    0.007   14.200    0.000    0.159    0.159
   .asr_nxdp_cmp_0    0.294    0.006   51.194    0.000    0.294    0.288
   .asr_wthdp_cm_0    0.479    0.008   62.300    0.000    0.479    0.457
   .asr_soma_cmp_0    0.538    0.008   65.698    0.000    0.538    0.538
   .asr_thprb_cm_0    0.481    0.007   65.769    0.000    0.481    0.443
   .asr_ttprb_cm_0    0.410    0.006   64.471    0.000    0.410    0.413
   .asr_rlbrk_cm_0    0.671    0.010   70.150    0.000    0.671    0.614
   .asr_ggrss_cm_0    0.459    0.007   65.211    0.000    0.459    0.436
   .asr_intr_cmp_0    0.904    0.012   75.005    0.000    0.904    0.846
   .asr_nxdp_cmp_2    0.322    0.006   51.800    0.000    0.322    0.314
   .asr_wthdp_cm_2    0.475    0.008   60.560    0.000    0.475    0.461
   .asr_soma_cmp_2    0.549    0.009   64.030    0.000    0.549    0.550
   .asr_thprb_cm_2    0.419    0.007   62.289    0.000    0.419    0.416
   .asr_ttprb_cm_2    0.383    0.006   61.440    0.000    0.383    0.403
   .asr_rlbrk_cm_2    0.612    0.009   67.053    0.000    0.612    0.599
   .asr_ggrss_cm_2    0.445    0.007   62.974    0.000    0.445    0.435
   .asr_intr_cmp_2    0.827    0.011   72.172    0.000    0.827    0.838
   .asr_nxdp_cmp_4    0.333    0.007   49.267    0.000    0.333    0.337
   .asr_wthdp_cm_4    0.452    0.008   56.612    0.000    0.452    0.467
   .asr_soma_cmp_4    0.543    0.009   59.872    0.000    0.543    0.565
   .asr_thprb_cm_4    0.393    0.007   57.783    0.000    0.393    0.418
   .asr_ttprb_cm_4    0.419    0.007   58.844    0.000    0.419    0.443
   .asr_rlbrk_cm_4    0.571    0.009   62.337    0.000    0.571    0.600
   .asr_ggrss_cm_4    0.428    0.007   58.938    0.000    0.428    0.444
   .asr_intr_cmp_4    0.813    0.012   67.937    0.000    0.813    0.846
   .a_i               0.617    0.012   49.401    0.000    1.000    1.000
   .a_s               0.063    0.003   19.555    0.000    0.999    0.999
   .g_etaB            0.012    0.002    5.350    0.000    0.075    0.075
   .g_eta2            0.008    0.002    5.215    0.000    0.048    0.048
   .g_eta4            0.017    0.002    8.206    0.000    0.088    0.088
   .g_eta6            0.045    0.004   11.357    0.000    0.184    0.184
   .flanker_0         0.686    0.010   68.062    0.000    0.686    0.809
   .flanker_2         0.467    0.009   54.451    0.000    0.467    0.734
   .flanker_4         0.436    0.009   49.481    0.000    0.436    0.691
   .flanker_6         0.418    0.011   38.715    0.000    0.418    0.631
   .pattern_0         0.336    0.006   52.198    0.000    0.336    0.581
   .pattern_2         0.338    0.008   44.902    0.000    0.338    0.572
   .pattern_4         0.385    0.009   42.610    0.000    0.385    0.570
   .pattern_6         0.366    0.011   32.821    0.000    0.366    0.502
   .picture_0         0.653    0.009   73.392    0.000    0.653    0.918
   .picture_2         0.734    0.011   69.177    0.000    0.734    0.924
   .picture_4         1.056    0.016   66.200    0.000    1.056    0.938
   .picture_6         1.036    0.022   47.854    0.000    1.036    0.922
   .picvocab_0        0.562    0.008   68.940    0.000    0.562    0.800
   .picvocab_2        0.619    0.009   66.209    0.000    0.619    0.809
   .picvocab_4        0.687    0.011   63.040    0.000    0.687    0.803
   .picvocab_6        0.662    0.013   49.269    0.000    0.662    0.758
   .reading_0         0.576    0.008   68.329    0.000    0.576    0.786
   .reading_2         0.550    0.008   64.906    0.000    0.550    0.771
   .reading_4         0.665    0.011   61.999    0.000    0.665    0.780
   .reading_6         0.705    0.015   47.904    0.000    0.705    0.750
   .g_i               0.150    0.004   35.905    0.000    0.997    0.997
   .g_s               0.003    0.001    4.107    0.000    0.999    0.999
   .pu_etaB           0.010    0.003    3.104    0.002    0.051    0.051
   .pu_eta1           0.053    0.002   23.505    0.000    0.229    0.229
   .pu_eta2           0.052    0.002   24.059    0.000    0.211    0.211
   .pu_eta3           0.048    0.002   23.738    0.000    0.195    0.195
   .pu_eta4           0.041    0.002   23.056    0.000    0.190    0.190
   .pu_eta5           0.027    0.002   17.745    0.000    0.165    0.165
   .pu_eta6           0.011    0.003    4.389    0.000    0.092    0.092
   .ph_p_pds_001_0    1.050    0.015   70.005    0.000    1.050    0.844
   .ph_p_pds_002_0    0.307    0.007   47.224    0.000    0.307    0.467
   .ph_p_pds_003_0    0.328    0.006   52.748    0.000    0.328    0.518
   .ph_p_pds_001_1    0.819    0.012   68.705    0.000    0.819    0.779
   .ph_p_pds_002_1    0.312    0.007   43.973    0.000    0.312    0.426
   .ph_p_pds_003_1    0.413    0.007   55.241    0.000    0.413    0.531
   .ph_p_pds_001_2    0.616    0.009   66.086    0.000    0.616    0.714
   .ph_p_pds_002_2    0.274    0.007   41.974    0.000    0.274    0.381
   .ph_p_pds_003_2    0.422    0.007   57.171    0.000    0.422    0.522
   .ph_p_pds_001_3    0.468    0.007   62.957    0.000    0.468    0.656
   .ph_p_pds_002_3    0.198    0.005   36.734    0.000    0.198    0.309
   .ph_p_pds_003_3    0.372    0.007   56.098    0.000    0.372    0.492
   .ph_p_pds_001_4    0.353    0.006   60.961    0.000    0.353    0.622
   .ph_p_pds_002_4    0.131    0.004   31.739    0.000    0.131    0.253
   .ph_p_pds_003_4    0.305    0.006   53.522    0.000    0.305    0.475
   .ph_p_pds_001_5    0.326    0.006   58.978    0.000    0.326    0.668
   .ph_p_pds_002_5    0.103    0.003   30.031    0.000    0.103    0.261
   .ph_p_pds_003_5    0.266    0.005   52.864    0.000    0.266    0.512
   .ph_p_pds_001_6    0.330    0.007   44.745    0.000    0.330    0.730
   .ph_p_pds_002_6    0.087    0.004   22.010    0.000    0.087    0.284
   .ph_p_pds_003_6    0.249    0.006   41.029    0.000    0.249    0.565
   .pu_i              0.166    0.005   35.443    0.000    0.899    0.899
   .pu_s              0.147    0.007   22.471    0.000    0.924    0.924
   .pu_q              0.013    0.001   21.338    0.000    0.933    0.933
   .p_i               0.365    0.009   39.476    0.000    0.567    0.567
   .p_s               0.231    0.017   13.509    0.000    0.608    0.608
   .p_q               0.026    0.002   14.452    0.000    0.773    0.773
   .Int_comp_0        0.180    0.007   26.103    0.000    0.180    0.218
   .Int_comp_1        0.280    0.005   58.332    0.000    0.280    0.315
   .Int_comp_2        0.287    0.005   56.509    0.000    0.287    0.302
   .Int_comp_3        0.306    0.006   53.809    0.000    0.306    0.293
   .Int_comp_4        0.320    0.006   52.471    0.000    0.320    0.285
   .Int_comp_5        0.366    0.008   47.024    0.000    0.366    0.292
   .Int_comp_6        0.247    0.013   18.814    0.000    0.247    0.187

R-Square:
                   Estimate
    a_etaB            0.852
    a_eta2            0.739
    a_eta4            0.841
    asr_nxdp_cmp_0    0.712
    asr_wthdp_cm_0    0.543
    asr_soma_cmp_0    0.462
    asr_thprb_cm_0    0.557
    asr_ttprb_cm_0    0.587
    asr_rlbrk_cm_0    0.386
    asr_ggrss_cm_0    0.564
    asr_intr_cmp_0    0.154
    asr_nxdp_cmp_2    0.686
    asr_wthdp_cm_2    0.539
    asr_soma_cmp_2    0.450
    asr_thprb_cm_2    0.584
    asr_ttprb_cm_2    0.597
    asr_rlbrk_cm_2    0.401
    asr_ggrss_cm_2    0.565
    asr_intr_cmp_2    0.162
    asr_nxdp_cmp_4    0.663
    asr_wthdp_cm_4    0.533
    asr_soma_cmp_4    0.435
    asr_thprb_cm_4    0.582
    asr_ttprb_cm_4    0.557
    asr_rlbrk_cm_4    0.400
    asr_ggrss_cm_4    0.556
    asr_intr_cmp_4    0.154
    a_i               0.000
    a_s               0.001
    g_etaB            0.925
    g_eta2            0.952
    g_eta4            0.912
    g_eta6            0.816
    flanker_0         0.191
    flanker_2         0.266
    flanker_4         0.309
    flanker_6         0.369
    pattern_0         0.419
    pattern_2         0.428
    pattern_4         0.430
    pattern_6         0.498
    picture_0         0.082
    picture_2         0.076
    picture_4         0.062
    picture_6         0.078
    picvocab_0        0.200
    picvocab_2        0.191
    picvocab_4        0.197
    picvocab_6        0.242
    reading_0         0.214
    reading_2         0.229
    reading_4         0.220
    reading_6         0.250
    g_i               0.003
    g_s               0.001
    pu_etaB           0.949
    pu_eta1           0.771
    pu_eta2           0.789
    pu_eta3           0.805
    pu_eta4           0.810
    pu_eta5           0.835
    pu_eta6           0.908
    ph_p_pds_001_0    0.156
    ph_p_pds_002_0    0.533
    ph_p_pds_003_0    0.482
    ph_p_pds_001_1    0.221
    ph_p_pds_002_1    0.574
    ph_p_pds_003_1    0.469
    ph_p_pds_001_2    0.286
    ph_p_pds_002_2    0.619
    ph_p_pds_003_2    0.478
    ph_p_pds_001_3    0.344
    ph_p_pds_002_3    0.691
    ph_p_pds_003_3    0.508
    ph_p_pds_001_4    0.378
    ph_p_pds_002_4    0.747
    ph_p_pds_003_4    0.525
    ph_p_pds_001_5    0.332
    ph_p_pds_002_5    0.739
    ph_p_pds_003_5    0.488
    ph_p_pds_001_6    0.270
    ph_p_pds_002_6    0.716
    ph_p_pds_003_6    0.435
    pu_i              0.101
    pu_s              0.076
    pu_q              0.067
    p_i               0.433
    p_s               0.392
    p_q               0.227
    Int_comp_0        0.782
    Int_comp_1        0.685
    Int_comp_2        0.698
    Int_comp_3        0.707
    Int_comp_4        0.715
    Int_comp_5        0.708
    Int_comp_6        0.813

Result summary

Model fit indices

lapply(
  c(
    "pgcm_pga_pu6_sex_result.rds",
    "pgcm_Ext_pga_pu6_sex_result.rds",
    "pgcm_Int_pga_pu6_sex_result.rds"
  ),
  function(f) {
    readRDS(f)$fit[c(
      # "chisq", "df", "pvalue",
      "cfi.robust", "tli.robust",
      "rmsea.robust", "rmsea.ci.lower.robust",
      "rmsea.ci.upper.robust", "srmr"
    )]
  }
) %>%
  do.call(rbind, .) %>%
  round(3) %>%
  data.frame(model = c("pc", "Ext", "Int"), ., row.names = NULL) %>%
  knitr::kable()
model cfi.robust tli.robust rmsea.robust rmsea.ci.lower.robust rmsea.ci.upper.robust srmr
pc 0.949 0.945 0.027 0.027 0.027 0.054
Ext 0.947 0.943 0.032 0.031 0.032 0.052
Int 0.945 0.940 0.032 0.032 0.033 0.052

Result

pu_model_list <- c(
  "pgcm_pga_pu6_sex_model.rds",
  "pgcm_Ext_pga_pu6_sex_model.rds",
  "pgcm_Int_pga_pu6_sex_model.rds"
)

# combine all significant results

final.pga.pu.sex.result <- data.frame()

for (a in 1:3) {
  final.pga.pu.sex.result <- final.pga.pu.sex.result %>%
    rbind(
      readRDS(paste0(pu_model_list[a])) %>%
        standardizedSolution() %>%
        filter(op == "~") %>%
        filter(rhs != "dummy_sex") %>%
        mutate(label = str_sub(pu_model_list[a], 6, 8))
    )
}

final.pga.pu.sex.result %>%
  mutate(sig = case_when(
    pvalue < .001 ~ "***",
    pvalue < .01 ~ "**",
    pvalue < .05 ~ "*",
    pvalue >= .05 ~ ""
  )) %>%
  mutate(
    std.lv = round(est.std, 3),
    effsize = paste0(std.lv, " [", round(ci.lower, 3), ",", round(ci.upper, 3), "]")
  ) %>%
  select(lhs, op, rhs, label, effsize) %>%
  pivot_wider(
    names_from = label,
    values_from = effsize
  ) %>%
  select(lhs, op, rhs, Int, Ext, pga) %>%
  arrange(desc(rhs)) %>%
  knitr::kable()
lhs op rhs Int Ext pga
p_s ~ pu_s 0.029 [-0.151,0.209] 0.172 [-0.017,0.36] 0.045 [-0.139,0.229]
p_q ~ pu_s 0.146 [-0.068,0.359] -0.115 [-0.332,0.103] 0.061 [-0.155,0.276]
p_s ~ pu_q -0.015 [-0.201,0.171] 0.122 [-0.073,0.318] 0.038 [-0.153,0.228]
p_q ~ pu_q 0.171 [-0.049,0.391] -0.052 [-0.277,0.172] 0.065 [-0.157,0.287]
p_i ~ pu_i 0.025 [0.002,0.047] 0.045 [0.023,0.068] 0.029 [0.007,0.051]
p_s ~ pu_i 0.028 [-0.044,0.101] 0.031 [-0.044,0.107] -0.029 [-0.103,0.045]
p_q ~ pu_i 0.011 [-0.075,0.097] -0.042 [-0.129,0.045] 0.043 [-0.043,0.13]
p_s ~ g_s -0.019 [-0.114,0.076] -0.217 [-0.344,-0.09] -0.109 [-0.206,-0.012]
p_q ~ g_s 0.051 [-0.065,0.167] 0.172 [0.035,0.31] 0.104 [-0.01,0.219]
p_i ~ g_i -0.011 [-0.033,0.01] -0.14 [-0.161,-0.118] -0.147 [-0.168,-0.126]
p_s ~ g_i 0.078 [0.031,0.125] 0.109 [0.032,0.186] 0.079 [0.028,0.129]
p_q ~ g_i -0.094 [-0.151,-0.036] -0.091 [-0.167,-0.014] -0.056 [-0.114,0.002]
p_s ~ a_s 0.648 [0.596,0.701] 0.625 [0.569,0.68] 0.761 [0.704,0.817]
p_q ~ a_s -0.489 [-0.548,-0.429] -0.523 [-0.585,-0.462] -0.65 [-0.713,-0.588]
p_i ~ a_i 0.657 [0.641,0.673] 0.553 [0.536,0.57] 0.691 [0.676,0.706]
p_s ~ a_i 0.113 [0.073,0.152] 0.004 [-0.036,0.045] 0.029 [-0.013,0.071]
p_q ~ a_i -0.077 [-0.121,-0.034] -0.062 [-0.106,-0.018] -0.116 [-0.161,-0.07]

Visualization

p, int, ext with pu result plots

ggpubr::annotate_figure(
  ggpubr::annotate_figure(
    ggpubr::ggarrange(
      simple_slope_lgc(readRDS("pgcm_pga_pu6_sex_model.rds"), "g_i") +
        labs(color = "Decile\nof EV") +
        coord_cartesian(ylim = c(-0.25, 0.25)),
      simple_slope_lgc(readRDS("pgcm_pga_pu6_sex_model.rds"), "g_s") +
        coord_cartesian(ylim = c(-0.25, 0.25)),
      simple_slope_lgc(readRDS("pgcm_pga_pu6_sex_model.rds"), "a_i") +
        coord_cartesian(ylim = c(-0.7, .7)),
      simple_slope_lgc(readRDS("pgcm_pga_pu6_sex_model.rds"), "a_s") +
        coord_cartesian(ylim = c(-0.7, .7)),
      simple_slope_lgc(readRDS("pgcm_Int_pga_pu6_sex_model.rds"), "g_i") +
        coord_cartesian(ylim = c(-0.25, 0.25)),
      simple_slope_lgc(readRDS("pgcm_Int_pga_pu6_sex_model.rds"), "g_s") +
        coord_cartesian(ylim = c(-0.25, 0.25)),
      simple_slope_lgc(readRDS("pgcm_Int_pga_pu6_sex_model.rds"), "a_i") +
        coord_cartesian(ylim = c(-0.7, .7)),
      simple_slope_lgc(readRDS("pgcm_Int_pga_pu6_sex_model.rds"), "a_s") +
        coord_cartesian(ylim = c(-0.7, .7)),
      simple_slope_lgc(readRDS("pgcm_Ext_pga_pu6_sex_model.rds"), "g_i") +
        coord_cartesian(ylim = c(-0.25, 0.25)),
      simple_slope_lgc(readRDS("pgcm_Ext_pga_pu6_sex_model.rds"), "g_s") +
        coord_cartesian(ylim = c(-0.25, 0.25)),
      simple_slope_lgc(readRDS("pgcm_Ext_pga_pu6_sex_model.rds"), "a_i") +
        coord_cartesian(ylim = c(-0.7, .7)),
      simple_slope_lgc(readRDS("pgcm_Ext_pga_pu6_sex_model.rds"), "a_s") +
        coord_cartesian(ylim = c(-0.7, .7)),
      common.legend = TRUE,
      legend = "right",
      ncol = 4,
      nrow = 3
    ),
    top = ggpubr::text_grob("g intercept                            g slope                             pp intercept                         pp slope", hjust = .54, size = 10),
    bottom = ggpubr::text_grob("Age (Years Old)", size = 10),
    left = ggpubr::text_grob("Externalizing                Internalizing                    p factor", size = 10, rot = 90)
  ),
  top = ggpubr::text_grob("Explanatory Variables (EV)", face = "bold", size = 10),
  left = ggpubr::text_grob("Response Variables (RV)", face = "bold", size = 10, rot = 90)
)

Result comparison from both models with and wthout puberty

p, int, ext result table

bind_rows(
  standardizedSolution(readRDS("pgcm_pga6_sex_model.rds")) %>%
    filter(op == "~" & rhs != "dummy_sex") %>%
    mutate(
      op = lhs,
      label = "pga"
    ),
  standardizedSolution(readRDS("pgcm_Int_pga6_sex_model.rds")) %>%
    filter(op == "~" & rhs != "dummy_sex") %>%
    mutate(
      op = str_replace(lhs, "p_", "Int_"),
      label = "pga"
    ),
  standardizedSolution(readRDS("pgcm_Ext_pga6_sex_model.rds")) %>%
    filter(op == "~" & rhs != "dummy_sex") %>%
    mutate(
      op = str_replace(lhs, "p_", "Ext_"),
      label = "pga"
    ),
  standardizedSolution(readRDS("pgcm_pga_pu6_sex_model.rds")) %>%
    filter(op == "~" & rhs != "dummy_sex" & !str_detect(rhs, "pu_")) %>%
    mutate(
      op = lhs,
      label = "pga_pu"
    ),
  standardizedSolution(readRDS("pgcm_Int_pga_pu6_sex_model.rds")) %>%
    filter(op == "~" & rhs != "dummy_sex" & !str_detect(rhs, "pu_")) %>%
    mutate(
      op = str_replace(lhs, "p_", "Int_"),
      label = "pga_pu"
    ),
  standardizedSolution(readRDS("pgcm_Ext_pga_pu6_sex_model.rds")) %>%
    filter(op == "~" & rhs != "dummy_sex" & !str_detect(rhs, "pu_")) %>%
    mutate(
      op = str_replace(lhs, "p_", "Ext_"),
      label = "pga_pu"
    )
) %>%
  select(label, op, rhs, est.std, ci.lower, ci.upper) %>%
  mutate(No = row_number()) %>%
  saveRDS("result_sum_table.rds")
readRDS("result_sum_table.rds") %>%
  DT::datatable(options = list(pageLength = 10, scrollY = "450px", scrollX = TRUE))

result comparison plots

readRDS("result_sum_table.rds") %>%
  mutate(
    path = paste(rhs, "→", str_sub(op, -1)), # readable path
    response = str_extract(op, "^[A-Za-z]+") %>%
      recode(
        "Int" = "Internalizing",
        "Ext" = "Externalizing",
        "p" = "general~italic(p)~factor"
      )
  ) %>%
  ggplot(aes(
    x = est.std,
    y = reorder(path, -No),
    color = label
  )) +
  geom_point(position = position_dodge(width = 0.6), size = 1.5) +
  geom_errorbarh(
    aes(xmin = ci.lower, xmax = ci.upper),
    position = position_dodge(width = 0.6),
    height = 0.4,
    linewidth = 1
  ) +
  geom_vline(xintercept = 0, linetype = "dashed", color = "gray40") +
  facet_wrap(~response, labeller = label_parsed) +
  labs(
    x = "Standardized Estimate with 95% CI",
    y = "Path",
    color = "Model"
  ) +
  scale_x_continuous(labels = signs::signs_format(trim_leading_zeros = TRUE)) +
  scale_color_discrete(
    labels = c(
      "pga"     = "with puberty",
      "pga_pu"  = "w/o puberty"
    )
  ) +
  theme_minimal(base_size = 17) +
  theme(
    panel.grid.major.y = element_blank(),
    panel.grid.minor.y = element_blank(),
    strip.text = element_text(face = "bold")
  )

# No noticeable differences were observed between the main and additional analyses.