cran / tidygam

:exclamation: This is a read-only mirror of the CRAN R package repository. tidygam — Tidy Prediction and Plotting of Generalised Additive Models. Homepage: https://github.com/stefanocoretta/tidygam, https://stefanocoretta.github.io/tidygam/ Report bugs for this package: https://github.com/stefanocoretta/tidygam/issue ...
Other
0 stars 0 forks source link

plot_diff sets to one subject level #1

Open ahsenko opened 7 months ago

ahsenko commented 7 months ago

Hi, I want to use plot_diff function as follows, but not as * subject : factor; set to the value(s): 105798576. How can I compute it for overall differences across subjects?

plot_diff(diff_model, view="timestamp", rm.ranef=F, comp=list(group=c("face", "letter")), cond=list(diff_type=c("i_t_diff")), main="i_t_diff face-letter", ylab = "Difference in pupil dilation (a.u.)", n.grid = length(unique(merge_data$timestamp)), hide.label = TRUE) Summary:

  • diff_type : factor; set to the value(s): i_t_diff.
  • timestamp : numeric predictor; with 594 values ranging from -750.000000 to 3994.000000.
  • subject : factor; set to the value(s): 105798576.

timestamp window(s) of significant difference(s): 1594.000000 - 3098.000000

my model is: diff_model <- bam(diff_values ~ group + diff_type +group:diff_type

gaborcsardi commented 7 months ago

Hi, this is a read only mirror of CRAN, please see the package authors in the DESCRIPTION file. Look for Maintainer, BugReports and URL. Thanks!