Skip to content

Commit 73bdd0f

Browse files
committed
updated docs cleanly.
1 parent 390ab19 commit 73bdd0f

9 files changed

Lines changed: 75 additions & 40 deletions

File tree

.github/workflows/R-CMD-check.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches: [main, master]
66
pull_request:
7+
schedule:
8+
- cron: "0 6 * * 1"
9+
workflow_dispatch:
710

811
name: R-CMD-check
912

.github/workflows/pkgdown.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
types: [published]
99
workflow_dispatch:
1010

11-
name: pkgdown.yaml
11+
name: pkgdown
1212

1313
permissions: read-all
1414

@@ -42,6 +42,6 @@ jobs:
4242
if: github.event_name != 'pull_request'
4343
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0
4444
with:
45-
clean: false
45+
clean: true
4646
branch: gh-pages
4747
folder: docs

R/interdep-generated-columns.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,11 @@ generated_column_spec_lookup <- function() {
208208
"apim", "predictor", "cwp", "partner", "within_person", "none", "none", 13L, ".i_*_cwp_partner", "APIM within-person partner predictor: partner's momentary deviations from their usual level",
209209
"apim", "predictor", "cbp", "actor", "between_person_grand_mean", "none", "none", 14L, ".i_*_cbp_actor", "APIM between-person actor predictor: actor's stable difference from the average person's usual level",
210210
"apim", "predictor", "cbp", "partner", "between_person_grand_mean", "none", "none", 15L, ".i_*_cbp_partner", "APIM between-person partner predictor: partner's stable difference from the average person's usual level",
211-
"dim", "predictor", "raw", "dyad_mean", "none", "dyad_mean", "grand_mean", 20L, ".i_*_raw_dyad_mean_gmc", "DIM dyad-mean predictor: dyad's average predictor level, grand-mean centred",
211+
"dim", "predictor", "raw", "dyad_mean", "none", "dyad_mean", "grand_mean", 20L, ".i_*_raw_dyad_mean_gmc", "DIM dyad-mean predictor: dyad's average predictor level, grand-mean centered",
212212
"dim", "predictor", "raw", "within_dyad_deviation", "none", "within_dyad_deviation", "none", 21L, ".i_*_raw_within_dyad_deviation", "DIM within-dyad predictor deviation: person's difference from the dyad average",
213213
"dim", "predictor", "cwp", "dyad_mean", "within_person", "dyad_mean", "none", 22L, ".i_*_cwp_dyad_mean", "DIM within-person dyad-mean predictor: shared momentary deviations in the dyad",
214214
"dim", "predictor", "cwp", "within_dyad_deviation", "within_person", "within_dyad_deviation", "none", 23L, ".i_*_cwp_within_dyad_deviation", "DIM within-person within-dyad predictor deviation: person's momentary deviation from the dyad average",
215-
"dim", "predictor", "cbp", "dyad_mean", "between_person_grand_mean", "dyad_mean", "none", 24L, ".i_*_cbp_dyad_mean", "DIM between-person dyad-mean predictor: dyad's stable usual level, grand-mean centred",
215+
"dim", "predictor", "cbp", "dyad_mean", "between_person_grand_mean", "dyad_mean", "none", 24L, ".i_*_cbp_dyad_mean", "DIM between-person dyad-mean predictor: dyad's stable usual level, grand-mean centered",
216216
"dim", "predictor", "cbp", "within_dyad_deviation", "between_person_grand_mean", "within_dyad_deviation", "none", 25L, ".i_*_cbp_within_dyad_deviation", "DIM between-person within-dyad predictor deviation: person's stable difference from the dyad's usual level",
217217
"undirected_dsm", "outcome", "raw", "dyad_mean", "none", "dyad_mean", "none", 30L, ".i_*_raw_dyad_mean", "DSM dyad-mean outcome: dyad's average outcome level",
218218
"undirected_dsm", "outcome", "raw", "within_dyad_deviation", "none", "within_dyad_deviation", "none", 31L, ".i_*_raw_within_dyad_deviation", "DSM within-dyad outcome deviation: person's difference from the dyad average"

README.Rmd

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ Start with the [Getting Started](https://pascal-kueng.github.io/interdep/article
3333
vignette for the main data-preparation workflow. The
3434
[documentation site](https://pascal-kueng.github.io/interdep/) also includes
3535
the [function reference](https://pascal-kueng.github.io/interdep/reference/index.html).
36-
The package documentation is organized around the main modeling tasks:
37-
38-
| Vignette | Focus |
39-
|---|---|
40-
| [Getting Started](https://pascal-kueng.github.io/interdep/articles/getting-started.html) | Data structure, validation, dyad compositions, generated columns, and basic preparation |
41-
| APIM | Cross-sectional APIM preparation for distinguishable, exchangeable, and mixed dyad types |
42-
| Intensive Longitudinal APIM | Temporal predictor decomposition and intensive longitudinal APIM preparation |
43-
| [Dyad-Individual Model](https://pascal-kueng.github.io/interdep/articles/Dyad-Individual-Model.html) | DIM predictor construction and APIM-DIM equivalence for exchangeable dyads |
44-
| Undirected Dyadic Score Model | Undirected DSM outcome and predictor construction |
36+
The documentation is being split around the main modeling tasks:
37+
38+
| Vignette | Status | Focus |
39+
|---|---|---|
40+
| [Getting Started](https://pascal-kueng.github.io/interdep/articles/getting-started.html) | available | Data structure, validation, dyad compositions, generated columns, and basic preparation |
41+
| APIM | planned | Cross-sectional APIM preparation for distinguishable, exchangeable, and mixed dyad types |
42+
| Intensive Longitudinal APIM | planned | Temporal predictor decomposition and intensive longitudinal APIM preparation |
43+
| [Dyad-Individual Model](https://pascal-kueng.github.io/interdep/articles/Dyad-Individual-Model.html) | available | DIM predictor construction and APIM-DIM equivalence for exchangeable dyads |
44+
| Undirected Dyadic Score Model | planned | Undirected DSM outcome and predictor construction |
4545

4646

4747
## Installation

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ vignette for the main data-preparation workflow. The [documentation
2424
site](https://pascal-kueng.github.io/interdep/) also includes the
2525
[function
2626
reference](https://pascal-kueng.github.io/interdep/reference/index.html).
27-
The package documentation is organized around the main modeling tasks:
28-
29-
| Vignette | Focus |
30-
|----|----|
31-
| [Getting Started](https://pascal-kueng.github.io/interdep/articles/getting-started.html) | Data structure, validation, dyad compositions, generated columns, and basic preparation |
32-
| APIM | Cross-sectional APIM preparation for distinguishable, exchangeable, and mixed dyad types |
33-
| Intensive Longitudinal APIM | Temporal predictor decomposition and intensive longitudinal APIM preparation |
34-
| [Dyad-Individual Model](https://pascal-kueng.github.io/interdep/articles/Dyad-Individual-Model.html) | DIM predictor construction and APIM-DIM equivalence for exchangeable dyads |
35-
| Undirected Dyadic Score Model | Undirected DSM outcome and predictor construction |
27+
The documentation is being split around the main modeling tasks:
28+
29+
| Vignette | Status | Focus |
30+
|----|----|----|
31+
| [Getting Started](https://pascal-kueng.github.io/interdep/articles/getting-started.html) | available | Data structure, validation, dyad compositions, generated columns, and basic preparation |
32+
| APIM | planned | Cross-sectional APIM preparation for distinguishable, exchangeable, and mixed dyad types |
33+
| Intensive Longitudinal APIM | planned | Temporal predictor decomposition and intensive longitudinal APIM preparation |
34+
| [Dyad-Individual Model](https://pascal-kueng.github.io/interdep/articles/Dyad-Individual-Model.html) | available | DIM predictor construction and APIM-DIM equivalence for exchangeable dyads |
35+
| Undirected Dyadic Score Model | planned | Undirected DSM outcome and predictor construction |
3636

3737
## Installation
3838

dev/roadmap.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,33 @@ helpers, and eventually model syntax explicit and reproducible.
1818
- Composition-inference debugging scratch code:
1919
[`debug-infer-compositions.R`](debug-infer-compositions.R)
2020

21+
## Current State
22+
23+
The package is currently in a public development state, not a CRAN-ready release
24+
state. The core data-preparation API is implemented and covered by tests, the
25+
README links to the pkgdown site, and GitHub Actions are configured for
26+
R CMD check and pkgdown publishing.
27+
28+
Recently completed cleanup:
29+
30+
- replaced the old combined-model wording with "mixed dyad types" or
31+
"mixed-composition" wording
32+
- renamed the mixed example datasets to:
33+
- `example_dyadic_crosssectional_mixed`
34+
- `example_dyadic_ILD_mixed`
35+
- `example_dyadic_ILD_mixed_tweedie`
36+
- kept `LICENSE` for R/CRAN's `MIT + file LICENSE` convention and
37+
`LICENSE.md` as the full human-readable MIT license
38+
- added GitHub Pages/pkgdown infrastructure and linked available vignettes from
39+
the README
40+
- kept generated `docs/` and `doc/` output ignored; pkgdown should rebuild the
41+
site through the GitHub Pages workflow
42+
43+
Immediate next step: cleanly split and polish the vignettes. The getting-started
44+
vignette should become shorter and more introductory; heavier APIM, ILD APIM,
45+
and DSM material should move into model-specific vignettes as those pages are
46+
created.
47+
2148
## Vignette Architecture
2249

2350
Keep the first-contact documentation short and stable. Heavy or
@@ -34,12 +61,12 @@ Target vignette structure:
3461
- missing structural data rules
3562
- compact examples of `predictors`, `model_type`, `temporal_predictor_decomposition`,
3663
print output, and metadata
37-
- links to model-specific vignettes
64+
- links to available model-specific vignettes
3865
- minimal or no fitted models
3966
- `apim.Rmd`
4067
- cross-sectional APIM model construction
4168
- distinguishable and exchangeable APIMs
42-
- multiple dyad types in one APIM
69+
- mixed dyad types in one APIM
4370
- `.i_is_*`, `.i_diff_*`, and raw actor/partner predictor columns
4471
- `intensive-longitudinal-apim.Rmd`
4572
- ILD APIMs with temporal predictor decomposition
@@ -153,7 +180,7 @@ model-building features.
153180
# from the dyad average
154181
# .i_*_cbp_dyad_mean DIM between-person dyad-mean predictor:
155182
# dyad's stable usual level, grand-mean
156-
# centred
183+
# centered
157184
# .i_*_cbp_within_dyad_deviation DIM between-person within-dyad predictor
158185
# deviation: person's stable difference from
159186
# the dyad's usual level
@@ -194,6 +221,10 @@ model-building features.
194221

195222
Complete these before calling the feature set CRAN-ready:
196223

224+
- Rebuild and inspect generated documentation
225+
- run `devtools::document()`
226+
- render `README.Rmd`
227+
- build pkgdown locally when changing vignette structure or `_pkgdown.yml`
197228
- Review `add_dyad_individual_columns.R` carefully
198229
- confirm direct grouped DIM construction is final
199230
- confirm missingness behavior for incomplete dyad components is documented
@@ -248,6 +279,7 @@ Complete these before calling the feature set CRAN-ready:
248279
- Run final release checks
249280
- `devtools::test(reporter = "summary")`
250281
- `devtools::check(args = "--no-manual", error_on = "never")`
282+
- inspect the pkgdown site after the GitHub Pages workflow completes
251283
- inspect README, vignette, examples, `inst/CITATION`, and package metadata
252284
for CRAN-facing clarity
253285

tests/testthat/test-interdep_generated_columns.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ test_that("interdep_generated_columns collects DIM columns", {
179179
print_order = c(20L, 21L),
180180
column_pattern = c(".i_*_raw_dyad_mean_gmc", ".i_*_raw_within_dyad_deviation"),
181181
description = c(
182-
"DIM dyad-mean predictor: dyad's average predictor level, grand-mean centred",
182+
"DIM dyad-mean predictor: dyad's average predictor level, grand-mean centered",
183183
"DIM within-dyad predictor deviation: person's difference from the dyad average"
184184
)
185185
)

tests/testthat/test-print_interdep_data.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ test_that("interdep data print describes cross-sectional DIM columns", {
288288
expect_added_column_description(
289289
printed,
290290
".i_*_raw_dyad_mean_gmc",
291-
"DIM dyad-mean predictor: dyad's average predictor level, grand-mean centred"
291+
"DIM dyad-mean predictor: dyad's average predictor level, grand-mean centered"
292292
)
293293
expect_true(any(grepl(".i_*_raw_within_dyad_deviation", printed, fixed = TRUE)))
294294
expect_added_column_description(
@@ -334,7 +334,7 @@ test_that("interdep data print describes longitudinal DIM columns", {
334334
expect_added_column_description(
335335
printed,
336336
".i_*_cbp_dyad_mean",
337-
"DIM between-person dyad-mean predictor: dyad's stable usual level, grand-mean centred"
337+
"DIM between-person dyad-mean predictor: dyad's stable usual level, grand-mean centered"
338338
)
339339
expect_true(any(grepl(".i_*_cbp_within_dyad_deviation", printed, fixed = TRUE)))
340340
expect_added_column_description(

vignettes/getting-started.Rmd

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ The generated `.i_*` columns can be used directly in model formulas.
141141

142142
### Distinguishable Gaussian APIM
143143

144-
```{r fit-cross-distinguishable-gaussian, eval = has_glmmTMB}
144+
```{r fit-cross-distinguishable-gaussian, eval = FALSE}
145145
library(glmmTMB)
146146
147147
cross_distinguishable_model <- glmmTMB(
@@ -190,7 +190,7 @@ summary(cross_exchangeable_data)
190190
```
191191

192192

193-
```{r fit-cross-exchangeable-gaussian-diff, eval = has_glmmTMB}
193+
```{r fit-cross-exchangeable-gaussian-diff, eval = FALSE}
194194
195195
cross_exchangeable_diff_model <- glmmTMB(
196196
satisfaction ~
@@ -293,7 +293,7 @@ summary(tweedie_distinguishable_data)
293293
```
294294

295295

296-
```{r fit-tweedie-distinguishable, eval = has_glmmTMB}
296+
```{r fit-tweedie-distinguishable, eval = FALSE}
297297
298298
tweedie_distinguishable_model <- glmmTMB(
299299
physical_activity ~
@@ -336,7 +336,7 @@ print(tweedie_exchangeable_data)
336336
summary(tweedie_exchangeable_data)
337337
```
338338

339-
```{r fit-tweedie-exchangeable, eval = has_glmmTMB}
339+
```{r fit-tweedie-exchangeable, eval = FALSE}
340340
341341
tweedie_exchangeable_model <- glmmTMB(
342342
physical_activity ~
@@ -401,7 +401,7 @@ supplied, longitudinal predictors must be numeric unless
401401
`temporal_predictor_decomposition = "none"` is used with a model type that does
402402
not compute dyad means or within-dyad deviations.
403403

404-
```{r fit-ild-distinguishable, eval = has_glmmTMB}
404+
```{r fit-ild-distinguishable, eval = FALSE}
405405
406406
ild_distinguishable_model <- glmmTMB(
407407
closeness ~ 0 +
@@ -459,7 +459,7 @@ print(ild_exchangeable_data)
459459
summary(ild_exchangeable_data)
460460
```
461461

462-
```{r fit-ild-exchangeable, eval = has_glmmTMB}
462+
```{r fit-ild-exchangeable, eval = FALSE}
463463
464464
ild_exchangeable_model <- glmmTMB(
465465
closeness ~
@@ -527,7 +527,7 @@ shared latent shock. This is the easier teaching model: it keeps role-specific
527527
Tweedie dispersion, but the same-day latent shock can only induce positive
528528
partner dependence.
529529

530-
```{r fit-ild-tweedie-distinguishable-shared-day, eval = has_glmmTMB}
530+
```{r fit-ild-tweedie-distinguishable-shared-day, eval = FALSE}
531531
532532
ild_tweedie_distinguishable_shared_day_model <- glmmTMB(
533533
physical_activity ~ 0 +
@@ -573,7 +573,7 @@ negative same-day partner dependence. In this ILD example, the repeated paired
573573
occasions provide enough information to also estimate role-specific Tweedie
574574
dispersion.
575575

576-
```{r fit-ild-tweedie-distinguishable-latent-day-cov, eval = has_glmmTMB}
576+
```{r fit-ild-tweedie-distinguishable-latent-day-cov, eval = FALSE}
577577
578578
ild_tweedie_distinguishable_latent_day_cov_model <- glmmTMB(
579579
physical_activity ~ 0 +
@@ -643,7 +643,7 @@ sum-diff random-effect blocks provide stable and same-day exchangeable latent
643643
covariance structures. The Tweedie dispersion stays pooled because the
644644
sum-diff signs identify exchangeable positions, not substantive roles.
645645

646-
```{r fit-ild-tweedie-exchangeable, eval = has_glmmTMB}
646+
```{r fit-ild-tweedie-exchangeable, eval = FALSE}
647647
648648
ild_tweedie_exchangeable_model <- glmmTMB(
649649
physical_activity ~
@@ -742,7 +742,7 @@ mixed_cross_targets <- data.frame(
742742
mixed_cross_targets
743743
```
744744

745-
```{r fit-mixed-cross-sectional-gaussian, eval = has_glmmTMB}
745+
```{r fit-mixed-cross-sectional-gaussian, eval = FALSE}
746746
747747
mixed_cross_gaussian_model <- glmmTMB(
748748
satisfaction ~ 0 +
@@ -806,7 +806,7 @@ false convergence even when the Hessian is positive definite. The `BFGS`
806806
optimizer is used here because it reaches the same solution cleanly for this
807807
simulated dataset.
808808

809-
```{r fit-mixed-ild-gaussian, eval = has_glmmTMB}
809+
```{r fit-mixed-ild-gaussian, eval = FALSE}
810810
811811
mixed_ild_gaussian_model <- glmmTMB(
812812
closeness ~ 0 +
@@ -919,7 +919,7 @@ between-person actor and partner effects. The dyadic random-effect blocks are
919919
latent effects on the log-mean scale, not residual covariance parameters in the
920920
Gaussian sense.
921921

922-
```{r fit-mixed-ild-tweedie, eval = has_glmmTMB}
922+
```{r fit-mixed-ild-tweedie, eval = FALSE}
923923
924924
mixed_ild_tweedie_model <- glmmTMB(
925925
physical_activity ~ 0 +

0 commit comments

Comments
 (0)