Main Page | Alphabetical List | Class List | Directories | File List | Class Members | File Members

LinearStatistic.c File Reference

#include "CI_common.h"

Include dependency graph for LinearStatistic.c:

Go to the source code of this file.

Functions

void C_kronecker (const double *A, const int m, const int n, const double *B, const int r, const int s, double *ans)
void C_ExpectCovarInfluence (const double *y, const int q, const double *weights, const int n, SEXP ans)
SEXP R_ExpectCovarInfluence (SEXP y, SEXP weights)
void C_ExpectCovarLinearStatistic (const double *x, const int p, const double *y, const int q, const double *weights, const int n, const SEXP expcovinf, SEXP ans)
SEXP R_ExpectCovarLinearStatistic (SEXP x, SEXP y, SEXP weights, SEXP expcovinf)
void C_LinearStatistic (const double *x, const int p, const double *y, const int q, const double *weights, const int n, double *ans)
SEXP R_LinearStatistic (SEXP x, SEXP y, SEXP weights)
void C_PermutedLinearStatistic (const double *x, const int p, const double *y, const int q, const int n, const int nperm, const int *indx, const int *perm, double *ans)
SEXP R_PermutedLinearStatistic (SEXP x, SEXP y, SEXP indx, SEXP perm)
void C_scmatleft (const double *x, const int p, const int q, double *ans)
SEXP R_scmatleft (SEXP x, SEXP pq)
void C_scmatright (const double *x, const int p, const int q, double *ans)
SEXP R_scmatright (SEXP x, SEXP pq)


Detailed Description

Linear statistics for conditional inference

Author:
Author
hothorn
Date:
Date
2005/02/10 14:54:09

Definition in file LinearStatistic.c.


Function Documentation

void C_ExpectCovarInfluence const double *  y,
const int  q,
const double *  weights,
const int  n,
SEXP  ans
 

Conditional expectation and covariance of the influence function

Parameters:
y values of the influence function
q dimension of the influence function
weights case weights
n number of observations
ans return value; an object of class `ExpectCovarInfluence'

Definition at line 54 of file LinearStatistic.c.

References CI_covarianceSym, CI_expectationSym, and CI_sumweightsSym.

Referenced by R_ExpectCovarInfluence().

void C_ExpectCovarLinearStatistic const double *  x,
const int  p,
const double *  y,
const int  q,
const double *  weights,
const int  n,
const SEXP  expcovinf,
SEXP  ans
 

Conditional expectation and covariance of the a linear statistic

Parameters:
x values of the transformation
p dimension of the transformation
y values of the influence function
q dimension of the influence function
weights case weights
n number of observations
expcovinf an object of class `ExpectCovarInfluence'
ans return value; an object of class `ExpectCovar'

Definition at line 166 of file LinearStatistic.c.

References C_kronecker(), CI_covarianceSym, CI_expectationSym, and CI_sumweightsSym.

Referenced by R_ExpectCovarLinearStatistic().

Here is the call graph for this function:

void C_kronecker const double *  A,
const int  m,
const int  n,
const double *  B,
const int  r,
const int  s,
double *  ans
 

Computes the Kronecker product of two matrices

Parameters:
A matrix
m nrow(A)
n ncol(A)
B matrix
r nrow(B)
s ncol(B)
ans return value; a pointer to a REALSXP-vector of length (mr x ns)

Definition at line 22 of file LinearStatistic.c.

Referenced by C_ExpectCovarLinearStatistic().

void C_LinearStatistic const double *  x,
const int  p,
const double *  y,
const int  q,
const double *  weights,
const int  n,
double *  ans
 

Computes the linear statistic, formula (1) in the paper

Parameters:
x values of the transformation
p dimension of the transformation
y values of the influence function
q dimension of the influence function
weights case weights
n number of observations
ans return value; a pointer to a REALSXP-vector of length pq

Definition at line 301 of file LinearStatistic.c.

Referenced by R_LinearStatistic().

void C_PermutedLinearStatistic const double *  x,
const int  p,
const double *  y,
const int  q,
const int  n,
const int  nperm,
const int *  indx,
const int *  perm,
double *  ans
 

Linear Statistic with permuted indices

Parameters:
x values of the transformation
p dimension of the transformation
y values of the influence function
q dimension of the influence function
n number of observations
nperm number of permutations
indx indices for the x-part
perm (permuted) indices for the y-part
ans return value; a pointer to a REALSXP-vector of length pq

Definition at line 383 of file LinearStatistic.c.

Referenced by R_MonteCarloIndependenceTest(), and R_PermutedLinearStatistic().

void C_scmatleft const double *  x,
const int  p,
const int  q,
double *  ans
 

Score matrix for a linear combination of a linear statistic from the left

Parameters:
x score vector of length p
p length of x
q dimension of the influence function
ans return value; a pointer to a q x (pq) matrix

Definition at line 472 of file LinearStatistic.c.

Referenced by R_scmatleft().

void C_scmatright const double *  x,
const int  p,
const int  q,
double *  ans
 

Score matrix for a linear combination of a linear statistic from the right

Parameters:
x score vector of length q
p dimension of the transformation
q length of x
ans return value; a pointer to a p x (pq) matrix

Definition at line 537 of file LinearStatistic.c.

Referenced by R_scmatright().

SEXP R_ExpectCovarInfluence SEXP  y,
SEXP  weights
 

R-interface to C_ExpectCovarInfluence

Parameters:
y values of the influence function
weights case weights

Definition at line 124 of file LinearStatistic.c.

References C_ExpectCovarInfluence(), CI_covarianceSym, CI_expectationSym, CI_sumweightsSym, ncol(), and nrow().

Here is the call graph for this function:

SEXP R_ExpectCovarLinearStatistic SEXP  x,
SEXP  y,
SEXP  weights,
SEXP  expcovinf
 

R-interface to C_ExpectCovarLinearStatistic

Parameters:
x values of the transformation
y values of the influence function
weights case weights
expcovinf an object of class `ExpectCovarInfluence'

Definition at line 259 of file LinearStatistic.c.

References C_ExpectCovarLinearStatistic(), CI_covarianceSym, CI_expectationSym, ncol(), and nrow().

Here is the call graph for this function:

SEXP R_LinearStatistic SEXP  x,
SEXP  y,
SEXP  weights
 

R-interface to C_LinearStatistic

Parameters:
x values of the transformation
y values of the influence function
weights case weights

Definition at line 337 of file LinearStatistic.c.

References C_LinearStatistic(), ncol(), and nrow().

Here is the call graph for this function:

SEXP R_PermutedLinearStatistic SEXP  x,
SEXP  y,
SEXP  indx,
SEXP  perm
 

Linear Statistic with permuted indices

Parameters:
x values of the transformation
y values of the influence function
indx indices for the x-part
perm (permuted) indices for the y-part

Definition at line 416 of file LinearStatistic.c.

References C_PermutedLinearStatistic(), ncol(), and nrow().

Here is the call graph for this function:

SEXP R_scmatleft SEXP  x,
SEXP  pq
 

R-interface to C_scmatleft

Parameters:
x score vector of length p
pq dimension of the linear statistic

Definition at line 504 of file LinearStatistic.c.

References C_scmatleft().

Here is the call graph for this function:

SEXP R_scmatright SEXP  x,
SEXP  pq
 

R-interface to C_scmatright

Parameters:
x score vector of length q
pq dimension of the linear statistic

Definition at line 569 of file LinearStatistic.c.

References C_scmatright().

Here is the call graph for this function:


Generated on Thu Jul 28 17:02:23 2005 for coin by  doxygen 1.4.2