tweak.std {sievetest} | R Documentation |
Modify std object
Description
The function is used for modifying of existing std
object.
Usage
tweak.std(
x,
desc = desc.std(x = x),
lmargs = as.list(x[[1]]$lmfit$call[-c(1:3)]))
Arguments
x |
|
desc |
list of description meta data, default is original meta data of object |
lmargs |
list of |
Details
The function modifies the std
object or just refresh the x
object while recalculating the lm
fit, Rosin - Rammler coefficients and characteristic sizes. The refreshing of an old saved object can be useful in case that lm
fit structure changes across R versions as the std
object encapsulates lm
fit result.
Value
Returns std
object with length = 1.
See Also
Examples
# Load the data, modify linear model and plot.
data(lignite)
std1 <- lignite[2]
std2 <- tweak.std(lignite[2],lmargs = list(weights=c(1,1,0,1)),
desc = desc.std(x=std1,Title="Lignite w 1 1 0 1"))
plot(c(std1,std2))
[Package sievetest version 1.2.3 Index]