Closed
Description
Expected behavior
I am able to recreate your example from online with the myeloma data set:
res <- pairwise_survdiff(Surv(time, event) ~ molecular_group,
data = myeloma)
res
Actual behavior
When I move to my own data set, I get an error:
Error in survdiff.fit(y, groups, strata.keep, rho) :
NA/NaN/Inf in foreign function call (arg 5)
Steps to reproduce the problem
I am able to reproduce the issue with the myeloma data set when I change the independent variable in the model.
pairwise_survdiff(Surv(time, event) ~ chr1q21_status,
data = myeloma)
session_info()
Session info --------------------------------------------------------------------------------------------------------------------------------------------------------------
setting value
version R version 3.3.3 (2017-03-06)
system x86_64, mingw32
ui RStudio (1.0.136)
language (EN)
collate English_United States.1252
tz America/Los_Angeles
date 2017-04-03
Packages ------------------------------------------------------------------------------------------------------------------------------------------------------------------
package * version date source
acepack 1.4.1 2016-10-29 CRAN (R 3.3.1)
assertthat 0.1 2013-12-06 CRAN (R 3.3.0)
backports 1.0.5 2017-01-18 CRAN (R 3.3.2)
base64enc 0.1-3 2015-07-28 CRAN (R 3.3.0)
broom 0.4.2 2017-02-13 CRAN (R 3.3.2)
checkmate 1.8.2 2016-11-02 CRAN (R 3.3.2)
cluster 2.0.6 2017-03-16 CRAN (R 3.3.3)
cmprsk 2.2-7 2014-06-17 CRAN (R 3.3.2)
codetools 0.2-15 2016-10-05 CRAN (R 3.3.3)
colorspace 1.3-2 2016-12-14 CRAN (R 3.3.2)
data.table 1.10.4 2017-02-01 CRAN (R 3.3.2)
DBI 0.6-1 2017-04-01 CRAN (R 3.3.3)
devtools 1.12.0 2016-06-24 CRAN (R 3.3.2)
digest 0.6.12 2017-01-27 CRAN (R 3.3.2)
dplyr * 0.5.0 2016-06-24 CRAN (R 3.3.1)
evaluate 0.10 2016-10-11 CRAN (R 3.3.1)
forcats 0.2.0 2017-01-23 CRAN (R 3.3.2)
foreign 0.8-67 2016-09-13 CRAN (R 3.3.3)
Formula * 1.2-1 2015-04-07 CRAN (R 3.3.0)
ggplot2 * 2.2.1 2016-12-30 CRAN (R 3.3.2)
ggpubr * 0.1.2 2017-03-14 CRAN (R 3.3.3)
ggthemes * 3.4.0 2017-02-19 CRAN (R 3.3.3)
gridExtra 2.2.1 2016-02-29 CRAN (R 3.3.0)
gtable 0.2.0 2016-02-26 CRAN (R 3.3.0)
haven 1.0.0 2016-09-23 CRAN (R 3.3.2)
highr 0.6 2016-05-09 CRAN (R 3.3.0)
Hmisc * 4.0-2 2016-12-31 CRAN (R 3.3.2)
hms 0.3 2016-11-22 CRAN (R 3.3.2)
htmlTable 1.9 2017-01-26 CRAN (R 3.3.2)
htmltools 0.3.5 2016-03-21 CRAN (R 3.3.0)
htmlwidgets 0.8 2016-11-09 CRAN (R 3.3.2)
httr 1.2.1 2016-07-03 CRAN (R 3.3.1)
janitor * 0.2.1 2016-10-31 CRAN (R 3.3.2)
jsonlite 1.3 2017-02-28 CRAN (R 3.3.3)
km.ci 0.5-2 2009-08-30 CRAN (R 3.3.0)
KMsurv 0.1-5 2012-12-03 CRAN (R 3.3.2)
knitr * 1.15.1 2016-11-22 CRAN (R 3.3.2)
labeling 0.3 2014-08-23 CRAN (R 3.3.0)
lattice * 0.20-35 2017-03-25 CRAN (R 3.3.3)
latticeExtra 0.6-28 2016-02-09 CRAN (R 3.3.1)
lazyeval 0.2.0 2016-06-12 CRAN (R 3.3.0)
lubridate 1.6.0 2016-09-13 CRAN (R 3.3.1)
magrittr 1.5 2014-11-22 CRAN (R 3.3.2)
MASS * 7.3-45 2016-04-21 CRAN (R 3.3.1)
Matrix 1.2-8 2017-01-20 CRAN (R 3.3.3)
memoise 1.0.0 2016-01-29 CRAN (R 3.3.1)
mnormt 1.5-5 2016-10-15 CRAN (R 3.3.1)
modelr 0.1.0 2016-08-31 CRAN (R 3.3.1)
multcomp * 1.4-6 2016-07-14 CRAN (R 3.3.2)
munsell 0.4.3 2016-02-13 CRAN (R 3.3.0)
mvtnorm * 1.0-6 2017-03-02 CRAN (R 3.3.2)
nlme 3.1-131 2017-02-06 CRAN (R 3.3.2)
nnet 7.3-12 2016-02-02 CRAN (R 3.3.3)
plyr 1.8.4 2016-06-08 CRAN (R 3.3.1)
psych 1.7.3.21 2017-03-22 CRAN (R 3.3.2)
purrr * 0.2.2 2016-06-18 CRAN (R 3.3.1)
R6 2.2.0 2016-10-05 CRAN (R 3.3.1)
RColorBrewer 1.1-2 2014-12-07 CRAN (R 3.3.0)
Rcpp 0.12.10 2017-03-19 CRAN (R 3.3.3)
readr * 1.1.0 2017-03-22 CRAN (R 3.3.3)
readxl * 0.1.1.9000 2016-10-24 Github (hadley/readxl@3ba34ab)
reshape2 1.4.2 2016-10-22 CRAN (R 3.3.1)
rmarkdown 1.4 2017-03-24 CRAN (R 3.3.3)
rpart 4.1-10 2015-06-29 CRAN (R 3.3.3)
rprojroot 1.2 2017-01-16 CRAN (R 3.3.2)
rvest 0.3.2 2016-06-17 CRAN (R 3.3.1)
sandwich 2.3-4 2015-09-24 CRAN (R 3.3.2)
scales * 0.4.1.9000 2016-11-15 Github (hadley/scales@89c2a2f)
stringi 1.1.3 2017-03-21 CRAN (R 3.3.2)
stringr * 1.2.0 2017-02-18 CRAN (R 3.3.3)
survey 3.31-5 2016-12-01 CRAN (R 3.3.2)
survival * 2.41-2 2017-03-16 CRAN (R 3.3.3)
survminer * 0.3.1 2017-03-21 CRAN (R 3.3.2)
survMisc 0.5.4 2016-11-23 CRAN (R 3.3.3)
tableone * 0.7.3 2015-11-11 CRAN (R 3.3.2)
TH.data * 1.0-8 2017-01-23 CRAN (R 3.3.2)
tibble * 1.3.0 2017-04-01 CRAN (R 3.3.3)
tidyr * 0.6.1.9000 2017-01-24 Github (hadley/tidyr@0f9a5da)
tidyverse * 1.1.1 2017-01-27 CRAN (R 3.3.2)
withr 1.0.2 2016-06-20 CRAN (R 3.3.1)
xml2 1.1.1 2017-01-24 CRAN (R 3.3.2)
xtable 1.8-2 2016-02-05 CRAN (R 3.3.1)
zoo 1.7-14 2016-12-16 CRAN (R 3.3.2)
Metadata
Assignees
Labels
No labels