Displaying 2 results from an estimated 2 matches for "newsplit".
2009 Oct 12
1
Binding objects with a similar name
...sers,
The code below splits a dataset by "target_species" and then further splits
each target species group by year. Finally the sum of a variable called
"total_hook_num" is calculated and then assigned a name based on
(paste(a$target_species[1],a$year[1],sep="").
newsplit<-split(newdataset,list(newdataset$target_species))
for(i in newsplit){
by.year<-split(i,list(i$year))
for(a in by.year){
assign(paste(a$target_species[1],a$year[1],sep=""),sum(a$total_hook_num))
}
}
The end result is a single value for the number of hooks in a particular
year for...
2003 Mar 25
2
locfit troubles
...and .85). We use
locfit(judgement~score,kern="rect",deg=0,family="normal",alpha=c(alpha0,alpha1))
which is the simplest scenario we can think of (though not the one we
would like to use ultimately). The problem: under very small alpha1s
(e.g. 0.001), we see the warning "newsplit: out of vertex space" and
locfit produces a non-sensical output.
Does anyone know the source of this warning? More importantly, are we
mistaken in our usage of such a small alpha1? (The scores are very
tightly packed; there are no windows of size .001 without at least
a few datapoints).
Than...