Description Usage Arguments Value Examples
Plots the HSMM dwell-time distributions estimated using plmeHSMM
.
1 |
mod |
model object as returned by |
R_max |
integer, maximum dwell time which the dwell-time probabilities are plotted for. |
state |
value determining the states which the distributions are plotted for. Either "all" (default) for plotting the dwell-time distributions of all states, or positive integer in 1,..,N. |
mfrow |
If |
plot of the estimated HSMM dwell-time distributions.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # fit 3-state HSMM to hourly muskox step length
# initial values
p_list0<-list()
p_list0[[1]]<-c(dgeom(0:9,0.2),1-pgeom(9,0.2))
p_list0[[2]]<-c(dgeom(0:9,0.2),1-pgeom(9,0.2))
p_list0[[3]]<-c(dgeom(0:9,0.2),1-pgeom(9,0.2))
omega0<-matrix(0.5,3,3)
diag(omega0)<-0
mu0<-c(5,100,350)
sigma0<-c(3,90,300)
# fit HSMM with state-dependent gamma distributions, lambda=c(1000,1000)
# and difference order of 3
PHSMM<-pmleHSMM(y=muskox$step,N=3,p_list=p_list0,mu=mu0,sigma=sigma0,
omega=omega0,lambda=c(1000,1000,1000),order_diff=3,y_dist='gamma')
# plot the estimated distributions for dwell-times up to 15.
plotDw(mod=PHSMM,R_max=15)
plotDw(mod=PHSMM,R_max=15,state=1)
plotDw(mod=PHSMM,R_max=15,mfrow=c(1,3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.