nEffNaive: Effective Sample Size

View source: R/simulatePhyloPoissonLogNormal.R

nEffNaiveR Documentation

Effective Sample Size

Description

Sample size so that the variance of the estimator is sigma^2 / nEff.

Usage

nEffNaive(tree, id.condition, model, selection.strength)

Arguments

tree

A phylogenetic tree. If NULL, samples are assumed to be iid.

id.condition

A named vector giving the state of each tip (sample).

model

The trait evolution model. One of "BM" or "OU".

selection.strength

If model="OU", the selection strength parameter.

Value

The effective sample size.


csoneson/compcodeR documentation built on Nov. 3, 2024, 6:05 a.m.