Note that the same-day correlation in the AR(1) example leaves out the AR(1) variance

Open Beginner friendly
#178 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
markdown, r
Domain
documentation

Research direction

Start with the APIM vignette at vignettes/apim.Rmd, around lines 811–823, and rerun the calculation for the same-day residual, including the AR(1) variance. Add the suggested sentence clarifying that the same-day pair describes the residual component that does not carry over between days; done when the calculation is checked and readers will not mistake it for the whole same-day residual.

Written by the indexing model from the issue text.

Description

documentation priority: low

The APIM vignette recovers the member-level covariance from a diary model that also has AR(1) terms. See the example.

The recovered same-day matrix is correct for the dyad-day blocks. It does not include the AR(1) variance, which belongs to the same level. A reader will take the printed SD and correlation for the whole same-day residual.

In the review, the printed values were an SD of 0.835 and a correlation of 0.297. With the AR(1) variance of 0.305 included, the same-day residual SD is 1.001 and the partner correlation 0.206. I have not repeated this calculation.

Suggested fix and checks

  • Re-run the calculation.
  • Add one sentence after the example: the same-day pair describes the part of the residual that does not carry over between days.
Dominant language
R
Stars
1
Forks
2
Avg merge
11h 4m
Merged PRs (30d)
42

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Pascal-Kueng/dyadMLM

All issues in Pascal-Kueng/dyadMLM

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.