Learn R Programming

ivdoctr (version 1.0.1)

get_s_u: Solves for the variance of the error term u

Description

This function solves for the variance of u given r_TstarU and kappa. It handles 3 potential cases when the variance of u must be evaluated: 1. Across multiple simulations, but given the same r_TstarU and k 2. For multiple simulations, each with a value of r_TstarU and k 3. For one simulation across a grid of r_TstarU and k

Usage

get_s_u(r_TstarU, k, obs)

Arguments

r_TstarU

Vector of r_TstarU values

k

Vector of kappa values

obs

Observables generated by get_observables

Value

Vector of variances of u