Take the following data set with 3 groups and 10 occasions, saved here as an RMark object. Save this object to your working directory and use the command
>load("sim.data") to retrieve it to a RMark data frame called sim.data
Use RMark to build group, time, group*time and group+time models involving Phi and p
Compare models via AIC
Obtain model-averaged estimate of Phi and plot over time for each group
Export the data to a MARK *.inp file and run the first 3 steps (except plotting) in MARK for comparison