[R] How to merge two tables

2016-02-22 Thread Xiyan Lon
FEMALE 17YNO32 6 MALE 17YNO42 7 FEMALE 18YNO26 8 MALE 18YNO15 - How to merge two tables. - How to expand both tables such as: sex age cross death FEMALE 17Y WEF YES ... FEMALE 18Y TGA NO Warm regards, Xiyan Lon This email has been sent from a virus-free co

[R] How to find residual in predict ARIMA

2010-08-21 Thread Xiyan Lon
Dear All, I have a model to predict time series data for example: data(LakeHuron) Lake.fit <- arima(LakeHuron,order=c(1,0,1)) then the function predict() can be used for predicting future data with the model: LakeH.pred <- predict(Lake.fit,n.ahead=5) I can see the result LakeH.pred$pred and La

[R] Multiclass SVM

2010-05-19 Thread Xiyan Lon
SVM in a one-vs-all - multiclass SVM in Error-correcting output coding (ECOC) Thanks Xiyan Lon __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

[R] Count data with several numbers separated by commas

2009-04-15 Thread Xiyan Lon
Dear all, I have a data file with 3 variables (x1, x2, x3) where variable x1 have data that consists of several numbers separated by commas. id name x1 x2x3 aa1011,4,52 1 aa1021,2,51 2 aa1031,2,51 1 aa1041,2,31 2 aa1051,5 2 2