Re: [R] [FORGED] bootstrapping results in table format

2017-10-07 Thread David Winsemius
> On Oct 7, 2017, at 1:32 PM, Rolf Turner wrote: > > On 07/10/17 12:16, Peter Wagey wrote: >> Hi R users, >> I was struggling to put the results into table format. Would you mind to >> show using following data and code how we can put the results into table? I >> further would like to have a co

Re: [R] [FORGED] bootstrapping results in table format

2017-10-07 Thread Rolf Turner
On 07/10/17 12:16, Peter Wagey wrote: Hi R users, I was struggling to put the results into table format. Would you mind to show using following data and code how we can put the results into table? I further would like to have a confidence interval for each group. set.seed(1000) data <- as.data

Re: [R] load() failed to load .Rdata file in AWS-Ububtu

2017-10-07 Thread Eric Berger
Hi Christofer, The directory /srv/shiny-server would normally be owned by the root user. Your options would seem to be to either (1) bring up the R session as root (dangerous) or (2) try copying the file to your local directory and read it from there (if allowed). e.g. from the Unix shell: > cd ~

[R] load() failed to load .Rdata file in AWS-Ububtu

2017-10-07 Thread Christofer Bogaso
Hi again, I hope this is the right place to post my question on running R within Ubuntu, however if not, any pointer on right distribution list will be helpful. I am currently using R in Ubuntu which is hosted in Amazon - AWS. I have a .Rdata file in AWS which I am trying to load in R. Used foll

Re: [R] Adjusted survival curves

2017-10-07 Thread David Winsemius
> On Oct 7, 2017, at 9:01 AM, Ted Beginner (RStudio) via R-help > wrote: > > > For adjusted survival curves I took the sample code from here: > https://rpubs.com/daspringate/survival > and adapted for my date, but ... have a QUESTION. > > library(survival) > library(survminer) > df<-read.csv

Re: [R] Adjusted survival curves

2017-10-07 Thread Jeff Newmiller
Change the columns into factors before you give them to the coxph function, e.g. df$treatment <- factor( df$treatment ) -- Sent from my phone. Please excuse my brevity. On October 7, 2017 5:01:19 PM GMT+01:00, "Ted Beginner (RStudio) via R-help" wrote: > >For adjusted survival curves I took t

Re: [R] beta binomial distribution

2017-10-07 Thread David Winsemius
> On Oct 6, 2017, at 6:17 PM, Akram Alhadainy wrote: > > Hi, > I need to write two inequalities depend on cumulative distribution (CDF) of > beta binomial distribution where alpha and beta are unknown and need to > find them. > CDF of betabinomial(2,10,alpha,beta) <0.3<=CDF of > betabinomial(3,1

[R] Adjusted survival curves

2017-10-07 Thread RStudio
For adjusted survival curves I took the sample code from here: https://rpubs.com/daspringate/survival and adapted for my date, but ... have a QUESTION. library(survival) library(survminer) df<-read.csv("base.csv", header = TRUE, sep = ";") head(df) ID start stop censor sex age stage treatment 1

Re: [R] Adjusted survival curves

2017-10-07 Thread peter dalgaard
> On 7 Oct 2017, at 04:58 , Ted (Beginner) via R-help > wrote: > > > 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