[R] Profile on optim/nlm

Steve Roberts steve.roberts at man.ac.uk
Thu Jan 23 14:13:05 CET 2003


Greetings,

Before I reinvent the wheel has anyone done a profile function for a 
fit using optim (or nlm)?  (like the buggy profile.ms in S+) . It 
seems a bit tricky as the function to be minimised has to have 
arguments corresponding to the variables being fitted - which is one 
less than the function provided to optim()... I guess you can create 
another function on the fly somehow.

Cheers,

Steve.
Dr Steve Roberts 
steve.roberts at man.ac.uk

Biostatistics Group,				
School of Epidemiology and Health Sciences,	
2nd Floor,Stopford Building,			
University of Manchester.			
M13 9PT.					
Tel: 0161 275 5192 FAX: 0161 275 5205




More information about the R-help mailing list