Skip to content

Simulation)

2 messages · Peter Flom, Wacek Kusnierczyk

#
I wrote

 As a beginner, I agree .... the for loop is much clearer to me.  

Wacek Kusnierczyk <Waclaw.Marcin.Kusnierczyk at idi.ntnu.no> replied
Both.  My PhD is in psychometrics, and, both in course work and since then
I've learned a good bit of statistics, but very little programming.  I've 
picked up a little SAS programming over the years, but not much.  

But the loop (at least for me) translates into English more directly than the
lapply statement does.
Would that be a good book for a beginner?

Peter

Peter L. Flom, PhD
Statistical Consultant
www DOT peterflomconsulting DOT com
#
Peter Flom wrote:
don't really know sas, but i guess for looping is of essence there,
while mapping is not.
lapply easily translates to 'apply this to every item there', which is
roughly an alternative version of 'for each item in there, do this with
the item'.
both yes and no.  this is a book that can be used by an absolute
beginner in programming, but if you're focused on statistics, you're
unlikely to enjoy it, at least not as a practical introduction.  but
it's a good read, and contains quite a lot of useful ideas anyway.

vQ