Re: [R] Need help with my homework

2011-01-27 Thread Tal Galili
Hi Gaja,

To the best of my knowledge, this forum is not for help with homeworks.

Good luck with your study material.

Best,
Tal



Contact
Details:---
Contact me: tal.gal...@gmail.com |  972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
www.r-statistics.com (English)
--




On Wed, Jan 26, 2011 at 11:06 PM, gaja gajahor...@hotmail.com wrote:


  Hello to all again :)

 Again, I have an issue with my homework. I was troubling myself for two
 days, and I still can't get it :(

 So, if someone can help me, I would be so grateful...


 HOMEWORK 1.

 I need to draw function,

 random walk take the length of walk, and its in 2D. As a result, I have to
 take matrix in which are i-lines of matrix, written coordinates on i-steps

 radnom.walk - function (length, dim = 2){

 }

 HOMEWORK 2

 I need to draw function, which draws self-avoiding walk of given length in
 plane level


 selfavoiding - function (length)
 {

  }

 

 That would be all. I'm sure, there is an expert which can help me, hehe. I
 wish to learn with those two examples for other 5, I have to deal with, for
 that homework.

 Cheers, Gaja*
 --
 View this message in context:
 http://r.789695.n4.nabble.com/Need-help-with-my-homework-tp3238794p3238794.html
 Sent from the R help mailing list archive at Nabble.com.

 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Need help with my homework

2011-01-27 Thread Tsjerk Wassenaar
Hey,

 To the best of my knowledge, this forum is not for help with homeworks.

Probably it is, but it only works for those who can disguise their
homework as Real Problems :)

It might be good excercise to have a read of
http://www.catb.org/~esr/faqs/smart-questions.html though.

Cheers,

Tsjerk


-- 
Tsjerk A. Wassenaar, Ph.D.

post-doctoral researcher
Molecular Dynamics Group
* Groningen Institute for Biomolecular Research and Biotechnology
* Zernike Institute for Advanced Materials
University of Groningen
The Netherlands

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Need help with my homework

2011-01-27 Thread Joshua Wiley
Dear Gaja,

Here are a couple suggestions:

1) Read the R posting guide (
http://www.r-project.org/posting-guide.html ).  There you will (would
have) find out that A) the R-help list is not for homework questions
and B) you will typically get more help if you show what you have
tried (e.g., your attempts to write the function) and had searched the
R-help archives.

2) Random walks are extremely common, if you search the R-help
archives, you will find several relevant examples.  Also, the Internet
is full of example code (plenty using R), that you could read to get
ideas (googling random walk R code turned up 426,000 results, with
several on the first page that looked useful).

3) Homework is meant to be a learning exercise for the person to whom
it was assigned, not for experts who already know what to do.  Now you
might say, I am planning on learning from your examples and doing
additional practice, in which case see number 4.

4) I am sure your instructor did not assign this homework unless he or
she already knew how to do it, so if it is okay for you to see and
work off of someone else's example code, then why not talk with your
instructor about getting a sample?

5) Suppose your instructor expects you to do this on your own, but you
would rather have someone else do it for you.  You can probably find
someone willing, but then you need to practice how you phrase your
request for help.  For example, I am doing research in 
and it uses random walks.  I know how to do this in Python (or some
other programming language), but I am having trouble implementing it
in R code, which I want to do because R has the most beautiful graphs
(flattery never hurts when you're asking for a favor).  II have this
algorithm (insert some statistical algorithm for how your random walk
will work, possibly directly copied from a HW assignment or other
book).  Any suggestions?  If you phrased your question like that, we
could respond with complete solution code, while still feeling good
about ourselves, and not like we'd just helped someone cheat, or
contributed to you not gaining the most possible benefit from your
class (which you are probably paying for), thus, in essence, cheating
you out of your money's value, and the institution out of it's good
name (when you have passed the course but lack the actual knowledge).

So, in summary try (in order):

(re)Reading your lecture note, textbook, or ... and just spending the
time to learn it yourself. Searching the R-help archives (
http://finzi.psych.upenn.edu/search.html ). Searching Google (rule 5
states: there exists code of it, in this case even in your desired
programming language).  Going to your instructor and asking for help
(crazy, I know).  Asking us in a way that we can pretend it is not
homework and feel like we are contributing to science (or possibly
small orphaned pets).

Best of luck with whatever option you try (I would particularly love
to see an example of how writing some random walk code for you would
help orphaned pets)

Cheers!

Josh


On Wed, Jan 26, 2011 at 1:06 PM, gaja gajahor...@hotmail.com wrote:

  Hello to all again :)

 Again, I have an issue with my homework. I was troubling myself for two
 days, and I still can't get it :(

 So, if someone can help me, I would be so grateful...


 HOMEWORK 1.

 I need to draw function,

 random walk take the length of walk, and its in 2D. As a result, I have to
 take matrix in which are i-lines of matrix, written coordinates on i-steps

 radnom.walk - function (length, dim = 2){

 }

 HOMEWORK 2

 I need to draw function, which draws self-avoiding walk of given length in
 plane level


 selfavoiding - function (length)
 {

                                          }

 

 That would be all. I'm sure, there is an expert which can help me, hehe. I
 wish to learn with those two examples for other 5, I have to deal with, for
 that homework.

 Cheers, Gaja*
 --
 View this message in context: 
 http://r.789695.n4.nabble.com/Need-help-with-my-homework-tp3238794p3238794.html
 Sent from the R help mailing list archive at Nabble.com.

 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.




