Skip to content

Instantly share code, notes, and snippets.

View studentrohman's full-sized avatar

Muhammad Abdul Rohman studentrohman

View GitHub Profile
global data "C:\Users\ASUS\Documents\4. Asyafina Effect\1. Data"
global hasil "C:\Users\ASUS\Documents\4. Asyafina Effect\2. Hasil"
cd "$hasil"
import excel "$data\https___asyafina.com_-Performance-on-Search-2022-02-16.xlsx", sheet("Tanggal") firstrow clear
tset Tanggal
*-------------------------------------------------------------------------------------------------------------------------------
* Time Series ARIMA Models in Stata
*-----------------------------------------------------------------------------------------------------------------------------------
*========================================================================================
*Praktek untuk model VAR dan VECM
*========================================================================================
clear
set more off
clear
set more off
/*---------------------------------------------------------------------------------------------
ARCG dan Garch Model
by Sekolah Stata
*-------------------------------------------------------------------------------------------*/
clear
set more off
*===============================================================================
*Anallisis elastisitas
*==============================================================================
global s2019 "C:\Users\Asus\OneDrive\Documents\2.DATA\1.MIKRO\1.Susenas\2019"
global s2018 "C:\Users\Asus\OneDrive\Documents\2.DATA\1.MIKRO\1.Susenas\2018"
global s2020 "C:\Users\Asus\OneDrive\Documents\2.DATA\1.MIKRO\1.Susenas\2020\SUSENAS MAR_2020 (KOR)\DATA"
global kp "C:\Users\Asus\OneDrive\Documents\2.DATA\1.MIKRO\1.Susenas\2020\"
@studentrohman
studentrohman / data-umkm-jakpreneur-makanan.ipynb
Created November 4, 2021 01:07
Data UMKM Jakpreneur-Makanan
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
*----------------------------------------------------------------------------------------------------------
*Membuat Variabel spesial
*----------------------------------------------------------------------------------------------------------
global input "E:\IFLS\DATA\2014\HH"
global output "C:\Users\Asus\OneDrive\Desktop\kelas ifls\2. hasil"
cd "$output"
dir "$input\*"
*=============================================================================
* Latihan menggunakan stata
*=============================================================================
*setting pembuatan folder penyimpnana
*cd (close directory)(proses)
cd "C:\Users\Asus\OneDrive\Documents\STATA DASAR\3. Hasil"
*global (input dan output)
***************************************************************************
*Purpose: Show an example do file.
*Author: Your name
*Date Last Modified: 10 April, 2019
*****************************************************************************
* DAY 2: How to use Stata do file
* SAVE do File
gl data "\Data"
gl out "\output"
gl log "output"
/*---------------------------------------------------------*/
capture log close
log using "$log\dd_psm.log", replace
https://data.humdata.org/dataset/movement-range-maps
*STATA do file
import delimited movement-range-2020-07-05.txt, encoding(ISO-8859-2) clear
keep if country=="IDN"
export excel using "IDN", firstrow(variables) replace
gen ddate = daily(ds, "YMD")
encode polygon_id, generate(id)
gen t = ddate