Re: [R] Matlab inv() and R solve() differences

2009-01-30 Thread Cleber Nogueira Borges
Hello, is there a upper limit to kappa value where I can consider a matrix well-conditioned? Cleber Kingsford Jones wrote: I suppose the solution is unstable because x is ill-conditioned: x [,1] [,2] [,3] [,4] [1,] 0.133 0.254 -0.214 0.116 [2,] 0.254 0.623

[R] odfWeave: Error in matrixPaste(...)

2009-01-13 Thread Cleber Nogueira Borges
Hello all, I try the follow test with an odf file. *INPUT: teste.odt* teste, results=xml= x - matrix(rnorm(6), nc=2) xst - tableStyles(x, useRowNames = TRUE, header = NULL) odfTable(x, styles=xst, colnames = NULL, useRowNames = TRUE) @ and I get this error: *OUTPUT error:* Error: chunk 1

[R] example of gladeXML - RGtk2

2008-12-08 Thread Cleber Nogueira Borges
hello all, where I find a example or tutorial of RGtk2 package? I would like to know about the gladeXML functions in R. thanks in advance Cleber Borges __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] qcc help

2008-09-01 Thread Cleber Nogueira Borges
Renata Mara Schneckenberg Wowk wrote: Hi Gents, I need to get the control limits from qcc function. As follows: qcc(MDI, type = xbar.one) Call: qcc(data = MDI, type = xbar.one) xbar.one chart for MDI Summary of group statistics: Min. 1st Qu. MedianMean 3rd

[R] reading data in serial port - win32

2008-08-31 Thread Cleber Nogueira Borges
Hello all I'd like to get some instruments data by serial port (COM1 - win32) I make a loopback serial adapter for a testing with the code: system('mode COM1 9600,N,8,1') ser - file(COM1, open='r+') isOpen(ser) write('12345', ser) scan(ser, what=as.character(1), n=1) So I get the data that I

Re: [R] Hessian in box-constraint problem - concern OPTIM function

2008-06-24 Thread Cleber Nogueira Borges
of Markov Chain Monte Carlo (MCMC). One example of an analysis of this type of problem appears in section 2.4 of Pinheiro and Bates (2000) Mixed-Effects Models in S and S-Plus (Springer). Hope this helps. Spencer Graves Cleber Nogueira Borges wrote: Hello all useRs, I am using

[R] Hessian in box-constraint problem - concern OPTIM function

2008-06-23 Thread Cleber Nogueira Borges
Hello all useRs, I am using the OPTIM function with particular interest in the method L-BFGS-B, because it is a box-constraint method. I have interest in the errors estimates too. I make: s.e. - sqrt( diag( solve( optim(...,method='L-BFGS-B', hessian=TRUE)$hessian ))) but in help say:

Re: [R] Error in bugs.run -- R2WinBUGS

2008-06-21 Thread Cleber Nogueira Borges
out) save(C:/Documents and Settings/cborges/Meus documentos/bugsWD/log.odc) save(C:/Documents and Settings/cborges/Meus documentos/bugsWD/log.txt) Yes: Please do what the error message tells you to do. Uwe Ligges Cleber Nogueira Borges wrote: Hi, I tried to use MethComp library

Re: [R] Deming Regression

2008-06-18 Thread Cleber Nogueira Borges
Hello Dexter, I have interest in this topic! In my search in web, I find things about the MethComp package! In this package, there is a Deming function ... for Deming regression! http://staff.pubhealth.ku.dk/~bxc/MethComp/Archive/ http://staff.pubhealth.ku.dk/~bxc/MethComp/ Cleber Hi all.

[R] Error in bugs.run -- R2WinBUGS

