Software

How do I obtain Microsoft Office for personal own computer to use at home?

Microsoft's Home Use Program (HUP), is a benefit available to employees at the University of British Columbia. Employees who use the covered licenses at work are eligible to purchase Office applications for use on a personal device for the duration of the term of their employment at UBC.
Eligible employees are allowed to purchase a single license of each product available according to the terms of their organization’s Software Assurance benefit. You can learn what is covered by visiting:
https://it.ubc.ca/ubc-it-guide-working-campus
MS Office UBC license media/download  available from StatNet IT are for deploying only for qualified UBC-owned computers, or purchase by faculty's grant.  Your personal computer will need to purchase this, HUP, home use license.
Instructions

  1. Go to microsoft.com/en-us/home-use-program
  2. Enter your UBC email address (emails ending in @admin-at-stat.ubc.ca or @mail.ubc.ca only)
  3. Click Submit
  4. Check your inbox for an email from Microsoft, with a link to subscribe to Office 365 with 30% discount
FAQ Category

How to access UBC OneDrive and Office 365 on the Cloud?

UBC OneDrive info/howto:
https://it.ubc.ca/services/web-servers-storage/microsoft-onedrive

Basically OneDrive is similar to our ownCloud/Nextcloud or Dropbox services.
You will have 2 ways to access it:

a) Cloud access
Faculty and staff who meet the service requirements will be able to access the tools at https://portal.office.com by signing in with their alias.
Login: firstname.lastname@ubc.ca
Password: your CWL password
and going through the UBC multi-factor authentication process.
From there, they can use the web-based versions or download the OneDrive software to install it onto your desktop/laptop locally.

b) Direct access as a local drive on your desktop/laptop
You will need to install an OneDrive software, download after you login "Cloud access", onto your device so it can sync data with the OneDrive on the Cloud.

FAQ Category

Do you have anti-virus software that I can download and use free of charge?

Yes.  UBC ITServices has a software license for the Cisco Advanced Malware Protection (AMP), please refer to UBC "malware-protection" web page for more information:

     https://it.ubc.ca/services/cybersecurity-services/malware-protection

The software license is applied to:

  • UBC-owned devices: Supported by a Faculty, Department of Research IT Department
  • Personal-owned devices: Used for University Business

We retain a copy of the latest version of UBC cybersecurity software which we can distribute locally to qualified users via our Nextcloud service, also known as owncloud.stat.ubc.ca.  Please contact the department IT staff for support.

FAQ Category

Does StatNet offer Dropbox alternative? Owncloud?

Server: https://owncloud.stat.ubc.ca/
Login and password are the same as StatNet
Disk quota 20Gb
Users can add their local storage or Dropbox/Goggle Drive  storage to their  Owncloud account

Dropbox: You will need App key and App secret from Dropbox for Owncloud client
to use Dropbox remote storage on its server.
Login Dropbox,
Create "Dropbox API app"
--> Files and Datastores

--> No, My app needs access to files already on Dropbox
--> All file types.
 

http://blog.gapinthecloud.com/2012/06/13/mounting-dropbox-into-owncloud/

More info here

There are 3 ways to access your files
a) Install a Desktop sync-client  How to here
     Sync Client download
           For Mac/Win/Linux
                  http://owncloud.org/sync-clients/
            For Smart Mobile Devices
                   https://owncloud.com/blog/now-use-owncloud-on-you-ipad-iphone-or-android
b) Using a web browser
      Support all major browsers. No plugin required
c) WedDav
       How to here

Complete Owncloud Desktop client Document here.

FAQ Category

KWord and AbiWord

KWord is used to open, edit, and print Microsoft Word document in Linux (e.g. Pascal, Fisher and Pearson server in the department install Linux system.).

To open a Microsoft Word document, type

    kword filename.doc&

The interface of the KWord is quite similar to Microsoft Word.

It seems that the KWord could not save files as Microsoft Word document.

For more information, check the KWord webpage.

AbiWord is a Word processor which "will run on virtually any operating system". You can open, edit, and print Microsoft Word document by using AbiWord. It's simple and fast.

To open a Microsoft Word document by AbiWord, type

    abiword filename.doc&

For more information, check the AbiWord webpage.

FAQ Category

OpenOffice.org

OpenOffice.org is a multi-platform open source office productivity suite. It includes the key desktop applications, such as a word processor, spreadsheet, presentation manager, and drawing program, with a user interface and feature set similar to other office suites. It has an ability to import documents in Microsoft formats such as *.doc or *.xls.

OpenOffice exists as ooffice on pearson on StatNet and as soffice on newton on StatNet

The components of the suite are called:

WRITER

text processor which can serve as a substitute for MS Word. The command file is normally called oowriter.

CALC

spreadsheet to substitute MS Excel. Command file: oocalc.

IMPRESS

presentation suite to take place of MS PowerPoint. Command file: ooimpress.

DRAW

image and diagrams editor. Command file: oodraw.

 

OpenOffice.org can also export text documents (such as imported from MSWord) and presentations (e.g. converted from MS PowerPoint) into PDF documents.

OpenOffice.org is being installed by default on most modern distributions of Linux and Solaris. However, it is available for Windows as well.

In StatNet, it is available on pascal server but cannot be used due to insufficient CPU speed and other resources (as of August 2004). It can also be run on undergraduate server ugrad.

FAQ Category

Examples of SAS code and SAS usage (by Harry Joe)

SAS usage (by Harry Joe)

SAS examples

Note that SAS/IML can be used in "interactive mode" (but not as nice a Splus/R), with

      sas -nodms

from the Unix command line. Then type 'proc iml' and create variables, vectors or matrices. Type 'endsas' to end your interactive SAS session. Alternatively submit IML statements from the SAS program window, and look for the output in the SAS output window (error messages in SAS LOG window).

 

