Hi. I have a problem in R. I want the command of least median squares and the
package of this estimator
Kafi Dano Pati
Ph.D candidate ( mathematics/statistics)
Department of mathematical Science/ faculty of Science
University Technology Malaysia
81310 UTM, Johor Bahru, Johor, Malaysia
Hi
for all user in R
please send me the command of least absolute value (LAV ) in R programming
TQ.
Kafi Dano Pati
Ph.D candidate ( mathematics/statistics)
Department of mathematical Science/ faculty of Science
University Technology Malaysia
81310 UTM, Johor Bahru, Johor, Malaysia
IC
###
#Bias,RMSE and SE for MMR
MMR.AVE<-SUM.MMR.BS/R
MMR.MSE<-SUM.MMR.MSE/R
MMR.BIAS<-MMR.AVE-1
MMR.RMSE<-sqrt(MMR.MSE)
MMR.SE<-abs(MMR.MSE-MMR.BIAS^2)^0.5
MMR.output<-cbind(MMR.BS,MMR.BIAS,MMR.RMSE,MMR.SE)
MMR.output
BS
frame(y,x1,x2,x3))
stack
d <- lm(y ~ x1+x2+x3)$residuals
d1<-lm(y ~ x1+x2+x3)$fit
d2<-abs(d)
k<-4.685
w<-NULL
for(i in 1:n){
if(d2<=k){w[i]=d{1-(d/k)^2}^2} else{w[i]=0}}
w
Kafi Dano Pati
Ph.D candidate ( mathematics/statistics)
Department of mathematical Sci
Dear Sir.
I need your to help me to correct the attached R-code.
when I apply this code give me the bad result
Attached the program by using R
Thank you
Kafi Dano Pati
Ph.D candidate ( mathematics/statistics)
Department of mathematical Science/ faculty of Science
University
5 matches
Mail list logo