Description Usage Arguments Details Value
Fit models to 2x2 data with autocorrelated errors
1 2 3 4 5 6 7 8 9 10 11 |
dat |
Data generated using |
cs |
Fit smooths as main effect of trial (in addition to by-subject factor smooths) for the GAMM models? |
by_subj_fs |
Include by-subject factor smooths in GAMM? |
dontfit |
If |
m |
The |
k |
The |
bam_args |
Any other arguments to be passed on to
|
fit_blocked |
Whether to fit the blocked version in addition to the randomized version. |
fit_lmem |
Whether to fit the LMEM in addition to the GAMM. |
Fits four models using bam:
A Generalized Additive Mixed Model (GAMM) for the blocked DV (Y_b
);
A Linear Mixed-Effects Model (LMEM) for the blocked DV (Y_b
);
A GAMM for the randomized DV (Y_r
); and
A LMEM for the randomized DV (Y_r
).
15x2x2 array with model statistics (or just the model
formulas if dontfit
is TRUE
). Second dimension is
GAMM or LMEM, third is randomized or blocked, and first dimension
is as follows.
e_int
Estimated intercept.
e_A
Estimated main effect of A.
e_B
Estimated main effect of B.
e_AB
Estimated AB interaction.
se_int
Standard error for the intercept.
se_A
Standard error for A.
se_B
Standard error for B.
se_AB
Standard error for AB.
p_int
P-value for the intercept.
p_A
P-value for the main effect of A.
p_B
P-value for the main effect of B.
p_AB
P-value for the AB interaction.
AIC
Akaike Information Criterion for the model.
resid_df
Residual degrees of freedom.
resid_dev
Residual deviance.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.