Skip to content

ttda on R 2.1.1: error

6 messages · Laurent Valdes, depire@inrets.fr, Brian Ripley +2 more

#
Hello,

I'm trying to use the package ttda, wich is involved in text analysis,
for my own data about answers in a company survey.
I've installed it, as well as ispell, but when trying to use an example:
error in identical(native.enc, MacRoman) : 
	native.enc not found

it lamentably fails.

how about this ?
#
Looks like the package is not written for current R.  native.enc was used 
prior to R 2.1.0.  Please take the advice of the posting guide and ask the 
maintainer.

BTW, there is no package ttda on CRAN, and you have not told us where you 
found it or what version you used.  If you mean

  	http://wwwpeople.unil.ch/jean-pierre.mueller/

it refers to rather old versions of R.
On Mon, 29 Aug 2005, Laurent Valdes wrote:

            

  
    
#
Hello Laurent,

Yes, i know there is a problem with ttda.
I had no time to work on ttda, wich is broken since R version 2.1.
This new version of R has introduced many new ways to deal with text ( 
use of utf by default, grep & family modifications; so i have a lot of 
small modifications to do)
I will contact you when the next version is out.

Sorry for this bad news.

Le 29 ao??t 05, ?? 14:54, Laurent Valdes a ??crit :
#
On Mon, 29 Aug 2005 depire at inrets.fr wrote:

            
Here is the code:

x<-seq(-10,10,length=400)
y1<-dnorm(x)
y2<-dnorm(x,m=3)
par(mar=c(5,4,2,1))
plot(x, y2, xlim=c(-3,8), type="n", xlab=quote(Z==frac(mu[1]-mu[2],
                 sigma/sqrt(n))), ylab="Density")
polygon(c(1.96,1.96,x[240:400],10), c(0,dnorm(1.96,m=3),y2[240:400],0),
                 col="grey80", lty=0)
lines(x, y2)
lines(x, y1)
polygon(c(-1.96,-1.96,x[161:1],-10), c(0,dnorm(-1.96,m=0), y1[161:1],0),
                 col="grey30", lty=0)
polygon(c(1.96, 1.96, x[240:400], 10), c(0,dnorm(1.96,m=0),
                 y1[240:400],0), col="grey30")
legend(4.2, .4, fill=c("grey80","grey30"),
              legend=expression(P(abs(Z)>1.96, H[1])==0.85,
              P(abs(Z)>1.96,H[0])==0.05), bty="n")
text(0, .2, quote(H[0]:~~mu[1]==mu[2]))
text(3, .2, quote(H[1]:~~mu[1]==mu[2]+delta))
#
No problem. Tant pis.

2005/8/29, Jean-Pierre Muller <Jean-Pierre.Mueller at unil.ch>: