From InterSciWiki
Jump to: navigation, search

SCCS R package

Remote access

Team Viewer - Free for non-commercial use lets you share your screen with your team, anyone can enter keystrokes. DRW's usernumber is 793 304 281 password is the earliest z

Glance (obsolete)

msygit (programmers only)

install -netinstall - takes 30 minutes

git config --global "David Beckwith"
git config --global ""

View remote screen (for authors) 8859 Run this in iExplorer (iE)

setwd("C:/Program Files/R/R-2.6.2/0ScottGlance")

I can share Scott's page to follow the progress of our project

R Script

Vi editor

Early R code 5-16-2010

Ok I fixed the code bugs (at least the ones I am aware of) and I incorporated your feedback. See the extra parameters in two_stage_ols and impute functions to let you control things like how many significant digits you want to use, etc.

So should all work now with one caveat: my current rewrite does not take multiple weight matrices but only one. The reason is because to make this as general as possible, hardcoding in 2 weight matrices doesn't make sense. That being said I can add some code to handle an arbitrary number of weight matrices if you like, with 2 being a special case.

Here is how to run:
- create dir somewhere
- in that directory place the 3 attached files
- from that directory, decompress sccs.tar.gz so that the dir sccs is extracted
- Modify the 'setwd' (set working dir) command at the beginning of the impute_eff_dow.R and ols_eff_dow.R
- type: source("./impute_eff_dow.R") to run multiple imputation step
- type: source("./ols_eff_dow.R") to run 2 stage ols
#setwd("C:\Program Files\R\R-2.6.2\0ScottGlance")
setwd("C:/Program Files/R/R-2.6.2/0ScottGlance")

You can play around with the ols_stats object by running the following command after the last step:

load("ols_stats.Rdata",.GlobalEnv) and typing things like


View early R code


Fix problem on PC with data(sccs) and the R library error
 DeInstall Rtools?
 DeInstall HTML Help Workshop?
Review work completed
Fix multiple matrices
Document wiki
 Change depvar
 Change indepvar

My Path Variables

Control Panel/System/Advanced/Environment Variables/Path:

c:\Rtools\bin;c:\Rtools\perl\bin;c:\Rtools\MinGW\bin;c:\texmf\miktex\bin;%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem;c:\program files\ati technologies\ati control panel; c:\program files\securecrt\;c:\program files\common files\gtk\2.0\bin;c:\progra~1\absolu~1; C:\Program Files\MATLAB\R2009a\bin;C:\Program Files\MATLAB\R2009a\bin\win32; C:\Program Files\MATLAB\R2008a\bin;C:\Program Files\MATLAB\R2008a\bin\win32; C:\Program Files\MATLAB\R2007b\bin;C:\Program Files\MATLAB\R2007b\bin\win32; C:\Program Files\QuickTime\QTSystem\;C:\Program Files\R\R-2.6.2\bin;C:\Program Files\HTML Help Workshop

Glance signup