[R] Validation of the Markov chain assumption

2014-08-12 Thread Kaptue Tchuente, Armel
Hi, I 'm modelling the occurrence of daily rainfall with a first order Markov chain. I would like to know if there is a statistic test implemented in R that could allow me to asses that the observed rainfall time series verifies the Markov assumption. Thanks P.S. My apologies for cross-posting

Re: [R] Markov chain simulation

2014-01-28 Thread Kaptue Tchuente, Armel
efficiently such a markov chain sequence with for instance 12 ooccurences of the state '1' Thanks Armel From: Kehl Dániel [ke...@ktk.pte.hu] Sent: Tuesday, January 28, 2014 8:00 AM To: Kaptue Tchuente, Armel; R-help@r-project.org Subject: RE: [R] Markov

[R] How to determine the pdf of a gamma distribution using the estimated parameters?

2013-07-12 Thread Kaptue Tchuente, Armel
Hello everyone, With th bar histogram (number of occurrences) hist-c(24,7,4,1,2,1,1) of seven equally spaces classes ]1-4], ]5-8], ]9-12], ]13-16], ]17-20], ]21-24], ]25-28], I obtained shape=0.8276 and rate=0.1448. I would like to know how to build the continuous pdf of a this gamma

Re: [R] How to determine the pdf of a gamma distribution using the estimated parameters?

2013-07-12 Thread Kaptue Tchuente, Armel
distribution using the estimated parameters? Kaptue Tchuente, Armel armel.kaptue at sdstate.edu writes: [snip] With th bar histogram (number of occurrences) hist-c(24,7,4,1,2,1,1) of seven equally spaces classes ]1-4], ]5-8], ]9-12], ]13-16], ]17-20], ]21-24], ]25-28], I obtained shape=0.8276

Re: [R] How to create a function returning an array ?

2013-06-28 Thread Kaptue Tchuente, Armel
[mailto:murdoch.dun...@gmail.com] Sent: Friday, June 28, 2013 8:16 AM To: David Winsemius Cc: Kaptue Tchuente, Armel; r-help@r-project.org Subject: Re: [R] How to create a function returning an array ? On 27/06/2013 11:38 PM, David Winsemius wrote: On Jun 27, 2013, at 8:04 PM, Kaptue Tchuente, Armel

Re: [R] How to create a function returning an array ?

2013-06-28 Thread Kaptue Tchuente, Armel
, 2013 9:30 AM To: Kaptue Tchuente, Armel Cc: r-help@r-project.org Subject: Re: [R] How to create a function returning an array ? On 28/06/2013 10:18 AM, Kaptue Tchuente, Armel wrote: @ Duncan, I have already used the syntax that you proposed before asking for help by writing something like

Re: [R] How to create a function returning an array ?

2013-06-28 Thread Kaptue Tchuente, Armel
[mailto:murdoch.dun...@gmail.com] Sent: Friday, June 28, 2013 9:53 AM To: Kaptue Tchuente, Armel Cc: r-help@r-project.org Subject: Re: [R] How to create a function returning an array ? On 28/06/2013 10:46 AM, Kaptue Tchuente, Armel wrote: Please could you explain what you mean by several typos

[R] How to create a function returning an array ?

2013-06-27 Thread Kaptue Tchuente, Armel
Hi there, I would like to know how to change the line img=as.single(rnorm(m))) such that instead of being a vector of length m as it is now, img is an array of dimension c=(n,m,o) for instance - read_ts-function(n,m,o,img) { out-.Fortran(read_ts,

[R] unable to install rPython

2013-06-26 Thread Kaptue Tchuente, Armel
Hello everyone, I try without success to install the package rPython I get the message --- * installing *source* package ‘rPython’ ... could not locate python-config ERROR: configuration failed for package ‘rPython’ * removing

[R] How to fit the cumulative probability distributive functiion with the gamma distribution?

2013-06-12 Thread Kaptue Tchuente, Armel
Hello everyone, I'm trying to fit the PDF of time series datasets with the gamma distribution. Nonetheless, this isn't possible for several datasets since the gamma distribution can only been used to fit continuous distribution. For instance,

[R] how to extract coefficient from a gamma distribution?

2013-06-11 Thread Kaptue Tchuente, Armel
Hello everyone, I'm trying to fit the gamma probability distribution to time series datasets suing the following command gam-fitdistr(x=hist2fit,gamma) where hist2fit is the bar histogram of a sample distribution. The problem is that for some points, it is not possible to fit the gamma

[R] How to display multiples lines with different color on the same plot?

2013-06-04 Thread Kaptue Tchuente, Armel
Hi all, I'm struggling with the display of several regression lines (with different colors) on the same plot. I manually drew what I'm trying to do with 8 lines (see attached). Any thoughts for a code will be very much appreciated. Thanks Armel attachment:

[R] How to handle errors generated by the package Kendall?

2013-04-30 Thread Kaptue Tchuente, Armel
Hello everyone, I'm trying to perform some trend analysis using the package Kendall and for some observations I get the following error WARNING Error exit, tauk2, IFAULT = 12 Could anyone tell me how to create a logical vector of observations having its element equal to TRUE if this error

Re: [R] How to read a direct access file by connecting fortran with R ?

2013-04-19 Thread Kaptue Tchuente, Armel
, Mehmet Sent: Friday, April 19, 2013 3:17 AM To: Kaptue Tchuente, Armel Subject: Re: [R] How to read a direct access file by connecting fortran with R ? On 19 April 2013 07:05, Kaptue Tchuente, Armel armel.kap...@sdstate.edu wrote: Hello all, I would like to read the specific line number row

[R] How to read a direct access file by connecting fortran with R ?

2013-04-18 Thread Kaptue Tchuente, Armel
Hello all, I would like to read the specific line number row of a direct access file (which is stored as a n_row*n_col matrix of elements kind=p) without reading all the preceding lines (i.e 1,2,..,row-1). Is there a function in R that can perform this task? To solve my issue, I tried without

[R] Model selection: On the use of the coefficient determination(R2) versus the frequenstist (AIC) and Bayesian (AIC) approaches

2013-04-13 Thread Kaptue Tchuente, Armel
Dear all, I'm modeling growth curve of some ecosystems with respect to their rainfall-productivity relationship using a simple linear regression (ANPP(t)=a+b*Rain(t)) and a modified version of the Brody Model ANPP(t)=a*(1-exp(-b*rain(t))) I would like to know why the best model is function of