[R] RStudio blank upon opening

2017-11-17 Thread Beginner via R-help
I'm having a problem: RStudio (on  desktop comp) blank upon opening (after I update Win7). I tried different things (reinstalled R and RStudio, backuping  RStudio settings folder... etc)! C an I launch Rstudio direct from RGui(32bit)? or some else way to solve this problem? Thanks! P.S. I  laun

[R] Adjusted survival curves

2017-10-06 Thread Beginner
For adjusted survival curves I took the sample code from here: https://rpubs.com/daspringate/survival and adapted for my date, but got error. I would like to understand what is my mistake. Thanks! #ADAPTATION FOR MY DATA library(survival) library(survminer) df<-read.csv("F:/R/data/base.csv", hea

Re: [R] How (in general) take out data sets (available in the packages)?

2017-07-31 Thread Ted Beginner via R-help
Suzen, thank you very much for your so useful information (I will try to understand it)! And my sincere gratitude to the moderator! >"Suzen, Mehmet" < msu...@gmail.com >: >I also suggest you Hadley's optimized package for interoperating xls >files with R: >https://github.com/tidyverse/readxl >htt

[R] Selection of regressors

2013-08-24 Thread beginner
I have a question about the package leaps which I am using for model selection. I would like to compare 4 different selection methods: forward, backward, stepwise and best subset. I used the code below: library(leaps) forward <- regsubsets(Response ~.,data = mydata, method = "forward", nbest=1) b

[R] How to create a dendrogram with colored branches

2013-08-03 Thread beginner
Hi I would like to create a dendrogram in R which has colored branches, like the one shown below. So far I used following commands to create a standard dendrogram: d <- dist(as.matrix(data[,29])) # find distance matrix hc <- hcl

Re: [R] Scatter plot with error bars

2013-06-28 Thread beginner
Thank you very much for your help ! -- View this message in context: http://r.789695.n4.nabble.com/Scatter-plot-with-error-bars-tp4670502p4670530.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https

[R] Scatter plot with error bars

2013-06-27 Thread beginner
Hi I would like to plot multiple data sets on a scatter plot with error bars. To do this I write the following code: install.packages("Hmisc") library(Hmisc) x1<-data1[,1] y1<-data1[,2] x2<-data2[,1] y2<-data2[,2] x3<-data3[,1] y3<-data3[,2] SD1<-data1[,3] SD2<-data2[,3] SD3<-data3[,4] delta<-

[R] Coefficients paths - comparison of ridge, lasso and elastic net regression

2013-06-05 Thread beginner
I would like to compare models selected with ridge, lasso and elastic net. Fig. below shows coefficients paths using all 3 methods: ridge (Fig A, alpha=0), lasso (Fig B; alpha=1) and elastic net (Fig C; alpha=0.5). The optimal solution depends on the selected value of lambda, which is chosen based

Re: [R] How to write a loop in R to select multiple regression model and validate it ?

2013-06-05 Thread beginner
This is not a homework but part of my research. -- View this message in context: http://r.789695.n4.nabble.com/How-to-write-a-loop-in-R-to-select-multiple-regression-model-and-validate-it-tp4668669p4668720.html Sent from the R help mailing list archive at Nabble.com. _

[R] How to write a loop in R to select multiple regression model and validate it ?

2013-06-04 Thread beginner
I would like to run a loop in R. I have never done this before, so I would be very grateful for your help ! 1. I have a sample set: 25 objects. I would like to draw 1 object from it and use it as a test set for my future external validation. The remaining 24 objects I would like to use as a traini

[R] How to write a loop in R to select multiple regression model and validate it ?

2013-06-04 Thread beginner
I would like to run a loop in R. I have never done this before, so I would be very grateful for your help ! 1. I have a sample set: 25 objects. I would like to draw 1 object from it and use it as a test set for my future external validation. The remaining 24 objects I would like to use as a traini

[R] how to do an external validation with R

2013-05-18 Thread beginner
I would like to do external validation using R software. So far I have used packages like "Design" and "DAAG". However they perform internal validation rather than external one. In order to perform external validation I would have to split my data beforehand into training and test set, leave the te