linear_expression {causaloptim}R Documentation

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

Description

A helper function for evaluate_objective.

Usage

linear_expression(numbers, strings)

Arguments

numbers

A numeric vector.

strings

A character vector of the same length as numbers.

Value

A string consisting of the corresponding linear combination, including the sign of its first term.


[Package causaloptim version 0.8.2 Index]