Displaying 5 results from an estimated 5 matches for "trekvana".
2011 Sep 22
3
How make a x,y dataset from a formula based entry
Hello all,
So I am using the (formula entry) method for randomForests:
randomForest(y~x1+x2+...+x39+x40,data=xxx,...) but the issue is that some of
the items in that package dont take a formula entry - you have to explicitly
state the y and x vector:
randomForest(x=xxx[,c('x1','x2',...,'x40')],y=xxx[,'y'],...)
Now my question is whether there is a function/way
2012 Oct 31
3
expand.grip for permutations
if i were to have a block size of 4 people and i want to assign a treatment
combination to the entire block, there would be 16 different treatment
combinations (TTTT, TTTP, TTPP, PTTP, etc.)
i am trying to get all 16 permutations and i am able to use this code below.
drugs=c('P','T');
comb=expand.grid(drugs,drugs,drugs,drugs)
for a block size of 3 the code would be
2011 Sep 09
1
Question about plot.mona {cluster}
Hello all, I what to print the banner plot that is output from the mona
method in the cluster package but the problem is I dont want to print all
that red ink. Here is an example:
data(animals)
ma <- mona(animals)
ma
## Plot similar to Figure 10 in Struyf et al (1996)
plot(ma)
I can change the bar color by using the argument col=c(0,0) -
plot(ma,col=c(0,0)) - but then the variable labels also
2010 Sep 16
4
Pesky homemade function code
Hi all-
this seems to be simple to figure out but since im new to writing functions
I dont know what is happening. Here is my code along with the error I am
receiving:
semivario=function(data,ids,times,resids){
id=unique(data$ids)
index=combinations(length(data$times[data$ids==id[1]]),2)
time=gamma=numeric(dim(index)[1])
for (j in 1:dim(index)[1]){
2011 Sep 24
1
help
...Sep 2011 16:14:05 -0400
> From: Jean-Christophe BOU?TT?<jcbouette at gmail.com>
>> Hello,
>> You can check ?model.frame.
>> I do not know however to extract only the right-hand of left-hand
> part
>> of a formula.
>>
>> JC
>>
>> 2011/9/22 trekvana<trekvana at aol.com>:
>>> Hello all,
>>>
>>> So I am using the (formula entry) method for randomForests:
>>>
>>> randomForest(y~x1+x2+...+x39+x40,data=xxx,...) but the issue is that
> some of
>>> the items in that package dont take a fo...