[R] colored heights in 3D plot (persp)

2007-07-26 Thread Juliane Willert
Hello everybody,

I have a matrix with measurement values and plot them with persp.
I want to highlight different heights in different colors. At least 
everything above and under a certain z-level shall have a different 
color to make the differences in height more obvious.
How can I do that or do I have to use another package?

Best regards,
Juliane

__
R-help@stat.math.ethz.ch 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, minimal, self-contained, reproducible code.


[R] Markov Chain Model Simulation

2007-07-06 Thread Juliane Willert
Hi everybody,

I have not worked yet very much with R and must investigate a Monte 
Carlo Simulation.
My model contains an autoregression(1) and a two state markov chain.

For example:
X_t  = Tau_t + u_t
Tau_t = nu_t + Tau_{t-1}
nu_t = nu_1 * S_t + nu_0 * (1-S_t)
phi(L) u_t = epsilon_t, epsilon_t is i.i.d.(0, sigma^2_epsilon)
S_t is the markov switching variable and is either 0 or 1. phi(L) is the 
first lag of the residuals.

I would appreciate to get any hint how to simulate such a model in R .

Thank you,
Juliane

__
R-help@stat.math.ethz.ch 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, minimal, self-contained, reproducible code.