본문 바로가기
생활이야기

Step-by-Step Guide to Running the RIA Program in S-Plus

by 경청 2008. 3. 28.
728x90
반응형

 

 

  • English Summary
    • Create a folder for the RIA source program and input data (e.g., C:\RIA).
    • Inside it, create a subfolder _data (or .Data for S-Plus version 6 and later).
    Saving Program and Data:
    • Save RIA.ssc and the input data file (e.g., Data.txt) in C:\RIA.
    • Ensure the input data is saved in text format, with column headers in the first row, data starting in the first column, and missing values marked as NA.
    Starting S-Plus:
    1. Launch S-Plus and attach the _data folder:
      scss
      코드 복사
      > attach('c:\\RIA\\_data', 1)
    2. Load the RIA program:
      scss
      코드 복사
      > RIA_source('c:\\RIA\\RIA.ssc')
    Import Data:
    • Import Data.txt using the data_importData function.
    • Confirm import using summary(data).
    Data Usage:
    • Attach the imported data for column name access:
      scss
      코드 복사
      > attach(data)
    Running the RIA Program:
    • Define control and experimental time series (ts1 and ts2) and the number of pre-manipulation data points (npre).
    • Example:
      scss
      코드 복사
      > RIA(ts1=E3, ts2=E1, npre=18)
    Comparison with Other Tools:
    • Data setup and formatting are similar to tools like R and Python.
    • Command syntax is akin to R, but file paths differ.
    • Missing values are represented as NA, comparable to R’s NA and Python’s NaN.
    • Graphical output is automatic, similar to R but requires additional libraries in Python.

    Korean Summary (한국어 요약)
    • RIA 프로그램과 데이터를 위한 폴더 생성 (예: C:\RIA).
    • 하위 폴더 _data 생성 (S-Plus 버전 6 이상은 .Data 사용).
    프로그램 및 데이터 저장:
    • RIA.ssc와 데이터 파일(e.g., Data.txt)을 C:\RIA에 저장.
    • 데이터 파일은 텍스트 형식으로 저장하고, 첫 줄에 컬럼 이름, 첫 열부터 데이터 입력, 결측치는 NA로 표시.
    S-Plus 시작:
    1. S-Plus 실행 후 _data 폴더 연결:
      scss
      코드 복사
      > attach('c:\\RIA\\_data', 1)
    2. RIA 프로그램 실행:
      scss
      코드 복사
      > RIA_source('c:\\RIA\\RIA.ssc')
    데이터 가져오기:
    • data_importData 함수로 Data.txt 가져오기.
    • summary(data)로 데이터 확인.
    데이터 사용:
    • 컬럼명을 사용하려면 데이터 첨부:
      scss
      코드 복사
      > attach(data)
    RIA 프로그램 실행:
    • 제어 및 실험 시계열(ts1, ts2)과 전처리 데이터 수(npre) 설정.
    • 예:
      scss
      코드 복사
      > RIA(ts1=E3, ts2=E1, npre=18)
    다른 도구와 비교:
    • 데이터 설정은 R이나 Python과 유사.
    • 명령어 구조는 R과 비슷하지만 파일 경로 표기법은 다름.
    • 결측치는 NA로 처리하며, 이는 R의 NA, Python의 NaN과 유사.
    • 그래프 출력은 R과 유사하지만 Python에서는 추가 라이브러리가 필요.

    Chinese Summary (中文总结)
    • 创建一个用于 RIA 程序和输入数据的文件夹(如:C:\RIA)。
    • 在文件夹内创建子文件夹 _data(S-Plus 6 或更高版本使用 .Data)。
    保存程序和数据:
    • 将 RIA.ssc 和输入数据文件(如 Data.txt)保存到 C:\RIA。
    • 数据文件需保存为文本格式,首行为列名,第一列开始为数据,缺失值用 NA 表示。
    启动 S-Plus:
    1. 打开 S-Plus 并附加 _data 文件夹:
      scss
      코드 복사
      > attach('c:\\RIA\\_data', 1)
    2. 加载 RIA 程序:
      scss
      코드 복사
      > RIA_source('c:\\RIA\\RIA.ssc')
    导入数据:
    • 使用 data_importData 函数导入 Data.txt。
    • 使用 summary(data) 验证数据导入是否成功。
    使用数据:
    • 附加数据以直接使用列名:
      scss
      코드 복사
      > attach(data)
    运行 RIA 程序:
    • 定义控制和实验时间序列 (ts1 和 ts2) 以及操作前数据点数 (npre)。
    • 示例:
      scss
      코드 복사
      > RIA(ts1=E3, ts2=E1, npre=18)
    与其他工具的对比:
    • 数据设置和格式与 R 或 Python 类似。
    • 命令结构与 R 类似,但文件路径格式不同。
    • 缺失值使用 NA,与 R 的 NA 和 Python 的 NaN 相同。
    • 图形输出自动生成,与 R 类似,但 Python 需要额外的库支持。
  • 文件夹设置:
  • 폴더 설정:
  • Folder Setup:
728x90
반응형