jlaake wrote:I see one or more of these types of emails every year. RMark simply creates an input file for MARK.exe and then extracts the results from the MARK.exe output file. When you create a model with MARK you are using its graphical user interface to create an input file which is passed to MARK.exe. The ONLY ways for differences to occur are differences in the data or differences in the model that was constructed.
Jeff, I know that! That's precisely why I'm puzzled about different results when using IDENTICAL DATA and applying the SAME LINK FUNCTION.
jlaake wrote:Also, in constructing DMs, RMark uses the first time (or other factor) as the intercept and MARK uses the last time (or other factor) as the intercept. Theoretically the models are the same but like with the link function this can affect the optimization code with some data sets.
Okay, this seems to be interesting. I checked the design matrix in the RMark output and typed it to the MARK design specification window (first time used as intercept). When I run the model (simple time dependence {Phi(t)p(t)}, same data as used with RMark, same design matrix as used with RMark, same link function as used with RMark) it comes quite close to the RMark results now - - but the results still are not identical! Please see the table with the Phi and p estimates (MARK left, RMark right column):
Phi 0,0000008 0,0000029
Phi 0,2000030 0,2000000
Phi 0,3333339 0,3333334
Phi 0,7407710 0,7407412
Phi 0,3729916 0,3729947
Phi 0,5711705 0,5711539
Phi 0,2025665 0,2025700
Phi 0,6076725 0,6076388
Phi 0,4337565 0,4337662
Phi 0,5459531 0,5459463
Phi 0,4017036 0,4017045
Phi 0,3911487 0,3911486
Phi 0,5386397 0,5386335
Phi 0,3484836 0,3484848
Phi 0,1567232 0,1577664
p 0,6091755 0,5957711
p 1,0000000 1,0000000
p 1,0000000 1,0000000
p 0,1499969 0,1499998
p 0,3548371 0,3548385
p 0,2222155 0,2222222
p 0,5223972 0,5223878
p 0,1999947 0,2000000
p 0,3353329 0,3353294
p 0,2079212 0,2079206
p 0,2772283 0,2772275
p 0,3922416 0,3922413
p 0,4053994 0,4054056
p 0,4347854 0,4347830
p 0,9817204 0,9751518
Now, I'm not worried about the differences--they appear to be negligibly small--, but I still wonder how it's possible...