Displaying 3 results from an estimated 3 matches for "numcat".
Did you mean:
numbat
2009 Apr 13
2
equation help
Hi everyone, I am having a bit of trouble correctly structuring an
equation in R.
Here is the equation
Here is what I thought
for(i in 1:numItem)for(x in 1:numCat)
Ptheta[,i,x]<-(exp(-1.702*a[i]*(theta-b[i,x+1]))
My problem is that I am not sure how to get it to read the equation as
having two indexing points (i and x). Right now it is trying to read
it as a matrix, but each value (i and x) are only vectors. Does anyone
have any suggest...
2002 Apr 25
1
understanding and resolving seg faults
...ltaI[0][0] should be OK, but apparently not.
thanks for your help,
For those that don't have structure of rpart drilled into their brain:
deltaI is declared in "rpmatrix.c":
void rpmatrix(struct node *me, Sint *nodecount, Sint *splitcount,
Sint *catcount, Sint *numcat, double **dsplit,
Sint **isplit, Sint **csplit, double **dnode,
Sint **inode, double **deltaI, int id)
rpmatrix is called by "s_to_rp.c" where
ddeltaI is a pointer from an ALLOC call:
void s_to_rp2(Sint *n, Sint *nsplit, Sin...
2004 Jun 17
2
using "= matrix (...)" in .C calls
...nodes, 3+numresp),
inode = matrix(integer(1), nodes, 6),
PACKAGE = "rpart")
Which in communicates with the C code in "s_to_rp.c"
void s_to_rp2(Sint *n, Sint *nsplit, Sint *nnode, Sint
*ncat,
Sint *numcat, Sint *maxcat, Sint *xvals, Sint
*which,
double *cptable, double *dsplit, Sint *isplit, Sint
*csplit,
double *dnode, Sint *inode)
Apparently the lines like:
dsplit = matrix(double(1), nsplit,3),
Cause C arrays to be pulled over into an R...