FillSetting: FillSetting

Description Usage Arguments Value Author(s) Examples

View source: R/FillSetting.R

Description

FillSetting computes widths and centers of set of clines (simulations). Both 1D and 2D simulations can be input

Usage

1
FillSetting(sim, GradTable, method = "hzar", tails = "none")

Arguments

sim

A list of simulation summaries, output of ReadSummary. Please refer to documentation of ReadSummary function for detailed usage.

GradTable

A data.frame of simulations, output of ReadSetting. Please refer to documentation of ReadSetting function for detailed usage.

method

set to 'hzar' for fit performed by package hzar (default) or 'nlm' for fit performed by fit of logistic curve to cline using non-linear least square method. 'nlm' mehtod is faster, but does not perform well on clines deviating a lot from logistic shape (multilocus clines, clines under strong drift ...)

tails

('mirror') to fit logistic model with exponenctial functions as tails; ('none') to fit logistic model only

Value

A data.frame object, integrating information about the settings used in the simulation run and the summary of the simulation run in a R-friendly format.

Author(s)

Kamil Jaron kamiljaron at gmail.com

Examples

1
2
3
4
5
{
   mysim=ReadSummary(nameIn='../../Conjunction/out')
   myGradTable=ReadSetting(InputFile='../../Conjunction/setting.txt')
   myFilledSetting = FillSetting(sim=mysim, GradTable=myGradTable)
}

KamilSJaron/ConjunctionStats documentation built on May 7, 2019, 12:06 p.m.