getCover: Calculates coverage indicators for estimated parameters

Description Usage Arguments Value

View source: R/bsd_package.R

Description

This function takes in an object returned by optim and returns logicals on whether the corresponding 95 confidence interval of each estimate contains the true value.

Usage

1
  getCover(opt, trueParam)

Arguments

opt

An optim object

trueParam

A vector containing the true parameters

Value

A vector of indicators, 1 indicating that the true parameter was included in the corresponding confidence interval


jasonxu90/bdsem documentation built on May 18, 2019, 5:54 p.m.