| simstudy.prop2 | R Documentation |
simstudy.prop2
simstudy.prop2(
nx,
ny,
px,
py,
num.experiments,
p = NULL,
alternative = c("two.sided", "less", "greater"),
conf.level = 0.95,
correct = TRUE,
the.quantiles = c(0.025, 0.1, 0.25, 0.5, 0.75, 0.9, 0.975),
experiment.name = "experiment",
group.name = "group",
x.value = "x",
y.value = "y",
value.name = "value",
seed = 920173,
vstr = 3.6
)
nx |
A numeric value for the number of observations in the x group for each experiment. |
ny |
A numeric value for the number of observations in the y group for each experiment. |
px |
A numeric value for the probability of success in the x group. |
py |
A numeric value for the probability of success in the y group. |
num.experiments |
A numeric value representing the number of simulated experiments. |
p |
See help(prop.test). |
alternative |
See help(prop.test). |
conf.level |
See help(prop.test). |
correct |
See help(prop.test). |
the.quantiles |
A numeric vector of values between 0 and 1. Summary statistics to analyze the tests will return the specified quantiles. |
experiment.name |
A character value providing the name for the column identifying the experiment. |
group.name |
A character value providing the name of the column of the group labels. |
x.value |
A character value specifying the label used for data in the x group (in the column labled by the group.name parameter). |
y.value |
A character value specifying the label used for data in the y group (in the column labled by the group.name parameter). |
value.name |
A character value specifying the name of the column that contains the value of the simulated data. |
seed |
A single numeric value, interpreted as an integer, or NULL. See help(set.seed). |
vstr |
A character string containing a version number, e.g., "1.6.2". The default RNG configuration of the current R version is used if vstr is greater than the current version. See help(set.seed). |
A list containing the following components:
simdat.prop2A data frame of the simulated data for two proportions.
test.statistics.prop2A data frame containing the results of the tests for the two proportions.
sim.analysis.prop2A data frame containing the analysis of the simulated study for the two proportions.
study.noeffect.prop2 <- simstudy.prop2(nx = 40,
ny = 40, px = 0.4, py = 0.4, num.experiments = 2,
alternative = "two.sided", conf.level = 0.95, seed = 71)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.