Re: [R] Reducing of car package when loading

2016-02-02 Thread Brian Bolt
I am not sure what functions I use in car actually. I am dependent on the drc package which imports "car". The main drc function I use is "drm", along with "LL.4" https://cran.r-project.org/web/packages/drc/index.html Brian Bolt |

Re: [R] Avoiding car package when loading pkg:doc

2016-02-02 Thread David Winsemius
> On Feb 2, 2016, at 10:30 AM, Brian Bolt wrote: > > I am not sure what functions I use in car actually. I am dependent on the > drc package which imports "car". The main drc function I use is "drm", along > with "LL.4" > >

[R] find numbers that fall in a region or the next available.

2016-02-02 Thread Alaios via R-help
Dear all,I have GPS coordinates (one vector for longitude and one for latitude: GPSLong and GPSLat) of small are that is around 300meters X 300 meters (location falls inside UK).At the same time I have two more vectors (Longitude and Latitude) that include position of food stores again the UK I

Re: [R] [FORGED] find numbers that fall in a region or the next available.

2016-02-02 Thread Rolf Turner
On 03/02/16 11:04, Alaios via R-help wrote: Dear all,I have GPS coordinates (one vector for longitude and one for latitude: GPSLong and GPSLat) of small are that is around 300meters X 300 meters (location falls inside UK).At the same time I have two more vectors (Longitude and Latitude) that

[R] Static to interactive map (leaflet spplot)

2016-02-02 Thread Debasish Pai Mazumder
Hi ALL, I have a script to plot hexagonal polygon on a map. Its a static map. I used spplot. I would like to convert this plot to interactive plot using " *leaflet*". How do I make it interactive plot? Here is spplot lines: cl = map("world", xlim = c(-120, 20), ylim = c(-10, 70), plot = TRUE)

[R] Big Finance and digits

2016-02-02 Thread Glenn Schultz
All, I am modeling a FNMA credit risk transfer deal.  The size of the collateral 250 billion.  Naturally, the cashflow is quite large the cash flow is calculated and stored in a S4 object which is then converted to an array and the result is character values - converting back to numeric I

Re: [R] R Sig-Geo group - loop for creating spatial matrix

2016-02-02 Thread Giorgio Garziano
Dear Francesco, from that point ahead, you have to handle a list of “nb” objects. I used class() in order to show you what the list is made of. The R code outlined in your reply may follow a pattern like this (showing an option): for (val in z) { dlwknn.B <- nb2listw(neighbors.knn[[val]],

Re: [R] How to read ./configure messages

2016-02-02 Thread Patrick Connolly
Thanks Peter. That certainly got me past that one, (Few more to go) On Mon, 01-Feb-2016 at 09:30PM -0800, Peter Langfelder wrote: |> I am not overly familar with Mint, but you need the "development |> version" of the readline library. If you have a GUI package manager |> installed, open it

[R] [R-pkgs] Update on bpcp R package: Confidence intervals to use with Kaplan-Meier Survival Estimator

2016-02-02 Thread Fay, Michael (NIH/NIAID) [E]
R Users, We have updated the bpcp R package. It gives pointwise confidence intervals for a survival distribution from right censored data. It is not based on asymptotic approximations, so it may be used with any sample size, and with any censoring distribution, as long as the censoring is

Re: [R] fancy linear model and grouping

2016-02-02 Thread Gabor Grothendieck
Try the mclust package: library(mclust) temp.na <- na.omit(temp) fm <- Mclust(temp.na) g <- fm$classification plot(temp.na, pch = g, col = g) On Tue, Feb 2, 2016 at 6:35 AM, PIKAL Petr wrote: > Dear all > > I have data like this > >> dput(temp) > > temp <-

[R] fancy linear model and grouping

2016-02-02 Thread PIKAL Petr
Dear all I have data like this > dput(temp) temp <- structure(list(X1 = c(93, 82, NA, 93, 93, 79, 79, 93, 93, 85, 82, 93, 87, 93, 92, NA, 87, 93, 93, 93, 74, 77, 87, 93, 82, 87, 75, 82, 93, 92, 68, 93, 93, 73, NA, 85, 81, 79, 75, 87, 93, NA, 87, 87, 85, 92, 87, 92, 93, 87, 87, NA, 69, 87, 93,

[R] Improvement in Process time

2016-02-02 Thread Amelia Marsh via R-help
Dear R forum, I am running a Particular process 1000 times for different rates. Each time the result of the process is getting stored (appended) in a data.frame. However, the process is taking unsual time at times more than 2 hours. When I had tried to find out the reason for such a long

Re: [R] fancy linear model and grouping

2016-02-02 Thread William Dunlap via R-help
Perhaps you can try clustering the output of the Hough transform. PET::hough() will compute it, given a matrix like gplots::hist2d(1/temp[,1],temp[,2])$hData. I do not have much experience here. Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Feb 2, 2016 at 3:35 AM, PIKAL Petr

Re: [R] fancy linear model and grouping

2016-02-02 Thread Gabor Grothendieck
Try the EEV model with 3 clusters where temp is the large dataset: Mclust(temp, 3, modelNames = "EEV") On Tue, Feb 2, 2016 at 8:13 AM, PIKAL Petr wrote: > Hi > > Thanks, it work for my example, which is actually a subset of a bigger data > (4000 rows) with the same

[R] [R-pkgs] New Package: stripless (V. 1.0)

2016-02-02 Thread Bert Gunter
A new package, “stripless”, is now available on CRAN. It should be mostly of interest to those who use Lattice graphics when there are more than a couple of conditioning variables. Quoting from the DESCRIPTION: For making Trellis-type conditioning plots without strip labels. This is useful for

[R] Use predict() after lmer() (library lme4)

2016-02-02 Thread Marc Girondot
Bonjour, (don't worry, after I will write in English [at least I will try ;) ]) I try to understand better mixed models and then I have generated data and I try to understand how the fixed and the random effects are used in predict(). I understand when the random effect is of the form (1 |

Re: [R] fancy linear model and grouping

2016-02-02 Thread PIKAL Petr
Hi Bill and Gabor Thank you for your answers. PET approach is quite interesting but as I hardly understand what it really does it seems to me rather complicated to use it properly. OTOH using Mclust is quite understandable and what is important it provides correct grouping after I used EEV

Re: [R] Big Finance and digits

2016-02-02 Thread Duncan Murdoch
On 02/02/2016 4:28 PM, Glenn Schultz wrote: All, I am modeling a FNMA credit risk transfer deal. The size of the collateral 250 billion. Naturally, the cashflow is quite large the cash flow is calculated and stored in a S4 object which is then converted to an array and the result is

Re: [R] Improvement in Process time

2016-02-02 Thread PIKAL Petr
Hi Basically you can define your data frame before the cycle begins (specify total size, populate rows and columns with NA) and only populate it with your results during a cycle. Or you can use a list for storing results and use do.call to transform it to data frame. something like this

Re: [R] fancy linear model and grouping

2016-02-02 Thread PIKAL Petr
Hi Thanks, it work for my example, which is actually a subset of a bigger data (4000 rows) with the same characteristics. For the whole problem it does not give correct clustering. I tried to set G to 3 but it did not help either. I attached the whole dataset (dput) that you can use, however