Re: [R] Please help me debugg

2021-11-05 Thread Ivan Krylov
On Fri, 5 Nov 2021 12:29:21 +0530 Shrinivas Dharma wrote: > I am trying to run the following double loop which I have written > but it is not running. Thanks for providing the code, but it's much easier to help you if you provide the data, too. Use dput(head(...)) to make it easy for us to copy

[R] Please help me debugg

2021-11-05 Thread Shrinivas Dharma
I am trying to run the following double loop which I have written but it is not running. Unable to get my head around the mistake. Please try to spot the bug and help > for(i in 1:122){ + for(j in 1:68){ + if(V(FriendGraph)$name[i]==names[j]){ + gender_vector[i]<-sex[j] + break;} + else{gender_ve

Re: [R] please help me a little

2018-02-09 Thread Jeff Newmiller
I don't use coxphf, but it is generally a bad idea to reference variables via multiple environments (e.g. global and the data= argument in this case) directly from within a formula. Just use FAM138A.chr wherever you have used test[,6] and it should work. -- Sent from my phone. Please excuse my

[R] please help me a little

2018-02-09 Thread Ding, Yuan Chun
Hi R Users, I am very frustrated with the following code. Please do me a favor to run it. after reading into the test data set (I also pasted the data set below), the first line of code for "res_coxphf" did not work and generated the error code below. but the other three line worked well. the

Re: [R] Please help me, I'm trying to update my version of R

2016-08-23 Thread KMNanus
Thanks for getting back to me. Worked like a charm. Ken kmna...@gmail.com 914-450-0816 (tel) 347-730-4813 (fax) > On Aug 22, 2016, at 11:45 PM, Thomas Mailund wrote: > > Hi Ken, > > You are trying to install R as a package. That won't work. The .pkg file you > downloaded from https://cra

Re: [R] Please help me, I'm trying to update my version of R

2016-08-22 Thread Berend Hasselman
Follow up on my previous mail. See the FAQ for OS X :https://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html Read the section "3.2 Installation of packages". It tells it all. (reachable from the contents entry "How to install packages"). Berend > On 23 Aug 2016, at 08:27, Berend Hasselman wro

Re: [R] Please help me, I'm trying to update my version of R

2016-08-22 Thread Berend Hasselman
> On 22 Aug 2016, at 22:17, KMNanus wrote: > > I’m a newbie running 3.2.4 on a mac equipped with Yosemite (10.10.5). > > I want to update to 3.3.1 and have downloaded the package, but have not been > able to install it. I’ve tried install.packages("R-3.3.1.tar.gz”) and > install.packages("R-

Re: [R] Please help me, I'm trying to update my version of R

2016-08-22 Thread Thomas Mailund
Hi Ken, You are trying to install R as a package. That won't work. The .pkg file you downloaded from https://cran.r-project.org/bin/macosx/ is an installer, though, so if you just double-click on it, it should take you through the installation. After that you probably need to install a number o

[R] Please help me, I'm trying to update my version of R

2016-08-22 Thread KMNanus
I’m a newbie running 3.2.4 on a mac equipped with Yosemite (10.10.5). I want to update to 3.3.1 and have downloaded the package, but have not been able to install it. I’ve tried install.packages("R-3.3.1.tar.gz”) and install.packages("R-3.3.1.pkg”) after downloading both files. I get an error

Re: [R] please help me for my project

2015-09-07 Thread Bert Gunter
uggestions on how to ask a question on the R-help list > > John Kane > Kingston ON Canada > > >> -Original Message- >> From: ghada.f...@gmail.com >> Sent: Mon, 7 Sep 2015 16:57:19 +0300 >> To: r-help@r-project.org >> Subject: [R] please help me fo

Re: [R] please help me for my project

2015-09-07 Thread John Kane
Some suggestions on how to ask a question on the R-help list John Kane Kingston ON Canada > -Original Message- > From: ghada.f...@gmail.com > Sent: Mon, 7 Sep 2015 16:57:19 +0300 > To: r-help@r-project.org > Subject: [R] please help me for my project > > Hello

[R] please help me for my project

2015-09-07 Thread Ghada Almousa
Hello dears member I have project to analysis clusters algorithm in R "K-mean, Hierarchical, Density based and EM" I want to calculate Cluster instance , number of iteration , sum of squared error SSE and the accuracy for each cluster algorithms that i mention above And the log likelihood for EM an

Re: [R] please help me in r

2015-04-28 Thread Jim Lemon
Hi Ghada, The value returned by Mclust ("m" in your example) has different components from say the hierarchical clustering. The second argument for "cluster.stats" is the cluster IDs of the objects in the initial set. Perhaps if you call it like this: cluster.stats(d,m$classification) I don't hav

[R] please help me in r

2015-04-28 Thread Ghada Almousa
Hello dears I using (R tool) in my project and I want to compare the results betwen k-mean cluster ,Hierarchical cluster and EM cluster I use cluster.stats() it's work on k-mean cluster and hrarichal cluster but not work in EM Hello Dears I Use R tool in my project I want to do comparison of t

Re: [R] Please help me to short my code

2013-11-08 Thread arun
Hi, Try either: Ceramic <- read.table("ceramic.dat",header=TRUE) Ceramic1 <- Ceramic Ceramic$indx <- ((seq_len(nrow(Ceramic))-1)%/%60)+1 library(plyr) DF1 <- data.frame(M=as.vector(t(ddply(Ceramic,.(indx), colwise(mean))[,-1])), S=as.vector(t(ddply(Ceramic,.(indx),colwise(sd))[,-1])),Rep = 60)  co

[R] Please help me

2012-11-24 Thread emable_wahid
i want to generate an odf report using R, the report is generated but the run stop just after the instruction: odfWeave(inputFile,outputFile) and i get this error: Error in odfWeave(inf, outf) : Error removing work dir please help me it's an emergency. thanks -- View this message in context:

Re: [R] please help me

2012-05-02 Thread Uwe Ligges
On 02.05.2012 02:55, Ulfa Hasanah wrote: hi all,can you help me? index moran is very difficut for me, i have data n neighbor as enclosure: please help me to make the program for find index moran value each variabel,...thank very much Which translates to: please help me, and note that - I

[R] please help me

2012-05-01 Thread Ulfa Hasanah
hi all,can you help me? index moran is very difficut for me, i have data n neighbor as enclosure: please help me to make the program for find index moran value each variabel,...thank very much __ R-help@r-project.org mailing list https://stat.ethz.ch/ma

Re: [R] please Help me on a repeated measures anova

2010-12-30 Thread David Winsemius
On Dec 30, 2010, at 10:11 AM, David Winsemius wrote: On Dec 30, 2010, at 5:38 AM, soileil wrote: So far I've done this: tableau = read.table("Classeur1.txt", h=T) tableau Temps.s. Modalite AchE 1 15 ER 0,1 snipped data 103 120 SED+ED 0,19 104 120 SED

Re: [R] please Help me on a repeated measures anova

2010-12-30 Thread David Winsemius
On Dec 30, 2010, at 5:38 AM, soileil wrote: So far I've done this: tableau = read.table("Classeur1.txt", h=T) tableau Temps.s. Modalite AchE 1 15 ER 0,1 snipped data 103 120 SED+ED 0,19 104 120 SED+ED 0,172 attach (tableau) tableau <- lm (AchE ~ T

Re: [R] please Help me on a repeated measures anova

2010-12-30 Thread soileil
So far I've done this: > tableau = read.table("Classeur1.txt", h=T) > tableau Temps.s. Modalite AchE 1 15 ER 0,1 2 15 ER 0,112 3 15T+0,5 0,078 4 15T+0,5 0,053 5 15 TED 0,107 6 15 TED 0,117 7 15 TED

Re: [R] please Help me on a repeated measures anova

2010-12-30 Thread soileil
In fact, the imbalance of repetitions is a time effect. Indeed, some measures have been carried out in the morning and another in the afternoon. And we could show this difference with a Friedman. So the question I ask myself after what I had just read is that there is no difference? Increasing the

Re: [R] please Help me on a repeated measures anova

2010-12-21 Thread Dennis Murphy
Hi: I did the following (note a fix to the assumed typo in t + 0.5 -> T + 0.5) using the melt() function in package reshape2, the lattice graphics package and package lme4. I named your input data df. library(reshape) # or reshape2 if you have it # Fix the typo: df[4, 1] <- 'T+0.5' # Redefine

[R] please Help me on a repeated measures anova

2010-12-21 Thread soileil
I currently work on a draft of an aquatic bioassessment. The conditions tested are the following: ER river water T dechlorinated water control 0.5 + 0.5mg / L of malate T + 1 dechlorinated water control + 1g / L of malate T ED dechlorinated water control SED + ER + river water sediment SED ED + se

Re: [R] please help me out

2010-11-30 Thread Dieter Menne
Bill Yang wrote: > > > why the following codes do not run >> weekdays(as.Date('2010-11-30')) == "Monday"[1] FALSE> > >> weekdays(as.Date('2010-11-29')) == "Monday"[1] FALSE > > Because only in the old Mayan calendar 2010-11-30 is a monday. It is a "Dienstag" on my computer, so as an addi

[R] please help me out

2010-11-30 Thread Bill Yang
Hi there, why the following codes do not run > weekdays(as.Date('2010-11-30')) == "Monday"[1] FALSE> > > weekdays(as.Date('2010-11-29')) == "Monday"[1] FALSE I appreciate, Bill [[alternative HTML version deleted]] _

Re: [R] Please, help me with 'mattern' variogram

2010-11-16 Thread David Cross
I think the problem is with the (2,2) element in your hessian, unless that is a typo. Cheers David Cross d.cr...@tcu.edu www.davidcross.us On Nov 16, 2010, at 8:33 PM, Jimmy Martina wrote: Hi, R-folks: I have been tryin many combination of parameter to make Matern variogram to work,

[R] Please, help me with 'mattern' variogram

2010-11-16 Thread Jimmy Martina
Hi, R-folks: I have been tryin many combination of parameter to make Matern variogram to work, but I can't find the available one. I'm near to be crazy. I tiped: Año2003Selg.lf<-likfit(Año2003Selg,cov.model="matern",ini.cov.pars=c(1.5,14),kappa=2.5,fix.kappa=FALSE,nugget=0.08,lambda=0.008,fix.l

Re: [R] Please help me on a simple avg question

2010-11-16 Thread Henrique Dallazuanna
Try this: aggregate(TEMP ~ Year + Month + Day, DF, mean) On Tue, Nov 16, 2010 at 4:48 PM, facehappywy wrote: > > Thanks every one first. > > I have a dataset like this > > YearMonth Day HourDIR SPD (m/s) SKYCOVER > TEMP (C)RH(%) > 20091 1 0

[R] Please help me on a simple avg question

2010-11-16 Thread facehappywy
Thanks every one first. I have a dataset like this YearMonth Day HourDIR SPD (m/s) SKYCOVERTEMP (C)RH(%) 20091 1 0 310 13.858243 -5 23 20091 1 1 330 14.305283 -7.

Re: [R] Please help me about Monte Carlo Permutation

2010-11-02 Thread Łukasz Ręcławowicz
2010/11/2 Chitra > > yes > > > > > > > Me too. So you want to do a MC test for Pearson's product-moment > > correlation, right...? > > So for sample sizes from 3 to about 10 we can use all permutations [permn(combinat)]- test will be exact! (In our case 7!=5040) lg<-"lightgreen" g<-"green" dg<

Re: [R] Please help me about Monte Carlo Permutation

2010-11-01 Thread Chitra
yes, and also plotting them. Thanks. 2010/11/1 Łukasz Ręcławowicz [via R] < ml-node+3022778-293096829-200...@n4.nabble.com > > 2010/10/29 Chitra <[hidden > email]> > > > > > > I am sorry I got lost here. > > > Me too. So you want to do a

Re: [R] Please help me about Monte Carlo Permutation

2010-11-01 Thread Łukasz Ręcławowicz
2010/10/29 Chitra > > I am sorry I got lost here. Me too. So you want to do a MC test for Pearson's product-moment correlation, right...? -- Mi³ego dnia [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://st

Re: [R] Please help me about Monte Carlo Permutation

2010-10-29 Thread Chitra
Hi dear Mi³ego dnia, I am sorry I got lost here. May be it it sound if I write you about what I am going to do. "To test such null hypotheses we used the Monte Carlo test, i.e. we chose randomly (5000 times) a value for the current dependent characteristic (richness or actual species pool) in the

Re: [R] Please help me about Monte Carlo Permutation

2010-10-29 Thread Łukasz Ręcławowicz
2010/10/29 Chitra > > £ukasz Rêc³awowicz, > Thanks. > I got this p-value. > It's exact upper tail (>=), for lower you have to add (<(-test.statistic)) to obtain two-sided p-vaule. > > test() > [1] P-value: 0.00139 > > I still could not figure out how to plot 5000 permuted Qtot vs Itot. > Resul

Re: [R] Please help me about Monte Carlo Permutation

2010-10-28 Thread Chitra
Łukasz Ręcławowicz, Thanks. I got this p-value. > test() [1] P-value: 0.00139 I still could not figure out how to plot 5000 permuted Qtot vs Itot. -- View this message in context: http://r.789695.n4.nabble.com/Please-help-me-about-Monte-Carlo-Permutation-tp3017131p3018399.html Sent from the R

Re: [R] Please help me about Monte Carlo Permutation

2010-10-28 Thread Łukasz Ręcławowicz
I'm not sure is this correct, but maybe you are looking for something like this: test<-function(){ permuted.Qtot<-permn(data$Qtot) n<-length(permuted.Qtot) correlation<-rep(NA,n) for(i in 1:n){ correlation[i]<-cor(data$Itot,permuted.Qtot[[i]])} p<-sum(correlation>=cor(data$Qtot,data$Itot))/n print

Re: [R] Please help me about Monte Carlo Permutation

2010-10-28 Thread Chitra
Dear Kjetil, Thanks a lot for your help. I could not get histogram when I ask by R. It simply gave me blank plot between frequency and test. I want to plot sample (y) verses xl. Can you please tell me are both variables were permuted or only x? Thanking your help, Chitra -- View this message in c

Re: [R] Please help me about Monte Carlo Permutation

2010-10-28 Thread Kjetil Halvorsen
This is one way. I read your two columns of data into two variables, x and y. Then: test <- replicate(5000, cor(x, sample(y))) > hist(test) Kjetil On Thu, Oct 28, 2010 at 9:49 AM, Chitra wrote: > >> Dear R experts, >>I am sorry for my inability. >>I have the following dataset: > >  > Qtot Ito

[R] Please help me about Monte Carlo Permutation

2010-10-28 Thread Chitra
> Dear R experts, >I am sorry for my inability. >I have the following dataset: > Qtot Itot >1 73 684 >2 64 451 >3 71 378 >4 65 284 >5 47 179 >6 31 117 >7 19 69 > >Now I need to perform Monte Carlo Pertutation test underlaying the following condition. > > >Condition > >In or

[R] Please help me simplify my manipulation and printing of function calls

2010-10-05 Thread Paul Sherliker
Background: I use R for a fair-sized graphics program, intended for naïve users. This works, but a less-naïve user wants it to generate code producing the graphs that he can then modify (but which will not contain my numerous manipulations and attempts to discern what the user wants). Quit

Re: [R] please help me....

2010-09-30 Thread Joshua Wiley
Hi, I am not entirely certain how you think we can help. Many theses/dissertations are not widely published, but there is often a copy stored at the local institution's library. I would also assume that Jan Ulbricht has a copy, which if it is not available online and it is impossible for you to

[R] please help me....

2010-09-30 Thread butchman
ㅣ recently used laq packages author of this package is jan Ulbricht.. and I must read jan ulbricht's Ph.D thesis "variable selection in generalized linear models" but I didn't find this thesis on line and there is any method to view this thesis?? If anybody has this thesis file,please send to me..

Re: [R] please help me on this warning message

2010-07-22 Thread Siri Bjoner
Sorry, I'm getting error messages on your email? Anyhows... Spellcheck. You're using uncertainy and uncertainTy (the latter being correct but the former being what you've programmed). Good luck! Siri. Siterer Na.Ebrahimi : hi, When I try to use the function coordProj {mclust} " coordPr

[R] please help me on this warning message

2010-07-22 Thread Na.Ebrahimi
hi, When I try to use the function coordProj {mclust} " coordProj(diabetes[,-1],dimens=c(2,3),what="uncertainy",uncertainty=diabetesModel$uncertainty,parameters=diabetesModel$parameters) " to identify uncertainty, it errors and send this warning message: " Warning message: In coordProj(diab

Re: [R] please help me for this Error: cannot listen to TCP port 15259

2010-07-22 Thread Allan Engelhardt
The short-term work-around is probably to use the help_type= argument to help, e.g. help("help", help_type="text") Hope this helps a little. Allan On 22/07/10 07:30, Na.Ebrahimi wrote: hi, I get an Error when I try to run function "help" in R, it says "starting httpd help server ...Error:

[R] please help me for this Error: cannot listen to TCP port 15259

2010-07-22 Thread Na.Ebrahimi
hi, I get an Error when I try to run function "help" in R, it says "starting httpd help server ...Error: cannot listen to TCP port 15259" I would be so glad if you help me [[alternative HTML version deleted]] __ R-help@r-project.org mailing lis

Re: [R] Please help me

2010-06-09 Thread Joris Meys
solve.default(as.matrix(fit$hessian)) : > > System computation is unsigular > > moreover: Warning message: > > In glm.fit(Z, as.integer(Y0), weights = weights, family = binomial(link = > linkstr), : > > algorithm did not converge” > > > > Again, many thanks for you. >

Re: [R] Please help me

2010-06-08 Thread Joris Meys
First, read the posting guides. Then, supply us with a bit more information, like the package you used, example code that reproduces the error, information about the data, the complete error message, the traceback (use the function traceback() right after you got the error). Otherwise we ain't goi

[R] Please help me

2010-06-08 Thread Xiongqing Zhang
Dear Mr. or Ms.,   I used the R-software to run the zero-inflatoin negative binomial model (zeroinfl()) .   Firstly, I introduced one dummy variable to the model as an independent variable, and I got the estimators of parameters. But the results are not satisfied to me. So I introduced three du

[R] Please help Me(R Language)

2010-03-26 Thread SADANANDAM MADDELA
Hi thank you very much for advanced help. I am new to R language.. I am using r language with asp.net. while i am run below code. the graphics window open out side of my *.aspx *page(it is opened as a *pop up*window) .i need to open that window with in my . *aspx *page(without using( png,jpg e

Re: [R] Please help me how to make input files in Extremes Toolkit model

2010-03-04 Thread David Winsemius
On Mar 4, 2010, at 5:47 AM, Huyen Quan wrote: Dear sir/madam My name is Quan, I am a PhD student in Korea. my major is Hydrological in Water Resources Engineering. I am interested in Extremes Toolkit model and I known you from information in internet. I installed successfully this model bu

[R] Please help me how to make input files in Extremes Toolkit model

2010-03-04 Thread Huyen Quan
Dear sir/madam   My name is Quan, I am a PhD student in Korea. my major is Hydrological in Water Resources Engineering. I am interested in Extremes Toolkit model and I known you from information in internet.  I installed successfully this model but I didn't know how to make the type of   files in

Re: [R] Please help me!!!! Error in `[.data.frame`(x, , retained, drop = FALSE) : undefined columns selected

2010-01-03 Thread bbslover
thanks ,now i reduce the number of the descriptors, It is ok. 在2010-01-03,"Max Kuhn [via R]" 写道: -原始邮件- 发件人:"Max Kuhn [via R]" 发送时间:2010年1月3日 星期日 收件人:bbslover 主题:Re: [R] Please help me Error in `[.data.

Re: [R] Please help me!!!! Error in `[.data.frame`(x, , retained, drop = FALSE) : undefined columns selected

2010-01-02 Thread bbslover
thanks, I have reduce the number of descriptors, and the erroe is none, my major is qsar, but what is the criterion to select descritors, and how many descriptors should be selected, It is a problem, I calculate my descriptors troungh E-dragon, and apply the wonderful package caret,but my re

Re: [R] Please help me!!!! Error in `[.data.frame`(x, , retained, drop = FALSE) : undefined columns selected

2010-01-02 Thread Max Kuhn
Your data set has 217 predictors and 166 samples. If you read the vignette on feature selection for this package, you'll see that the default ranking mechanism that it uses for linear models requires a linear model fit. The note that: > prediction from a rank-deficient fit may be misleading s

[R] Please help me!!!! Error in `[.data.frame`(x, , retained, drop = FALSE) : undefined columns selected

2010-01-01 Thread bbslover
I am learning the package "caret", after I do the "rfe" function, I get the error ,as follows: Error in `[.data.frame`(x, , retained, drop = FALSE) : undefined columns selected In addition: Warning message: In predict.lm(object, x) : prediction from a rank-deficient fit may be misleading I

Re: [R] Please Help me!

2009-10-02 Thread jim holtman
try this: (?try) name_c<-Sys.glob("C:/Documents and Settings/lma/My Documents/habitdata/*/calllog/*") for (i in 1:length(name_c)){ log1<-try(readLines(name_c[i])) if (inherits(log1, 'try-error')) next # skip if error write.table(Temps, file=paste("C:/Documents and Setting

[R] Please Help me!

2009-10-02 Thread Tammy Ma
Hi, R-users, I have a problem: Because there are few files which can't be readed into R completely, so on the following subsequence programme, I use write.table, which creates the "NA" files for those incomplete files autimatically. I don't want those NA files. My programes formats looks like:

Re: [R] please help me about data format.

2009-06-30 Thread Jim Lemon
yongkook Kwon wrote: Hi~ helpers. I was surprised by R data type. I use to data type like table. I don't know R allow several data type such as list, number, matrix in the same matrix. I want to use plsr in pls package to anlaysis data. So, I read R help and example of plsr. that example sh

[R] please help me about data format.

2009-06-30 Thread yongkook Kwon
Hi~ helpers. I was surprised by R data type. I use to data type like table. I don't know R allow several data type such as list, number, matrix in the same matrix. I want to use plsr in pls package to anlaysis data. So, I read R help and example of plsr. that example show me that data as yarn

Re: [R] Please help me subset this dataframe, thanks...

2009-05-03 Thread Tal Galili
Hi Mark. Have a look at the commands: merge and cbind I believe they may hold the key. I hope this helps :-) Tal On Mon, May 4, 2009 at 5:38 AM, Mark Na wrote: > Dear R-helpers, > > I have a dataframe called "trackpoints" with several columns including > a column called "time", eg: > > >

[R] Please help me subset this dataframe, thanks...

2009-05-03 Thread Mark Na
Dear R-helpers, I have a dataframe called "trackpoints" with several columns including a column called "time", eg: > trackpoints         time 1   12:00:00 2   12:00:01 3   12:00:02 . . . 298 12:04:57 299 12:04:58 300 12:04:59 I also have a dataframe called "data" that contains columns called "ID

Re: [R] Please help me to understand environments

2009-03-15 Thread David Winsemius
You might want to look at rm to see how that function handles the problem. -- David Winsemius On Mar 15, 2009, at 3:14 AM, Ajay Shah wrote: I want to write: zap <- function(v) { if (exists(v)) {rm(v)} } But of course this doesn't work because the rm() acts on v which is within zap() and d

[R] Please help me to understand environments

2009-03-15 Thread Ajay Shah
I want to write: zap <- function(v) { if (exists(v)) {rm(v)} } But of course this doesn't work because the rm() acts on v which is within zap() and doesn't affect the parent environment: > x <- 1 > zap("x") > x [1] 1 How would I make this zap() function work? -- Ajay Shah

Re: [R] Please help me in Converting this from C# to R [C1]

2008-12-13 Thread Dieter Menne
Taoufik NADIFI sgcib.com> writes: > > Please, can you tell me if you know how can i use the library Igraph in C# > ? Not easy, but possible. Try to google for "rcom c#" and watch the list http://www.mail-archive.com/rco...@mailman.csd.univie.ac.at/ where some problems with more the latest R

Re: [R] Please help me in Converting this from C# to R [C1]

2008-12-12 Thread Taoufik NADIFI
Please, can you tell me if you know how can i use the library Igraph in C# ? Thanks Nadifi Taoufik * This message and any attachments (the "message") are con...{{dropped:15}} __ R-

Re: [R] Please help me about the regress models!

2008-11-12 Thread Greg Snow
ct.org > Subject: [R] Please help me about the regress models! > > > I am a bigginer of R language.I need to prepare a PPT which deadline is > 15 > Nov. 2008. I want to build a regress model with my own formula. The > formula > is y=100/(1+exp(a+b*X)). I have no idea of the R

Re: [R] Please help me about the regress models!

2008-11-12 Thread Gabor Grothendieck
Check out ?nls for a description and examples. On Tue, Nov 11, 2008 at 10:33 PM, Leon_Long <[EMAIL PROTECTED]> wrote: > > I am a bigginer of R language.I need to prepare a PPT which deadline is 15 > Nov. 2008. I want to build a regress model with my own formula. The formula > is y=100/(1+exp(a+

[R] Please help me about the regress models!

2008-11-12 Thread Leon_Long
I am a bigginer of R language.I need to prepare a PPT which deadline is 15 Nov. 2008. I want to build a regress model with my own formula. The formula is y=100/(1+exp(a+b*X)). I have no idea of the R program,please demonstrate how to do it or give a good sample. Anyone would help me? Thank you ve

Re: [R] Please help me to produce smoothed contour plots

2008-10-01 Thread Simon Wood
One approach would be to smooth the data using `gam' from package `mgcv'. `vis.gam' will contour the resulting smoothed fit if you select `plot.type="contour"'. If the results look ok but you want finer control of what the plot looks like then `predict.gam' can be used to predict from the fitte

[R] Please help me to produce smoothed contour plots

2008-10-01 Thread Mark
Please help me to produce smoothed contour plots. I have dependent data generated at regular intervals of two independent variables and would like to produce smoothed contour plots - I cannot get interp (alima) to produce cubic interpolations of the data, only linear ones. I'm interested in smooth

[R] Please help me interpret these results (fitting distributions to real data)

2008-09-25 Thread Ted Byers
I just thought of a useful metaphore for the problem I face. I am dealing with a problem in business finance, with two kinds of related events. However, imagine you have a known amount of carbon (so many kilograms), but you do not know what fraction is C14 (and thus radioactive). Only the C14 w

Re: [R] Please help me in Converting this from C# to R

2008-09-14 Thread Simon Knapp
# bit hard to provide a simple conversion without definitions of the class 'Node', the template 'DirectedGraph' and the function 'Writed'! # I've used the package 'igraph' as a drop in - hope it is still clear. # # by the way: # - your curly braces don't match, # - not all elements of P are initial

Re: [R] Please help me in Converting this from C# to R

2008-09-14 Thread Barry Rowlingson
2008/9/14 rajivv <[EMAIL PROTECTED]>: > > Random r = new Random(); >DirectedGraph graph = GetGraph(); >decimal B = 0.1m; >decimal D = 0.05m; [ deletia ] >if (P[i] < 0) >P[i] = 0; >

[R] Please help me in Converting this from C# to R

2008-09-13 Thread rajivv
Random r = new Random(); DirectedGraph graph = GetGraph(); decimal B = 0.1m; decimal D = 0.05m; int nodes = graph.NodesCount; decimal[] E = new decimal[nodes]; decimal[] P = new decimal[nodes];

Re: [R] Please help me

2008-04-14 Thread chenxh007
try ?image Xiaohui merca duria wrote: > I have a matrix with N x N points, that I would like to represent on a map. > > The points are an estimation of the bidimensional density of certain > quantity observed on a geographical region. > I am interested in a map with several colours displaying s

[R] Please help me

2008-04-14 Thread merca duria
I have a matrix with N x N points, that I would like to represent on a map. The points are an estimation of the bidimensional density of certain quantity observed on a geographical region. I am interested in a map with several colours displaying several values of the density Can you help me about

[R] Please help me

2008-01-25 Thread alyaa wakf
Hi, The following code, from Angelo Canty article on line "Resampling Methods in R: the boot Package, 2002", works fine for Angelo Canty using R 2.6.0 on Windows XP. It also works for me using R 1.2.1 and S-PLUS 2000 on Windows XP after installing the S-PLUS bootstrap

Re: [R] please help me

2007-11-08 Thread James W. MacDonald
Well Sadeghian, I have to give you credit for perseverance. This must be the fifth email you have sent to R-help for this one question. Unfortunately, with each additional message, your chances of getting any help are becoming asymptotically closer to zero. So some advice: > PLEASE do read the

Re: [R] please help me

2007-11-08 Thread Julian Burgos
Hi Azadeh, As the warning message is telling you, it seems that your initial parameters for the covariance functions are not very good. Something that you can do is to use the eyefit() function (package geoR) to fit your variogram "by eye" and get a first approximation for your covariance par

[R] please help me

2007-11-08 Thread azadeh sadeghian
Dear list. I am student M.S. statistics in department statistics .I have thise problem in work with the function variofit and nls and dont know how to solve it. var1<-variog(data,option="bin") var2<-variog(data,option="cloud") v1<-var1$v u1<-var1^u v2<-var2$v u2<-var2$u variofit(var1,ini.cov.pars

[R] please help me

2007-11-08 Thread azadeh sadeghian
I have thise problem in work with the function variofit and nls and dont know how to solve it. var1<-variog(data,option="bin") var2<-variog(data,option="cloud") v1<-var1$v u1<-var1^u v2<-var2$v u2<-var2$u variofit(var1,ini.cov.pars=c(0.005,1.5),cov.model="power",fix.nugget=F,weight="equal") var

[R] please help me

2007-11-08 Thread azadeh sadeghian
Hello. Error in optim(ini, .loss.vario, method = "L-BFGS-B", hessian = TRUE, : non-finite value supplied by optim I have this errore in fit the model"power" in simulation with the function g<-function(n=100,max=100,c0=0,ce=.005,ae=1.5,nsim=1000){ var.exp<-function(c0,ce,ae,h){ f<-c0+ce

[R] please help me

2007-11-08 Thread azadeh sadeghian
Hello. Error in optim(ini, .loss.vario, method = "L-BFGS-B", hessian = TRUE, : non-finite value supplied by optim I have this errore in fit the model"power" in simulation with the function g<-function(n=100,max=100,c0=0,ce=.005,ae=1.5,nsim=1000){ var.exp<-function(c0,ce,ae,h){ f<-c0+ce

Re: [R] please help me

2007-10-20 Thread Ben Bolker
azadeh sadeghian wrote: > > dear list > I am student M.S. statistics in department statistics . I am working in > the function "nls" in the [R 2.3.1] with 246 data and want to fit a model > to vectors( v and u ) but I have > a problem to use it > u > > > PS -- I just looked back at

Re: [R] please help me

2007-10-20 Thread Ben Bolker
azadeh sadeghian wrote: > > dear list > I am student M.S. statistics in department statistics . I am working in > the function "nls" in the [R 2.3.1] with 246 data and want to fit a model > to vectors( v and u ) but I have > a problem to use it > > Thanks for providing a reproducible e

[R] please help me

2007-10-20 Thread azadeh sadeghian
dear list I am student M.S. statistics in department statistics . I am working in the function "nls" in the [R 2.3.1] with 246 data and want to fit a model to vectors( v and u ) but I have a problem to use it u 5.00e-13 2.179057e+03 6.537171e+03 1.089529e+04 1.525340e+04 1.961151e+04

[R] please help me

2007-10-20 Thread azadeh sadeghian
dear list I am student M.S. statistics in department statistics . I am working in the function "nls" in the [R 2.3.1] with 246 data and want to fit a model to vectors( v and u ) but I have a problem to use it u 5.00e-13 2.179057e+03 6.537171e+03 1.089529e+04 1.525340e+04 1.961151e+04

Re: [R] please help me

2007-10-10 Thread Dieter Menne
azadeh sadeghian yahoo.com> writes: > > I am student M.S. statistics in department statistics . I am working in the function "nls" in the [R 2.3.1] You should update to a more recent version of R (2.6.0 is current) > with 246 data and want to fit the "exp" model to vectors( v and u ) but I

Re: [R] please help me

2007-10-10 Thread Gabor Grothendieck
You need better starting values: f <- function(x) { c0 <- x[1]; ce <- x[2]; ae <- x[3] sum((v - c0+(ce*(1-exp((-u)/ae^2) } g <- 4^(0:8) g <- c(-g, g) g <- expand.grid(c0 = g, ce = g, ae = g) start <- g[which.min(apply(g, 1, f)), ] nls(v ~ c0+(ce*(1-exp((-u)/ae))), data = data1, start = star

[R] please help me

2007-10-10 Thread azadeh sadeghian
dear list I am student M.S. statistics in department statistics . I am working in the function "nls" in the [R 2.3.1] with 246 data and want to fit the "exp" model to vectors( v and u ) but I have a problem to use it u 5.00e-13 2.179057e+03 6.537171e+03 1.089529e+04 1.525340e+04 1.9