[R] Win-Edt and Sweave

2004-08-25 Thread Joao Pedro W. de Azevedo
Hello,
Does anyone knows if there is any plugin for Sweave to run on WinEdt, or any
other windows Latex editor?
Many thanks,
JP

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Help using Hmisc / Latex

2004-08-25 Thread Joao Pedro W. de Azevedo
Dear R users,
I'm trying to automatically generate a *.tex file with the output of an OLS
estimation. Some people suggested to use the latex function on the Hmisc
package. I'm having a bit of trouble to properly specify this function (I'm
not a very experienced R user). Below you will find an example, of what I'm
doing.

## Annette Dobson (1990) "An Introduction to Generalized Linear Models".
## Page 9: Plant Weight Data.
summary(lm.D90 <- lm(weight ~ group - 1))# omitting intercept
out  <- latex(lm.D90)
latex(out, model1, file="")

When I run this code, I get an output which does not attend my needs.

First, I could not figure out how to print the variable names. Second I'm
not sure how I can select only the coefficients and the std. errors to be
inserted on the output. Third, I was wondering if there is any way I can
automatically generate significance level indicators next to either the
coefficients or the std erros. Forth, is there any way I can aumtomaticaly
insert some of model fitting statistics? Fifth, is it possible to specify
this function to save the std. error under the coefficient?

I'm sure this are quite basic questions, but my attempts to fiddle with the
parameters in the model took me nowhere. 

Many thanks once again,

Joao Pedro

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] R and Latex tables

2004-08-25 Thread Joao Pedro W. de Azevedo
Dear R users,
I would like to know if there is any way that I can aumatically generate
*.tex files with the output of my estimations from R.
Many thanks in advance,
Joao Pedro

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] discrete hazard rate analysis

2004-06-29 Thread Joao Pedro W. de Azevedo
Dear R users,

I have more of a statistical/econometric question than straight R one.

I have a data set with the discrete hazard rate of small firms survival on
400 counties over a period of 9 years. This data was generated using census
information from the VAT registration number of each one of these business. 

I would like to analyze the effect of regional factors (deprivation index,
real wages, average schooling, population density, etc) on the variation of
these hazard rates across counties over time.

I've done a search in the economic literature on firm survival and regional
economics, but I could not find any reference that would resemble the type
of data or the problem that I would like to explore. I would like to know if
anyone in the list has any suggestion of references that I might have missed
in economics, or if people on any other fields know of any references of
people looking at any data that might resemble this one (I don't know, but
maybe epidemiology might have regional level data that might look at similar
issues).

Of course I would also like to know which R commands could assist me on this
analysis.

Any suggestions will be much appreciated.

All the very best,

JP


County Region time 1993 1994 1995 1996 1997 1998 1999 2000 2001
a South 6 months 95.0 95.1 95.5 95.7 96.8 96.8 96.9 95.9 98.0
a South 12 months 87.1 87.1 89.7 89.6 92.4 91.7 92.6 90.2 93.9
a South 18 months 79.5 79.8 83.3 83.0 86.4 86.7 85.8 84.7 
a South 24 months 73.3 73.1 77.8 78.0 80.6 81.0 79.6 79.2 
a South 30 months 68.0 67.3 72.8 72.3 75.8 75.1 74.1 
a South 36 months 63.7 62.9 69.0 67.1 70.8 68.7 68.5 
a South 42 months 59.3 59.1 65.4 62.6 65.8 64.2 
a South 48 months 56.1 56.2 61.6 59.1 61.2 59.6 

b South 6 months 94.2 96.0 96.3 96.7 96.5 97.0 97.0 96.1 97.1
b South 12 months 87.2 89.1 90.6 90.5 91.4 91.8 92.1 91.3 92.8
b South 18 months 79.9 82.0 84.2 84.5 85.8 85.8 86.3 86.2 
b South 24 months 73.9 75.9 78.1 79.0 80.5 79.8 80.8 80.4 
b South 30 months 68.2 70.0 73.2 74.2 75.6 74.3 75.8 
b South 36 months 64.0 65.4 69.0 70.3 70.4 69.6 71.0 
b South 42 months 60.2 60.8 65.4 66.0 66.1 64.9 
b South 48 months 56.6 57.5 62.0 61.7 61.7 61.1 

