jointCDF {MoTBFs}R Documentation

Joint MoTBFs CDFs

Description

Function to compute multivariate CDFs.

Usage

jointCDF(df, grid)

Arguments

df

The dataset as an object of class data.frame.

grid

a data.frame with the selected data points where the objective function will be evaluated when optimizing the parameters.

Value

jointCDF() returns a vector.

Examples


## Create dataset with 2 variables
n = 2
size = 50
df <- as.data.frame(matrix(round(rnorm(size*n),2), ncol = n))

## Create grid dataset
npointsgrid <- 10
ranges <- sapply(df, range)
eg <- list()
for(i in 1: ncol(df)){
  eg[[i]] <- seq(ranges[1,i], ranges[2,i], length.out = npointsgrid)
}

x <- expand.grid(eg)

## Joint cumulative values
jointCDF(df = df, grid = x)


[Package MoTBFs version 1.4.1 Index]