We offer top quality new motorhomes for sale and used motorhomes for sale. Our franchises for Auto-Trail, Bessacarr, Autocruise and Compass guarantee the .

====================================

By on 12/21/2010 2:49 AM ()

人类的世界发展到今天,真是无奇不有。最近看了一些关于计量经济学的贴子,发现了一个对于我们这一圈子的人来说,可能是极其陌生的计算机语言,叫做R。这个R语言的前身是S,是一种函数式脚本语言,主要就是为了做...

By on 5/24/2009 9:38 PM ()

I followed the steps listed above and was able to use the interactive mode (fsi i.e. alt-enter each step of the code) from Visual Studio. However, when I try to compile I get the following error:

System.IO.FileNotFoundException was unhandled

Message: Could not load file or assembly 'Interop.STATCONNECTORSRVLib, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Any ideas?

Thanks,

Dan

By on 3/3/2008 12:06 PM ()

I think quotations are a next logical step. Consider the following (naive) scenario "on the R side":

I have a set of observations from the US capital markets at a point in time. If I organize the data as a matrix, I'd place companies on rows, attributes on companies on columns. Examples of companies might be IBM, Citigroup, AT&T, ExxonMobil, etc. Examples of attributes might be total return (TR) (one month backlooking), market capitalization (MC), shares outstanding (SO), book to price (BTP), etc.

I'd like to run a linear model (ordinary least squares regression) on that data in R and see if there is any explanatory power. So the following would be needed:

1. A data.frame construct to place the observations. A data.frame is a "list of objects" construct where the primary object is a matrix and there are at least two other lists: a rownames and colnames list.

2. An expression to describe the model. In this case, I'd like to consider explaining total return from all of the other attributes. In R, if the attribute names are TR, MC, SO, BTP, the expression for the model would be "TR ~ MC SO BTP", i.e. TR is explained by MC SO BTP.

3. Given the model (as an R formula), I'd then attempt a linear fit in R using the lm function on the above mentioned data.frame. The output of the lm function is an object of class "lm".

4. I'd then evaluate the output of that lm object and get summary information, e.g. r squared, Beta, etc.

Now imagine that I have 15+ different models of that nature where some of those models also include a time element, e.g. the above mentioned data frame would need to be constructed for each month end period.

Given the above information, quotations would be a first step in managing much of the above. But a DSL is likely needed for sophisticated usage.

So in small steps, I'd consider some F# code with LINQ to load some of that data from a database. Based on the data available, I'd construct the above data.frame construct as a quotation (shuttling data to and from R is an issue; there is an RODBC package that could be used to do direct loading of data into R from a database; again another detailed topic). I'd also consider the model construction and the lm function call in another quotation. I'm not sure how I would handle the output of the lm model within the context of quotations.

To provide all of these details, I'd have to make another post on that topic or open a forum thread. No promises at the moment given my time available.

---O

By on 11/7/2007 8:34 AM ()

Any thoughts on mapping F# quotations to R?

By on 11/6/2007 6:03 PM ()
By on 11/6/2007 6:49 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper