Description Usage Arguments Examples
The user specifies a regression model and a variable for weighting, and 'sm_regression“ will estimate a weighted regression model for each unique value of the specified variable.
1 2 3 |
data |
data frame |
method |
function to use |
formula |
formula |
weighting_var |
columns name(s) of variables used to calculate weights |
newdata |
new data frame. Default is 'data'. |
method.args |
List of additional arguments passed on to the modelling function defined by 'method' |
lambda |
The radius of the kernel for tri-cubic, Epanechnikov, and flat kernels. The standard deviation for the Gaussian kernel |
kernel |
Specifies the kernel to be used: 'epanechnikov', 'tricube', 'gaussian', and 'flat' are accepted. Default is 'epanechnikov' |
dist.method |
Specifies the distance measure to be used in the kernel.
Default is 'euclidean'. Distance measures accepted by
|
verbose |
Return full set of results as an attribute. Default is 'FALSE' |
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.