Publications by Ali
Publish Document
How I made the “Blows” variable physical_abuse == “Yes” playing_sports == “Yes” other_injury == “Yes” military_exposures == “Yes” If any of these conditions is true, the overall condition evaluates to true, and the value of Blows is set to “Yes”. PTH <- PTH %>% mutate( TBIUTAH = case_when(TBI == "No TBI"&Blows...
355 sym 2 tbl
Publish Document
How I made the “Blows” variable physical_abuse == “Yes” playing_sports == “Yes” other_injury == “Yes” military_exposures == “Yes” If any of these conditions is true, the overall condition evaluates to true, and the value of Blows is set to “Yes”. PTH <- PTH %>% mutate( TBIUTAH = case_when(TBI == "No TBI"&Blows...
358 sym 2 tbl
Document
How I made the “Blows” variable physical_abuse == “Yes” playing_sports == “Yes” other_injury == “Yes” military_exposures == “Yes” If any of these conditions is true, the overall condition evaluates to true, and the value of Blows is set to “Yes”. PTH <- PTH %>% mutate( TBIUTAH = case_when(TBI == "No TBI"&Blows...
359 sym 4 tbl
Document
library(readxl) Book3 <- read_excel("Book3.xlsx") View(Book3) # Load the required library library(wordcloud2) library(wordcloud) ## Loading required package: RColorBrewer # Create the word cloud wordcloud2(data = Book3) wordcloud(Book3$word, Book3$freq)...
9 sym R (260 sym/4 pcs) 1 img
Document
cg Social Interaction1 Social Interaction1 Social Interaction1 ## IGRAPH 1bfaba0 UNW- 14 25 -- ## + attr: name (v/c), weight (e/n) ## + edges from 1bfaba0 (vertex names): ## [1] Friend --Spending time Friend --Encouraging ## [3] Friend --Helping Friend --Doing an activity ## [5] Friend --None of the above Cowo...
81 sym Python (1677 sym/4 pcs) 7 img
Document
### LCA.R ### purpose: read in SAMHSA 2015 data and run LCA on it ### with different number of classes,and (2) with a covariate ### #poLCA(formula, data, nclass = 2, maxiter = 1000, graphs = FALSE, tol = 1e-10, na.rm = TRUE, # probs.start = NULL, nrep = 1, verbose = TRUE, calc.se = TRUE) ### #slide10: library(poLCA) ## Warning: pa...
30 sym R (15849 sym/26 pcs) 1 img
Document
## Warning: package 'compareGroups' was built under R version 4.2.2 ## ## --------Summary descriptives table by 'epi_status_final'--------- ## ## _________________________________________________________________ ## No EPI No TBI NTE PTE TBI p.overall ## N=32 N=18 N=37 N=72 ...
1119 sym
Document
Link #https://hrsdata.isr.umich.edu/data-products/2020-hrs-core libraries library(haven)# used for dta or stata data ## Warning: package 'haven' was built under R version 4.2.2 library(dplyr)# for data management ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The followin...
536 sym R (32766 sym/121 pcs) 2 img 1 tbl
A Mini MacroEconometer for the Good, the Bad and the Ugly
Gross domestic product (GDP) is the total monetary or market value of all the finished goods and services produced within a country’s/state’s borders in a specific time period. As a broad measure of overall domestic production, it functions as a comprehensive scorecard of a given country’s/state’s economic health. But, is this wealth and ...
7524 sym 10 img