\hypertarget{LinearStatistic_8c}{
\section{LinearStatistic.c File Reference}
\label{LinearStatistic_8c}\index{LinearStatistic.c@{LinearStatistic.c}}
}
{\ttfamily \#include \char`\"{}coin\_\-common.h\char`\"{}}\par
Include dependency graph for LinearStatistic.c:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=400pt]{LinearStatistic_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{LinearStatistic_8c_a12e882779ecd0445c3a0dd9ac85dfeee}{C\_\-kronecker} (const double $\ast$A, const int m, const int n, const double $\ast$B, const int r, const int s, double $\ast$ans)
\item 
SEXP \hyperlink{LinearStatistic_8c_a95f5ed4c75d42e2e98ed09c9c9d48ff5}{R\_\-kronecker} (SEXP A, SEXP B)
\item 
void \hyperlink{LinearStatistic_8c_ae2f62abe13ee5b625141b5d4a496d832}{C\_\-ExpectCovarInfluence} (const double $\ast$y, const int q, const double $\ast$weights, const int n, SEXP ans)
\item 
SEXP \hyperlink{LinearStatistic_8c_a6216ea560644c08002fb32756ae67dcc}{R\_\-ExpectCovarInfluence} (SEXP y, SEXP weights)
\item 
void \hyperlink{LinearStatistic_8c_a94a0805ea258af79d426c095feee399a}{C\_\-ExpectCovarLinearStatistic} (const double $\ast$x, const int p, const double $\ast$y, const int q, const double $\ast$weights, const int n, const SEXP expcovinf, SEXP ans)
\item 
SEXP \hyperlink{LinearStatistic_8c_a58fff8082d3ab197994a21a10c422353}{R\_\-ExpectCovarLinearStatistic} (SEXP x, SEXP y, SEXP weights, SEXP expcovinf)
\item 
void \hyperlink{LinearStatistic_8c_aaefa2a9406bb30b323715e3db41da637}{C\_\-LinearStatistic} (const double $\ast$x, const int p, const double $\ast$y, const int q, const double $\ast$weights, const int n, double $\ast$ans)
\item 
SEXP \hyperlink{LinearStatistic_8c_a732bfc8e1797d8953482aa31f9b43e5f}{R\_\-LinearStatistic} (SEXP x, SEXP y, SEXP weights)
\item 
void \hyperlink{LinearStatistic_8c_aa34b0f12fac36231a105d6dc903bfe89}{C\_\-PermutedLinearStatistic} (const double $\ast$x, const int p, const double $\ast$y, const int q, const int n, const int nperm, const int $\ast$indx, const int $\ast$perm, double $\ast$ans)
\item 
SEXP \hyperlink{LinearStatistic_8c_abe383bcae17e8b3a1d5740ec16a9817a}{R\_\-PermutedLinearStatistic} (SEXP x, SEXP y, SEXP indx, SEXP perm)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Linear statistics for conditional inference

\begin{DoxyAuthor}{Author}

\end{DoxyAuthor}
\begin{DoxyParagraph}{Author:}
hothorn 
\end{DoxyParagraph}
\begin{DoxyDate}{Date}

\end{DoxyDate}
\begin{DoxyParagraph}{Date:}
2007-\/02-\/15 09:25:46 +0100 (Thu, 15 Feb 2007) 
\end{DoxyParagraph}


Definition in file \hyperlink{LinearStatistic_8c_source}{LinearStatistic.c}.



\subsection{Function Documentation}
\hypertarget{LinearStatistic_8c_ae2f62abe13ee5b625141b5d4a496d832}{
\index{LinearStatistic.c@{LinearStatistic.c}!C\_\-ExpectCovarInfluence@{C\_\-ExpectCovarInfluence}}
\index{C\_\-ExpectCovarInfluence@{C\_\-ExpectCovarInfluence}!LinearStatistic.c@{LinearStatistic.c}}
\subsubsection[{C\_\-ExpectCovarInfluence}]{\setlength{\rightskip}{0pt plus 5cm}void C\_\-ExpectCovarInfluence (
\begin{DoxyParamCaption}
\item[{const double $\ast$}]{ y, }
\item[{const int}]{ q, }
\item[{const double $\ast$}]{ weights, }
\item[{const int}]{ n, }
\item[{SEXP}]{ ans}
\end{DoxyParamCaption}
)}}
\label{LinearStatistic_8c_ae2f62abe13ee5b625141b5d4a496d832}
Conditional expectation and covariance of the influence function\par
 
\begin{DoxyParams}{Parameters}
\item[{\em y}]values of the influence function \item[{\em q}]dimension of the influence function \item[{\em weights}]case weights \item[{\em n}]number of observations \item[{\em ans}]return value; an object of class `ExpectCovarInfluence' \end{DoxyParams}


Definition at line 80 of file LinearStatistic.c.



References coin\_\-covarianceSym, coin\_\-expectationSym, and coin\_\-sumweightsSym.



Referenced by R\_\-ExpectCovarInfluence().

\hypertarget{LinearStatistic_8c_a94a0805ea258af79d426c095feee399a}{
\index{LinearStatistic.c@{LinearStatistic.c}!C\_\-ExpectCovarLinearStatistic@{C\_\-ExpectCovarLinearStatistic}}
\index{C\_\-ExpectCovarLinearStatistic@{C\_\-ExpectCovarLinearStatistic}!LinearStatistic.c@{LinearStatistic.c}}
\subsubsection[{C\_\-ExpectCovarLinearStatistic}]{\setlength{\rightskip}{0pt plus 5cm}void C\_\-ExpectCovarLinearStatistic (
\begin{DoxyParamCaption}
\item[{const double $\ast$}]{ x, }
\item[{const int}]{ p, }
\item[{const double $\ast$}]{ y, }
\item[{const int}]{ q, }
\item[{const double $\ast$}]{ weights, }
\item[{const int}]{ n, }
\item[{const SEXP}]{ expcovinf, }
\item[{SEXP}]{ ans}
\end{DoxyParamCaption}
)}}
\label{LinearStatistic_8c_a94a0805ea258af79d426c095feee399a}
Conditional expectation and covariance of the a linear statistic\par
 
\begin{DoxyParams}{Parameters}
\item[{\em x}]values of the transformation \item[{\em p}]dimension of the transformation \item[{\em y}]values of the influence function \item[{\em q}]dimension of the influence function \item[{\em weights}]case weights \item[{\em n}]number of observations \item[{\em expcovinf}]an object of class `ExpectCovarInfluence' \item[{\em ans}]return value; an object of class `ExpectCovar' \end{DoxyParams}


Definition at line 192 of file LinearStatistic.c.



References C\_\-kronecker(), coin\_\-covarianceSym, coin\_\-expectationSym, and coin\_\-sumweightsSym.



Referenced by R\_\-ExpectCovarLinearStatistic().



Here is the call graph for this function:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{LinearStatistic_8c_a94a0805ea258af79d426c095feee399a_cgraph}
\end{center}
\end{figure}


\hypertarget{LinearStatistic_8c_a12e882779ecd0445c3a0dd9ac85dfeee}{
\index{LinearStatistic.c@{LinearStatistic.c}!C\_\-kronecker@{C\_\-kronecker}}
\index{C\_\-kronecker@{C\_\-kronecker}!LinearStatistic.c@{LinearStatistic.c}}
\subsubsection[{C\_\-kronecker}]{\setlength{\rightskip}{0pt plus 5cm}void C\_\-kronecker (
\begin{DoxyParamCaption}
\item[{const double $\ast$}]{ A, }
\item[{const int}]{ m, }
\item[{const int}]{ n, }
\item[{const double $\ast$}]{ B, }
\item[{const int}]{ r, }
\item[{const int}]{ s, }
\item[{double $\ast$}]{ ans}
\end{DoxyParamCaption}
)}}
\label{LinearStatistic_8c_a12e882779ecd0445c3a0dd9ac85dfeee}
Computes the Kronecker product of two matrices\par
 
\begin{DoxyParams}{Parameters}
\item[{\em A}]matrix \item[{\em m}]nrow(A) \item[{\em n}]ncol(A) \item[{\em B}]matrix \item[{\em r}]nrow(B) \item[{\em s}]ncol(B) \item[{\em ans}]return value; a pointer to a REALSXP-\/vector of length (mr x ns) \end{DoxyParams}


Definition at line 22 of file LinearStatistic.c.



Referenced by C\_\-ExpectCovarLinearStatistic(), and R\_\-kronecker().

\hypertarget{LinearStatistic_8c_aaefa2a9406bb30b323715e3db41da637}{
\index{LinearStatistic.c@{LinearStatistic.c}!C\_\-LinearStatistic@{C\_\-LinearStatistic}}
\index{C\_\-LinearStatistic@{C\_\-LinearStatistic}!LinearStatistic.c@{LinearStatistic.c}}
\subsubsection[{C\_\-LinearStatistic}]{\setlength{\rightskip}{0pt plus 5cm}void C\_\-LinearStatistic (
\begin{DoxyParamCaption}
\item[{const double $\ast$}]{ x, }
\item[{const int}]{ p, }
\item[{const double $\ast$}]{ y, }
\item[{const int}]{ q, }
\item[{const double $\ast$}]{ weights, }
\item[{const int}]{ n, }
\item[{double $\ast$}]{ ans}
\end{DoxyParamCaption}
)}}
\label{LinearStatistic_8c_aaefa2a9406bb30b323715e3db41da637}
Computes the linear statistic, formula (1) in the paper\par
 
\begin{DoxyParams}{Parameters}
\item[{\em x}]values of the transformation \item[{\em p}]dimension of the transformation \item[{\em y}]values of the influence function \item[{\em q}]dimension of the influence function \item[{\em weights}]case weights \item[{\em n}]number of observations \item[{\em ans}]return value; a pointer to a REALSXP-\/vector of length pq \end{DoxyParams}


Definition at line 327 of file LinearStatistic.c.



Referenced by R\_\-LinearStatistic().

\hypertarget{LinearStatistic_8c_aa34b0f12fac36231a105d6dc903bfe89}{
\index{LinearStatistic.c@{LinearStatistic.c}!C\_\-PermutedLinearStatistic@{C\_\-PermutedLinearStatistic}}
\index{C\_\-PermutedLinearStatistic@{C\_\-PermutedLinearStatistic}!LinearStatistic.c@{LinearStatistic.c}}
\subsubsection[{C\_\-PermutedLinearStatistic}]{\setlength{\rightskip}{0pt plus 5cm}void C\_\-PermutedLinearStatistic (
\begin{DoxyParamCaption}
\item[{const double $\ast$}]{ x, }
\item[{const int}]{ p, }
\item[{const double $\ast$}]{ y, }
\item[{const int}]{ q, }
\item[{const int}]{ n, }
\item[{const int}]{ nperm, }
\item[{const int $\ast$}]{ indx, }
\item[{const int $\ast$}]{ perm, }
\item[{double $\ast$}]{ ans}
\end{DoxyParamCaption}
)}}
\label{LinearStatistic_8c_aa34b0f12fac36231a105d6dc903bfe89}
Linear Statistic with permuted indices\par
 
\begin{DoxyParams}{Parameters}
\item[{\em x}]values of the transformation \item[{\em p}]dimension of the transformation \item[{\em y}]values of the influence function \item[{\em q}]dimension of the influence function \item[{\em n}]number of observations \item[{\em nperm}]number of permutations \item[{\em indx}]indices for the x-\/part \item[{\em perm}](permuted) indices for the y-\/part \item[{\em ans}]return value; a pointer to a REALSXP-\/vector of length pq \end{DoxyParams}


Definition at line 409 of file LinearStatistic.c.



Referenced by R\_\-MonteCarloIndependenceTest(), and R\_\-PermutedLinearStatistic().

\hypertarget{LinearStatistic_8c_a6216ea560644c08002fb32756ae67dcc}{
\index{LinearStatistic.c@{LinearStatistic.c}!R\_\-ExpectCovarInfluence@{R\_\-ExpectCovarInfluence}}
\index{R\_\-ExpectCovarInfluence@{R\_\-ExpectCovarInfluence}!LinearStatistic.c@{LinearStatistic.c}}
\subsubsection[{R\_\-ExpectCovarInfluence}]{\setlength{\rightskip}{0pt plus 5cm}SEXP R\_\-ExpectCovarInfluence (
\begin{DoxyParamCaption}
\item[{SEXP}]{ y, }
\item[{SEXP}]{ weights}
\end{DoxyParamCaption}
)}}
\label{LinearStatistic_8c_a6216ea560644c08002fb32756ae67dcc}
R-\/interface to C\_\-ExpectCovarInfluence\par
 
\begin{DoxyParams}{Parameters}
\item[{\em y}]values of the influence function \item[{\em weights}]case weights \end{DoxyParams}


Definition at line 150 of file LinearStatistic.c.



References C\_\-ExpectCovarInfluence(), coin\_\-covarianceSym, coin\_\-expectationSym, coin\_\-sumweightsSym, ncol(), and nrow().



Here is the call graph for this function:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=380pt]{LinearStatistic_8c_a6216ea560644c08002fb32756ae67dcc_cgraph}
\end{center}
\end{figure}