SAS Insight for interactive data analysis

Step 1: convert an ascii/text file to SAS binary format (extension is .ssd or .ssd01 in Unix).

libname tem '/home/faculty/hjoe/s445';

data tem.iris;
   infile 'iris.dat' firstobs=2; /* first line consists of variable names */
   /* the default field delimiter is one or more spaces */
   /* there are special data formats in SAS */
   input sepallen sepalwid petallen petalwid species $;
run;

The result in /home/faculty/hjoe/s445 is

  -rw-r--r--   1 hjoe     faculty    16384 Dec 10 14:35 iris.ssd01

Step 2. Starting SAS/Insight. By default, SAS/Insight will only find .ssd01 files if they are in your ~/sasuser directory. If your .ssd01 files are elsewhere, do something like below with the PROC INSIGHT.

libname s545 '/home/faculty/hjoe/s545';
 
proc insight data=s545.aes;
  run;

These 4 lines can be in a SAS file, eg. startida.sas, and started with the Unix command

      sas startida.sas

or they can be typed in the SAS Editor Window and submitted.

 

SAS Toolbar

To assess your SAS data (.ssd) files interactively from menus and SAS INSIGHT, SAS FSVIEW, SAS FSEDIT, SAS FSBROWSE etc., add the path/directory names using 'libname' in your '~/autoexec.sas' file. For example, if /home/faculty/hjoe/s445 contains

    iris.ssd01 

and /home/faculty/hjoe/sasdata contains

    customer.ssd01 employee.ssd01 invoice.ssd01 product.ssd01   

then put the following into autoexec.sas (in your home directory)

     libname s445 '/home/faculty/hjoe/s445';
     libname sasdata '/home/faculty/hjoe/sasdata';

By default, SAS starts with

     libname sasuse '~/sasuser';

A number of menus from a spreadsheet/database view can be accessed from the toolbar. For example,

  • If you have a directory ~/sasuser in your home directory with a SAS file houses.ssd01, then typing

        fsview sasuser.houses
    

    will bring up data set with menus, from which some SQL can be done from the Search menu. Similarly,

        fsview sasdata.customer
    

    will open sasdata/customer.ssd01. For string variables, you can type 'Where' strings such as

          empname like 'S%'
    

    or

          empname like '___k'
    

    For SQL mistakes, note the "Undo last where" option in the Search menu.

     

  • Typing

        fsedit sasdata.customer
    

    allows you to edit your SAS data set and re-save. Note that the data comes up in a form with a line for each variable.

  • Typing

        fsbrowse sasdata.customer
    

    leads to the same format of the data set as 'fsedit' but no editing can be done.

     

  • Typing

        insight 
    

    will bring up a menu of your libname's from which you can choose your data set, or if you want to bring up a specific data, type something like

        insight data=s445.iris
    

     

  • You can also bring up s445.iris by going to the Program Editor Window, choose the Globals menu, then Analyze, then Interactive Data Analysis. Then choose s445 as the library (from left panel) and the data set from the right panel, and click the Open button.

Forecast

Why do the smoothing forecasts generated by the Time Series Forecasting System differ from those generated by PROC FORECAST?

The specific methods used in the two approaches differ in two ways. First of all, the Time Series Forecasting System optimizes the smoothing weights for a particular time series while the default smoothing values of PROC FORECAST are constants that do not depend on the data series. (With PROC FORECAST, the user may specify the weights explicitly, overriding the default weights of PROC FORECAST.) Secondly, the Time Series Forecasting System uses a smoothing state initialization different than that of PROC FORECAST. For further details, see pages 225-235 of the SAS/ETS Software: Time Series Forecasting System, Version 6, First Edition and pages 443-450 of the SAS/ETS User's Guide, Version 6, Second Edition. This information is also found in the Version 7 SAS OnlineDoc.

 

 

FAQ Category

How to install command-line editor in Splus?

R has a command-line editor which allows us to retrieve and edit commands we entered before. We also can install a command-line editor in Splus.

STEP 1

If you use Bourne, Korn, Bash or Z-Shell, type the following lines into your .bashrc file which is in your home directory:

    export EDITOR="/usr/local/bin/vim"
    export S_CLEDITOR="/usr/local/bin/vim"
    export VISUAL="/usr/local/bin/vim"

If you use C-Shell or TC-Shell, then type the following lines into your .cshrc file which is in your home directory:

    setenv EDITOR "/usr/local/bin/vim"
    setenv S_CLEDITOR "/usr/local/bin/vim"
    setenv VISUAL "/usr/local/bin/vim"

If you want to use emacs instead of vi, then simply replace the vim with emacs.

 

STEP 2

in your home directory, type command

    source .bashrc

or

    source .cshrc

 

STEP 3

type

    Splus -e

to invoke editor when you enter into Splus session.

The most useful editing commands are summarized in the following table:

COMMAND                 emacs           vi

backward character      Ctrl-B          Esc, h
forward character       Ctrl-F          Esc, l
previous line           Ctrl-P          Esc, k
next line               Ctrl-N          Esc, j
beginning of line       Ctrl-A          Esc, ^ (Shift-6)
end of line             Ctrl-E          Esc, $ (Shift-4)
forward word            Esc, f          Esc, w
backward word           Esc, b          Esc, b

kill char               Ctrl-D          Esc, x
kill line               Ctrl-K          Esc, Shift-d
delete word             Esc, d          Esc, dw

search backward         Ctrl-R          Esc, ?   
yank                    Ctrl-Y          Esc, Shift-y
transpose chars         Ctrl-T          Esc, xp

You can type Splus command

?Command.edit

to get the above table.

FAQ Category