Re: [R] Error with "compiler" and "caret" packages

2017-01-26 Thread Bert Gunter
Dan: Strictly speaking library() does not just "load" it -- it "attaches" it and loads compiler's namespace. I would have presumed that if needed, the compiler paclage would have been loaded as part of caret's Namespace import directives, but perhaps that's wrong and the source of the

Re: [R] Error with "compiler" and "caret" packages

2017-01-26 Thread Nordlund, Dan (DSHS/RDA)
The compiler package may be installed on your computer, but did you load it with library(compiler) Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of Social and Health Services > -Original Message-

Re: [R] Error with "compiler" and "caret" packages

2017-01-26 Thread Jeff Newmiller
Running Windows and user of caret. BTW permissions problems can begin with installation if you use "Run As Administrator..." mode instead of just letting the install program prompt you for permission to install. But I know nothing about caret. -- Sent from my phone. Please excuse my brevity.

Re: [R] Error with "compiler" and "caret" packages

2017-01-26 Thread Bert Gunter
Perfectly reasonable questions: I don't have a clue. Perhaps someone runnig Windows can answer. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu,

Re: [R] Error with "compiler" and "caret" packages

2017-01-26 Thread Jeff Hughes
That sounds like a good thing to check, but what permissions should I be checking? I'm not very familiar with how the compiler works -- is it creating temp files somewhere that I should check? If you have a suggestion for a directory or two that seem like good candidates, I can play around with

Re: [R] R2Cube integration errors

2017-01-26 Thread David Winsemius
> On Jan 26, 2017, at 12:51 PM, George Trojan - NOAA Federal > wrote: > > Why this happens? > >> library("R2Cuba") >> f <- function(x) 0 >> cuhre(ndim=1, ncomp=1, f) > Iteration 1: 11 integrand evaluations so far > [1] 0 +- 0 chisq 0 (0 df) > Iteration 2: 33

[R] proportional odds logistic regression with non-negative constraint for several coefficients

2017-01-26 Thread Liu, Zhao
Hi, I am working on proportional odds logistic regression, and trying to figure out how to specify the constraint for several predictors. Those non-negative constraints for some predictors are for practical purpose. I have seen some one posted passing box constraint with L-BFGS-B with

[R] R2Cube integration errors

2017-01-26 Thread George Trojan - NOAA Federal
Why this happens? > library("R2Cuba") > f <- function(x) 0 > cuhre(ndim=1, ncomp=1, f) Iteration 1: 11 integrand evaluations so far [1] 0 +- 0 chisq 0 (0 df) Iteration 2: 33 integrand evaluations so far [1] 0 +- 0 chisq 0 (1 df) integral: 0 (+-0) nregions: 2; number of evaluations:

Re: [R] order list of date (bug?)

2017-01-26 Thread Jeff Newmiller
The Etc timezones are nice and simple, but I am grateful for the other ones since they help make handling local time conventions used by other people tolerable. In the TL;DR department, Local Standard Time is accessible using Olson "Etc/GMT.*" time zone strings, but that is not the same

Re: [R] separate mixture of gamma and normal (with mixtools or ??)

2017-01-26 Thread David Winsemius
> On Jan 23, 2017, at 11:47 PM, Thomas Petzoldt wrote: > > Dear Bert, > > thank you very much for your suggestion. You are right, ill-conditioning was > sometimes a problem for 3 components, but not in the two-component case. The > modes are well separated, and the sample

Re: [R] [FORGED] Fitting arima Models with Exogenous Variables

2017-01-26 Thread Rolf Turner
I am re-sending this since I have been told that the attachments that I made did not get through. So I am trying again with *.dput attachments. You will need to read them in using dget(). cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone:

Re: [R] order list of date (bug?)

2017-01-26 Thread William Dunlap via R-help
The R bug I mentioned was not that as.POSIXlt("2016-03-27 02:30", format="%Y-%m-%d %H:%M", tz="CET") returned an NA. That seems reasonable since there was no such time. The bug is that the POSIXlt object prints in an odd format (leaving off the time zone/daylight/standard time string) instead

Re: [R] order list of date (bug?)

2017-01-26 Thread rob vech
Hi William, asking to the r-devel list I resolved the problem! It depends from the timezone (tz param) that I didn't specified and so R automatically uses my local time and considers also the daylight saving time (that comes at 2:00 at my position). As my dates are in solar time, I specified

Re: [R] Error with "compiler" and "caret" packages

2017-01-26 Thread Bert Gunter
Check your permissions? They may be denying your process access. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, Jan 25, 2017 at 3:23 PM,

Re: [R] Cannot open MTS package

2017-01-26 Thread David Winsemius
> On Jan 24, 2017, at 4:08 AM, T.Riedle wrote: > > Dear all, > > I am trying to download MTS package but when I call it using library() Did you install it? If so, how? > I get the error below. I have already installed the Rcpp package. What is > wrong? What must I do to

Re: [R] testing in spatial sure models

2017-01-26 Thread Bert Gunter
Wrong list. For statistical questions (which this is), post to stats.stackexchange.com. I suspect you will have to frame your query more coherently (context, model, etc.) to get a response even there. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming

[R] Passing database connections to functions

2017-01-26 Thread David Hutchinson via R-help
Hi, I have a series of functions which query various tables of a sqlite database. The database was developed by a government agency and is downloaded to a local users computer (it is relatively large - 1 GB). These functions I have developed typically take the form of: getData <-

[R] Error with "compiler" and "caret" packages

2017-01-26 Thread Jeff Hughes
Hi there, I have been getting an irritating error when trying to use the "caret" package on one of my machines. Whenever I train any model whatsoever, it comes back with this error: Warning: namespace ‘compiler’ is not available and has been replaced by .GlobalEnv when processing object ‘sep’

[R] Sweave and optional document sections

2017-01-26 Thread Kyle Covington
I was just trying to do this and I think I have a reasonable solution that seems to be working well. In the main document you can include a chunk with a logical section: <>= if(T){ {sink("/dev/null"); Sweave(’subsection.Rnw'); sink(); }

[R] testing in spatial sure models

2017-01-26 Thread Mª Pilar Gonzalez Casimiro
Good afternoon, I would like to know how to test for homogeneity in spatial sure models. Thank you, Pilar Pilar González Casimiro Facultad de Ciencias Económicas y Empresariales Avda. Lehendakari Aguirre, 83 48015 Bilbao tfno: 94 601 3730 __

Re: [R] Categorize subjects using PCA

2017-01-26 Thread Michael Dewey
If you want to discover groupings in your data-set I would have thought latent class analysis was a more principled solution. There are several packages for doing this. If you want more detail about this you might be better asking on stats.stackexchange.com for statistical help. When you do

[R] Categorize subjects using PCA

2017-01-26 Thread Dr.Vinay Pitchika
Hello everyone, I have been analyzing dietary pattern data obtained via FFQ. We performed Principal Component Analysis and decided to extract 3 dimensions (healthy, unhealthy and mixed diet) and to adjust this in linear regression model along with various other variables. However, our

[R] [R-pkgs] Update of package metap now on CRAN

2017-01-26 Thread Michael Dewey
I have uploaded version 0.8 of this package for meta-analysis of significance values. In the nearly three years since I last posted here about it there have been some additions (see the NEWS) but the most important change is an extended vignette which not only describes the function but also