R/eq1dk.R

Defines functions eqn1dk

Documented in eqn1dk

#' Constraints: Sum to 1
#' @description Constraints that some params sum to 1. Used Internally. For data with DK.
#' Functions for constraining lambdas to sum to 1 and to bound params between 0 and 1
#' @keywords internal
#' 
#' @param x   lgg, lgk, lgc, lkk, lcg, lck, and lcc
#' @param g1  guess
#' @param data transition matrix

eqn1dk = function(x, g1=NA, data) {
	sum(x[1:7])
}

Try the guess package in your browser

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

guess documentation built on May 1, 2019, 10:25 p.m.