Skip to contents

Creates a partial formula of the form ~var1 + var2. The partial formula can be named by adding an equals sign before the tilde.

Usage

U(...)

Arguments

...

partial formula of the form ~var1 + var2.

Value

A partial formula (potentially named) for use in regress.

See also

Examples


# Reading in a dataset
data(mri)

# Create a named partial formula
U(ma=~male+age)
#> $ma
#> ~male + age
#> <environment: 0x7fd50e8e09e8>
#> 

# Create an unnamed partial formula

U(~male+age)
#> $`~male + age`
#> ~male + age
#> <environment: 0x7fd50e8e09e8>
#>