evaluate_objective {causaloptim}R Documentation

Compute the scalar product of a vector of numbers and a vector of both numbers and strings

Description

A helper function for opt_effect.

Usage

evaluate_objective(c1_num, p, y)

Arguments

c1_num

A numeric column matrix.

p

A character vector.

y

A numeric vector whose length is the sum of the lengths of c1_num and p.

Value

A string consisting of an affine expression in p corresponding to the scalar product of c(c1_num, p) with y.


[Package causaloptim version 0.8.2 Index]