Description Usage Arguments Details Value Author(s) References See Also Examples
Constructs a clineMetaModel
object for use with
hzar.first.fitRequest.old.ML
. Said object can be
further tailored to the specific model desired, or can be used as-is.
1 2 3 4 5 | hzar.makeCline1DFreq(data = NULL, scaling = "none", tails = "none",
direction = NULL)
hzar.makeCline1DCLT(data = NULL, scaling = "free", tails = "none",
direction = NULL)
hzar.makeCline1DNormal(data, tails = "none")
|
data |
A |
scaling |
Can be one of three strings:
|
tails |
Can be one of five strings:
|
direction |
Can be one of three values:
|
The clineMetaModel
object returned by
hzar.makeCline1DNormal
has a slightly diffent structure, due to
the complexity of the normal cline model. Use
hzar.first.fitRequest.gC
instead of
hzar.first.fitRequest.old.ML
to construct the
hzar.fitRequest
object needed for hzar.doFit
.
A clineMetaModel
object, which is a list with the following
4 components:
req |
A boolean function of the model parameters w |
prior |
Description of 'comp1' |
func |
Description of 'comp1' |
parameterTypes |
A list of
|
Graham Derryberry asterion@alum.mit.edu
Gay, L., P.-A. Crochet, D. A. Bell, and T. Lenormand. 2008. Comparing clines on molecular and phenotypic traits in hybrid zones: a window on tension zone models. Evolution 62:2789-2806.
Szymura, J., and N. H. Barton. 1986. Genetic analysis of a hybrid zone between the fire-bellied toads, Bombina bombina and B. variegata, near Cracow in souhern Poland. Evolution 40:1141-1159.
Szymura, J., and N. H. Barton. 1991. The genetic structure of the hybrid zone between the fire-bellied toads Bombina bombina and B. variegata: comparisons between transects and between loci. Evolution 45:237-261.
hzar.obsData
hzar.first.fitRequest.old.ML
hzar.first.fitRequest.gC
1 2 3 4 5 6 7 8 | data(manakinMolecular);
mknAdaA <-
hzar.doMolecularData1DPops(manakinMolecular$distance,
manakinMolecular$ada.A,
manakinMolecular$ada.nSamples);
mknAdaAmodel <-
hzar.makeCline1DFreq(mknAdaA, scaling="fixed",tails="none");
str(mknAdaAmodel);
|
sh: 1: cannot create /dev/null: Permission denied
Loading required package: MCMCpack
Loading required package: coda
Loading required package: MASS
##
## Markov Chain Monte Carlo Package (MCMCpack)
## Copyright (C) 2003-2020 Andrew D. Martin, Kevin M. Quinn, and Jong Hee Park
##
## Support provided by the U.S. National Science Foundation
## (Grants SES-0350646 and SES-0350613)
##
Loading required package: foreach
List of 5
$ prior :function (center, width, pMin, pMax)
$ pExp : language pMin + (pMax - pMin) * (1/(1 + exp(-((x - center) * 4/width))))
$ req :function (center, width, pMin, pMax)
$ parameterTypes:List of 4
..$ center:List of 2
.. ..$ val: num 198
.. ..$ w : num 1.5
.. ..- attr(*, "class")= chr "clineParameter"
.. ..- attr(*, "param")= chr "center"
.. ..- attr(*, "fixed")= logi FALSE
.. ..- attr(*, "limit.lower")= num 0
.. ..- attr(*, "limit.upper")= num 570
.. ..- attr(*, "realBTWN01")= logi FALSE
..$ width :List of 2
.. ..$ val: num 64.8
.. ..$ w : num 1.5
.. ..- attr(*, "class")= chr "clineParameter"
.. ..- attr(*, "param")= chr "width"
.. ..- attr(*, "fixed")= logi FALSE
.. ..- attr(*, "limit.lower")= num 0
.. ..- attr(*, "limit.upper")= num 570
.. ..- attr(*, "realBTWN01")= logi FALSE
..$ pMin :List of 2
.. ..$ val: num 0.1
.. ..$ w : num 1.1
.. ..- attr(*, "class")= chr "clineParameter"
.. ..- attr(*, "param")= chr "pMin"
.. ..- attr(*, "fixed")= logi TRUE
.. ..- attr(*, "limit.lower")= num 0
.. ..- attr(*, "limit.upper")= num 1
.. ..- attr(*, "realBTWN01")= logi TRUE
..$ pMax :List of 2
.. ..$ val: num 0.675
.. ..$ w : num 1.1
.. ..- attr(*, "class")= chr "clineParameter"
.. ..- attr(*, "param")= chr "pMax"
.. ..- attr(*, "fixed")= logi TRUE
.. ..- attr(*, "limit.lower")= num 0
.. ..- attr(*, "limit.upper")= num 1
.. ..- attr(*, "realBTWN01")= logi TRUE
$ func :function (center, width, pMin, pMax)
- attr(*, "class")= chr "clineMetaModel"
- attr(*, "tails")= chr "none"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.