Code covered by the BSD License
-
blkrepmat( type, c, q )
BLKREPMAT replicate blks of matrices
-
center(X, V, dim)
CENTER subtracts a vector from each row of a matrix.
-
coeff2eqn( coeffs, var_names,...
COEFF2EQN text representation of a set of equations
-
col2ind(order,siz)
col2ind converts column specific 1-based indices to element based indices
-
colorfulcube( M, creq, method...
COLORFULCUBE produces useful colormaps
-
createAttributeMenus( v,x )
createAttributeMenus private function called by grperrorplot and
-
dataset2table( x )
DATASET2TABLE - converts a datset to a cellarray.
-
dotests( m, F, SSR, SSE, E, B...
-
ffact( q )
FFACT full facorial design
-
grp2ind( varargin )
GRP2IND converts grouping variables in integer indices
-
grp_legend(h,u,attr)
ax = grp_legend creates a legend for plot created with grpplot
-
grp_themes(varname,varargin)
grp_themes adds visual distinction to levels within groups of points, used
-
grperrorbar( x, y, ci, vararg...
-
grpplot( x, y, varargin)
-
imp(fn)
-
ind2grp( gi, varargin )
IND2GRP recreates factors from dummy variables and labels
-
ind2logical( i, d )
IND2LOGICAL converts integer index into logical of size d
-
jitter( x, varargin )
JITTER adds jitter to the values in x to improve display
-
lre( q, c )
Log Relative Error. Returns the number of leading digits two numbers have in common
-
lre( q, c )
Log Relative Error. Returns the number of leading digits two numbers have in common
-
make_key( varargin )
MAKE_KEY - concatenate two vectors of numbers, chars or cell strings to
-
mat2vec( A )
MAT2VEC splits a m x n matrix or cell array into an n-vectors
-
mat_compare( x, y, tol )
MAT_COMPARE returns true if two matrices are equivlant to specified
-
mdummy(x, method, nlevels)
MDUMMY enodes integer index (grouping) variables into a design matrix
-
num2ord(x)
NUM2ORD Convert numbers to an ordinal string.
-
quantize(x, s)
QUANTIZE round a number to specified number of significant digits.
-
range(x,dim)
RANGE drop in replacement for matlab's range.
-
regexpfind( str, pat )
REGEXIPFIND use regular expression to find case-insensitive patterns
-
regexpifind( str, pat )
REGEXPIFIND use regular expression to find patterns ignoring case
-
regexptok( str, pat )
REGEXPTOK. tokenize a (cell) string using regular expression patterns
-
scale(X, V, dim)
SCALE divides a vector from each row in a matrix
-
search( ds, pat, field, reg_p...
search_dataset
-
strenum( basestr, k, delim )
STRENUM appends sequence of numeric digits to a base string.
-
struct_compare(a,b)
-
svdinv(A,varargin)
PINV Pseudoinverse using SVD. Matlab has this function (pinv), but it
-
table( col_names, varargin )
TABLE create a cell table
-
test_argParser
TEST_VARS unit test for Vars class
-
test_bdmat
create a sumatrix from existing matrices and specify arbitrary
-
test_dmat
subsref
-
test_lstats
Ls estimates
-
test_mixed_model_tests
-
test_model
fixed effects (3-way nominal)
-
test_mstats
testing variance estimation function
-
test_pmat
-
test_vars
TEST_VARS unit test for Vars class
-
ArgParser
-
BDmat
Copyright 2011 Mike Boedigheimer
-
Dmat
Copyright 2011 Mike Boedigheimer
-
Lstats
Copyright 2011 Mike Boedigheimer
-
Model
Copyright 2011 Mike Boedigheimer
-
Model2
Amgen Inc.
-
Mstats
Copyright 2011 Mike Boedigheimer
-
Pmat
Amgen Inc.
-
Vars
-
test_linstats.m
-
View all files
|
|
| File Information |
| Description |
LinStats is a collection of classes, functions and data that are useful for representing, solving and analyzing linear statistical models. LinStats has been updated to use a new object based approach to support incremental model-building and more sophisticated analysis.
Notably this is the first Matlab statistical package that can handle ANOVA and Variance Components models with fixed and random effects using Restricted Estimated Maximum Likelihood (REML) including the modern corrections for small sample size. This allows improved estimates for both fixed (Best linear unbiased estimates) and random terms (Best linear unbiased predictors).
Many statistical analysis including ANOVA involve random factors which poses challenging problems. Old solutions used approximations that were required before the advent of computers. Modern solutions use Restricted Estimated Maximum Likelihood. More recent enhancements and refinements include corrections for small sample size (Kenward and Roger) and take into account the uncertainty that parameter estimates have on variance estimates (Harville and Kackar).
This approach is becoming more common but the calculations are complex and this has slowed implementation. Matlab and R, for example, do not support this. I have only seen it in Professional statistics programs like SAS/JMP. Now, for the first time, Matlab Stats users don't need to take a backseat to users of those languages (at least in terms of mixed model analysis of linear models).
Fixed effects analysis outputs have been validated using National Institute of Standards and Technology Standards Technology Reference most difficult datasets (included with Linstats). Random effects outputs have been checked against results produced by SAS/JMP.
Please see zip file for the Word document containing the most complete documentation available.
|
| Required Products |
Optimization Toolbox
Statistics Toolbox
|
| MATLAB release |
MATLAB 7.11 (2010b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us at files@mathworks.com