A B C D E F
1 1 1 1 1 0
1 1 0 0 1 1
1 0 1 1 1 0
1 0 1 1 1 0
1 1 1 1 1 1
0 1 0 0 1 1
END
And here is how my file for dispersal multipliers looks like:
A B C D E F
1 1 1 1 1 0.5
0 1 0 0 0 1
1 0.5 1 1 1 0.5
1 0.5 1 1 1 0.5
1 1 1 1 1 1
0 1 0 0 0 1
END
And here is how I include them in the analyses:
# Input dispersal multipleirs matrix (only for M1)
dispersal_multipliers_fn = np(paste(addslash(extdata_dir), "INPUTdispersal_multipliers_M1.txt", sep=""))
BioGeoBEARS_run_object$dispersal_multipliers_fn = dispersal_multipliers_fn
# Input areas allowed (only for M1)
areas_allowed_fn = np(paste(addslash(extdata_dir), "INPUTareas_allowed_M1.txt", sep=""))
BioGeoBEARS_run_object$areas_allowed_fn = areas_allowed_fn
Hi Nick:Thanks for your reply. I haven’t figure out this yet and I would like to use the DEC M1 in my paper. I was wondering if there is another way to implement the M1 model.Thank you very much! And, congratulations on your paper!----------------------Mariana Mira VasconcellosPhD candidateEcology, Evolution & BehaviorIntegrative BiologyThe University of Texas at Austin
On Sep 2, 2014, at 10:52 PM, Nick Matzke <mat...@nimbios.org> wrote:Hi,I'm finally getting back to Knoxville tomorrow. Briefly, it might be an optimization issue rather than a difference in the calculations -- the way to check is to force the same parameters in BioGeoBEARS DEC and see if that likelihood matches LAGRANGE DEC. In other tests I've run the M1 models are the same.If you haven't figured it out I can take a look on Thurs. or Friday...On Mon, Aug 25, 2014 at 8:07 PM, Mariana Vasconcellos <mari...@utexas.edu> wrote:
Hi Nick:I posted this question in March and I thought I had it solved until recently when I realized that the likelihood values of the dispersal constrained model (M1) is different between LAGRANGE and BioGeoBEARS (DEC).Just to remind you of my problem: I wanted to run a model excluding some non-adjacent ranges and also including a dispersal multipliers matrix. You suggested to run a “fake” time-stratified model where the two time periods would have the same dispersal matrix and areas allowed. The problem is that running the model this way, the likelihood value differs from the LAGRANGE original run, so I think the model is not the same. This doesn’t happen in the unconstrained model where both LAGRANGE and BioGeoBEARS have the same likelihood values.I am sending my input files from the BioGeoBEARS run and also my output with the same model using LAGRANGE non-stratified model. The likelihood using two maximum ranges is -63.83 for BioGeoBEARS and -62.44 for LAGRANGE. This makes me think that the “fake” time-stratified model is not the same as a non-stratified one. Since I am using the likelihood values to test hypothesis, I would like to get it correctly.Could you help me to figure out how to run a constrained dispersal model without using a stratified model since this is biasing the results somehow?Feel free to post your answer in the Google groups. I am sending you the e-mail here because I want to give you my input files so you understand my constrained model.Thank you very much for you help!----------------------Mariana Mira VasconcellosPhD candidateEcology, Evolution & BehaviorIntegrative BiologyThe University of Texas at Austin
On Mar 26, 2014, at 12:25 PM, Nick Matzke <mat...@nimbios.org> wrote:Hi Mariana,
I got it to work with the following. Let me know if it "looks right" as you work with it, I haven't tested the areas_allowed stuff extensively beyond "sinking" single islands back in time.
Cheers!
Nick
<Hypsiboas_DEC_vs_DECj_M1_constrained_v1.pdf><Hypsiboas_DEC_M1_constrained_v1.Rdata><Hypsiboas_DECJ_M1_constrained_v1.Rdata><BioGeoBEARS_H_pulchellus_NM1.R><INPUTdispersal_multipliers_M1_NMv1.txt><INPUTareas_allowed_M1_NM1_v1.txt><timeperiods.txt>
if ( length(adjacent_if_1s) == sum(adjacent_if_1s) )
{
states_to_keep[i] = TRUE
} else {
states_to_keep[i] = FALSE
}
<mailto:biogeobears+unsub...@googlegroups.com>.
To unsubscribe from this group and stop receiving emails from it, send an email to biogeobears...@googlegroups.com.
To post to this group, send email to bioge...@googlegroups.com.
Visit this group at http://groups.google.com/group/biogeobears.
To view this discussion on the web visit https://groups.google.com/d/msgid/biogeobears/83d08dca-dde9-41f3-af6e-5c3c744fe4b9%40googlegroups.com.
Dear Nick,