Learn R Programming

causaloptim (version 0.9.1)

evaluate_objective: 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.