sframe_validation is the diagnostic object returned by
validate_sframe() and sframe_validate_model(). It records whether the object
passed, every problem found, and every check that ran, including the checks
that found nothing.
Value
print() returns x invisibly. format() returns a single
character string. summary() returns the check table as a data frame.
as.data.frame() returns one row per problem.
Details
Use sframe_is_valid() for the pass or fail flag, sframe_problems() for the
messages, as.data.frame() for a problem-per-row table, summary() for
the full check roster, and as_sframe() to recover the validated
instrument.
See also
validate_sframe(), sframe_validate_model(), sframe_problems(),
sframe_is_valid(), as_sframe()
Other Design functions:
as_sframe(),
launch_builder(),
read_sframe(),
sframe_attention_check(),
sframe_branch(),
sframe_choice_set(),
sframe_conjoint_design(),
sframe_get_study(),
sframe_instrument(),
sframe_item(),
sframe_sampling_methods(),
sframe_scale(),
validate_sframe(),
write_sframe()
Examples
cs <- sframe_choice_set("ag5", 1:5,
c("Strongly disagree", "Disagree", "Neutral",
"Agree", "Strongly agree"))
item <- sframe_item("sat_1", "The service met my expectations.",
type = "likert", choice_set = "ag5", scale_id = "sat")
scale <- sframe_scale("sat", "Satisfaction", items = "sat_1")
instr <- sframe_instrument("Demo Survey", components = list(cs, item, scale))
v <- validate_sframe(instr, strict = FALSE)
v
sframe_is_valid(v)
sframe_problems(v)
as.data.frame(v)
summary(v)