wooldridge icon indicating copy to clipboard operation
wooldridge copied to clipboard

attend

Open gpiras opened this issue 1 year ago • 0 comments

Hi Justin, from some reason there is a problem when trying to subset() the attend data by priGPA. Here are some details.

It seems to work fine as long as priGPA is an integer:

subset(attend, priGPA == 3 & ACT == 21) attend termGPA priGPA ACT final atndrte hwrte frosh soph missed 512 30 3.38 3 21 16 93.75 100 0 1 2 643 30 3.25 3 21 27 93.75 100 1 0 2 645 32 3.04 3 21 28 100.00 100 0 1 0 stndfnl 512 -2.0483193 643 0.2626050 645 0.4726891

However, if priGPA has decimals, the subsetting doesn't work properly:

subset(attend, priGPA == 3.65 & ACT == 20) [1] attend termGPA priGPA ACT final atndrte hwrte frosh
[9] soph missed stndfnl <0 rows> (or 0-length row.names)

Here is my session info:

sessionInfo() R version 4.3.2 (2023-10-31) Platform: x86_64-apple-darwin20 (64-bit) Running under: macOS Sonoma 14.4.1

Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Europe/Rome tzcode source: internal

attached base packages: [1] stats graphics grDevices utils datasets methods
[7] base

other attached packages: [1] wooldridge_1.4-3

loaded via a namespace (and not attached): [1] utf8_1.2.3 R6_2.5.1 tidyselect_1.2.0 [4] Matrix_1.6-1.1 lattice_0.21-9 magrittr_2.0.3
[7] glue_1.6.2 tibble_3.2.1 foreign_0.8-85
[10] pkgconfig_2.0.3 dplyr_1.1.2 generics_0.1.3
[13] lifecycle_1.0.3 ttutils_1.0-1.1 cli_3.6.1
[16] fansi_1.0.4 xtable_1.8-4 grid_4.3.2
[19] vctrs_0.6.3 compiler_4.3.2 rstudioapi_0.14 [22] tools_4.3.2 pillar_1.9.0 EQL_1.0-1
[25] rlang_1.1.1

gpiras avatar Apr 09 '24 09:04 gpiras