get_llh_freq: Get the log-likelihood of data assuming sample frequencies...

Description Usage Arguments Value

View source: R/get_llh_freq.R

Description

get_llh_freq computes the Gaussian approximation assuming that the actual frequencies are the sampled frequencies

Usage

1
get_llh_freq(prior, lgth, prec, tvec, nuvec, s, alpha, f0)

Arguments

prior

a function that returns the prior distribution (default: function(x)1)

lgth

number of data points in the time series

prec

minimum precision for optimisation

tvec

time points for the time series (start with 0)

nuvec

percent of successful samples per time point

s

selection coefficient

alpha

population size, bounded [0,Inf)

f0

initial frequency for the underlying logistic change

Value

A log-likelihood estimate.


benmarwick/signatselect documentation built on Dec. 4, 2019, 4:22 p.m.