Closed eliotmiller closed 2 years ago
Yes, the data your inputing is not the same between the model fit and the stochastic map function. You'll also need to specify the root prior again when doing makeSimmap. The correct code would like this:
simmap <- makeSimmap(tree=phy, data=Precur_Dat, model=model, rate.cat=2, nSim=1, nCores=1, root.p = "maddfitz")
Best,
James
Thanks! This was a problem in my worked example here, I wasn't making the same mistake in the actual code. My problem in the actual code was failing to reference the $solution object specifically for the model argument. I mistook errors in both cases to mean it wasn't working with the precursor model, but they were two separate mistakes I'd made. Thanks again!
Wondering if it's possible or would be desirable to run stochastic character mapping with a precursor model. It currently does not work for me.
returns
Am I possibly just doing this wrong?