setNLLSWeights: setNLLSWeights

Description Usage Arguments Value

View source: R/setNLLSWeights.R

Description

Assigns the user-defined weights to the system variable 'weight', used to execute a weighted NLLS model estimation. Also calculates the variable 'tiarea' (sum of the incremental drainage area of reaches located between monitoring sites), used to calculate weighting expressions based on the size of the intervening areas between sites.

Executed By: startModelRun.R
Executes Routines:


Usage

1
2
setNLLSWeights(NLLS_weights, run_id, subdata, sitedata, data_names,
  minimum_reaches_separating_sites, batch_mode)

Arguments

NLLS_weights

character string control setting to select regression weights

run_id

character string control setting indicating the current model name

subdata

data.frame input data (subdata)

sitedata

Sites selected for calibration using subdata[(subdata$depvar > 0), ]

data_names

data.frame of variable metadata from data_Dictionary.csv file

minimum_reaches_separating_sites

number indicating the minimum number of reaches separating sites

batch_mode

yes/no character string indicating whether RSPARROW is being run in batch mode

Value

Csites.weights.list regression weights as proportional to incremental area size


tbep-tech/tbepRSparrow documentation built on Oct. 9, 2020, 6:24 a.m.