R/dyjt_scaled_log_multiplication.R

Defines functions dyjt_scaled_log_multiplication

## File Name: dyjt_scaled_log_multiplication.R
## File Version: 0.11

dyjt_scaled_log_multiplication <- function( dy, yt, use_log, check_zero=TRUE)
{
    if (use_log){
        dy <- dy + log(yt)
    } else {
        dy <- dy * yt
    }
    if (check_zero){
        dy[ is.na(dy) ] <- 0
    }
    return(dy)
}

Try the mdmb package in your browser

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

mdmb documentation built on March 7, 2023, 6:58 p.m.