Learn R Programming

ssmn (version 1.1)

ais: Australian institute of sport data

Description

Data on 102 male and 100 female athletes collected at the Australian Institute of Sport.

Arguments

Format

This data frame contains the following columns:

References

S. Weisberg (2005). Applied Linear Regression, 3rd edition. New York: Wiley, Section 6.4

Examples

Run this code

##Load the data
 library(ssmn)
 data(ais)
 attach(ais)

#Set the response y and covariate x
 x1    <- cbind(1,SSF,Ht)
 y     <- Bfat


##Fits a Skew Scale Mixtures of Normal Distributions to the data
fit.ssmn <- ssmn(y, x1, family="sn", method="EM", error =  1e-6, maxit=1000, show.envelope=FALSE)

#Show envelope
theta    <- c(fit.ssmn$beta,fit.ssmn$sigma2,fit.ssmn$lambda)
envel(y,x1,theta,family="sn",alpha=0.05)

Run the code above in your browser using DataLab