Skip to content

Commit

Permalink
final fix to data
Browse files Browse the repository at this point in the history
  • Loading branch information
osorensen committed Apr 5, 2024
1 parent 9aff4a8 commit 1a14d4b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions data-raw/lifespan.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ lifespan <- tibble(
eta = case_when(
domain == "epmem" ~ epmem_fun(age),
domain == "wmem" ~ wmem_fun(age),
domain == "execfun" ~ -execfun_fun(age),
domain == "execfun" ~ execfun_fun(age),
TRUE ~ NA_real_
) + zeta2 + zeta3,
test = case_when(
Expand All @@ -105,7 +105,10 @@ lifespan <- tibble(
),
item_bias = item_bias[test],
lambda = loadings[test],
nu = retest_effect + item_bias - eta * lambda
nu = case_when(
domain == "execfun" ~ retest_effect + item_bias - eta * lambda,
TRUE ~ retest_effect + item_bias + eta * lambda
)
) %>%
select(-zeta2, -zeta3, -eta, -retest_effect, -item_bias, -lambda) %>%
rowwise() %>%
Expand Down
Binary file modified data/lifespan.rda
Binary file not shown.
Empty file removed src/RcppExports-c3165af9.o.tmp
Empty file.

0 comments on commit 1a14d4b

Please sign in to comment.