[R] Quoting smooth random terms mccv::gam
Simon Wood
@imon@wood @ending from b@th@edu
Mon Dec 17 17:23:15 CET 2018
I would quote the p-value, but not the statistic (as it is not a
standard F stat). The actual statistic is given here:
https://academic.oup.com/biomet/article-pdf/100/4/1005/566200/ast038.pdf
On 14/12/2018 04:33, Smith, Desmond wrote:
> Dear All,
>
> I have a mgcv::gam model of the form:
>
> m1 <- gam(Y ~ A + s(B, bs = "re"), data = dataframe, family = gaussian, method = "REML")
>
> The random term is quoted in summary(m1) as, for example,
>
> Approximate significance of smooth terms:
> # edf Ref.df F p-value
> s(B) 4.486 5 97.195 6.7e-08 ***
>
> My question is, how would I quote this result (statistic and P value) in a formal document?
>
> For example, one possibility is F[4.486,5] = 97.195, P = 6.7e-08. However, arguing against this, “reverse engineering” of the result using
>
> pf(q= 97.195, df1= 4.486, df2= 5, lower.tail=FALSE)
>
> gives an incorrect p value:
>
> [1] 0.1435508
>
> I would be very grateful for your advice. Many thanks for your help!
>
> ________________________________
>
> UCLA HEALTH SCIENCES IMPORTANT WARNING: This email (and any attachments) is only intended for the use of the person or entity to which it is addressed, and may contain information that is privileged and confidential. You, the recipient, are obligated to maintain it in a safe, secure and confidential manner. Unauthorized redisclosure or failure to maintain confidentiality may subject you to federal and state penalties. If you are not the intended recipient, please immediately notify us by return email, and delete this message from your computer.
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list