Re: [R] mgcv : 3-way interaction and 3D-plots ?

2019-01-07 Thread Richard M. Heiberger
## Here is an example using the 3-way interaction plot from the HH package install.packages("HH") ## if necessary ## The HH package supports the book ## Statistical Analysis and Data Display ##Richard M. Heiberger and Burt Holland ## http://www.springer.com/us/book/9781493921218 library(HH)

Re: [R] mgcv : 3-way interaction and 3D-plots ?

2019-01-07 Thread David Winsemius
On 1/7/19 3:35 PM, varin sacha via R-help wrote: Dear R-experts, I have fitted a model with 2-way and 3-way interactions. I would like, for the 3-way interaction (year,age,by=education), to obtain 3D-plots. How could I do that ? Forget ggplot2. It has ignored this sort of visualization effo

[R] mgcv : 3-way interaction and 3D-plots ?

2019-01-07 Thread varin sacha via R-help
Dear R-experts, I have fitted a model with 2-way and 3-way interactions. I would like, for the 3-way interaction (year,age,by=education), to obtain 3D-plots. How could I do that ? Many thanks for your response. Here is the reproducible example: # install.packages("ISLR") library

Re: [R] Fit CMARS with R possible (Packages) ?

2019-01-07 Thread varin sacha via R-help
Dear Bert, Dear Marc, Many thanks for your feedbacks. Best, Le samedi 5 janvier 2019 à 00:26:47 UTC+1, Marc Schwartz a écrit : Hi, Like Bert, I was not able to find anything built in R. It is possible that CMARS has not yet been implemented in R, or may be in development but not

Re: [R] error in plotting model from kernlab

2019-01-07 Thread Luigi Marongiu
Sorry but I don't understand the questions. I sent this question to R-help, not to an individual. I will use the REPLY TO ALL function when replying, apologies if I missed before. The question is related to an R package so I placed to the R community. On Mon, Jan 7, 2019 at 5:47 PM Jeff Newmiller

Re: [R] Merge the data from multiple text files

2019-01-07 Thread David L Carlson
Thank you. I couldn't have said it better myself. It would probably be simpler if you process the lines first to remove duplicates and break compound statements into simple statements. Even then it will be a challenge to not end up with statements that are internally contradictory, e.g. (A and B

Re: [R] Merge the data from multiple text files

2019-01-07 Thread Jeff Newmiller
I think it is rather presumptuous of you to think that anyone is going to write an expression optimizer for some unspecified language on the R-help mailing list. I am sure that such tasks can be handled in R, but it is non-trivial and the background needed would be very off-topic here. On Janua

Re: [R] error in plotting model from kernlab

2019-01-07 Thread Jeff Newmiller
a) When re-posting a question, whether on the same or different forums, it is best practice (netiquette) to link to or reply to the earlier question. [1] b) Note the guidance in the Posting Guide: For questions about functions in standard packages distributed with R (see the FAQ Add-on packages

[R] Two statistics courses in Lisbon

2019-01-07 Thread Highland Statistics Ltd
Apologies for cross-posting We would like to announce the following two statistics course in Lisbon. Course: Data exploration, regression, GLM & GAM with introduction to R Where:  Lisbon, Portugal. When:   18-22 February 2019 Course website: http://highstat.com/index.php/courses-upcoming Course

Re: [R] Merge the data from multiple text files

2019-01-07 Thread Priya Arasu via R-help
Thank you David Winsemius and David L Carlson.  @David L Carlson, Thank you for the code. I have one more issue, while merging the files. Please advice.For example In text file 1: A = not(B or C)B = A and CC = D In text file 2: A = not(C or D) and (D and E) So when I merge using your code, it mer

[R] error in plotting model from kernlab

2019-01-07 Thread Luigi Marongiu
Dear all, I have a set of data in this form: > str 'data.frame': 1574 obs. of 14 variables: $ serial: int 12751 14157 7226 15663 11088 10464 1003 10427 11934 3999 ... $ plate : int 43 46 22 50 38 37 3 37 41 11 ... $ well : int 79 333 314 303 336 96 235 59 30 159 ... $ sample: int 266 295

Re: [R] data frame transformation

2019-01-07 Thread Andras Farkas via R-help
Thanks Bert this will do... Andras Sent from Yahoo Mail on Android On Sun, Jan 6, 2019 at 1:09 PM, Bert Gunter wrote: ... and my reordering of column indices was unnecessary:    merge(dat, d, all.y = TRUE)will do. Bert Gunter "The trouble with having an open mind is that people keep comi

Re: [R] Mailinglist

2019-01-07 Thread PIKAL Petr
And depending on your further intentions with data, functions ave or aggregate could also be worth to check. Cheers Petr > > Hi Rachel. > > You already have got several suggestions, but results depend on structure of > your data. The best way from your side would be just copy a part of your data

Re: [R] Mailinglist

2019-01-07 Thread Hasan Diwan
dput(sample(mydata, n=25)) is probably going to be more representative. -- H On Mon, 7 Jan 2019 at 00:56, PIKAL Petr wrote: > Hi Rachel. > > You already have got several suggestions, but results depend on structure > of your data. The best way from your side would be just copy a part of your > d

Re: [R] Mailinglist

2019-01-07 Thread PIKAL Petr
Hi Rachel. You already have got several suggestions, but results depend on structure of your data. The best way from your side would be just copy a part of your data directly to email and preferable way is to use "dput". Assuming your data already transfered to R are called "mydata". You can j