Hi all,
Can anybody help me with how to simulate a non-linear relation between two variables in R?
y=a*phi(y-x)+b,
where a and b are parameters with specific values such as a=0.1 and b=-0.2; Phi function is the cumulative density of a standard normal distribution.
I want to simulate the relation between y and x in R, x is the independent variable while y is the dependent variable.
Thank you.