Add support for logical outcome variables in create_IV()#241
Conversation
Co-authored-by: martinctc <17925865+martinctc@users.noreply.github.com>
create_IV() does not accept logical outcome variables|
@copilot please add a test for |
Co-authored-by: martinctc <17925865+martinctc@users.noreply.github.com>
I've added a test for
The test uses Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot please mentioned in the royxgen documentation of the 'outcome' argument for |
Co-authored-by: martinctc <17925865+martinctc@users.noreply.github.com>
I've updated the .Rd documentation file in commit f4a95d7 to align with the previously updated Roxygen documentation. The |
…elopment version header in NEWS.md
…to copilot/fix-240
|
Looking good - merging PR now. |
Problem
Currently, the
create_IV()function does not accept logical outcome variables and only works with numeric binary variables (0 or 1). When users try to pass a logical column (TRUE/FALSE) as the outcome variable, the function fails with an error.Solution
This PR adds support for logical outcome variables by:
Implementation Details
The changes are minimal and focused:
as.numeric()Example usage that now works:
Fixes #240.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
_https._tcp.esm.ubuntu.com/usr/lib/apt/methods/https(dns block)_https._tcp.motd.ubuntu.com/usr/lib/apt/methods/https(dns block)cloud.r-project.org/usr/lib/R/bin/exec/R -e install.packages(c('dplyr',~+~'tidyr',~+~'tidyselect',~+~'magrittr',~+~'purrr',~+~'reshape2',~+~'ggplot2',~+~'ggrepel',~+~'scales',~+~'htmltools',~+~'markdown',~+~'rmarkdown',~+~'networkD3',~+~'DT',~+~'tidytext',~+~'ggraph',~+~'igraph',~+~'proxy',~+~'ggwordcloud',~+~'data.table'),~+~repos='REDACTED',~+~lib='~/R/library')(dns block)esm.ubuntu.com/usr/lib/apt/methods/https(dns block)motd.ubuntu.com/usr/lib/apt/methods/https(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.