[R] R code for parameter estimates

2018-08-30 Thread KABELI MEFANE via R-help
three parameter lognormal and log Pearson were a hustle due to the shift parameter. NowI want to use Bayes. Best Regards Kabeli Mefane “Tell me and I'll forget; show me and I may remember; involve me and I'll understand.” [[alternative HTML versi

Re: [R] How to use Subpopulation data?

2009-10-02 Thread KABELI MEFANE
sample.strat<-getdata(sampleframe,str) sample.strat   Thanks for the input. Once again sorry for wasting your time.   Best Regards      --- On Fri, 2/10/09, David Winsemius wrote: From: David Winsemius Subject: Re: [R] How to use Subpopulation data? To: "KABELI MEFANE" Cc: R-help@r

Re: [R] How to use Subpopulation data?

2009-10-02 Thread KABELI MEFANE
shorten this code.   Thanks once again you really helped a lot.Thanks --- On Fri, 2/10/09, Bernardo Rangel Tura wrote: From: Bernardo Rangel Tura Subject: Re: [R] How to use Subpopulation data? To: "KABELI MEFANE" Cc: R-help@r-project.org Date: Friday, 2 October, 2009, 10:08 AM On Fr

Re: [R] How to use Subpopulation data?

2009-10-01 Thread KABELI MEFANE
Tura wrote: From: Bernardo Rangel Tura Subject: Re: [R] How to use Subpopulation data? To: "r-help" Date: Thursday, 1 October, 2009, 10:18 PM On Thu, 2009-10-01 at 13:34 +, KABELI MEFANE wrote: > ## package sampling > > stra=strata(sampleframe,c("t

Re: [R] How to use Subpopulation data?

2009-10-01 Thread KABELI MEFANE
original dataframe until after i have finished with the subset, then also how do i call it back, may be by sampleframe$type,...sampleframe$value?   Thanks and i rest my case --- On Thu, 1/10/09, KABELI MEFANE wrote: From: KABELI MEFANE Subject: Re: [R] How to use Subpopulation data? To: "

Re: [R] How to use Subpopulation data?

2009-10-01 Thread KABELI MEFANE
Thanks   i was not aware of str, i have a very large code since i am new to r. I forgot to mention that the package is sampling. Actually i have this simulated code:   n <- c(100,400,1000,1500,2000) x <- c(2,3,3,3,5) y <- c(7,7,9,10,10) s <- function(mn, mx, n) {sample(mn:mx, n, replace=TRUE)} r

Re: [R] Calculating estimates from a sample

2009-10-01 Thread KABELI MEFANE
Dear Helpers   I have a simulated sample frame and i have sampled from it using three methods and now i want to calculate the statistics but i only get the population parameters.For example i need to get the summary,length,std.error,etc. this is just a simplified example.   H <- matrix(rnorm(100

Re: [R] How to use Subpopulation data?

2009-10-01 Thread KABELI MEFANE
, 1/10/09, Bernardo Rangel Tura wrote: From: Bernardo Rangel Tura Subject: Re: [R] How to use Subpopulation data? To: "KABELI MEFANE" Cc: R-help@r-project.org Date: Thursday, 1 October, 2009, 11:24 AM On Thu, 2009-10-01 at 10:06 +0000, KABELI MEFANE wrote: > Dear Helpers > &

Re: [R] How to use Subpopulation data?

2009-10-01 Thread KABELI MEFANE
Dear Helpers   I have a sample frame and i have sampled from it using three methods and now i want to calculate the statistics but i only get the population parameters.   H <- matrix(rnorm(100, mean=5, sd=5000)) sampleframe=data.frame(type=c(rep("H",100)),value=c(H)) sampleframe   str=strata(s

Re: [R] Data analysis package for positively skewed data

2009-09-27 Thread KABELI MEFANE
R-helpers   A curious question: Can you make suggestions  as to  what to use in R for the data from a sample of the following:   Hypermarket <- matrix(rnorm(100, mean=5, sd=5000)) Supermarket <- matrix(rnorm(400, mean=34000, sd=3000)) Minimarket  <- matrix(rnorm(1000, mean=1,sd=2000)) Corn

Re: [R] Strata formation using R

2009-09-27 Thread KABELI MEFANE
Hi Everybody   Its me again. I have been able to sample using SRS and stratified sampling when i have predefined groups as follows:   Hypermarket <- matrix(rnorm(100, mean=5, sd=5000)) Supermarket <- matrix(rnorm(400, mean=34000, sd=3000)) Minimarket  <- matrix(rnorm(1000, mean=1,sd=2000))

Re: [R] Fw: Re: Multiple Normal Curves

2009-09-27 Thread KABELI MEFANE
n Thu, 24/9/09, Jim Lemon wrote: From: Jim Lemon Subject: Re: [R] Fw: Re: Multiple Normal Curves To: "KABELI MEFANE" , r-help@r-project.org Date: Thursday, 24 September, 2009, 12:53 PM On 09/24/2009 08:57 PM, KABELI MEFANE wrote: > Sorry about the subject > > --- On Thu, 24/9/

[R] Fw: Re: Multiple Normal Curves

2009-09-24 Thread KABELI MEFANE
Sorry about the subject --- On Thu, 24/9/09, KABELI MEFANE wrote: From: KABELI MEFANE Subject: Re: [R] Multiply Normal Curves To: R-help@r-project.org Date: Thursday, 24 September, 2009, 11:48 AM R -helpers   i have been trying to do this problem without must success,i managed to do a

Re: [R] Multiply Normal Curves

2009-09-24 Thread KABELI MEFANE
R -helpers   i have been trying to do this problem without must success,i managed to do a graph for x, but it is not what i want to define,(i want to specify number of observations as well). I have also been able to do simple rendom sample.   data.frame(ID=c(1,2,3),mu=c(1,34000,5),sigma=c

[R] Fw: Simulating and Plotting

2009-09-23 Thread KABELI MEFANE
norm(x,mean=parms$mu[3],sd=parms$sigma[3]),from=1000, to=8, ylab="density", col="forestgreen", add=TRUE) ### --- On Wed, 23/9/09, KABELI MEFANE wrote: From: KABELI MEFANE Subject: [R] Simulating and Plotting To: R-help@r-project.org Date: Wednesday, 23 September, 2009, 10:3

[R] Simulating and Plotting

2009-09-23 Thread KABELI MEFANE
R-helpers   I have been learning a little bit of R. I am simulating and i want to draw a normal curve for all my variables so that i will see the overlaps and reduce them, after that i want to draw a gragh of all the values that are in the data frame to see if it follows a normal distribution al

Re: [R] Normal distribution

2009-09-12 Thread KABELI MEFANE
lt;- seq(4, 6, 100) lines(x, dnorm(x, 5, 3000)) On Sat, Sep 12, 2009 at 5:47 PM, KABELI MEFANE wrote: >  Dear All > > let me go one step further by asking you if you could help me show that the > distribution of this data in normal.  have a little idea (by trial and > e

Re: [R] (no subject)

2009-09-12 Thread KABELI MEFANE
ect.org Date: Saturday, 12 September, 2009, 10:49 PM A better subject for your question might have been helpful.  There are many options for hist and truehist in the MASS package, but this might help: x=rnorm(100, mean=5, sd=3000) hist(x, prob=T) x2=density(x) lines(x2$x,x2$y) KABELI

Re: [R] Normal distribution

2009-09-12 Thread KABELI MEFANE
 Dear All   let me go one step further by asking you if you could help me show that the distribution of this data in normal.  have a little idea (by trial and error) but i seem to not fully understand how its done.   H<-rnorm(100, mean=5, sd=3000) par(las=1) hist(H, breaks=seq(4, 6,

[R] (no subject)

2009-09-12 Thread KABELI MEFANE
Dear All   I hope you can help me with this small problem. I want to draw a normal distribution line to this data: p<-rnorm(100, mean=5, sd=3000) hist(p)   Kabeli [[alternative HTML version deleted]] __ R-help@r-project.org mailing

Re: [R] Help on percentage of random numbers for different classes

2009-09-10 Thread KABELI MEFANE
Dear Robert   Thank you very much for all the help, now i am enjoying working with all of you as you make R look simple and interesting. --- On Thu, 10/9/09, Robert Baer wrote: From: Robert Baer Subject: Re: [R] Help on percentage of random numbers for different classes To: "KABELI M

Re: [R] Help on percentage of random numbers for different classes

2009-09-09 Thread KABELI MEFANE
R-list   I am sorry for asking this stupid question, but i have been running in circles. I want to randomly generate a scaling point of between 1 and 10, for say hundred entries, where the first 10% percent is has rates between 2 and 7, the next 15% 3 and 7, 20% between 3 and 9, 20% between 3 an

Re: [R] Combining simulated data

2009-09-09 Thread KABELI MEFANE
Thank you very much, now i can proceed to my next task. THANK YOU   --- On Wed, 9/9/09, Schalk Heunis wrote: From: Schalk Heunis Subject: Re: [R] Combining simulated data To: "KABELI MEFANE" Cc: R-help@r-project.org Date: Wednesday, 9 September, 2009, 8:45 PM Kabeli I think th

Re: [R] SRS Required sample size for simulated data

2009-09-08 Thread KABELI MEFANE
Hi   Out of curiosity, how can i determine the minimum required sample size of this data in a combined form say 100 entries which r functions can i use?   R helpers   Please help me combine the simulated data to a form of table where: Hypermarket have 10 rows, supermarket have 15 rows,...,

Re: [R] Combining simulated data

2009-09-08 Thread KABELI MEFANE
R helpers   Please help me combine the simulated data to a form of table where: Hypermarket have 10 rows, supermarket have 15 rows,..., spazashops with 35 rows.   Hypermarket <- rnorm(10, mean=2, sd=7000) Supermarket <- rnorm(15, mean=12000, sd=4000) Minimarket   <- rnorm(20, mean=1, s

Re: [R] Labeling and calculating distance from points

2009-08-28 Thread KABELI MEFANE
Hi all   Can you help me label the points Si' s accordingly with subscripts, also to write a distance on between location S0   (0.5,0.5 ) and all order points Si  lines if i have this kind of code:   library(geoR) coords<-matrix(c(0,0,1,1,0,1,0,1), nrow=4, ncol=2) data<-c(3,5,6,4) coordata<-data.

[R] Fw: Re: Simulating data (stupid question)

2009-08-25 Thread KABELI MEFANE
Dear All   I know that you do not have to help me (as this is not a pure R problem) but please do, i am new to R as a CPI compiler, i just need to do a sample to see which sampling method best works in different situations, therefore since this is for practice purposes nobody will finance a re

[R] Fw: Re: Simulating data for sampling (stupid question)

2009-08-25 Thread KABELI MEFANE
Dear All   I know that you do not have to help me (as this is not a pure R problem) but please do, i am new to R as a CPI compiler, i just need to do a sample to see which sampling method best works in different situations, therefore since this is for practice purposes nobody will finance a re

Re: [R] Simulating data (stupid question)

2009-08-24 Thread KABELI MEFANE
Dear All   I know that you do not have to help me but please do, i am new to R as a CPI compiler, i just need to do a sample to see which sampling method best works in different situations, therefore since this is for practice purposes nobody will finance a real project thats why i need you to h