[R] specifying x-axis scale on random forest variable importance plot
i am new to R and using the random forest package. is there a way to specify the x-axis scale range for the variable importance plot? many thanks. -alison -- View this message in context: http://www.nabble.com/specifying-x-axis-scale-on-random-forest-variable-importance-plot-tp19780560p19780560.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] bootstrap validation of LR error message
when i try to validate my logistic regression model: fit<-glm(y~x,binomial,data=dataname,x=TRUE,y=TRUE) validate(fit,method="boot",B=150,...) i get the following error message: Error in UseMethod("validate") : no applicable method for "validate" any insight would be appreciated. many thanks! -- View this message in context: http://www.nabble.com/bootstrap-validation-of-LR-error-message-tp21507695p21507695.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] randomSurvivalForest plotting
i would like to plot a subset of variables with the highest variable importance measures (say the top 20) instead of plotting all of the variables included in the analysis (~75). i tried arguments that work to restrict the number of variables displayed in the plot in randomForest as follows: plot(rsfCauc.out,sort=TRUE,n.var=min(30,nrow(rsfCauc.out$importance)),type=TRUE,class=NULL,scale=TRUE,main=deparse(substitute(rsfCauc.out))) however, that code only resulted in the plot with all 75 variables. help would be much appreciated. many thanks! -- View this message in context: http://www.nabble.com/randomSurvivalForest-plotting-tp21672013p21672013.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] error message when plotting survival curves
I am trying to plot survival curves using the following code as an example: >rs1799964.coxph<-(coxph(Surv(sassurvmonths,status)~age+stage+rs1799964_TNFA,method="efron")) >plot(rs1799964.coxph,lyt=c(1,3),xlab="Survival in Months",ylab="Proportion Surviving") I am gettingthe following error message: >Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ Any input to debugging this matter would be greatly appreciated. Thank you in advance. -Alison -- View this message in context: http://www.nabble.com/error-message-when-plotting-survival-curves-tp20075771p20075771.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.