Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gg_error is not showing anything #35

Closed
jgarces02 opened this issue Apr 6, 2020 · 2 comments
Closed

gg_error is not showing anything #35

jgarces02 opened this issue Apr 6, 2020 · 2 comments

Comments

@jgarces02
Copy link

Hi @ehrlinger,

Thanks for make easier working with radomForestSRC, you saved me a lot time! After calculating a rfsrc object with the following code...

> rfs <- rfsrc(Surv(time, event) ~ ., data = mydata, nsplit = NULL, ntree = 100, importance = T)
> rfs
                         Sample size: 99
                    Number of deaths: 35
                     Number of trees: 100
           Forest terminal node size: 15
       Average no. of terminal nodes: 9.44
No. of variables tried at each split: 4
              Total no. of variables: 12
       Resampling used to grow trees: swor
    Resample size used to grow trees: 63
                            Analysis: RSF
                              Family: surv
                      Splitting rule: logrank
                          Error rate: 28.85%

... I'm trying to obtain the OOB plot for each tree but I'm having this (uninformative) error and a empty plot appears:

> plot(gg_error(rfs))
Warning message:
Removed 9 rows containing missing values (geom_path).

Any idea about what I'm doing wrong, please? Thanks in advance.

@ehrlinger
Copy link
Owner

ehrlinger commented Apr 7, 2020 via email

ehrlinger added a commit that referenced this issue Apr 25, 2022
Remove survival model testing for CRAN.
update datasets
fix gg_error plotting issue #35
@ehrlinger
Copy link
Owner

Corrected in v2.1.0. rfsrc no longer returns ntree information since it is the index. Create a new ntree column, and na.omit to allow the figure creation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants