getInits: Get initial values for CI search

View source: R/utils.R

getInitsR Documentation

Get initial values for CI search

Description

getinits returns initial values for CI search, c(lower, upper)

Usage

getInits(model, trtname, runit, strat, data, initmethod, alpha, obs1)

Details

If initmethod = "asymp", initial bounds are based on asymptotic approximation (e.g. Wald CI for GLM). If initmethod = "perm", initial bounds are based on the permutation approach used in Garthwaite (1996) with \hat{\theta}\pm \{(t_2 - t_1)/2\}, where t_1 and t_2 denote the second smallest and second largest estimates from the permutation test.

This is a general utility function used within permci.


djrabideau/permuter documentation built on Jan. 9, 2025, 11:45 p.m.