Displaying 5 results from an estimated 5 matches for "ncond".
Did you mean:
cond
2009 Mar 06
0
modifying a built in function from the stats package (fixing arima) (CONCLUSIONS)
...par <- as.double(fixed)
par[mask] <- p
trarma <- .Call(R_ARIMA_transPars, par, arma, FALSE)
if (ncxreg > 0)
x <- x - xreg %*% par[narma + (1:ncxreg)]
res <- .Call(R_ARIMA_CSS, x, arma, trarma[[1]], trarma[[2]],
as.integer(ncond), FALSE)
0.5 * log(res)
}
arCheck <- function(ar) {
p <- max(which(c(1, -ar) != 0)) - 1
if (!p)
return(TRUE)
all(Mod(polyroot(c(1, -ar[1:p]))) > 1)
}
maInvert <- function(ma) {
q <- length(ma)
q0 <- max(wh...
2010 Aug 11
1
sem & psych
...ds <- c(0.2, 0.3, 0.4) # loads of observed variables on method
factors
methdCorrs <- c(0.0, 0.2, 0.4) # correlations between methods
SampleSize <- 500 # Sample size
myMaxIter <- 500 # Maximal number of interactions in
every model estimation
nCond <- length(traitLoads)* length(traitCorrs)* length(methodLoads)*
length(methdCorrs)
myRes <- as.numeric(gl(nCond, 1, myRep*nCond))
myloadTrait <- as.numeric(gl(length(traitLoads), 1, length(myRes)))
mycorrTrait <- as.numeric(gl(length(traitCorrs), length(traitLoads),
length(...
2001 Jan 05
1
segfault when calling C code
...#39;ve understood properly),
and also passing in variables with enough space (I know how much it will
be). Neither change gets rid of the segmentation fault.
In case it helps, here's one of the 2 callocs (the other is identical,
with a different name):
trunccdfs = (double *) calloc(*nbins * *nconds, sizeof(double));
Before jumping in with a debugger (and running R with debugging for the
first time) I thought I'd see whether this rang any bells with anyone.
Again, the part that confuses me (but that may be the clue as to what's
wrong) is that this code worked fine with R-1.1.1.
If m...
2004 Aug 02
3
help(arima) return value typo?
in ?arima (R-1.9.1), the return value component 'convergence' should be
'code'?
(it's a pity there is no reliable way to check return value documentation
consistency with the code, or is there?)
h.
----------------------------------
Hiroyuki Kawakatsu
School of Management and Economics
25 University Square
Queen's University, Belfast
Belfast BT7 1NN
Northern Ireland
2004 Aug 02
3
help(arima) return value typo?
in ?arima (R-1.9.1), the return value component 'convergence' should be
'code'?
(it's a pity there is no reliable way to check return value documentation
consistency with the code, or is there?)
h.
----------------------------------
Hiroyuki Kawakatsu
School of Management and Economics
25 University Square
Queen's University, Belfast
Belfast BT7 1NN
Northern Ireland