
Simulation of heaping correction method
sim.Kernelheaping(
simRuns,
n,
distribution,
rounds,
thresholds,
downbias = 0.5,
setBias = FALSE,
Beta = 0,
unequal = FALSE,
burnin = 5,
samples = 10,
bw = "nrd0",
offset = 0,
boundary = FALSE,
adjust = 1,
...
)
number of simulations runs
sample size
name of the distribution where random sampling is available, e.g. "norm"
rounding values, numeric vector of length >=1
rounding thresholds
Bias parameter used in the simulation
if TRUE a rounding Bias parameter is estimated. For values above 0.5, the respondents are more prone to round down, while for values < 0.5 they are more likely to round up
Parameter of the probit model for rounding probabilities used in simulation
if TRUE a probit model is fitted for the rounding probabilities with log(true value) as regressor
burn-in sample size
sampling iteration size
bandwidth selector method, defaults to "nrd0" see density
for more options
location shift parameter used simulation in simulation
TRUE for positive only data (no positive density for negative values)
as in density
, the user can multiply the bandwidth by a certain factor such that bw=adjust*bw
additional attributes handed over to createSim.Kernelheaping
List of estimation results
# NOT RUN {
Sims1 <- sim.Kernelheaping(simRuns=2, n=500, distribution="norm",
rounds=c(1,10,100), thresholds=c(0.3,0.4,0.3), sd=100)
# }
Run the code above in your browser using DataLab