Displaying 20 results from an estimated 8000 matches similar to: "key-value mapping in C inside R?"
2010 Mar 19
1
Arima forecasting
Hello everyone,
I'm doing some benchmark comparing Arima [1] and SVR on time series data.
I'm using an out-of-sample one-step-ahead prediction from Arima using
the "fitted" method [2].
Do someone know how to have a two-steps-ahead forecast timeseries from Arima?
Thanks,
Matteo Bertini
[1] http://robjhyndman.com/software/forecast
[2] AirPassengers example on page 5
2008 Jun 12
2
arima() bug
I guess this is more r-devel than r-help.
Note, I am just the messenger - I have no idea what the user is trying to model here.
arima() crashes R (segfault) with Linux R-2.7.0, Solaris R-2.6.0:
*** caught segfault ***
address 42400000, cause 'memory not mapped'
Traceback:
1: .Call(R_getQ0, phi, theta)
2: makeARIMA(trarma[[1]], trarma[[2]], Delta, kappa)
3: arima(x, c(1, 0, 1), c(1,
2010 Mar 23
2
wxGrid merge cell
It''s possible merge two or more cell ???
ex:
--------------------------------------
| LABEL 1 | LABEL 2 | LABEL 3 |
--------------------------------------
| VALUE CELL MERGE | ANOTHER |
--------------------------------------
| | | |
--------------------------------------
Many Thanks
Carlo Bertini
www.waydotnet.com
--
Posted via
2011 Apr 09
0
stats/arima.c memory allocation
Looking at the arima.c code related to arima fitting I noticed that the code
is mainly a merge of:
- Gardner, G, Harvey, A. C. and Phillips, G. D. A. (1980) Algorithm AS154.
An algorithm for exact maximum likelihood estimation of
autoregressive-moving average models by means of Kalman filtering. Applied
Statistics 29, 311–322.
- Jones, R. H. (1980) Maximum likelihood fitting of ARMA models to
2010 Jan 28
5
Compiling problem on Ubuntu 9.10 64 bit
Hello,
I''m trying to compile wxruby for Ruby 1.9 on Ubuntu Karmic 64 bit, but I
can''t get it to work. I''ve already done this for the 32 bit version (on
another machine, of course), so I don''t see where''s the problem with
that. I thought, I had all neccessary libraries installed, but maybe you
know better... After compiling for a long time, rake fails
2019 Mar 23
4
topenv of emptyenv
I was surprised just now to find out that `topenv(emptyenv())` equals
? `.GlobalEnv`, not `emptyenv()`. From my understanding of the
description of `topenv`, it should walk up the chain of enclosing
environments (as if by calling `e = parent.env(e)` repeatedly; in
fact, that is almost exactly its implementation in envir.c) until it
hits a top level. However, `emptyenv()` has no enclosing
2010 Nov 29
17
wxruby is dead?
I wanted to know whether the development of the project is still active
or not.
many bugs in the bug tracker are open from 25/03/2009 ....
thank you very much
Carlo Bertini
--
Posted via http://www.ruby-forum.com/.
2011 Mar 17
1
assigning to list element within target environment
I would like to assign an value to an element of a list contained in an
environment. The list will contain vectors and matrices. Here's a simple
example:
# create toy environment
testEnv = new.env(parent = emptyenv())
# create list that will be in the environment, then assign() it
x = list(a=1,b=2)
assign("xList",x,testEnv)
# create new element, to be inserted into xList
c = 5:7
2010 Sep 01
2
testing for emptyenv
Dear R-users,
Is there a way to test whether a particular environment e is equal to emtyenv(), or for that sake whether two environments e1 and e2 are equal?
I tried a couple of ways to compare environments, but neither seem to work:
> e1 <- new.env()
> e2 <- new.env()
> e1 == e2
Error in e1 == e2 :
comparison (1) is possible only for atomic and list types
> all.equal(e1,
2009 Feb 03
3
cronbachs alpha - score.items(psych) vs reliability(Rcmdr)
Dear all,
I like the way the Rcmdr package computes reliability. E.g
reliability(cov(d[,c("q1", "q2", "q3", "q4", "q5", "q6")],
use="complete.obs"))
will not only give me the alpha score, but also for each variable,
alpha.score if deleted. However - when writing scripts it's very tiresome to
load the whole Rcmdr GUI just
2010 Jan 21
0
[ wxruby-Bugs-27716 ] ruby 1.9.1p243 [i386-mingw32] not compile with wxWidgests 2.8.10
Bugs item #27716, was opened at 21/01/2010 13:39
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=27716&group_id=35
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Carlo Bertini (waydotnet)
Assigned to: Nobody (None)
Summary: ruby 1.9.1p243 [i386-mingw32] not compile with wxWidgests 2.8.10
Initial Comment:
2013 Apr 18
2
how to control the environment of a formula
Dear List
I have experienced that objects generated with one of my packages used
a lot of space when saved on disc (object.size did not show this!).
some debugging revealed that formula and call objects carried the full
environment of subroutines along, including even stuff not needed by the
formula or call. here is a sketch of the problem
,----
| test <- function(x){
| x <-
2007 May 24
1
Search scoping in acts_as_ferret
Hello,
I am exploring acts_as_ferret, and the first question that pops to mind
is scoping, i.e. how to restrict searches in various ways.
For example, I have a Post model with title, content, and user_id as
attributes, and I want users to be able to search through their own
posts only.
Normally, of course, I would do
Post.find(:all, :conditions=>["user_id=?", current_user],
2015 Oct 13
1
A where() functions that does what exists() does but return the environment when object lives?
On Tue, Oct 13, 2015 at 4:43 PM, Hadley Wickham <h.wickham at gmail.com> wrote:
> Seems easy enough to write yourself:
>
> where <- function(x, env = parent.frame()) {
> if (identical(env, emptyenv()))
> return(NULL)
> if (exists(x, envir = env, inherits = FALSE))
> return(env)
> where(x, parent.env(env))
> }
>
> sample2 <-
2006 Apr 25
7
R 2.3.0: Use of NULL as an environment is deprecated
Dear R-Devel subscriber,
first, let me express my thank to the R-Core team for the new release! I
appreciate their efforts and time spent to enhance R.
In accordance with the 'NEWS' file (see excerpt of it below),
[...
o Changed the environment tree to be rooted in an empty
environment, available as emptyenv(). baseenv() has been
modified to return an environment with emptyenv() as
2006 Apr 25
7
R 2.3.0: Use of NULL as an environment is deprecated
Dear R-Devel subscriber,
first, let me express my thank to the R-Core team for the new release! I
appreciate their efforts and time spent to enhance R.
In accordance with the 'NEWS' file (see excerpt of it below),
[...
o Changed the environment tree to be rooted in an empty
environment, available as emptyenv(). baseenv() has been
modified to return an environment with emptyenv() as
2006 Apr 04
2
Return function from function with minimal environment
Hi,
this relates to the question "How to set a former environment?" asked
yesterday. What is the best way to to return a function with a
minimal environment from a function? Here is a dummy example:
foo <- function(huge) {
scale <- mean(huge)
function(x) { scale * x }
}
fcn <- foo(1:10e5)
The problem with this approach is that the environment of 'fcn' does
not
2010 May 14
2
Restrict access to variables in parent environment
Hello All,
By default, a reference of a variable in a function cause R to look
for the variable in the parent environment if it is not available in
the current environment (without generating any errors or warnings).
I'm wondering if there is a way to revert this behaviors, such that it
will not look for the parent environment and will generate an error if
the variable is not available in the
2020 Aug 10
3
lm() takes weights from formula environment
I wish I had started with "I am disappointed that lm() doesn't continue its search for weights into the calling environment" or "the fact that lm() looks only in the formula environment and data frame for weights doesn't seem consistent with how other values are treated."
But I did not. So I do apologize for both that and for negative tone on my part.
Simplified
2003 May 30
2
Need help installing qtoolbox
I have windows version of R v1.6.2
I have downloaded the qtoolbox.zip from
http://www.cmis.csiro.au/S-PLUS/qtoolbox/
My R command line is
> install.packages("C:/Program Files/R/qtoolbox.zip", .libPaths()[1], CRAN =
NULL)
and I get the following error message:
updating HTML package descriptions
Warning message:
error -1 in extracting from zip file
>
Is there another way to