NEWS.md

scaledic 0.3.1

scaledic 0.3.0

New function

> dat_dic <- apply_dic(ex_scaledic_data, ex_scaledic_dic)
> table(factor_by_label(dat_dic$rel_1), dat_dic$gender)

                      m f d
  Never               0 1 1
  Once a year or less 1 2 1
  A few times a year  1 1 3
  A few times a month 0 2 0
  Once a week         1 1 0
  More than once/week 4 1 0

scaledic 0.2.5

New functions

normtable <- data.frame(
  age = rep(c(6, 8, 6, 8), each = 11),
  gender = rep(c("m", "w"), each = 22),
  raw =  rep(0:10, 4),
  T = rep(c(40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 
            37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57), 2) + rep(c(0,5), each = 22)
)

rawscores <- c(5,5,3,1)
group_age <- c("6", "8", "6", "8")
group_gender <- c("m", "m", "w", "w")

lookup_norms(rawscores, group = list(age = group_age, gender = group_gender), normtable)

## When group values are not specified exactly, raw scores can be ambiguous:
lookup_norms(rawscores, group = list(gender = group_gender), normtable = normtable)

lookup_norms(rawscores, normtable = normtable)
# providing individual logical expressions
scales <- get_scales(ex_itrf,
  'APD' = subscale_2 == "APD",
  'OPP' = subscale_2 == "OPP",
  "SW" = subscale_2 == "SW",
  "AD" = subscale_2 == "AD"
)

# providing a name of a dic attribute
scales <- get_scales(ex_itrf, subscale_2)

# are identical to:

scales <- list(
  'APD' = select_items(ex_itrf, subscale_2 == "APD", names_only = TRUE),
  'OPP' = select_items(ex_itrf, subscale_2 == "OPP", names_only = TRUE),
  "SW" = select_items(ex_itrf, subscale_2 == "SW", names_only = TRUE),
  "AD" = select_items(ex_itrf, subscale_2 == "AD", names_only = TRUE)
)
ex_itrf %>% 
  select_items(subscale == "Int") %>% 
  get_dic_attribute("item_label")

Reworked

ex_itrf %>% select(1:5) %>%
  rename_item("{reverse}{item_name}: {item_label}")

scaledic 0.1.27

Bugs: - haven_dic(): labels with length > 0 are not set (a warning is thrown).

Changes: - apply_dic(): replaces linebreaks in value_labels with ";"

scaledic 0.1.20

New functions: - set_label(): Sets dic information. Will replace set_dic.

Changes: - apply_dic(): new attribute coerce_class. When type of dic is numeric it checks if class of variable is numeric too. If not, it throws a message and coerces type to numeric. When coerce_class = FALSE, check is applied but no coercion. - dictionary file: New variable "active". When a column "active" exists, all tows with active != 1 are dropped. - exploratory_fa(): explained variance added to output

scaledic 0.1.16 (2020-01-12)

scaledic 0.1.15 (2020-12-12)

scaledic 0.1.12 (2020-09-22)

scaledic 0.1.11 (2020-09-22)

scaledic 0.1.10 (2020-06-26)

scaledic 0.1.9 (2020-04-16)

scaledic 0.1.8.2 (2020-04-07)

scaledic 0.1.8.0 (2020-03-25)

scaledic 0.1.7.10

scaledic 0.1.7.9

scaledic 0.1.7.8

scaledic 0.1.7.7

scaledic 0.1.7.6

scaledic 0.1.7

scaledic 0.1.6



jazznbass/scaledic documentation built on July 19, 2023, 12:50 a.m.