Learn R Programming

kvr2 (version 0.2.0)

print.r2_kvr2: Print Methods for r2 and comp_fit calculation Objects

Description

Printing objects of class "r2_kvr2" (generated by r2()) or "comp_kvr2" (generated by comp_fit()), respectively, by simple print methods.

Usage

# S3 method for r2_kvr2
print(x, ..., digits = 4, model_info = TRUE)

# S3 method for comp_kvr2 print(x, ..., digits = 4, model_info = TRUE)

Value

The input object is returned invisibly (via invisible(x)). This function is called for its side effect of printing the results of r2() or comp_fit() calculations to the console.

Arguments

x

An object of class "r2_kvr2" or "comp_kvr2".

...

Further arguments passed to or from other methods.

digits

The number of decimal places to be used for rounding the results. Default is 4.

model_info

Logical. If TRUE (default), additional information about the model (type, intercept, n, k) is printed below the results.

Details

These methods format the calculated statistics into a human-readable summary, displaying each index or metric with its corresponding value.

See Also

r2() comp_fit() r2_adjusted()