Re: [R] add outlier in data set

2016-09-19 Thread Muhammad Kashif
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 Sent: Monday, September 19, 2016 5:15:20 PM To: Muhammad Kashif; r-help@r-project.org Subject: RE: add

[R] add outlier in data set

2016-09-19 Thread Muhammad Kashif
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.341

[R] Coverage Probability

2016-05-10 Thread Muhammad Kashif
Dears Can anyone help me to solve the issue. By using" boot" and "boot.ci" package in R we can construct bootstrap confidence intervals. How we calculate the coverage probability of these intervals. [[alternative HTML version deleted]] __ R-h

[R] Division of data set with some restriction

2016-01-25 Thread Muhammad Kashif
Dear Group members Can any one help to code this situation. Suppose we have a population with some mean and a standard deviation. Then , there are n1 observations out of n which are less than or equal to n. Also, there are n2 observations out of n which are greater than . We divide the wh

[R] trimmed mean and Winsorized mean

2016-01-21 Thread Muhammad Kashif
Dear respected group members who we calculate trimmed and Winsorized mean of data. can we calculate directly of any latest package is available for their calculation. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -

[R] Calculation of time for 5000 simulation study

2016-01-10 Thread Muhammad Kashif
Dear Is there any function which calculate time for one simulation when we use " asim=2000" under any simulation study. I run one simulation code on R and i have core i 5 laptop. Each simulation take about 30 -40 minutes. Is there any function which calculate time of each output. thanks

Re: [R] Thanks and further question

2016-01-03 Thread Muhammad Kashif
Thank you Professor and sorry for question on personal email. From: peter dalgaard Sent: Monday, January 4, 2016 2:15 AM To: Muhammad Kashif Cc: Group R-help Subject: Re: Thanks and further question Please keep on-list (cc'ed), for various good re

[R] (no subject)

2016-01-02 Thread Muhammad Kashif
Dear i optimized the gama and beta value using MLE via simmulation of birnbaum saunders distribution. if i run this code it generate very small value of beta. Could any one help me in this regard. i use gbs package to generate data. gama=1.0 beta=1.3 n=25 iterCount=1000 for(i in 1:iterCount){ x<

[R] The Birnbaum-Saunders Distribution simmulation Problem

2015-12-29 Thread Muhammad Kashif
Dear i optimized the gama and beta value using simmulation. if i run this code it generate very small value of beta. Could any one help me in this regard. i use gbs package to generate data. gama=1.0 beta=1.3 n=25 iterCount=1000 for(i in 1:iterCount){ x<-rgbs(n,gama,beta) P<-function(theta,