Re: [R] nls start values

2006-03-12 Thread Sundar Dorai-Raj
Wouldn't this be easier?

vals - 1:100
names(vals) - sprintf(beta%d, 1:100)
## or
## names(vals) - paste(beta, 1:100, sep = )

--sundar

Cal Stats wrote:
 Hi..
   
   here is an example
   
   ss-NULL
   vals-1:100
   for(i in 1:100){
   ss-c(ss,paste(beta,i,=,vals[i],sep=))
   }
   sss-paste(ss,collapse=,)
   
   now is there a way i can convert sss  so that i can give the command
   
   nls(formula,start=sss)
   
   Thanks
   
   Harsh
 
 Charles Annis, P.E. [EMAIL PROTECTED] wrote:  Please give us an EXAMPLE 
 of the loop you have in mind.  (It's likely that
 you can use simpler methods than a loop, but without an example we'd be
 guessing.)
 
 
 
 
 Charles Annis, P.E.
 
 [EMAIL PROTECTED]
 phone: 561-352-9699
 eFax:  614-455-3265
 http://www.StatisticalEngineering.com
  
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Cal Stats
 Sent: Saturday, March 11, 2006 3:43 PM
 To: r-help@stat.math.ethz.ch
 Subject: [R] nls start values
 
 Hi,
   
   I have a large number of parameters to estimate in nls say 100:
 beta1--beta100
   lets say i have 100 values in a vector
   
   is there a way where i can create the start vector for nls using a loop
 instead of individually filling the 100 values.
   
   Thanks
   
   Harsh
   
   
 -
 
 
  [[alternative HTML version deleted]]
 
 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide!
 http://www.R-project.org/posting-guide.html
 
 
 
 
   
 -
 
 
   [[alternative HTML version deleted]]
 
 __
 R-help@stat.math.ethz.ch 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@stat.math.ethz.ch 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] nls start values

2006-03-11 Thread Cal Stats
Hi,
  
  I have a large number of parameters to estimate in nls say 100: 
beta1--beta100
  lets say i have 100 values in a vector
  
  is there a way where i can create the start vector for nls using a loop 
instead of individually filling the 100 values.
  
  Thanks
  
  Harsh
  

-


[[alternative HTML version deleted]]

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


Re: [R] nls start values

2006-03-11 Thread Charles Annis, P.E.
Please give us an EXAMPLE of the loop you have in mind.  (It's likely that
you can use simpler methods than a loop, but without an example we'd be
guessing.)




Charles Annis, P.E.

[EMAIL PROTECTED]
phone: 561-352-9699
eFax:  614-455-3265
http://www.StatisticalEngineering.com
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cal Stats
Sent: Saturday, March 11, 2006 3:43 PM
To: r-help@stat.math.ethz.ch
Subject: [R] nls start values

Hi,
  
  I have a large number of parameters to estimate in nls say 100:
beta1--beta100
  lets say i have 100 values in a vector
  
  is there a way where i can create the start vector for nls using a loop
instead of individually filling the 100 values.
  
  Thanks
  
  Harsh
  

-


[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch 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@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] nls start values

2006-03-11 Thread Cal Stats
Hi..
  
  here is an example
  
  ss-NULL
  vals-1:100
  for(i in 1:100){
  ss-c(ss,paste(beta,i,=,vals[i],sep=))
  }
  sss-paste(ss,collapse=,)
  
  now is there a way i can convert sss  so that i can give the command
  
  nls(formula,start=sss)
  
  Thanks
  
  Harsh

Charles Annis, P.E. [EMAIL PROTECTED] wrote:  Please give us an EXAMPLE of 
the loop you have in mind.  (It's likely that
you can use simpler methods than a loop, but without an example we'd be
guessing.)




Charles Annis, P.E.

[EMAIL PROTECTED]
phone: 561-352-9699
eFax:  614-455-3265
http://www.StatisticalEngineering.com
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cal Stats
Sent: Saturday, March 11, 2006 3:43 PM
To: r-help@stat.math.ethz.ch
Subject: [R] nls start values

Hi,
  
  I have a large number of parameters to estimate in nls say 100:
beta1--beta100
  lets say i have 100 values in a vector
  
  is there a way where i can create the start vector for nls using a loop
instead of individually filling the 100 values.
  
  Thanks
  
  Harsh
  
  
-


 [[alternative HTML version deleted]]

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





-


[[alternative HTML version deleted]]

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