Skip to main content

Show Code in R and SAS for an Analysis

Source: R/translate.R

Description

Show Code in R and SAS for an Analysis

Usage

translate(x, ...)

## Default S3 method:
translate(x, ...)

## S3 method for class 'segue_object'
translate(x, ...)

Arguments

Arguments Description
x An object
… Not currently used

Value

x invisibly.

Examples

if (rlang::is_installed("modeldata")) withAutoprint({ # examplesIf
cog_ability <- modeldata::ad_data$Class
str(cog_ability)
test_res <- bin_prop_test(cog_ability)
translate(test_res)
}) # examplesIf
> cog_ability <- modeldata::ad_data$Class
> str(cog_ability)
 Factor w/ 2 levels "Impaired","Control": 2 2 2 2 2 1 2 2 2 1 ...
> test_res <- bin_prop_test(cog_ability)
> translate(test_res)
stats::binom.test(x = 91L, n = 333L, alternative = "two.sided", 
    p = 0.5)