| PLSroundingLoop {SmallCountRounding} | R Documentation |
PLSrounding on portions of data at a time
Description
The PLSrounding runs are coordinated by using preliminary differences as input for the next run (parameter preDifference)
Usage
PLSroundingLoop(
data,
loopId,
...,
zeroCandidates = FALSE,
forceInner = FALSE,
preRounded = NULL,
plsWeights = NULL,
printInc = TRUE,
preDifference = TRUE,
preOutput = NULL,
rndSeed = 123
)
Arguments
data |
Input data as a data frame (inner cells) |
loopId |
Variable holding id for loops |
... |
|
zeroCandidates |
|
forceInner |
|
preRounded |
|
plsWeights |
|
printInc |
Printing iteration information to console when TRUE |
preDifference |
When TRUE, the |
preOutput |
preOutput The function can continue from output from a previous run |
rndSeed |
If non-NULL, a random generator seed to be set locally at the beginning of |
Details
Note that in this function zeroCandidates, forceInner, preRounded and plsWeights cannot be supplied as vectors.
They may be specified as functions or as variables in the input data.
Value
As output from PLSrounding
Examples
mf2 <- ~region + fylke * hovedint
z2 <- SmallCountData("z2")
a <- PLSroundingLoop(z2, loopId = "kostragr", freqVar = "ant", formula = mf2)
a