Re: [R] MSBVAR Package

2017-09-27 Thread Jim Lemon
Hi Ahmad, I don't know of any, but this might help: http://maths-people.anu.edu.au/~johnm/courses/r/ASC2008/pdf/Rtimeseries-ohp.pdf Jim On Thu, Sep 28, 2017 at 2:12 PM, ah a wrote: > Hi Jim > > Thank you very much for your reply and your help. > By the way, where

Re: [R] building random matrices from vectors of random parameters

2017-09-27 Thread Peter Langfelder
I would try something like n = 5 a <- rnorm(n,0.8,0.1) so <- rnorm(n,0.5,0.1) m <- rnorm(n,1.2,0.1) mats = mapply(function(sa1, so1, m1) matrix(c(0,sa1*m1,so1,sa1),2,2,byrow=T), a, so, m, SIMPLIFY = FALSE) > mats [[1]] [,1] [,2] [1,] 0.000 0.9129962 [2,]

[R] building random matrices from vectors of random parameters

2017-09-27 Thread Evan Cooch
Suppose I have interest in a matrix with the following symbolic structure (specified by 3 parameters: sa, so, m): matrix(c(0,sa*m,so,sa),2,2,byrow=T) What I can't figure out is how to construct a series of matrices, where the elements/parameters are rnorm values. I'd like to construct

Re: [R] build a SpatialLines object from a list

2017-09-27 Thread MacQueen, Don
Have you tried following the example in ?'SpatialLines-class' You'll probably get better help from R-sig-geo And please don't send html email, it makes your email hard to read. -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab

Re: [R] need held in r coding.

2017-09-27 Thread MacQueen, Don
It's pretty clear from the error message that dat$Date is not an appropriate time-based object. Since dat$Date is created by the get_majorlandmarks() function, and your question provides no information about that, it's hard to be more specific. However, I would suggest looking at the output of

Re: [R] MSBVAR Package

2017-09-27 Thread Jim Lemon
Hi Ahmed, You seem to know about the package, so I would suggest downloading: https://cran.r-project.org/web/packages/MSBVAR/MSBVAR.pdf getting a big cup of coffee and going through the examples to see how the package works. If you can't make any sense out of that, you will probably have to

[R] need held in r coding.

2017-09-27 Thread istiyak ahamad
Need Help in Debugging below script: dat <- get_majorlandmarks(dat,Dmin,Per) fit_xts <- xts(dat$fit,order.by = dat$Date,frequency = 365) close_xts <- xts(dat$Close, order.by = dat$Date, frequency = 365 ) majorlandmarks_xts

[R] Need Help in Debugging

2017-09-27 Thread istiyak ahamad
I am getting following error when running this script :Error in length(runsum) : object 'runsum' not found ##error function dat$fit <- NULL dat$fit[dat$majorlandmarks] <- dat$Close[dat$majorlandmarks] run <- rle(dat$majorlandmarks) runvalue <- run$values runsum <- cumsum(run$lengths)

Re: [ESS] R window: Text is read only

2017-09-27 Thread Vitalie Spinu
If you activate the debugger (M-x toggle-debug-on-error), does it show anything meaningful? >> On Wed, Sep 27 2017 09:47, Christian wrote: > Hi, after start with M-x R the R window behaves OK, allowing writing to. BUT, > after navigating in the help system, R refuses writing with "Text is read

[R] MSBVAR Package

2017-09-27 Thread ah a via R-help
dear sirs or madam, As I'm interested to search about the monetary transmission channel in our country by MSVAR model, I would be grateful if you help me and tell me how can I run MSVAR in R or send me the related code to run this model . Actually, I'm new user of R and I don't know how to run

[ESS] R window: Text is read only

2017-09-27 Thread Christian
Hi, after start with M-x R the R window behaves OK, allowing writing to. BUT, after navigating in the help system, R refuses writing with "Text is read only". This makes R unusable. I found no help on the net, so, please, give me some hints. This behaviour started bothering me out of the blue.

Re: [R] disturbed legend in ggplot2

2017-09-27 Thread Troels Ring
Hi Ulrik - thanks a lot for pointing out this blunder - now it is fine! Best wishes Troels Den 27-09-2017 kl. 09:31 skrev Ulrik Stervbo: Hi Troels, Try to move the size argument out of the aesthetic. Best wishes, Ulrik On Mi., 27. Sep. 2017, 08:51 Troels Ring wrote:

Re: [R] disturbed legend in ggplot2

2017-09-27 Thread Ulrik Stervbo
Hi Troels, Try to move the size argument out of the aesthetic. Best wishes, Ulrik On Mi., 27. Sep. 2017, 08:51 Troels Ring wrote: > Dear friends - below is a subset of a much larger material showing two > ways of generating two "lines". The intention is to have the colour >

[R] disturbed legend in ggplot2

2017-09-27 Thread Troels Ring
Dear friends - below is a subset of a much larger material showing two ways of generating two "lines". The intention is to have the colour reflect a variable, pH, but the legend is disturbed. The little part marked "3" above the colour scale is unwelcome. Why did it appear? How could I avoid