Learn R Programming

CLME (version 1.0-1)

clme: Constructor method for objects S3 class clme

Description

Creates an object of class clme. Methods as.clme and is.clme coerce (with error checking) to class clme and test whether object is of class clme.

Usage

clme( x , theta=numeric(0), ssq=numeric(0), tsq=numeric(0), 
                  cov.theta=matrix(numeric(0)), ts.glb=numeric(0), 
                  ts.ind=numeric(0), p.value=numeric(0), 
                  p.value.ind=numeric(0),  constraints=list(), 
                  method=character(0), est.order=character(0) )
## S3 method for class 'clme':
as(x, ... )
## S3 method for class 'clme':
is( x )

Arguments

x
list with the elements corresponding to the output of constrained.lme.
theta
vector of coefficients or effects.
ssq
scaler or vector of residual variance estimates.
tsq
scaler or vector of random effect variance estimates.
cov.theta
covariance matrix of theta.
ts.glb
global test statistic(s).
ts.ind
test statistics for individual constraints.
p.value
global p-value.
p.value.ind
p-values for individual constraints.
constraints
list containing information on constrants. Required element is A, the matrix of linear constraints.
method
method of isotonization (not required).
est.order
sentence stating the type of ordering (not required).
...
space for additional arguments.

Value

  • Returns an object of the class clme.

See Also

CLME-package, constrained.lme

Examples

Run this code
clme1 <- clme()

clme2 <- list( theta=c(1,3,4.5,9) )
is.clme( clme2 )
as.clme(clme2)

clme3 <- list( theta=c(1,3,4.5,9) , ssq=1 , tsq=2 , 
               cov.theta=as.matrix( c(1,2,3,4)%*%t(c(1,2,3,4)) ) ,
               ts.glb=1 , ts.ind=c(1,2,3) , p.value=0.5 , 
               p.value.ind=c(0.2,0.5,0.8) ,
               constraints=list( A=matrix(0,nrow=3)))
is.clme( clme3 )
as.clme( clme3 )

Run the code above in your browser using DataLab