getThetaWLM: Wrapper around univariate weighted linear regression for a...

Description Usage Arguments Details

View source: R/getThetaWLM.R

Description

A theta LIST has a specific structure described in the vignette in this package. This function is a simple wrapper to automate weighted linear regressions for input and output organised in a theta LIST.

Usage

1
getThetaWLM(theta, draw = FALSE, weighted = TRUE)

Arguments

theta

A list with at least the components theta$b , which is a named vector of perturbed model inputs, theta$cost, which serves to screen out failed ensemble simulations (for which the cost function is NA) and as possible weights, theta$MCgpar, or ensemble of model inputs, and theta$HE, or dual of the observation space

draw

LOGICAL, draw linear regression on the screen as they are calculated

weighted

LOGICAL, if TRUE, weights are inversely proportional to the value of the cost function provided in theta$cost

Details

Univariate regression betwwen the observations and the individual model inputs


garciapintado/rDAF documentation built on May 25, 2019, 7:26 p.m.