[R] mle from stats4

2009-10-06 Thread Stephen Collins
I am using mle as a wrapper from optim( ). How would I extract the convergence code, to know that optim( ) converged properly? Thanks, Stephen Collins, MPP | Analyst Global Strategy | Aon Benfield [[alternative HTML version deleted

[R] Using linear formula inside MLE

2009-09-28 Thread Stephen Collins
), list(X=X,Y=Y)) summary(mle(ll)) Comparison using glm# glm(Y~X-1,family=binomial) Thanks, Stephen Collins, MPP | Analyst Global Strategy | Aon Benfield [[alternative HTML version deleted]] __ R-help@r-project

[R] optim() question

2009-05-26 Thread Stephen Collins
I've seen with other software the capability for the optimizer to switch algorithms if it is not making progress between iterations. Is this capability available in optim()? Thanks, Stephen Collins, MPP | Analyst Health & Benefits | Aon Consulting [[alternative HTML versio

[R] mle() question

2009-05-22 Thread Stephen Collins
Is there a way to code the mle() function in library "stats4" such that it switches optimizing methods midstream (i.e. BFGS to Newton and back to BFGS, etc.)? Thanks, Stephen Collins, MPP | Analyst Health & Benefits | Aon Consulting [[alternative HTML v

[R] loglik and arima()

2009-02-10 Thread Stephen Collins
restricted model. Am I interpreting the "loglik" output incorrectly? Regards, Stephen Collins, MPP | Analyst Health & Benefits | Aon Consulting 200 East Randolph, Suite 900, Chicago, IL Tel: 312-381-2578 | Fax: 312-381-0136 Email: stephen_coll...@aon.com Aon Consulting s

[R] Categorical Variables and glm()

2009-01-23 Thread Stephen Collins
When including categorical variables in a regression, the default in R is to set the first level as the base. Is there an option to specify a different level as the base? Regards, Stephen Collins, MPP | Analyst Health & Benefits | Aon Consulting [[alternative HTML version del

[R] Viewing code

2008-12-24 Thread Stephen Collins
How do you view the code for a built-in R command (i.e., if I want to see what R is doing when I run a glm() statement)? Regards, Stephen [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/

[R] How fast of a desktop can I buy?

2008-11-12 Thread Stephen Collins
ooking for in a desktop. Regards, Stephen Collins, MPP | Analyst Health & Benefits | Aon Consulting 200 East Randolph, Suite 900, Chicago, IL Tel: 312-381-2578 | Fax: 312-381-0136 Email: [EMAIL PROTECTED] Aon Consulting selected by the readers of Business Insurance as the “Best Employee

[R] Vectorizing sample()

2008-11-07 Thread Stephen Collins
s problem are warmly welcomed. Regards, Stephen Collins, MPP | Analyst Health & Benefits | Aon Consulting 200 East Randolph, Suite 900, Chicago, IL Tel: 312-381-2578 | Fax: 312-381-0136 Email: [EMAIL PROTECTED] Aon Consulting selected by the readers of Business Insurance as the “Best Employee

[R] Two overlaid density plots - Does order matter?

2008-09-25 Thread Stephen Collins
In the following code, the only difference between the two plots is the order the variables are plotted. In this case, the plot of "cdata.den" in plot #1 is different from its plot in #2. Specifically, "cdata.den" spans the x-axis from -5 to 30 in plot #1 and from 0 to 20 in plot #2. Does anyo