Category: status

  • LOESS Fit a polynomial regression fitting

    LOESS: Fit a polynomial regression fitting

  • Fitting distribution in R Use fitdistr in MASS…

    Fitting distribution in R

    Use fitdistr in MASS package

    Example;

    fitdistr(as.vector(res.score.m), densefun = 'normal')
    
           mean             sd      
      -8.0647926561    2.9550064789 
     ( 0.0005642286) ( 0.0003989698)
    

    http://www.statmethods.net/advgraphs/probability.html

  • Network visualization tool http://gephi …

    Network visualization tool
    http://gephi.org/

  • Print summary results or other outputs o …

    Print summary results or other outputs on the R plot

    Use capture.output.

    summary.text <- paste(capture.output(summary(avg.score.per.pos)), collapse="\n")
    mtext(summary.text)
    
  • Differences between do.call and lapply …

    Differences between do.call and lapply
    Consider this. If L is a list with n components then

    – do.call(f, L) calls f once
    – lapply(L, f) calls f n times

    https://stat.ethz.ch/pipermail/r-help/2007-April/129252.html

  • list to matrix in R matrix(unlist(l …

    list to matrix in R

    matrix(unlist(list.data), nrow=num.row, byrow=TRUE)
    

    To convert list of list to matrix,

    do.call(rbind, sapply(list.data, unlist))
    
  • Getting names while applying sapply or l …

    Getting names while applying sapply or lapply in R.
    sapply or lapply extract the element without the row name.
    So this code does not work.

    par(mfrow = c(4,4))
    sapply(names(score.avg)
           , function(x) {
               plot(x
                    , type = 'l'
                  );
               title(main=names(x))      
               })
    

    In order to use the row names while applying sapply or apply,
    pass the names of the list to a function and call the values using the names.

    par(mfrow = c(4,4))
    sapply( recherche personne nom jeune fille names(score.avg)
           , function(x) {
               xlength <- length(score.avg[[x]]);         
               plot(-499:(xlength-499-1),  ce contenu score.avg[[x]]
                    , type = 'l'
                    , xlab='Distance from TSS', ylab='score'
                 #   , xlim=c(-100,100)
                  );
               title(main=x, cex.main=0.85);
               })
    
  • Use cex.main or cex.sub to change the si …

    Use cex.main or cex.sub to change the size of the title or subtitle in R

    title(main="Main title", cex.main=0.85)
    
  • Oh, Word. It appears “It just works.” …

    Oh, Word. It appears “It just works.” then betray me at the very last moment.

    The cross-reference and Track Changes do not get along well. I figured out that the numbering may not be correct/updated till accept/reject all changes. If you want to keep the previous changes, you are in trouble. Track Changes seems to be meant to track changes ‘once’.

    What is Track Changes in Word?
    http://www.shaunakelly.com/word/sharing/howtrackchangesworks.html

    If you want to keep track the history of the changes, this plugin may help.

    Version control plugin for Word
    http://autohistory.codeplex.com/releases/view/21671

    p.s. The numbering and formatting of the citations does not seem to work correctly. I just don’t have a gut to touch my proposal to figure out what is wrong. It will be easier to go back to LaTeX.

  • A little utility to open a terminal at a …

    A little utility to open a terminal at a folder in Nautilus

    Install nautilus-open-terminal.

    http://ubuntu-tutorials.com/2007/05/13/nautilus-open-terminal-terminal-quick-launch/