[R] Probability of data values form DENSITY function

2009-09-29 Thread Lina Rusyte
Hello,   Could someone help me please and to tell how to get the probability from empirical DENSITY (not parametric) for each data value (R function). For example, for normal distribution there is such a function like:   “dnorm(q, mean = 0, sd = 1, lower.tail = TRUE, log.p = FALSE)” Â

[R] Probability of data values form empirical distribution

2009-09-29 Thread Lina Rusyte
Hello,   Could someone help me please and to tell how to get the probability from empirical distribution (not parametric) for each data value (R function). For example, for normal distribution there is such a function like:   “pnorm(q, mean = 0, sd = 1, lower.tail = TRUE, log.p = FALSE)”  

[R] Starting values in “arima.sim” fu nction

2009-09-28 Thread Lina Rusyte
Hello,   Could someone tell me please how can I find out which starting values has R used for the simulation?   I have AR(1) model:   y(t)=0.2*y(t-1)+0.2*y(t-2) + e(t)     (e(t) is distributed according standard normal distribution)   I need y(0) (or y(t-1), then t=1) values for

[R] Starting values in “arima.sim” fu nction

2009-09-25 Thread Lina Rusyte
following calculations (it is very important parameter). Should I assume that y(0)=mean(yt) or set y(0)=0?   How to find out, which values R uses for y(0), y(-1) and so on?   Thank you very much for the answer!   Best regards, Lina Rusyte [[alternative HTML version deleted

[R] Matrix addition function

2009-08-13 Thread Lina Rusyte
Hello,   What function can I use for matrices addition? I couldn’t find any information about it in the manual or in the internet. (A+B suits, when the number of matrixes is small, function sum() doesn’t suit for matrices addition, because it sums all variables in the matrices and produces

[R] Help for R (Advanced matrix addition (large or undefined number of matrices)

2009-08-12 Thread Lina Rusyte
Dear Sirs,   I would like to ask you, what function can I use for matrices addition? I couldn’t find any information about it in the manual or in the internet. (A+B suits, when the number of matrixes is small, function sum() doesn’t suit for matrices addition, because it sums all variables i