c South 6 months 93.2 94.0 94.6 95.6 95.7 95.8 95.9 96.6 97.2
c South 12 months 84.5 85.8 87.8 89.1 89.6 89.8 90.8 91.6 92.7
c South 18 months 77.2 78.9 80.7 83.3 84.1 83.8 84.1 86.7 
c South 24 months 69.8 72.8 75.1 77.2 78.1 78.0 78.7 80.7 
c South 30 months 63.8 66.3 69.3 71.9 72.9 73.0 73.3 
c South 36 months 59.4 61.7 65.3 67.8 68.5 68.2 68.3 
c South 42 months 55.8 57.3 60.9 63.7 64.0 63.6 
c South 48 months 52.4 53.7 57.6 60.3 59.9 59.0

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] how to store estimates results as scalars of a matrix?

2004-06-18 Thread Joao Pedro W. de Azevedo
Dear R users,

I've written a loop to generate Moran's test (spdep package) on serval
subsamples of a large dataset. See below a short example.

My loop is working fine, however I would like to be able to store the test
results as lines of a matrix, that I would latter be able to export as a
dataset. My problem is that I'm not sure how I could do this using R.

Any help will be much appreciated.

All the very best,

JP



coords2 <- as.matrix(jcdist.data[1:87, 6:7])

col.tri.nb<-tri2nb(coords2)

for(n in c(1,88,175,262,349)) {
f<- n+86
work <- jcdist.data[n:f, 10:12]

res <-moran.test(spNamedVec("res1", work), nb2listw(col.tri.nb,
style="W"))
moran<-res$estimate[1]
upper<-res$estimate[1] + (qnorm(0.025, lower.tail=FALSE)
*sqrt(res$estimate[3]))
lower<-res$estimate[1] - (qnorm(0.025, lower.tail=FALSE)
*sqrt(res$estimate[3]))

print(moran)
print(upper)
print(lower)

}

+ 
+ }
Moran I statistic 
 0.659114 
Moran I statistic 
0.7802115 
Moran I statistic 
0.5380164 
Moran I statistic 
 0.650799 
Moran I statistic 
 0.771808 
Moran I statistic 
0.5297899 
Moran I statistic 
0.6513354 
Moran I statistic 
0.7723458 
Moran I statistic 
0.5303249 
Moran I statistic 
0.6614869 
Moran I statistic 
0.7825066 
Moran I statistic 
0.5404672 
Moran I statistic 
0.6429097 
Moran I statistic 
0.7638195 
Moran I statistic 
0.5219998

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Tricube weighting procedure

2004-03-30 Thread Joao Pedro W. de Azevedo
Dear R users,
I would like to know if there is (and how I could obtain it) any R
application that performs tricube weighting regressions.
All the best,
JP

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Runing S-plus add-on in R (Binary and Smoothed Binary Regression Quantiles)

2004-03-30 Thread Joao Pedro W. de Azevedo
Hello,
I would like to know if it is possible to run a s-plus package in R. I'm
particularly interested on 
The add-on written by Walter Belluzzo and Gregory Kordas to estimate Binary
and Smoothed Binary Regression Quantiles using the Simulated Annealing
algorithm. 
Many thanks,
Joao Pedro

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Finite mixture models

2004-03-26 Thread Joao Pedro W. de Azevedo
Dear R users,
I would like to know if R has any tools to estimate a finite mixture model.
Many thanks,
Joao Pedro

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] download CRAN packages and proxy config.

2003-02-16 Thread Joao Pedro W. de Azevedo
Dear R users,

I'm starting to get acquainted with R. I've been reading the manual, and I
understood that if I wanted to install a user written package on R, I could
do it directly from the Internet, by typing the line
install.packages("quantreg") in an R session.

To my surprise this command did not work, nor did the command "update
packages from CRAN..." from the menu option. In the latter I got the
following error message:

<- CRAN.packages()
+ install.packages(select.list(a[,1],,TRUE), .libPaths()[1], available=a)}
trying URL `http://cran.r-project.org/bin/windows/contrib/PACKAGES'
unable to connect to 'cran.r-project.org'.
Error in download.file(url = paste(contriburl, "PACKAGES", sep = "/"),  :
cannot open URL
`http://cran.r-project.org/bin/windows/contrib/PACKAGES'
>

The strange thing was that I was able to visit the internet address the R
was trying to connect, from my web browser. Thus I imagine that the problem
was a proxy issue on R.

I would sincerely appreciate if one of the more experience R user could help
me to sort this issue out. I found a way to configure my proxy setting by
typing on the main window '"http://wwwcache.ncl.ac.uk:8080/";', however it
didn't seem to have worked, as I kept getting the same error message when I
tried to connect the CRAN.

Any help would be extremely appreciated,

Joao Pedro/

__
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help