Displaying 1 result from an estimated 1 matches for "mismesuar".
Did you mean:
mismesuared
2006 Apr 26
1
help using tapply
...d 5, which are 8 units of time away from each other.
# So here we have individual 1 migrating from state 1 to state 2 at
observation #6,
# while individual 2 stays in state 1 as long as we can observe her.
# I am interested in the spell (duration) of each state.
# However, the durations are clearly mismesuared, and now I am trying to
give some consistency to the data.
# I am assuming that the first duration is correct. Departing from this, I
wrote the following function:
d <- function(dur,est)
{
if ( sum( diff(est) )==0 ) # for those who didn't change state
{
for( i in c...