#include "party.h"
Go to the source code of this file.
Functions | |
void | C_LinStatExpCov (const double *x, const int p, const double *y, const int q, const double *weights, const int n, const int cexpcovinf, SEXP expcovinf, SEXP ans) |
void | C_LinStatExpCovMPinv (SEXP linexpcov, double tol) |
double | C_TestStatistic (const SEXP linexpcov, const int type, const double tol) |
double | C_ConditionalPvalue (const double tstat, SEXP linexpcov, const int type, double tol, int *maxpts, double *releps, double *abseps) |
SEXP | R_get_response (SEXP learnsample) |
void | R_set_response (SEXP learnsample, SEXP y) |
Definition in file Convenience.c.
double C_ConditionalPvalue | ( | const double | tstat, | |
SEXP | linexpcov, | |||
const int | type, | |||
double | tol, | |||
int * | maxpts, | |||
double * | releps, | |||
double * | abseps | |||
) |
Compute asymptotic conditional P-value
tstat | test statistic | |
linexpcov | an object of class `LinStatExpectCovar' | |
type | integer, 1 (maxabs) or 2 (quadform) | |
tol | tolerance | |
maxpts | argument to C_maxabsConditionalPvalue | |
releps | argument to C_maxabsConditionalPvalue | |
abseps | argument to C_maxabsConditionalPvalue |
Definition at line 99 of file Convenience.c.
References C_maxabsConditionalPvalue(), C_quadformConditionalPvalue(), get_dimension(), MAXABS, PL2_covarianceSym, PL2_rankSym, and QUADFORM.
Referenced by C_TeststatPvalue().
void C_LinStatExpCov | ( | const double * | x, | |
const int | p, | |||
const double * | y, | |||
const int | q, | |||
const double * | weights, | |||
const int | n, | |||
const int | cexpcovinf, | |||
SEXP | expcovinf, | |||
SEXP | ans | |||
) |
Linear statistic of x, y, and weights and its conditional expectation and covariance
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 | |
cexpcovinf | logical: recompute exp and cov of the influence fct | |
expcovinf | an object of class `ExpectCovarInfluence' | |
ans | return value; an object of class `LinStatExpectCovar' |
Definition at line 26 of file Convenience.c.
References C_ExpectCovarInfluence(), C_ExpectCovarLinearStatistic(), C_LinearStatistic(), and PL2_linearstatisticSym.
Referenced by C_GlobalTest(), C_IndependenceTest(), and R_splitcategorical().
void C_LinStatExpCovMPinv | ( | SEXP | linexpcov, | |
double | tol | |||
) |
Moore-Penrose inverse of the covariance matrix
linexpcov | an object of class `LinStatExpectCovarMPinv' | |
tol | tolerance |
Definition at line 46 of file Convenience.c.
References C_MPinv(), PL2_covarianceSym, and PL2_svdmemSym.
Referenced by C_GlobalTest(), and C_IndependenceTest().
double C_TestStatistic | ( | const SEXP | linexpcov, | |
const int | type, | |||
const double | tol | |||
) |
Compute test statistic
linexpcov | an object of class `LinStatExpectCovar' | |
type | integer, 1 (maxabs) or 2 (quadform) | |
tol | tolerance |
Definition at line 59 of file Convenience.c.
References C_maxabsTestStatistic(), C_quadformTestStatistic(), get_dimension(), PL2_covarianceSym, PL2_expectationSym, PL2_linearstatisticSym, and PL2_MPinvSym.
Referenced by C_TeststatPvalue().
SEXP R_get_response | ( | SEXP | learnsample | ) |
extract the (first) response variable from a learning sample
learnsample | an object of class `LearningSample' |
Definition at line 131 of file Convenience.c.
References PL2_responsesSym, and PL2_variablesSym.
Referenced by R_set_response().
void R_set_response | ( | SEXP | learnsample, | |
SEXP | y | |||
) |
change the values of the response variable in a learning sample
learnsample | an object of class `LearningSample' | |
y | a REAL with new values |
Definition at line 143 of file Convenience.c.
References get_predict_trafo(), get_test_trafo(), PL2_responsesSym, PL2_transformationsSym, PL2_variablesSym, and R_get_response().