[R] Question on 'predict' in 'markovchain' package

2016-11-21 Thread Huang, Cassie
nrow=2, dimnames=list(statesNames,statesNames))) mcB predict(mcB, newdata="0",n.ahead=100) predict(mcB, newdata="1",n.ahead=100) Best wishes, Cassie [[alternative HTML version deleted]] __ R-help@r-project.org maili

[R] Fwd: problem with kmeans

2014-04-28 Thread cassie jones
quot;neurolgy" "nerology" [[3]] [1] "dermatolgy" "dermatoloy" "dematology" [[4]] [1] "hematolgy" "hemtology" Does anyone know if there is a way out, I have heard from a lot of people that multivariate analysis in R does not produce the d

Re: [R] problem with input of integrate function

2013-06-16 Thread cassie jones
Hi David, Thank you so much. -Cassie On Sun, Jun 16, 2013 at 9:19 PM, David Winsemius wrote: > > On Jun 16, 2013, at 7:15 PM, David Winsemius wrote: > > > > > On Jun 16, 2013, at 6:46 PM, cassie jones wrote: > > > >> Dear R-users, > >> > >&g

[R] problem with input of integrate function

2013-06-16 Thread cassie jones
variable a. Does anyone know how can I handle the problem? Any help is appreciated. Thanks in advance. -Cassie [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read t

[R] simulation from truncated skew normal

2013-06-11 Thread cassie jones
that? Any help is appreciated. Thanks in advance. Cassie [[alternative HTML version deleted]] __ 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

Re: [R] problem with the image command

2013-04-09 Thread cassie jones
Yes, I did. But I get the following error with the command image(x=long,y=lat,z=values) "Error in image.default(x=long,y=lat,z=values): error in evaluating the argument 'x' in selecting a method for function 'image': Error in long: recursive indexing failed at level 2&

[R] problem with the image command

2013-04-09 Thread cassie jones
I get the following error: Error in image.default(values,x=sort(long),y=sort(lat), increasing 'x' and 'y' values expected Even though I sort the latitude and longitude in increasing order, I am getting this error. Any help is greatly appreciated. Thanks in advance, Cassi

[R] How to save my result with Loops

2012-06-17 Thread Cassie
Hi everyone, i'm not very good with R, and i know that my question is quite simple. I generated this vector for a sample of 100 and i want to know how to save these as ez1, ez1, ez3...ez100. I guess i have to do it by "for", but i didn't succeed.. i put here my output ezt [1] -0.05470228 -1.76

[R] Multivariate Normal and loops

2012-06-15 Thread Cassie
Hi, i'm not english and i'm not very familiar to R, and i'm asking if you can help me. I'm wondering how to create a multivariate normal an then repeat this for a sample of T=1000, and the save this result. Thank you very much for your helping -- View this message in context: http://r.789695.n4.n

Re: [R] problem with break command

2012-04-26 Thread cassie jones
Thanks Berend, you are right. The break command would not work here. But the while loop is taking time to generate the desired. On Thu, Apr 26, 2012 at 2:39 PM, Berend Hasselman wrote: > > On 26-04-2012, at 21:30, cassie jones wrote: > > > Hello R-users, > > > > I a

[R] problem with break command

2012-04-26 Thread cassie jones
ght place, so even though the 'if' condition becomes true and it sets i=2, it does not regenerate the values of 'a' since the beginning. Any help is really appreciated. Thanks in advance. Cassie [[alternative HTML version deleted]] _

Re: [R] how to convert seconds to 12 hour time format

2012-04-09 Thread cassie jones
Thanks Henrique.It worked!!! I appreciate your help. Cassie On Mon, Apr 9, 2012 at 8:06 PM, Henrique Dallazuanna wrote: > Try this: > > Sys.setlocale(category = "LC_TIME", locale = "US") > format(as.POSIXct('0001-01-01 00:00:00') + x, "%I:

[R] how to convert seconds to 12 hour time format

2012-04-09 Thread cassie jones
1:20:00 PM" [3] "12:20:00 AM" Does anyone have any idea? Thanks in advance. Cassie [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the postin

Re: [R] spectral analysis

2011-08-23 Thread cassie jones
e if there are any package I can use to > do > > the analysis using fast fourier transform? > > Maybe ?fft or ?spectrum > > Regards > Petr > > > > > Thanks in advance. > > > > > > Cassie > > > >[[alternative HTML versi

[R] spectral analysis

2011-08-23 Thread cassie jones
Hi all, I am trying to do spectral analysis of a time series data. But I am not sure how to do it. Can anyone tell me if there are any package I can use to do the analysis using fast fourier transform? Thanks in advance. Cassie [[alternative HTML version deleted

[R] replacing duplicate rows

2011-07-21 Thread cassie jones
replace x[5,2] with x[4,2], which means that for duplicate entries in the 1st column, I want to replace the corresponding entries in the 2nd column with its 1st entry of the duplicate row. Can anybody help me in this regard? Thanks, Cassie [[alternative HTML version deleted

[R] issue with strptime

2011-06-17 Thread cassie jones
h all the observations individually in order to find which row in the array has this format. Can anyone suggest me how to handle this issue? Is there any way to convert %I %M %p format to %I %M %S %p? Thanks in advance for the help. Cassie [[alternative HTML version deleted]] ___

Re: [R] simulation from truncated poisson

2011-05-16 Thread cassie jones
--Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of cassie jones > Sent: Monday, May 16, 2011 5:28 PM > To: r-help@r-project.org > Subject: [R] simulation from truncated poisson > > Dear all, > > I need to simul

Re: [R] simulation from truncated poisson

2011-05-16 Thread cassie jones
uniform between that value and 1, then feed that > uniform into the qpois function. > > > > *From:* cassie jones [mailto:cassiejone...@gmail.com] > *Sent:* Monday, May 16, 2011 7:46 PM > *To:* Greg Snow > *Cc:* r-help@r-project.org > *Subject:* Re: [R] simulation from tr

[R] simulation from truncated poisson

2011-05-16 Thread cassie jones
in advance. Cassie [[alternative HTML version deleted]] __ 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 and provide commented, min

[R] Simulation from discrete uniform

2011-04-07 Thread cassie jones
Dear all, I am trying to simulate from discrete uniform distribution. But I could not find any in-built code in R. Could anyone help me please? Thanks in advance for the time and help. Cassie [[alternative HTML version deleted]] __ R

[R] defining an array with one of the elements being a vector

2011-03-08 Thread cassie jones
n m is a vector? Thanks in advance for your help. Cassie [[alternative HTML version deleted]] __ 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/posti

[R] help needed with histogram plotting

2011-03-06 Thread cassie jones
parts putting a 'break' at the discontinuity..what I mean is if the x-axis start from 0 and break at say 3, then start at 19 and break at 21 and the last part starts at say 98. In this way, the histograms would be prominent. Thanks in advance. Cassie [[alternative HTML versi

[R] how to overlay a map of US on image plot

2011-02-13 Thread cassie jones
ow how can I overlay it on the plot of the precipitation data. Can anyone please help me with it? Thanks in advance. Cassie. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] replace a row in a matrix

2010-11-14 Thread cassie jones
Dear all, I created a n*2 matrix and I want to replace the ith row with a vector. Can anyone suggest me what is the simple way to do it? Sorry for bothering you with such simple question. I appreciate any hints or advice. Thanks in advance. Cassie [[alternative HTML version deleted

[R] simulation from pareto distn

2010-11-09 Thread cassie jones
Dear all, I am trying to simulate from truncated Pareto distribution. I know there is a package called PtProcess for Pareto distribution...but it is not for truncated one. Can anyone please help me with this? Thanks in advance. Cassie [[alternative HTML version deleted

[R] executing loop

2010-09-29 Thread cassie jones
alternatively. Can anyone please help me in doing this? Thanks, Cassie [[alternative HTML version deleted]] __ 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

[R] plotting convex hull for 3D

2010-09-19 Thread cassie jones
Dear all, I have a 3 dimensional data and I need to plot a convex hull to it. I have done it for 2 dimensional case using chull command in R. But I think it does not work for more than 2 dimension. Can anyone help me with this? Is there anyway to plot the convex hull for more than 2 D case? Thank

[R] executing loop in circular way

2010-09-09 Thread cassie jones
Dear all, I am writing a program using for loop. The loop contains i which runs from 1:n. There is a feature I need to include here. That is, when i=n, i+1 would be 1, not n+1. Basically the loop should run in a circular fashion. That also means, if i=1, i-1=n. Can anyone help me with this? How c