This R package provides an implementation of the S-type.est, a robust estimation method designed for the general linear regression models. The S-type estimators were introduced by Sazak and Mutlu (2023) in their study, “Comparison of the Robust Methods in the General Linear Regression Model.”
To install the package from GitHub, use the following command:
Please make sure that you installed devtools
package
first:
install.packages("devtools")
devtools::install_github("filizkrgd/S-type.est")
S-type.est
from CRANinstall.packages("S-type.est")
Installing S-type.est
development version
You can use datasets
package to have example data to
test S-type.est
package. datasets package is being
installed, while you are installing S-type.est
package, so
you don’t have to install the package again.
library(datasets)
data(airquality)
str(airquality)
cleanairquality=na.omit(airquality)
Y1=cleanairquality$Ozone
X1=cleanairquality$Temp
X2=cleanairquality$Wind
X3=cleanairquality$Solar.R
x=data.frame("X1"=X1,"X2"=X2,"X3"=X3)
y=data.frame("Y"=Y1)
regstype
function to get regression results using
the S-type estimators.regsx=regstype(y,x)
For any questions please contact: