The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
chisq.test();
the reject column is no longer shown (it remains in the
object). summary() adds fitted parameters and the
cells.chi_cells() returns the final cells of any test
with observed and expected counts, Pearson residuals and each cell’s
contribution to the statistic, with the same columns for every data type
and dimension.as_htest() converts a result to a standard
htest object.ks.test():
chi_test(x, "pnorm", mean = 0, sd = 2). Estimated
parameters are named in phat
(phat = c("mean", "sd")) or by a named pstart;
moment-based starting values are supplied for the common families. For
distributions with a lambda parameter
("ppois"), lambda is that parameter. The same
works in chi_power(), chi_sample_size() and
compare_power().chi_test(x, p = ...) tests categorical data (character,
factor or a table) against category probabilities, as
chisq.test() does; merged categories are labelled by their
members.chi_test(cbind(long, lat, depth) ~ mag >= 4.6, data = quakes).partition = c("both", "ES", "EP") in
chi_test() and chi_power() reports one
partition only. The documentation warns against choosing the partition
after seeing both p-values.range replaces Range and
Ranges (a length-2 vector applies to every coordinate of
multidimensional data);p_method replaces p.method,
B_permutation replaces B.permutation;cores replaces maxProcessor,
parallel_threshold replaces
parallel.threshold;chi_sample_size(), power replaces
target_power and partition replaces
bin_type.power.t.test().chi_test(..., p_method = "bootstrap") computes
goodness-of-fit p-values by a parametric bootstrap: B
samples (default 999) of the observed size are drawn from the fitted
null, and the complete test (estimation, cell construction, merging,
minimum-divergence fit) is repeated on each. This avoids the chi-square
approximation and the question of its degrees of freedom with estimated
parameters and data-dependent cells. For a fully specified null it is a
Monte Carlo test. The ES and EP tests are each calibrated under their
own fitted null. The asymptotic p-values are kept in
attr(result, "asymptotic_p")."pnorm" uses rnorm), a PMF with
support or p, one-dimensional continuous data
(inverse transform via qnull or pnull) and
one-dimensional integer data with a CDF; otherwise supply
rnull(n) or rnull(n, theta).
cores parallelizes the bootstrap.chi_power(..., method = "simulation", p_method = "bootstrap")
estimates the power of the bootstrap test with 2B instead of B^2
complete tests: the null distribution of the statistic is simulated once
(for a composite null, from the member closest to the alternative,
separately for ES and EP), and each test under the alternative rejects
when its bootstrap p-value against these null statistics is at most
alpha. The result includes the estimated
critical_value.B now sets only the number of simulation replications.
Analytic power without an alternative CDF/PMF estimates the alternative
cell probabilities from reference data whose size is chosen
automatically in every routine, by the rule already used for continuous
1D goodness-of-fit: a pilot of 10,000 observations gives the largest
cell variance v, and the reference is enlarged to max(10,000, 1.25 v /
0.001^2) observations (per sample for two-sample problems, at most
500,000), so each cell probability has a standard error of about
0.001.B reference data sets (the
default 1,000, or fewer if B was reduced to save time) and
up to 200 or B partitions. Analytic power values therefore
change slightly; with a small B they could be noticeably
off (for example 0.655 instead of about 0.70 for a discrete two-sample
example with B = 200, simulated power 0.697).seed and independent of
how many data sets are drawn.B (see above);
values differ slightly from earlier versions.res[1, "p.value"] must become
res[["p.value"]] or res["p.value"].attributes(), summary() or
chi_cells().power_scaled_ncx2 and uses the same fixed-alternative
approximation as the other routines.alt_cdf,
alt_pdf, pmalt) receive the scenario
parameters by name when their formals match the generator’s
(e.g. generator function(size, mu) with
alt_cdf(z, mu)). A parameter received by the generator’s
n is never passed to the alternative function. Otherwise
parameters are still appended by position.compare_power() plots the recommended analytic power,
which is always available, instead of the scaled noncentral chi-square,
which is missing when moment matching is infeasible. The plot data
contain both.B documentation was
corrected in the discrete power routines.summary() of a test result no longer prints an empty
“Final fitted parameters” section for a fully specified null. Summaries
round values to four significant digits and print fitted parameters
under their names.phat or pstart, with a clear
message. pstart is accepted by every goodness-of-fit test
and power routine.chi_power() uses the same default number of bins as
chi_test().chi_sample_size() has no fixed default seed
(seed = NULL draws one from the current stream), and
requires rxy to take the sample size as an argument
(n, or its first argument without a default).chi_test() has a seed argument for
permutation p-values.chi_power(bins = ...) now works for all continuous
routines (it was documented but always failed).method = "both"
and permutation calibration (p.method,
B.permutation) for simulated tests.maxbins is available in the continuous 1D two-sample
test and power, and is accepted as the name of nbins in
discrete 1D two-sample power.pdf/pmnull and
alt_pdf/pmalt are accepted under either
name.alt_cdf or alt_pdf: as for continuous data,
alternative probabilities are estimated from reference samples.valid_fraction,
n_invalid and power_valid; continuous MD
two-sample power also reports K and df.make_bins_cont_gof() and
make_bins_cont_2sample().minexpcount (the documented R2sample convention).
Continuous two-sample tests require the smaller sample’s expected count
to reach minexpcount.n and
m to generators that declare them
(function(n, m)). Before this, such generators failed, and
generators with default sizes silently ignored the requested
n and m.par1/par2)
are no longer matched by position to the sample-size arguments
n and m of a two-sample generator. A parameter
with no argument to receive it is now an error; before, it was silently
dropped.alt_cdf
and a composite null now estimates the starting parameters from a large
reference sample, not from a single sample of size n..Random.seed. Without seed, a
seed is drawn from the caller’s RNG, so results are reproducible after
set.seed() and do not depend on the number of workers. The
pilot replication is no longer discarded.n correctly from
frequency-table generators (cbind(vals, x), data frames,
tables).pmnull alone now selects a goodness-of-fit problem in
chi_power() and chi_sample_size().chi_power():
method, uses simulation for non-Pearson
families instead of failing;n and m from two-sample generators
with default sizes.chi_sample_size(method = "simulation"):
bins accept Range = NULL, as
documented.nbins = c(5, 5)) are evaluated once instead of producing
duplicate rows.graphics, utils and parallel
are declared in Imports.test_cont_MD_2sample()
(merging rule, supported dimensions), test_cont_MD_gof()
and power_cont_1D_2sample().These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.