Displaying 2 results from an estimated 2 matches for "sd_y".
Did you mean:
id_y
2008 Apr 01
1
set the lower bound of normal distribution to 0 ?
...;urlnorm' which allows sampling from
truncated distribution since I want the samples
to take values from 0 to the max(x) respectively max(y).
I am unsure how to specify the means and standard deviations
in 'urlnorm'. Based on x- and y-values I have standard deviations
sd_x=0.3372137, sd_y=0.5120841 and the means mean_x=0.3126667
mean_y=0.4223137 which are not on log scale as required in urlnorm.
To covert sd_x, sd_y and mean_x, mean_y on a log-scale I did
sd_logx=sqrt(log(1.3372137))=0.54, sd_logy=sqrt(log(1.5120841))=0.64,
mean_logx=-(0.54^2)/2 and mean_logy=-(0.64^2)/2. Can an...
2010 Oct 03
2
How to programme R to randomly replace some X values with Outliers
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