Skip to content

Instantly share code, notes, and snippets.

View EconometricsBySimulation's full-sized avatar

Francis Smart EconometricsBySimulation

View GitHub Profile
shinyServer(function(input, output) {
output$distPlot <- renderPlot({
# Take a dependency on input$goButton
input$goButton
# Use isolate() to avoid dependency on input$obs
dist <- isolate(rnorm(input$obs))
hist(dist)
})
})
@EconometricsBySimulation
EconometricsBySimulation / gist:6235945
Created August 14, 2013 21:39
2013-07-30 A bit of code showing how to do Structural Equation Modelling
clear
set obs 4000
gen id = _n
gen eta1 = rnormal()
gen eta2 = rnormal()
* Generate 5 irrelevant factors that might affect each of the
# R - Doodling in R
# I am working on creating some functions that will be capable of creating shapes and plots that look hand drawn.
# I have made some progress in this goal.
# In that process I have also discovered that I can make some doodles that look hand drawn as well.
# In order to accomplish the goal of simulating hand drawing I want to simulate the momentum of hand writing.
rm(list=ls())
library(data.table)
library(dplyr)
library(ggplot2)
setwd('Z:/Data/FEC')
dsum <- function(...) dplyr::summarize(...)
to.data.table <- function(x) {(class(x) <- class(data.table())) ;x}
rm(list=ls())
library(data.table)
library(dplyr)
library(ggplot2)
library(scales)
setwd('Z:/Data/FEC')
dsum <- function(...) dplyr::summarize(...)
# Estimating Weekly consumption from periodic purchasing data
library(dplyr)
library(data.table)
library(reshape)
library(tidyr)
library(ggplot2)
# Day Purchase

emailto: psteiner@umd.edu student: Francis Smart fsmart@gmail.com EDMS769G

# Text Network graph
#           Student Ability _______________________
#            /           |                         \_____
#          /             |  Public/Private Transport     \
#         ↓              ↓     ↓                          ↘
txt2 month
<<NO TEXT FOUND FOR SPECIFIED DATE>> 12
apoo od f n@N2enuo ttc aEon0t 0THOTesv1t tioil0,s ct'en O1t"to i cdCert.piawob Cd epEoRu gE h oIl i t coerdee VtR sou'eoet n crnrho C .ik/e lkreigypMn Rf s troCokeecT 0es nCoc4 oDn O oerlisd lo'ontom/ei i9Ir,2hgu,bt n/r kr20ta wtontl iriiC e Paots eu 0e12y1esenp tcaat )n eniTseon 4tE2l oCotoaN0 encuRi n eu e nrsroidNcinwp -t iECr9( gep2. k oiRub01gT'n1i Irmn ecT T.0'pbCu" 0w pt"Fso.f rdneeTs UW.nnl/s2tt uneTk't itri,ig nO.eth tere0eci 0 a pl( ' "rtvlbOntuftfr tn Onyn t1n10thtt i d eoe a rHc CtdorltCniwmfbao9 rdC vtecf pl nTOahf10ornet wueotoT o .s 12
<<NO TEXT FOUND FOR SPECIFIED DATE>> 12
print('Hello World')
f = lambda : print('hello world')