print.dbOptim: Prints the results from optim.relatedness()

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/optim.relatedness.R

Description

Prints the evaluated functions for the object function, best estimate of alpha and possibly list of variances.

Usage

1
2
## S3 method for class 'dbOptim'
print(x, var.list = FALSE, ...)

Arguments

x

Object returned by optim.relatedness()

var.list

Logical. Whether the (long) list of variance components should be printed to the screen.

...

...

Details

Prints the summary details of the fit

Value

A dataframe with [theta,value] and a vector of fitted alpha parameters

Author(s)

James Curran and Torben Tvedebrink

See Also

optim.relatedness

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
  ## Not run: 
  ## Simulate some allele frequencies:
  freqs <-  replicate(10, { g = rgamma(n=10,scale=4,shape=3); g/sum(g)},
              simplify=FALSE)
  ## Load the sample database:
  data(dbExample)
  obs <- dbCompare(dbExample,trace=FALSE)$m
  C3 <- optim.relatedness(obs,theta0=0.0,theta1=0.03,probs=freqs,
          objFunction='C3',max.bisect=30,trace=TRUE)
  print(C3)
  
## End(Not run)

DNAtools documentation built on July 8, 2020, 7:13 p.m.