[R] Generate simulated data respecting some conditions
Marine Regis
marine.regis at hotmail.fr
Thu Jul 6 17:14:19 CEST 2017
Hello,
Is it possible to generate simulated data that look like the attached figure?
The curve in the figure can be obtained from this equation respecting some conditions:
if(Temperature > T_min & Temperature < T_max){
a*( Temperature -T_min)*( Temperature -T_max)
} else 0
T_min ~ Uniform(0, 24)
T_max ~ Uniform(25, 45)
-a ~ Gamma(1, 1)
Temperature <- seq(0, 45, by = 1)
Thank you very much for your help.
Have a nice day
Marine
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled.png
Type: image/png
Size: 8165 bytes
Desc: Untitled.png
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20170706/7c40973b/attachment.png>
More information about the R-help
mailing list