Re: [R] My First Function: cryptic error message

2007-04-17 Thread Joel J. Adamson
Weiwei Shi writes: I cannot reproduce the error w/o the data called probands I realized this when I posted; sharing the data with anyone is not possible (I hope you understand). I'm hoping a more experienced useR can spot a syntax or procedural error that I made. I have made some progress.

[R] My First Function: cryptic error message

2007-04-16 Thread Joel J. Adamson
Dear List, My first R function is a rip-off bagging algorithm from pg. 138 of Everitt and Hothorn's Handbook of Statistical Analyses using R (HSAUR). I'm using recursive partitioning to develop a set of useful variables in diagnosing ADHD. I'm running this in ESS in XEmacs 21.4.19, R 2.4.1 on

Re: [R] My First Function: cryptic error message

2007-04-16 Thread Weiwei Shi
Hi, Joel: I cannot reproduce the error w/o the data called probands but I assume the line in bagger function bootsamples - rmultinom (length(trees), n, rep(1,n)/n) might not succeed so that it complains bootsamples not found. try to add one line like