Description Usage Arguments Value See Also Examples
This applies various simple transformations, to be used by the treat()
function.
This function is probably not very useful on its own because it requires params
,
a list of parameters which are used to output the type and status of treatment applied.
1 |
x |
A vector or column of data to transform |
ltype |
The type of log transformation - see |
params |
Some extra parameters to pass. These parameters mostly concern internal messages for |
A list with
.$x
is the transformed vector of data
.$Flag
is a flag of the type of treatment specified (used inside treat()
)
.$Treatment
the treatment applied (used inside treat()
)
.$TreatSpec
the treatment specified (used inside treat()
)
treat()
Outlier treatment
1 2 3 4 5 6 | # get a column of data with outliers
x <- ASEMIndData$Tariff
# apply a GII transformation
xdash <- loggish(x, ltype = "GIIlog")
# plot one against the other
plot(x, xdash$x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.