Displaying 2 results from an estimated 2 matches for "cmodel".
Did you mean:
model
2007 Apr 04
1
Accessing C++ code from R
...capsulating this part of the code in
extern "C" {
}
has no effect.
runSimulation is just a regular function, with a lot of int* and
double* parameters, and it is not part of a class. It does inside
create a class, though.
Outline:
void runSimulation(int *p_1 ... etc) {
try {
CModel Model();
Model.Run();
} catch (CException& e) {
cout << "exception" << endl;
}
}
Encapsulating this function in extern "C" also has no effect.
Anyone any ideas what I should do? The system I am using is an Intel-based Mac.
Thanks in advance!
J...
2010 May 12
2
Reading R code help--Beginner
...t showing which strictly exogeneous variables enter the subsystem equations
# lex ... scalar/vector of lags of exogenous variables
# method ... select cointegrating rank by max. eigenvalue ("max.eigen") or trace statistic ("trace")
# ----- Set subsystems -----
cmodel <- list()
N <-
length(data)-1 # number of
subsystems i=0,1,...,N
dims <- vector()
for (i in 1:(N+1))
{
if (!is.null(dim(data[[i]])))
{
dims[i] <- dim(data[[i]])[1]
} else {
dims[i]
<- length(dat...