IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

R Discussion :

pbreg.Rd en dll


Sujet :

R

  1. #1
    Membre habitué
    Homme Profil pro
    Owner
    Inscrit en
    Décembre 2004
    Messages
    466
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Owner
    Secteur : Santé

    Informations forums :
    Inscription : Décembre 2004
    Messages : 466
    Points : 137
    Points
    137
    Par défaut pbreg.Rd en dll
    Bonjour,
    Je cherche à transformer pbreg.Rd en dll.
    Où puis-je trouver cette dll et la doc qui la décrit?

    Alternative: comment transformer ce code en C, C++ ou Delphi,...

    Merci!!!
    PhilLu

    pour info le code de pbreg.Rd:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    \name{PBreg}
    \alias{PBreg}
    \alias{print.PBreg}
    \title{Passing-Bablok regression}
    \description{
      Implementation of the Passing-Bablok's procedure for assessing of
      the equality of measurements by two different analytical methods.
    }
    \usage{
      PBreg(x, y=NULL, conf.level=0.05, wh.meth=1:2)
      \method{print}{PBreg}(x,...)
    }
    \arguments{
      \item{x}{a numeric vector of measurements by method A, alternatively 
        a data frame of exactly two columns, first column with measurements
        by method A, second column with measurements by method B. If \code{x} is a
        \code{\link{Meth}} object, the methods from that are used in the regression.}
      \item{y}{a numeric vector of measurements by method B - must be of 
        the same length as \code{x}. If not provided, \code{x} must be 
        a data frame of exactly 2 columns.}
      \item{conf.level}{confidence level for calculation of confidence 
        boundaries.}
      \item{wh.meth}{Which of the methods from the \code{Meth} object are used in
        the regression.}
      \item{\ldots}{other parameters, currently ignored.}
     
    }
    \details{
      This is an implementation of the original Passing-Bablok
      procedure of fitting unbiased linear regression line to data in the
      method comparison studies. It calcualtes the unbiased slope and intercept, 
      along with their confidence intervals. However, the tests for
      linearity is not yet fully implemented. 
     
      It doesn't matter which results are assigned to "Method A" and
      "Method B", however the "Method A" results will be plotted on the
      x-axis by the \code{plot} method.
      }
    \note{
      Please note that this method can become very computationally 
      intensive for larger numbers of observations. One can expect a reasonable 
      computation times for datasets with fewer than 100 observations.
      }
    \value{
      \code{PBreg} returns an object of class \code{"PBreg"}, for which
      the \code{print} and \code{plot} methods are defined.
     
      An object of class \code{"PBreg"} is a list composed of the following
      elements:
     
      \item{coefficients}{a matrix of 3 columns and 2 rows, containing the 
        estimates of the intercept and slope, along with their confidence
        boundaries.}
      \item{residuals}{defined as in the \code{"lm"} class, as the response
        minus the fitted value.}
      \item{fitted.values}{the fitted values.}
      \item{model}{the model data frame used.}
      \item{n}{a vector of two values: the number of observations read, and 
        the number of observations used.}
      \item{S}{A vector of all slope estimates.}
      \item{adj}{A vector of fit parameters, where \emph{Ss} is the number of 
        estimated slopes (\code{length(S)}), \emph{K} is the offset for negative 
        slopes, \emph{M1} and \emph{M2} are the locations of confidence boundaries 
        in \code{S}, and  \emph{l} and \emph{L} are the numbers of points above and 
        below the fitted line, used in cusum calculation.}
      \item{cusum}{A vector of cumulative sums of residuals sorted by the D-rank.}
      \item{Di}{A vector of D-ranks.}
    }
    \references{Passing, H. and Bablok, W. (1983), A New Biometrical Procedure
      for Testing the Equality of Measurements from Two Different Analytical
      Methods. \emph{Journal of Clinical Chemistry and Clinical Biochemistry}, 
      \bold{Vol 21}, 709--720}
    \author{Michal J. Figurski \email{mfigrs@gmail.com}}
    \seealso{
      \code{\link{plot.PBreg}, \link{Deming}}.
    }
    \examples{
      ## Model data frame generation
      a <- data.frame(x=seq(1, 30)+rnorm(mean=0, sd=1, n=30), 
                      y=seq(1, 30)*rnorm(mean=1, sd=0.4, n=30))
     
      ## Call to PBreg
      x <- PBreg(a)
      print(x)
      par(mfrow=c(2,2))
      plot(x, s=1:4)
     
      # A real data example
      data(milk)
      milk <- Meth(milk)
      summary(milk)
      PBmilk <- PBreg( milk )
      plot( PBmilk )
    }

  2. #2
    Membre confirmé
    Homme Profil pro
    MCU
    Inscrit en
    Juillet 2010
    Messages
    185
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : MCU
    Secteur : Santé

    Informations forums :
    Inscription : Juillet 2010
    Messages : 185
    Points : 486
    Points
    486
    Par défaut
    Bonjour,

    Vous voulez transformer une page de documentation en librairie? Si vous êtes intéressé par la fonction PBreg du package MethComp et que vous voulez voir le code, tapez juste le nom de la fonction sans les parenthèses :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    install.packages("MethComp")
    library("MethComp")
    PBreg
    Analysez l'algo et recodez le en c++ ou ce que vous voulez.

    Si vous voyez qu'il y a un appel à du code C ou autre (genre .Internal(), .C(), ...), vous pouvez télécharger les sources à partir de votre cran préféré, récupérer le code en question (*.cpp par exemple) et ensuite :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    R CMD SHLIB *.cpp -o toto
    ou un truc dans le genre. Pour plus d'info:

    http://cran.r-project.org/doc/manual...age-interfaces

    ou

    HTH

    Vincent

Discussions similaires

  1. [CR] Infos sur l'utilisation de dll
    Par step dans le forum SAP Crystal Reports
    Réponses: 11
    Dernier message: 09/08/2002, 11h35
  2. Declarer une dll Delphi ?
    Par DelphiCool dans le forum C++Builder
    Réponses: 2
    Dernier message: 26/07/2002, 10h07
  3. Débug de DLL
    Par Bayard dans le forum C++Builder
    Réponses: 3
    Dernier message: 22/07/2002, 15h08
  4. Equivalent à ExeName pour une DLL
    Par Smortex dans le forum Langage
    Réponses: 7
    Dernier message: 16/07/2002, 21h07
  5. Réponses: 2
    Dernier message: 20/03/2002, 23h01

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo