simulateFromSSNM: Simulate data, with error, from a glmssn object

Description Usage Arguments Details Value

View source: R/simulateFromSSNM.R

Description

This function simulates data on a SpatialStreamNetwork based on information from a fitted model object. It essentially acts as a wrapper for SimulateOnSSN.

Usage

1
2
simulateFromSSNM(ssn, glmssn, fixed.effects = NULL,
  covariance.type = NULL, covariance.parms = NULL)

Arguments

ssn

An object of class SpatialStreamNetwork

glmssn

An object of class glmssn

fixed.effects

A numeric vector specifying the values of the fixed effects. Leave as NULL unless you specifically intend to override the information about the fixed effects you get from the glmssn.

covariance.type

A character vector specifying what kind of covariance structure should be used to simulate the data. Leave as NULL unless you specifically intend to overwrite the covariance components from the glmssn.

covariance.parms

A numeric vector specifiying the values of the covariance parameters. Leave as NULL unless you specifically intend to override the informaiton about the covariance parameters you get from the glmssn.

Details

It is only possible to use this function to simulate data on a SpatialStreamNetwork object when a fitted model exists.

Value

An object of class SSNM, which is a modified version of the one that was given as the argument ssn.


apear9/SSNdesign documentation built on Feb. 19, 2020, 4:29 a.m.