View source: R/Summary-Report.R
summary_report | R Documentation |
Conduct a DIF analysis, estimate treatment effect robustness, and produce report summarizing results
summary_report(
dif.data,
file.name,
report.type = "dif.effects",
report.format = "html_document",
report.title = file.name,
measure.name = "measure",
dataset.name = "dataset",
dif.methods = c("loess", "MH", "logistic", "IRT"),
biased.items = "IRT",
match.type = "Total",
match.bins = NULL,
item.type = NULL,
irt.scoring = "WLE"
)
dif.data |
an object returned from |
file.name |
File name to create on disk. The file path can also be specified here. If the path is omitted, the file is saved to the working directory. |
report.type |
A character indicating which type of report to produce: including both the DIF analysis results and treatment effect robustness checks ("dif.effects"; default), only DIF analysis ("dif.only"), or only treatment effect robustness checks ("effects.only"). |
report.format |
File format of the report. Default is HTML ("html_document"). See |
report.title |
An optional character string indicating the report title, which is printed in the report. |
measure.name |
An optional character string naming the measure being evaluated, which is printed in the report. |
dataset.name |
An optional character string naming the dataset used, which is printed in the report. |
dif.methods |
character vector with one or more methods of of investigating DIF:
locally estimated scatterplot smoothing ( |
biased.items |
Οne of |
match.type |
For the loess, MH, and logistic methods, a character indicating whether a
total summed score ( |
match.bins |
For MH, an optional vector of bin sizes for stratifying the |
item.type |
For IRT, the type of model to fit for each item. The default is |
irt.scoring |
What type of IRT scoring procedure should be used? Passed to the |
This function is a wrapper around dif_analysis
, dif_models
, effect_robustness
, and dif_report
in order to simplify report production when desired.
a summary report of the DIF analysis, treatment effect robustness checks, or both
data("mdat")
# prep data
dif.data <- dif_data_prep(item.data = mdat`[`5:ncol(mdat)],
dif.group.id = mdat$gender,
tx.group.id = mdat$treated,
cluster.id = mdat$clusterid,
na.to.0 = TRUE)
summary_report(dif.data = dif.data,
file.name = "DIF-Effects-Gender-MDAT-Language",
report.type = "dif.effects",
report.title = "MDAT Language: Gender DIF and Tx Effects",
measure.name = "MDAT Language")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.