Description Usage Arguments Details Value
View source: R/simulateFromSSNM.R
This function simulates data on a SpatialStreamNetwork based on information from a fitted model object. It essentially acts as a wrapper for SimulateOnSSN.
1 2 | simulateFromSSNM(ssn, glmssn, fixed.effects = NULL,
covariance.type = NULL, covariance.parms = NULL)
|
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. |
It is only possible to use this function to simulate data on a SpatialStreamNetwork object when a fitted model exists.
An object of class SSNM, which is a modified version of the one that was given as the argument ssn.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.