These functions will be removed from multimput
in the future.
generateData(
intercept = 2,
n.year = 24,
n.period = 6,
n.site = 20,
year.factor = FALSE,
period.factor = FALSE,
site.factor = FALSE,
trend = 0.01,
sd.rw.year = 0.1,
amplitude.period = 1,
mean.phase.period = 0,
sd.phase.period = 0.2,
sd.site = 1,
sd.rw.site = 0.02,
sd.noise = 0.01,
size = 2,
n.run = 10,
as.list = FALSE,
details = FALSE
)
missingAtRandom(
dataset,
proportion = 0.25,
count.variable = "Count",
observed.variable = "Observed"
)
missingCurrentCount(
dataset,
proportion = 0.25,
count.variable = "Count",
observed.variable = "Observed"
)
missingObserved(
dataset,
count.variable = "Count",
observed.variable = "Observed",
site.variable = "Site",
year.variable = "Year",
period.variable = "Period"
)
missingVolunteer(
dataset,
proportion = 0.25,
count.variable = "Count",
observed.variable = "Observed",
year.variable = "Year",
site.variable = "Site",
max.count = 100
)
The global mean on the log-scale.
The number of years.
The number of periods.
The number of sites.
Convert year to a factor.
Defaults to FALSE
.
Convert period to a factor.
Defaults to FALSE
.
Convert site to a factor.
Defaults to FALSE
.
The long-term linear trend on the log-scale.
The standard deviation of the year effects on the log-scale.
The amplitude of the periodic effect on the log-scale.
The mean of the phase of the periodic effect among
years.
Defaults to 0
.
The standard deviation of the phase of the periodic effect among years.
The standard deviation of the site effects on the log-scale.
The standard deviation of the random walk along year per site on the log-scale.
The standard deviation of the noise effects on the log-scale.
The size parameter of the negative binomial distribution.
The number of runs with the same mu.
Return the dataset as a list rather than a data.frame.
Defaults to FALSE
.
Add variables containing the year, period and site effects.
Defaults tot FALSE
.
A dataset to a the observation with missing data.
The proportion of observations that will be missing.
The name of the variable holding the counts.
The name of the variable holding the observed values = either count or missing.
The name of the variable holding the sites.
The name of the variable holding the years.
The name of the variable holding the period.
The maximum count.