stan-dev / stan-dev/rstanarm

stan_gamm4: extract smooth data

Open
#249 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
401
Forks
136
PR merge metrics
No merged PRs in 30d

Description

Summary:

stan_gamm4: how to extract smooth data ("average" and "by condition")

Description:

Considering your vignette example for gamm4, I'd like to know if (and how) it's possible to extract a dataframe containing the values of the smooth.

That would be nice to further implement experimental methods (such as here) to identify "periods of change" or points of curve break.

Also, is it possible to extract these smooth curves for each condition (in your example, for each treatment) ? Plotting these different smooth lines would be helpful (and useful for effect illustration).

Thanks a lot for this amazing package 😄

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start with the linked gamm4 vignette and the rstanarm gamm4 example. Determine whether smooth values can be extracted as a data frame both overall and separately by treatment condition, then document the supported approach or limitation and demonstrate the result with the example.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.