-- 
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Need help with my homework

2011-01-27 Thread gaja

Hey Josh. Thanx for an explicit post, but I still can't get it. Would be nice
if someone would just do that maths instead of posting forum isn't for
that. I know its for R help and that, but if I can't do it, u could, huh?

Problem here is, because I don't have anyone here to help me. And I can't
learn it from the guide, instructions you gave me, 1st of all, because I
can't speak English so well. I only could learn if I see finished homework.

If its forbiden to post it on forum, you can mail it to me... :)

gajahor...@hotmail.com  

Cheers
-- 
View this message in context: 
http://r.789695.n4.nabble.com/Need-help-with-my-homework-tp3238794p3241772.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Need help with my homework

2011-01-27 Thread Bart Joosen

I think you focussed on the wrong post.
You are discussing with Josh, but others already mentioned a good
solution:ask google.
It took me less than a minute to find a function which makes a random walk
and plot the path.
So if you are out there to study such code, go search for it, and if you
don't get it, post the code here you don't understand and ask specific.

Also, asking for giving some code without proving your tried it on yourself,
isn't a good way to ask here.
Why don't you give it a try yourself, and if you are stuck, come back, post
your code and explain what doesn't work. I'm sure there are people who will
help you if they can.

good luck

Bart
-- 
View this message in context: 
http://r.789695.n4.nabble.com/Need-help-with-my-homework-tp3238794p3241802.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Need help with my homework

2011-01-27 Thread gaja

Bart..

I'm not visiting classic math college. Its finance math, and like I said..
I'm studying for ad least 6 hours at day, but if I can't get something, I
just can't.

I will check slowly all the posts again and try to find out, how to do it.

Thanx anyway guys :)

Gaja
-- 
View this message in context: 
http://r.789695.n4.nabble.com/Need-help-with-my-homework-tp3238794p3241812.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Need help with my homework

2011-01-27 Thread Siri Bjoner
What Josh meant (I think, apologies if I'm wrong) is that this forum  
isn't for homework, your professor/tutor is there for you to ask for  
help and advice. No-one is paid to answer questions here, everyone  
does it on their own spare time, and you wouldn't expect a total  
stranger to do your homework for free, would you?


Bart has a valid point, if you were to google and try code and see if  
it works and *then* return to the forum with specific questions, it  
shows that you've tried and someone might want to help you.


Again, if you're taking a course, you should have at least one tutor  
who is supposed to be able to help you, and they should be your first  
line of questioning. They will probably also say that you should try  
some code first before asking questions...


Siri.

Siterer gaja gajahor...@hotmail.com:



Hey Josh. Thanx for an explicit post, but I still can't get it. Would be nice
if someone would just do that maths instead of posting forum isn't for
that. I know its for R help and that, but if I can't do it, u could, huh?

Problem here is, because I don't have anyone here to help me. And I can't
learn it from the guide, instructions you gave me, 1st of all, because I
can't speak English so well. I only could learn if I see finished homework.

If its forbiden to post it on forum, you can mail it to me... :)

gajahor...@hotmail.com

Cheers
--
View this message in context:  
http://r.789695.n4.nabble.com/Need-help-with-my-homework-tp3238794p3241772.html

Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Need help with my homework

2011-01-27 Thread Joshua Wiley
On Thu, Jan 27, 2011 at 1:41 AM, gaja gajahor...@hotmail.com wrote:

 Hey Josh. Thanx for an explicit post, but I still can't get it. Would be nice
 if someone would just do that maths instead of posting forum isn't for
 that. I know its for R help and that, but if I can't do it, u could, huh?

The whole point of taking a class is that _you_ learn how to do it, not me.


 Problem here is, because I don't have anyone here to help me. And I can't
 learn it from the guide, instructions you gave me, 1st of all, because I
 can't speak English so well. I only could learn if I see finished homework.

I do not believe that.  If you cannot learn from all the manuals and
guides on the internet for R, why would finished homework be any
different?  It will just be another chunk of code written by someone
else that you do not understand.


 If its forbiden to post it on forum, you can mail it to me... :)

That is not really the point, I want to encourage you to learn and I
believe that means you need to practice on your own.  If you're having
trouble figuring out what to do, try breaking it down into smaller
steps.  For example, if it is easier for you, try writing it first
using a for or while loop.  Then once you have that working, the next
step is to figure out how to replace the loop.

Josh

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.