Last updated on 2020-08-07 01:50:23 CEST.
Package | ERROR | NOTE | OK |
---|---|---|---|
CIMTx | 1 | 5 | 6 |
Current CRAN status: ERROR: 1, NOTE: 5, OK: 6
Version: 0.2.0
Check: dependencies in R code
Result: NOTE
Namespaces in Imports field not imported from:
‘class’ ‘dbarts’ ‘gam’ ‘tidyr’ ‘twang’
All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86, r-release-macos-x86_64, r-oldrel-macos-x86_64
Version: 0.2.0
Check: examples
Result: ERROR
Running examples in 'CIMTx-Ex.R' failed
The error most likely occurred in:
> ### Name: iptw_multiTrt
> ### Title: Inverse probability of treatment weighting (IPTW)
> ### Aliases: iptw_multiTrt
>
> ### ** Examples
>
> library(CIMTx)
> set.seed(1)
> idata = data_gen(n = 500, ratio =1,scenario = 1)
> trt_ind <- as.numeric(idata$trtdat$trt_ind)
> all_vars <- idata$trtdat[, -1] #exclude treatment indicator
> y <- idata$Yobs
> causal_multi_treat(y = y,trt = trt_ind,
+ method = "IPTW-Logistics", estimand = "ATT", reference_trt = 2)
Error in deparse1(f[[1]]) : could not find function "deparse1"
Calls: causal_multi_treat ... iptw_multiTrt_att -> <Anonymous> -> is.formula -> %in%
Execution halted
Flavor: r-oldrel-windows-ix86+x86_64