Learn R Programming

restriktor (version 0.5-90)

iht-methods: Methods for iht

Description

Print function for objects of class conTest.

Usage

# S3 method for conTest
print(x, digits = max(3, getOption("digits") - 2), ...)

Value

No return value, just the result of the print function

Arguments

x

an object of class conTest.

digits

the number of significant digits to use when printing.

...

no additional arguments for now.

Examples

Run this code
  # unrestricted linear model for ages (in months) at which an 
  # infant starts to walk alone.
  
  # prepare data
  DATA <- subset(ZelazoKolb1972, Group != "Control")
  
  # fit unrestricted linear model
  fit.lm <- lm(Age ~ -1 + Group, data = DATA)
  
  # restricted linear model with restrictions that the walking 
  # exercises would not have a negative effect of increasing the 
  # mean age at which a child starts to walk. 
  fit.con <- restriktor(fit.lm, constraints = "GroupActive < GroupPassive < GroupNo")
  
  iht(fit.con)

Run the code above in your browser using DataLab