[R-SIG-Mac] R stats: not recognising 'F' as 'FALSE'
David R Forrest
drf at vims.edu
Thu Feb 11 09:39:54 CET 2016
Is F defined as anything unusual?
> F
[1] FALSE
> pt(q=1.12, df=12, lower.tail=F)
[1] 0.1423149
> F<- pi
> pt(q=1.12, df=12, lower.tail=F)
[1] 0.8576851
> F<- FALSE
> pt(q=1.12, df=12, lower.tail=F)
[1] 0.1423149
>
> On Oct 30, 2015, at 12:30 PM, Liam Shaw <liam.shaw.13 at ucl.ac.uk> wrote:
>
> A student noticed that passing 'F' for 'FALSE' did not have an effect when
> using functions in the stats base package.
>
> Example:
>
>> pt(q=1.12, df=12, lower.tail=TRUE)
> [1] 0.8576851
>> pt(q=1.12, df=12, lower.tail=F)
> [1] 0.8576851
>> pt(q=1.12, df=12, lower.tail=FALSE)
> [1] 0.1423149
>
> I couldn't replicate the problem. Re-installing and updating R on their
> machine had no effect. Does anybody know what could be causing this?
>
> sessionInfo():
> R version 3.2.2 (2015-08-14)
> Platform: x86_64-apple-darwin13.4.0 (64-bit)
> Running under: OS X 10.11 (El Capitan)
>
> locale:
> [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
>
> attached base packages:
> [1] stats graphics grDevices utils datasets
> [6] methods base
>
> loaded via a namespace (and not attached):
> [1] tools_3.2.2
>
> Stats package:
> Package: stats
> Version: 3.2.2
> Priority: base
> Title: The R Stats Package
> Author: R Core Team and contributors worldwide
> Maintainer: R Core Team <R-core at r-project.org>
> Description: R statistical functions.
> License: Part of R 3.2.2
> Built: R 3.2.2; x86_64-apple-darwin13.4.0
>
> Liam
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
--
Dr. David Forrest
drf at vims.edu
804-684-7900w
757-968-5509h
804-413-7125c
#240 Andrews Hall
Virginia Institute of Marine Science
Route 1208, Greate Road
PO Box 1346
Gloucester Point, VA, 23062-1346
More information about the R-SIG-Mac
mailing list