R/startOptim.R

Defines functions startOptim

startOptim <- function(n.ints, t.alpha){
  # Calculate a vector which provides
  # starting values to optimize the objective
  # function.
  #
  # Inputs:
  # n.ints: number of intervals in (0, d]
  # t.alpha: quantile of the t distribution for 
  #          m and alpha
  #
  # Output: 
  # A vecror of length 2*n.ints - 1.
  #
  # Written by N Ranathunga in September 2020

  out <- c(rep(0, n.ints - 1), rep(t.alpha, n.ints))

}

Try the ciuupi2 package in your browser

Any scripts or data that you put into this service are public.

ciuupi2 documentation built on March 11, 2021, 5:06 p.m.