\hypertarget{LinearStatistic_8c_a58fff8082d3ab197994a21a10c422353}{
\index{LinearStatistic.c@{LinearStatistic.c}!R\_\-ExpectCovarLinearStatistic@{R\_\-ExpectCovarLinearStatistic}}
\index{R\_\-ExpectCovarLinearStatistic@{R\_\-ExpectCovarLinearStatistic}!LinearStatistic.c@{LinearStatistic.c}}
\subsubsection[{R\_\-ExpectCovarLinearStatistic}]{\setlength{\rightskip}{0pt plus 5cm}SEXP R\_\-ExpectCovarLinearStatistic (
\begin{DoxyParamCaption}
\item[{SEXP}]{ x, }
\item[{SEXP}]{ y, }
\item[{SEXP}]{ weights, }
\item[{SEXP}]{ expcovinf}
\end{DoxyParamCaption}
)}}
\label{LinearStatistic_8c_a58fff8082d3ab197994a21a10c422353}
R-\/interface to C\_\-ExpectCovarLinearStatistic\par
 
\begin{DoxyParams}{Parameters}
\item[{\em x}]values of the transformation \item[{\em y}]values of the influence function \item[{\em weights}]case weights \item[{\em expcovinf}]an object of class `ExpectCovarInfluence' \end{DoxyParams}


Definition at line 285 of file LinearStatistic.c.



References C\_\-ExpectCovarLinearStatistic(), coin\_\-covarianceSym, coin\_\-expectationSym, ncol(), and nrow().



Here is the call graph for this function:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=400pt]{LinearStatistic_8c_a58fff8082d3ab197994a21a10c422353_cgraph}
\end{center}
\end{figure}


\hypertarget{LinearStatistic_8c_a95f5ed4c75d42e2e98ed09c9c9d48ff5}{
\index{LinearStatistic.c@{LinearStatistic.c}!R\_\-kronecker@{R\_\-kronecker}}
\index{R\_\-kronecker@{R\_\-kronecker}!LinearStatistic.c@{LinearStatistic.c}}
\subsubsection[{R\_\-kronecker}]{\setlength{\rightskip}{0pt plus 5cm}SEXP R\_\-kronecker (
\begin{DoxyParamCaption}
\item[{SEXP}]{ A, }
\item[{SEXP}]{ B}
\end{DoxyParamCaption}
)}}
\label{LinearStatistic_8c_a95f5ed4c75d42e2e98ed09c9c9d48ff5}
R-\/interface to C\_\-kronecker\par
 
\begin{DoxyParams}{Parameters}
\item[{\em A}]matrix \item[{\em B}]matrix \end{DoxyParams}


Definition at line 51 of file LinearStatistic.c.



References C\_\-kronecker(), ncol(), and nrow().



Here is the call graph for this function:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=268pt]{LinearStatistic_8c_a95f5ed4c75d42e2e98ed09c9c9d48ff5_cgraph}
\end{center}
\end{figure}


\hypertarget{LinearStatistic_8c_a732bfc8e1797d8953482aa31f9b43e5f}{
\index{LinearStatistic.c@{LinearStatistic.c}!R\_\-LinearStatistic@{R\_\-LinearStatistic}}
\index{R\_\-LinearStatistic@{R\_\-LinearStatistic}!LinearStatistic.c@{LinearStatistic.c}}
\subsubsection[{R\_\-LinearStatistic}]{\setlength{\rightskip}{0pt plus 5cm}SEXP R\_\-LinearStatistic (
\begin{DoxyParamCaption}
\item[{SEXP}]{ x, }
\item[{SEXP}]{ y, }
\item[{SEXP}]{ weights}
\end{DoxyParamCaption}
)}}
\label{LinearStatistic_8c_a732bfc8e1797d8953482aa31f9b43e5f}
R-\/interface to C\_\-LinearStatistic \par
 
\begin{DoxyParams}{Parameters}
\item[{\em x}]values of the transformation \item[{\em y}]values of the influence function \item[{\em weights}]case weights \end{DoxyParams}


Definition at line 363 of file LinearStatistic.c.



References C\_\-LinearStatistic(), ncol(), and nrow().



Here is the call graph for this function:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=310pt]{LinearStatistic_8c_a732bfc8e1797d8953482aa31f9b43e5f_cgraph}
\end{center}
\end{figure}


\hypertarget{LinearStatistic_8c_abe383bcae17e8b3a1d5740ec16a9817a}{
\index{LinearStatistic.c@{LinearStatistic.c}!R\_\-PermutedLinearStatistic@{R\_\-PermutedLinearStatistic}}
\index{R\_\-PermutedLinearStatistic@{R\_\-PermutedLinearStatistic}!LinearStatistic.c@{LinearStatistic.c}}
\subsubsection[{R\_\-PermutedLinearStatistic}]{\setlength{\rightskip}{0pt plus 5cm}SEXP R\_\-PermutedLinearStatistic (
\begin{DoxyParamCaption}
\item[{SEXP}]{ x, }
\item[{SEXP}]{ y, }
\item[{SEXP}]{ indx, }
\item[{SEXP}]{ perm}
\end{DoxyParamCaption}
)}}
\label{LinearStatistic_8c_abe383bcae17e8b3a1d5740ec16a9817a}
Linear Statistic with permuted indices\par
 
\begin{DoxyParams}{Parameters}
\item[{\em x}]values of the transformation \item[{\em y}]values of the influence function \item[{\em indx}]indices for the x-\/part \item[{\em perm}](permuted) indices for the y-\/part \end{DoxyParams}


Definition at line 442 of file LinearStatistic.c.



References C\_\-PermutedLinearStatistic(), ncol(), and nrow().



Here is the call graph for this function:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=400pt]{LinearStatistic_8c_abe383bcae17e8b3a1d5740ec16a9817a_cgraph}
\end{center}
\end{figure}


