Current location: Hot Scripts Forums » Programming Languages » Other Languages » R code problem


R code problem

Reply
  #1 (permalink)  
Old 06-13-11, 06:44 AM
Coding.newbie Coding.newbie is offline
New Member
 
Join Date: Jun 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
R code problem

Hi everyone, this is my first post!

I have little coding experience but am required in the next few weeks to do some statistical analysis using R. The problem I am having at the moment is:

I have generated some points from a Gaussian distribution using the code below :
sigma <- matrix(c(10,0,0,10), ncol=2)
a <- rmvnorm(n=500, mean=c(-3,0), sigma=sigma)

#Note the rmvnorm function is from the package mvtnorm.

I can plot a, however I would like to be able to work out the perpendicular distance of each point from a couple of vertical lines, however I have no idea how to do this... any suggestions?

Thanks
Reply With Quote
  #2 (permalink)  
Old 11-15-11, 12:01 AM
collin2 collin2 is offline
Disabled
 
Join Date: Nov 2011
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
05I wouldn't recomend new york asian escort buying films from new york asian escorts a porn site as many times they new york escort are in the money cheating business and that's just not new york escorts right. I would rather buy from an adult store which specialises in adult material and products
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP inside JavaScript? pikaz JavaScript 20 07-10-10 12:55 AM
Captcha Code not working Frogger PHP 0 12-01-09 01:29 PM
Code behind problem.. shabirmaher ASP.NET 1 08-12-05 08:11 AM
How to sale php code to customer without giving him code pradeep_soft PHP 4 03-12-04 12:10 PM


All times are GMT -5. The time now is 03:50 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.