File: tamu_anova.h

package info (click to toggle)
tamuanova 0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 948 kB
  • sloc: sh: 7,281; ansic: 703; makefile: 31
file content (44 lines) | stat: -rwxr-xr-x 1,139 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef __TAMU_ANOVA_H
#define __TAMU_ANOVA_H

#undef __BEGIN_DECLS
#undef __END_DECLS
#ifdef __cplusplus
# define __BEGIN_DECLS extern "C" {
# define __END_DECLS }
#else	/* 
 */
# define __BEGIN_DECLS
# define __END_DECLS
#endif	/* 
 */
  
__BEGIN_DECLS 
 
struct tamu_anova_table
{
  
long dfTr, 
dfE, 
dfT;
   
double SSTr;
   
double SSE;
   
double SST;
   
double MSTr;
   
double MSE;
   
double F;
   
double p;
};


struct tamu_anova_table tamu_anova (double data[], long factor[], long I,
				      long J);


struct tamu_anova_table_twoway
{
  
long 
dfA, dfB, dfAB, dfE, dfT;
   
double 
SSA, MSA, FA, pA, 
SSB, MSB, FB, pB, 
SSAB, MSAB, FAB, pAB, 
SSE,
    MSE, 
SST;
 
};



enum gsl_anova_twoway_types
{ 
anova_fixed, 
anova_random, 
anova_mixed 
};


struct tamu_anova_table_twoway tamu_anova_twoway (double data[],
						    long factor[][2], long I,
						    long J[2],
						    
enum
						    gsl_anova_twoway_types
						    type);



void tamu_anova_printtable_twoway (struct tamu_anova_table_twoway t);

void tamu_anova_printtable (struct tamu_anova_table t);


__END_DECLS 
#endif	/*__TAMU_ANOVA_H*/