dear r users I have one question that how we add one or more outliers in the data set. For example if we generate data set from Weibull distribution using function n=10 k<-rweibull(n, shape=2.5, scale = 1.3) k the output is> k[1] 0.6507619 0.6229385 1.6838931 1.1661324 0.4907947 1.3416666 0.9536739 0.9368029 1.1992996 [10] 0.8401084 now i want to add outlier in the output of the values. In simple words i want to generate a data set and then i add one or two outlier in that data set. [[alternative HTML version deleted]]
> I have one question that how we add one or more outliers in the data set.See ?c to add values to a vector. S Ellison ******************************************************************* This email and any attachments are confidential. Any use...{{dropped:8}}
Dear Ellison yes its working but if i want to replaced the any value in the the output . e.g i want to replace 0.65 with 10. then what i do ________________________________ From: S Ellison <S.Ellison at LGCGroup.com> Sent: Monday, September 19, 2016 5:15:20 PM To: Muhammad Kashif; r-help at r-project.org Subject: RE: add outlier in data set> I have one question that how we add one or more outliers in the data set.See ?c to add values to a vector. S Ellison ******************************************************************* This email and any attachments are confidential. Any use...{{dropped:11}}