Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
^\.Ruserdata$
^Makefile$
^CITATION\.cff$
^\.codespellrc$
3 changes: 3 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[codespell]
builtin = clear,rare,en-GB_to_en-US
skip = *.pdf,*.png,*.jpg,*.jpeg,*.gif,*.csv,*.tsv,*.json,*.geojson,*.graphml,*.ipynb,*.html,*.svg,*.bib,*.bbl,*.lock,*.parquet,*.rda,*.rds,*.RData,*.dta,*.xlsx,*.xml,*.min.js,*.map,*.log,*.aux,./inst/WORDLIST
2 changes: 1 addition & 1 deletion .github/workflows/statistical-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:

jobs:
monte-carlo:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-citation-cff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ permissions:

jobs:
update-citation-cff:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand Down
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ is 0.3.0, so 0.4.0, 0.5.x and 0.6.0 are all superseded here.
`dk` (don't know -> know) take their place. The order is now `gg, gk, gd, kk, dg, dk,
dd, gamma`. Code that indexes DK parameters by name or position must be updated.
Learning is `gk + dk` -- those who learned the item from guessing, plus those who
learned it from confessed ignorance. It was `gk + kd`, which the vignette rationalised
learned it from confessed ignorance. It was `gk + kd`, which the vignette rationalized
as "true learning plus those who learned but lost confidence".

* **`simulate_lca_dk()` gains `dg` and `dk` arguments and loses `kg` and `kd`.** The
Expand Down Expand Up @@ -211,7 +211,7 @@ restriction `x1d/x0d = x10/x00`.
the correct ones. `fit_nodk()` and `fit_dk()` remain exported and unchanged in
behavior.

* **The optimiser no longer prints its iteration trace.** `solnp()` is called with
* **The optimizer no longer prints its iteration trace.** `solnp()` is called with
`control = list(trace = 0)`, so `lca_fit()` and `lca_se()` are silent. A 100-resample
bootstrap previously emitted hundreds of lines, which is how a genuine warning gets
lost.
Expand Down
2 changes: 1 addition & 1 deletion R/stnd_cor.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' Estimate of learning adjusted with standard correction for guessing.
#' Correction is based on number of options per question.
#' The function takes separate pre-test and post-test dataframes. Why do we
#' need dataframes? To accomodate multiple items. The items can carry NA
#' need dataframes? To accommodate multiple items. The items can carry NA
#' (missing). Items must be in the same order in each dataframe. Assumes that
#' respondents are posed same questions twice.
#' The function also takes a \code{guessing_probability} vector --- the chance of getting a
Expand Down
2 changes: 1 addition & 1 deletion man/stnd_cor.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test-power.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#
# The design perturbs the class mix handed to the GOF statistic away from the
# parameters that generated the data, by a known amount, so "more wrong" is a
# number rather than a judgement.
# number rather than a judgment.
#
# Measured over 100 replicates at n=500, alpha=0.05:
#
Expand Down
2 changes: 1 addition & 1 deletion vignettes/using_guess.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ If you assume that the data are missing completely at random, you can simply ign
We now know a little bit about Don't Know. One generally strategy is to treat Don't Know responses as ignorance. But research suggests that on average there is approximately 3\% hidden knowledge behind Don't Know responses. See [DK Means DK](https://johnbullock.org/papers/DKs/DK.pdf) by Robert Luskin and John Bullock. Thus one can also choose to replace Don't Know responses with .03.

3. **Related Knowledge**
People either know a particular piece of information or they don't. On an open-ended question, they may struggle to remember it but those kinds of concerns don't apply to closed-ended questions where the task is simply to identify the correct answer. What does on occassion happen on closed-ended questions is that people have related cognitions. So for instance, asked to identify the prime minister of France, the respondents sometimes know that one of the options is the king of Sudan and may guess randomly between the remaining options. But that isn't the same as knowing the prime minister of France.
People either know a particular piece of information or they don't. On an open-ended question, they may struggle to remember it but those kinds of concerns don't apply to closed-ended questions where the task is simply to identify the correct answer. What does on occasion happen on closed-ended questions is that people have related cognitions. So for instance, asked to identify the prime minister of France, the respondents sometimes know that one of the options is the king of Sudan and may guess randomly between the remaining options. But that isn't the same as knowing the prime minister of France.

#### Standard Correction for Guessing

Expand Down
Loading