2008-06-18 Thread Cleber Nogueira Borges
Hi, I tried to use MethComp library and this library make use of the WinBUGS by R2WinBuGUS, but I get the follow error in bugs.run: *Error in bugs.run(n.burnin, bugs.directory, WINE = WINE, useWINE = useWINE, : * Look at the log file and try again with 'debug=TRUE' to figure out what

[R] Get all X iterations in optim output when controls(trace=6)

2008-05-30 Thread Cleber Nogueira Borges
Hi, I would like to get all X iterations in optim output in matrix form. I know about the follow approach: sink(reportOptim) optim( ..., control=list( trace=6,..) ) sink() all_iterOptim - readLines(reportOptim) unlink(reportOptim) all_iterOptim - all_iterOptim[ grep( '^X',

Re: [R] lm() function

2008-05-29 Thread Cleber Nogueira Borges
hanen wrote: hi, my linear model is y=c+a*x1+b*x2 i tried to found a, c, b by the use of: mymodel-lm(y~1+x1+x2) where y, x1, x2 are 3 vectors with the same length the result is a=NA.so i want to know where is the problem. It's the sum of x1 and x2 equal to one? run the command: round( sum(

Re: [R] lm() function

2008-05-29 Thread Cleber Nogueira Borges
my linear model is y=c+a*x1+b*x2 i tried to found a, c, b by the use of: mymodel-lm(y~1+x1+x2) where y, x1, x2 are 3 vectors with the same length the result is a=NA.so i want to know where is the problem. It's the sum of x1 and x2 equal to one? run the command: round( sum( c(x1,x2) ),12)==1

Re: [R] Weibull

2008-04-15 Thread Cleber Nogueira Borges
Ben Bolker wrote: Matthew B. mtthw.bt at gmail.com writes: Dear R users, This is a basic question. I want to fit a Weibull distribution. fitdistr(data, weibull) works and it is a maximum likelihood fitting. Is it a good method ? Or is it better to write a function for the

Re: [R] double-click in RData file versus load( file )

2008-01-28 Thread Cleber Nogueira Borges
hello Duncan, Gabor Many thanks for your help! I think that the line: if( chartr(/,\\,getwd() )==R.home() ) setwd(C:\\) can solve my problem in this moment!! :-) Thanks again Cleber On 26/01/2008 9:03 PM, Cleber Nogueira Borges wrote: hi Gabor and Duncan, I make a test and I find

Re: [R] double-click in RData file versus load( file )

2008-01-28 Thread Cleber Nogueira Borges
hi Duncan, I can't access file greater than 3 mb in my work! :-( :-( ((( unfortunately, is not a joke! I need a new job :-D ))) When I return home, I will do download the patch and report the results to you! :-( Thanks for your attention! Cleber It is now fixed in the version

Re: [R] double-click in RData file versus load( file )

2008-01-26 Thread Cleber Nogueira Borges
hello Gabor, the result in combobox is: R version 2.6.1 (2007-11-26) - C:\R I not have Perl installed! I remember that I deleted it! Just double click on Rversions.hta from Windows Explorer. Alternately place it anywhere in your path and then enter its name in the Windows console without

Re: [R] double-click in RData file versus load( file )

2008-01-26 Thread Cleber Nogueira Borges
hi, I tried this approach, but don't work too! (Duncan Murdoch make this suggestion) Cleber OK. The system only knows about one R version. What about the answer to my original second question. If you start up R and then load the .Rdata file (which you previously indicated works) and then

Re: [R] double-click in RData file versus load( file )

2008-01-26 Thread Cleber Nogueira Borges
Gabor Grothendieck wrote: Please clarify. What happens? ok! I start up the R, load my file by win menu: Load Workspace, ls() show-me variables! Then, I save my workspace with other name (test2.rdata, for example) and close my E session. When I start up R by double-click in my new RData file

Re: [R] double-click in RData file versus load( file )

2008-01-26 Thread Cleber Nogueira Borges
hi Gabor, I try it: in *MS-DOS*: C:\R\etcRgui --vanilla In *R*: a=1 b=2 c=3 save.image(c:\\R\\etc\\test.rdata) q('no') then I double-clicked' in 'test.rdata' (in c:\R\etc folder) The R start without my variables: a,b,c If I make again: R -- vanilla, and then load file, the variables are there!

Re: [R] double-click in RData file versus load( file )

2008-01-26 Thread Cleber Nogueira Borges
hi Gabor, Now, seems an light, because... C:\R\etcassoc .Rdata .Rdata=RWorkspace C:\R\etcftype RWorkspace Tipo de arquivo 'RWorkspace' não encontrado ou nenhum comando open associado a ele. *File type 'RWorkspace' not found or none command open associated for it*. seems something with error