Dear experts,
I am a beginner of R.
I'm looking for experts to guide me how to do programming in R in order to 
randomly replace 5 observations in X explanatory variable with outliers drawn 
from U(15,20) in sample size n=100. The replacement subject to y < 15. 

The ultimate goal of my study is to compare the std of y with and without the 
presence of outliers based on average of 1000 simulation.

Info :
X~U(0,10)
Y=6+2X+norm(0,1)

Thank you.

Hock Ann


      
	[[alternative HTML version deleted]]

