View source: R/addNonlinearity.R
prNlChooseDf | R Documentation |
Looks for the model with the minimal min_fn
within the flex_param span.
prNlChooseDf(
model,
flex_param,
variable,
spline_fn,
min_fn,
simplest_nonlinear,
verbal,
workers,
libraries
)
model |
The model that is to be evaluated and adapted for non-linearity |
flex_param |
A |
variable |
The name of the parameter that is to be tested for non-linearity. Note that the variable should be included plain (i.e. as a linear variable) form in the model. |
spline_fn |
Either a string or a function that is to be used for testing alternative non-linearity models |
min_fn |
This is the function that we want to minimized if the variable supports
the non-linearity assumption. E.g. |
simplest_nonlinear |
The simplest non-linear form that the ANOVA has been tested against |
verbal |
Set this to |
workers |
The function tries to run everything in parallel. Under some
circumstances you may want to restrict the number of parallel threads to less
than the default |
libraries |
If we use the parallel approach we need to make sure that the right libraries are available in the threads |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.