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

2019-01-04 Thread Marc Schwartz via R-help
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 yet ready for release. I found several references to the use of MOSEK (https://www.mosek.com) along with MATLAB, but both are commercial prod

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

2019-01-04 Thread Bert Gunter
rseek.org might be a better place to search if you haven't tried t herealready. However, my minimal effort there did not turn up any R software. Maybe you can do better. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- O

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

2019-01-04 Thread varin sacha via R-help
Dear R-experts, We can fit MARS regression using the packages "earth" and/or "mda" or others packages. However, I am wondering if it is possible to fit a CMARS (Conic multivariate adaptive regression splines) using R ? I have googled "conic MARS with R software", I did not get anything, so Goog

Re: [R] Accessing Data Frame

2019-01-04 Thread Greg Snow
Here is another approach that uses only the default packages: > onecar <- mtcars[10,] > w <- which(duplicated(rbind(mtcars,onecar), fromLast = TRUE)) > w [1] 10 > mtcars.subset <- mtcars[-w,] > > > threecars <- mtcars[c(1,10,15),] > w <- which(duplicated(rbind(mtcars,threecars), fromLast=TRUE)) >

Re: [R] How to perform Mixed Design ANOVA on MICE imputed dataset in R?

2019-01-04 Thread Bert Gunter
You might wish to post on the r-sig-mixed-models list, which is specifically devoted to mixed effects models, instead of here. You are more likely to find both interest and expertise there. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticki

Re: [R] Error in names(x) <- value: 'names' attribute must be the same length as the vector in gam function

2019-01-04 Thread William Dunlap via R-help
mgcv::s() does not appear to work with objects of class "Date". E.g., > d <- data.frame(date=seq(as.Date("2018-12-20"),len=10,by="week"), response=log2(1:10)%%1) > model <- gam(data=d, response ~ s(date)) Error in names(dat) <- object$term : 'names' attribute [1] must be the same length as the

Re: [R] How to perform Mixed Design ANOVA on MICE imputed dataset in R?

2019-01-04 Thread Ista Zahn
Hi Lisa, The package web page at http://stefvanbuuren.github.io/mice/ has all the info you need to get started. Best, Ista On Fri, Jan 4, 2019 at 3:29 AM Lisa Snel wrote: > > Hi all, > > I have a question about performing a Mixed Design ANOVA in R after multiple > imputation using MICE. My dat

[R] Error in gam function in names(x) <- value: 'names' attribute must be the same length as the vector

2019-01-04 Thread 王 嘉炜
Outlook Dear R users, I am using the *mgcv package* to model the ozone pollution concentration according to some environmental covariates. The model takes the form : model1 <-gam(O3~s(X,Y,bs="tp",k=10)+wd+s(date,bs="cc",k=100)