Re: [R] Survival model error

2017-11-05 Thread David Winsemius
You should stop trying to use matrices on the RHS and using separate vectors to Surv. Instead use a data argument and have the names in your formula refer to column names. — David Sent from my iPhone > On Nov 5, 2017, at 7:21 PM, Meghna Govil via R-help > wrote: > >

[R] Survival model error

2017-11-05 Thread Meghna Govil via R-help
Hi - Below is my code and then the error when I run the last line. time_np <- train1_na$tte event_np <- train1_na$censored X_np <- cbind( train1_na$AMT, train1_na$DISCOUNT_AMT, train1_na$high_price_pcnt, train1_na$EM_RECEIVED, train1_na$DM_RECEIVED,

Re: [R] Help in R

2017-11-05 Thread Ulrik Stervbo
And head(test_df$Movie, 10) For function completeness :-) Rui Barradas schrieb am So., 5. Nov. 2017, 20:56: > Hello, > > Also > > tail(test_df$Movie, 10) > > Hope this helps, > > Rui Barradas > > Em 05-11-2017 19:18, Ulrik Stervbo escreveu: > > R can have a bit of a

Re: [R] Help in R

2017-11-05 Thread Rui Barradas
Hello, Also tail(test_df$Movie, 10) Hope this helps, Rui Barradas Em 05-11-2017 19:18, Ulrik Stervbo escreveu: R can have a bit of a learning curve... There are several ways to achieve your goal - depending on what you want: test_df <- data.frame(Movie = letters, some.value = rnorm(26))

Re: [R] Help in R

2017-11-05 Thread Ulrik Stervbo
R can have a bit of a learning curve... There are several ways to achieve your goal - depending on what you want: test_df <- data.frame(Movie = letters, some.value = rnorm(26)) test_df$Movie[1:10] test_df$Movie[sample(c(1:26), 10)] test_df[sample(c(1:26), 10), ] Do read a tutorial or two on R

Re: [R] Help in R

2017-11-05 Thread David Winsemius
> On Nov 5, 2017, at 9:28 AM, Ahsan Zahir via R-help > wrote: > > > Hey, > > I am a beginner in R. > > How do I read last 10 values from column- Movie, from a dataset? Some questions are so simple that they strongly suggest no prior effort at self-leanrning. In such

[R] Help in R

2017-11-05 Thread Ahsan Zahir via R-help
Hey, I am a beginner in R. How do I read last 10 values from column- Movie, from a dataset? Pls help. Sent from my iPhone __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Change colour of line in logi.hist.plot

2017-11-05 Thread David Winsemius
> On Nov 5, 2017, at 6:03 AM, Göran Bergqvist > wrote: > > I am using the function logi.hist.plot in package popbio. I want to change > the colour of the probability line from the default red to black. I have not > been able to find out how to do that. If

Re: [R] Change colour of line in logi.hist.plot

2017-11-05 Thread Bert Gunter
Warning: Untested. Note the "..." argument in the functions Help docs. This means "additional optional arguments," which are passed down to underlying function calls. The question is: what arguments? For plotting functions, especially those using base graphics, it usually means the same sort of

[R] Change colour of line in logi.hist.plot

2017-11-05 Thread Göran Bergqvist
I am using the function logi.hist.plot in package popbio. I want to change the colour of the probability line from the default red to black. I have not been able to find out how to do that. [[alternative HTML version deleted]] __

Re: [R] Question - TukeyHSD

2017-11-05 Thread John Kane via R-help
I may be missing the point, but if you can do the calculations by hand could you not write a function in R to do the same and apply it to a data.frame of the values? On Saturday, November 4, 2017, 11:01:59 AM EDT, Paul Kent wrote: Hi, I've been