scoreScale
FunctionFunctions that are used internally within other
PROscorerTools
functions, namely scoreScale
, to
process the arguments passed to them. Only developers wishing to
contribute to the PROscorerTools
package should use these
functions. Even developers should avoid using them for anything but
experimentation. If you use these functions, be warned that they will
likely change in future versions of the package in ways that may not be
compatible with your usage. They will also be made invisible to users in
future version of the PROscorerTools
package. The only
reason they are visible to users in these initial versions of the package
is to make the internals of the package more transparent to potential
developers to facilitate the development and improvement of the package.
chkstop_df(df)chkstop_okmiss(okmiss)
chkstop_type(type, minmax)
chkstop_revitems(df, dfItems, revitems, items, minmax)
chk_imin(dfItems, imin)
chk_imax(dfItems, imax)
chkstop_minmax(dfItems, minmax)
Functions with prefix chk_
return TRUE
if the argument
is OK, or FALSE
if the argument fails the check. Functions with the
prefix chkstop_
print an error message and stop the execution of the
function in which they are embedded.
A data frame, such as the one given scoreScale
Proportion of missing items allows, given as argument to
scoreScale
Score type, given as argument to scoreScale
Minimum and maximum possible item values, given as argument to
scoreScale
A data frame with only items, created and used by
scoreScale
as an interim step in scoring a scale
Items to reverse, given as argument to scoreScale
Item index, given as argument to scoreScale
Minimum possible item value
Maximum possible item value
Functions with prefix chk_
simply check the argument and
return TRUE
if the argument is OK, or FALSE
if the argument
fails the check. Functions with the prefix chkstop_
check the
argument and, if FALSE
, stop execution and display an error message
to help the user pinpoint the problem.