BJ Data Tech Solution

Specialized on Data processing, Data management Implementation plan, Data Collection tools - electronic and paper base, Data cleaning specifications, Data extraction, Data transformation, Data load, Analytical Datasets, and Data analysis. BJ Data Tech Solutions teaches on design and developing Electronic Data Collection Tools using CSPro, and STATA commands for data manipulation. Setting up Data Management systems using modern data technologies such as Relational Databases, C#, PHP and Android.

  • Home
  • Data Management
  • Data Analysis
  • Data Collection Tools Tips
Separating a character and a number part of a variable

Separating a character and a number part of a variable

Friday, March 31, 2023 Data Cleaning Data management Data Processing
I have a variable consisting of characters and numbers in a string format. How can I separate the character part of a variable and the numbe...
specifying stored coefficients in test

specifying stored coefficients in test

3:23 PM Data Cleaning Data management Data Processing
I am running two multilevel models and storing the coefficients. I then want to test of the product of two coefficients, one from each model...
How to use If condition to restrict t test on only two groups with a categorical var that has 3 groups

How to use If condition to restrict t test on only two groups with a categorical var that has 3 groups

2:23 AM Data Cleaning Data management Data Processing
Hi Family, I have 1 categorical variable that has 3 grps( blue,yellow, green), I wanted check if the variance between only these two groups...
Make a list table in Stata

Make a list table in Stata

Thursday, March 30, 2023 Data Cleaning Data management Data Processing
Dear Stata users, Thank you in advance. I want to make a table that has all items listed in cells that are grouped by a categorical variab...
OLS vs. Ordered Logistic Regression

OLS vs. Ordered Logistic Regression

7:23 PM Data Cleaning Data management Data Processing
Hello, I have five employee-level variables as below, and I was wondering if I could use the OLS with fixed effect or ordered logistic reg...
How to realize data deformation operation

How to realize data deformation operation

5:23 PM Data Cleaning Data management Data Processing
How to perform the following data operations as follows: (1) Place the data scattered in multiple rows on one row Code: * Example gene...
Clarifying interpretation of marginal effects after reghdfe

Clarifying interpretation of marginal effects after reghdfe

3:23 PM Data Cleaning Data management Data Processing
Hello, I am looking for clarification on post-estimation margins command after reghdfe. I am running a pretty standard Diff-in-Diff (effect ...
Performing Regressions on Panel and Time Series Data

Performing Regressions on Panel and Time Series Data

2:23 PM Data Cleaning Data management Data Processing
Good afternoon, first time poster here. I'm an undergraduate student trying to run some regressions on data I have been compiling. I tho...
Automatically run a do file when opened

Automatically run a do file when opened

2:23 PM Data Cleaning Data management Data Processing
Hello all, Is there a feature that will have Stata automatically run designated DO files when they are opened? Thanks! Deguza
Model fitness

Model fitness

Wednesday, March 29, 2023 Data Cleaning Data management Data Processing
Dear all, Good morning! How could I measure the model fittness of teffects ipwra (inverse probability weighted regression adjustment for i...
Entity fixed effects model - repeated time values within panel

Entity fixed effects model - repeated time values within panel

7:23 PM Data Cleaning Data management Data Processing
Hello, I want to run a regression in which the explained variable is the bond coupon and there are some explanatory variables, such as size ...
Plot survival curve of the interaction in Stratified Cox Model

Plot survival curve of the interaction in Stratified Cox Model

5:23 PM Data Cleaning Data management Data Processing
Dear all, I ran a Cox model with strata(year), stcox X1 X2 c.X1#i.X2, strata(year) vce(robust) X1 is a continuous variable, X2 is a cate...
estout test results

estout test results

3:23 PM Data Cleaning Data management Data Processing
I am trying to obtain the test results using estout command however I am unable to put them there. Code: reg y x1 x2 x3 x4 eststo 1 xt...
Loop to fill missing values

Loop to fill missing values

1:23 AM Data Cleaning Data management Data Processing
Hello, I am using a panel data set that has a unique firm id called 'firm_id'. However, this firm_id has some missing values. Thes...
test "dose-response" with categorical variable

test "dose-response" with categorical variable

1:23 AM Data Cleaning Data management Data Processing
Hi! I am performing cox regressions with a categorical indep. variable. In the survey, we have a likert-scale with 7 responses from "ne...
Using nlcom after postestimation margins

Using nlcom after postestimation margins

Tuesday, March 28, 2023 Data Cleaning Data management Data Processing
Dear forum, Thanks in advance for any guidance you may give. I would like to estimate the ratio (95%CI) of two (2) predicted probabilities...
Generating tables using the eststo and esttab commands in Stata and exporting the tex. file into Latex

Generating tables using the eststo and esttab commands in Stata and exporting the tex. file into Latex

10:23 PM Data Cleaning Data management Data Processing
Hi, I am currently trying to generate a table in stata to import into Latex using the following code: esttab using OLS_Tables.tex, replace...
Callaway and Sant'Anna Diff in Diff

Callaway and Sant'Anna Diff in Diff

10:23 PM Data Cleaning Data management Data Processing
Hi: I am trying to estimate the effect of a policy using the dynamic DID model by Callaway and Sant'Anna using the CSDID package. I ha...
Difference-in-Differences (DiD) Methods with Jeff Wooldridge -- livestream workshop

Difference-in-Differences (DiD) Methods with Jeff Wooldridge -- livestream workshop

4:23 PM Data Cleaning Data management Data Processing
Hi everyone Instats presents Difference-in-Differences (DiD) Methods with Panel Data by Jeff Wooldridge, running April 4-5 (starting 11am...
Drawing the yearly production of 16 region in one graph

Drawing the yearly production of 16 region in one graph

3:23 PM Data Cleaning Data management Data Processing
Hello Stata users; I have this data: Code: * Example generated by -dataex-. To install: ssc install dataex clear input str15 year int(...
Long data formatting and Clogit model for discrete choice experiments with multiple choice questions

Long data formatting and Clogit model for discrete choice experiments with multiple choice questions

2:23 PM Data Cleaning Data management Data Processing
I have survey data from a discrete choice experiment where each survey respondent was asked to complete 8 discrete choice questions (choose ...
Exporting psmatch2 results on the matched sample: a solution with esttab

Exporting psmatch2 results on the matched sample: a solution with esttab

Monday, March 27, 2023 Data Cleaning Data management Data Processing
I am writing my thesis right now and have had many troubles trying to export the results of the user-written command psmatch2. Eststo and es...
Creating filename as columns in multiple files dta files before appending

Creating filename as columns in multiple files dta files before appending

5:23 PM Data Cleaning Data management Data Processing
Hi, I am trying to include the name of the file as a variable before appending. Please see code below, which works well. ideally the var...
converting "None"(python) to "" (Stata).

converting "None"(python) to "" (Stata).

4:23 PM Data Cleaning Data management Data Processing
Hi , manipulating a list in python I ended up with the following tuple, which I need to send to stata default frame ('47313362',...
Interpretation of a Regression Output

Interpretation of a Regression Output

2:23 PM Data Cleaning Data management Data Processing
Dear experts, I would like to kindly ask for your help in the interpretation of a regression output. Compare statistical significants and ...
Count unique appearance of values across multiple variables in wide format

Count unique appearance of values across multiple variables in wide format

Sunday, March 26, 2023 Data Cleaning Data management Data Processing
Hello! It has been a while since I have used Stata and I need a bit of help. I have a wide dataset with variables activ1-active27. Acros...
Generating IDs

Generating IDs

7:23 PM Data Cleaning Data management Data Processing
Dear all, Suppose I have the following dataset Code: clear input var1 var2 1 1 1 2 1 3 1 4 2 1 2 2 2 3 2 4 3 1 3 2 3 3 3 4 4 1 4 2 4 3...
Adjacency matrix

Adjacency matrix

6:23 PM Data Cleaning Data management Data Processing
大家好: 如何使用统计码构建中国各省的(0,1 )空间邻接矩阵
Bysort and egen code not carrying over correct data

Bysort and egen code not carrying over correct data

4:23 PM Data Cleaning Data management Data Processing
Hello, I have a long data set containing college enrollment data by term, multiple instances per student ID. If a student enrolled 10 term...
Panel Var and Fan Charts

Panel Var and Fan Charts

4:23 PM Data Cleaning Data management Data Processing
Hi all, Its bit urgent please I'm using panel var in my project, i need little help could anyone please share command to generate ...
Fix a coefficient to the value it had in previous mlogit

Fix a coefficient to the value it had in previous mlogit

1:23 PM Data Cleaning Data management Data Processing
Hi everyone, this may be a very simple problem and I am just not getting it, but here's what I am trying to do. I want to use -mlogit-...
How to change the format of numbers stored in a local macro?

How to change the format of numbers stored in a local macro?

Saturday, March 25, 2023 Data Cleaning Data management Data Processing
Dear Statalist, I am trying to format the number stored in a local macro using the string(n, s) function. Here is my code: Code: versio...
Unexpected error with -bayes:mixed-

Unexpected error with -bayes:mixed-

10:23 PM Data Cleaning Data management Data Processing
The following Code: sysuse bplong bayes: mixed bp i.when || patient: , noconstant residuals(exchangeable) aborts with the following error...
R-squared and -didregress-

R-squared and -didregress-

8:23 PM Data Cleaning Data management Data Processing
Good evening all, Is there a way to have -didregress- show a value for r-squared- as you would see if you did a difference-in-difference r...
Mixed-Effect Zero Inflated Negative Binomial model ??

Mixed-Effect Zero Inflated Negative Binomial model ??

6:23 PM Data Cleaning Data management Data Processing
Hello, I have a study where I am evaluating the relationship between the total number of health care visits and geographic access (measured...
Why does the asreg command give me values for the first observations of my sample even thought I specified a min?

Why does the asreg command give me values for the first observations of my sample even thought I specified a min?

5:23 PM Data Cleaning Data management Data Processing
Hello everyone! I am using the asreg command to calculate betas using one year of daily data, but I want the year to have at least 150 obs...
Appending excel files - Error r(601)

Appending excel files - Error r(601)

3:23 AM Data Cleaning Data management Data Processing
Hi. I am trying to append all excel files in a single folder into one big file, but the code below throws the r(601) error. I've made su...
Counts in a long dataset taking into account other variables including time

Counts in a long dataset taking into account other variables including time

12:23 AM Data Cleaning Data management Data Processing
Hello, I have a very large dataset that includes people ("personid") who could have been seen at 4 multiple sites (distinguished...
Perturb with Mlogit

Perturb with Mlogit

Friday, March 24, 2023 Data Cleaning Data management Data Processing
Hi All, I estimate a multinomial logit model with 10 independent variables. I suspect that there might be a multicollinearity issue. So, I...
Endogeneity concerns

Endogeneity concerns

10:23 PM Data Cleaning Data management Data Processing
I am working with a dataset of about a total of 28000 observations for over a period of 10 years. I ran a probit model for my baseline resul...
Control variables for intraday data.

Control variables for intraday data.

9:23 PM Data Cleaning Data management Data Processing
Hi everyone, I would like to add control variables (BookToMarket, Size...) to my data to regress Abnormal return on text sentiment. For eac...
Different colors for graph bars

Different colors for graph bars

4:23 PM Data Cleaning Data management Data Processing
Hello, I have a basic doubt. I am trying to plot a graph on GDP per capita which has 2 bars- one for OECD and another for non OECD countri...
Compute a difference rate between two variables

Compute a difference rate between two variables

1:23 AM Data Cleaning Data management Data Processing
Hello everyone, I have to use the variables lonely and ca_couple, calculate the proportions of individuals who feel lonely some of the tim...
Descriptive Statistics at Baseline

Descriptive Statistics at Baseline

12:23 AM Data Cleaning Data management Data Processing
Hi, Suppose I have two waves of a survey. I make use of a DID. The treatment is whether a particular HH_member passed away by wave 2. I...
guidance on minimum sample size for 'medsem' package

guidance on minimum sample size for 'medsem' package

Thursday, March 23, 2023 Data Cleaning Data management Data Processing
My understanding was that SEM typically requires a larger sample size, ideally over 200 observations for reliable results, but the 'meds...
Nesting foreach loops within a while loop

Nesting foreach loops within a while loop

6:23 PM Data Cleaning Data management Data Processing
I am trying to create a foreach loop within a while loop, and the issue is that the foreach loop executes completely, even if the condition ...
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Latest Articles

Categories

  • CouchDb Skills
  • Data Analysis
  • Data Cleaning
  • Data management
  • Data Processing
  • Research Methodology

Popular Articles

  • How to drop random years from panel data?
    I have a panel data set, consisting of 125 countries, 36 years. I want to run an IV regression multible times and randomly drop 5 (of the 36...
  • Saving pointer matrixes using -mata matsave-
    I am relatively new to the use of pointers in Mata and have thusfar been impressed with their utility. Specific to this query, I have been...
  • instrumenting a binary endogenous regressor
    Hello, I am trying to run a model with a binary endogenous regressor. I am still learning econometrics so I am sorry if this may be a trivi...
  • "tsegen" by group
    Hi, I would like to calculate the moving average of _b_LogSize _b_LogBM _b_MOM12 _b_cons by months of the year over the last 10 years. For...
  • Fixed Effects for a Panel at a Coarser Level
    Hello, I want to include some fixed effects in my model that I believe are difficult to include so any advice on how exactly this can be d...
  • RDD rdrobust problem
    Dear all, I am researching the effect of grade retention on exam results (which can vary from 0 to 20) and I am using a RDD to research th...
  • Growth model - No convergence
    I would like to develop a latent growth model (LGM) with Stata. The point is to illustrate estimated effects of predictors by using Stata...
  • Nvidia Organizational Structure: functional and hybrid
    Nvidia is 7th largest company in the world with a market cap of USD 1 trillion. Due to the size and scope of its operations, it is difficult...
  • Getting values from second to last loop of a -while- loop
    Hi fellow Statalisters, I am using a -while- loop for a particular application, where I need to retrieve a particular value from the secon...
  • Using weights with xtheckman | xtheckman's fixed effects equivalent
    Hi, I am using six waves of the PSID to estimate several determinants (particularly wealth) of the wage equation and the selection equatio...

Recomended Articles

Powered by Blogger.

About Me

Mtenga Baltazar
View my complete profile

Blog Archive

  • ►  2024 (6)
    • ►  February (6)
  • ▼  2023 (877)
    • ►  November (1)
    • ►  October (9)
    • ►  September (14)
    • ►  July (9)
    • ►  June (15)
    • ►  May (133)
    • ►  April (174)
    • ▼  March (176)
      • Separating a character and a number part of a vari...
      • specifying stored coefficients in test
      • How to use If condition to restrict t test on only...
      • Make a list table in Stata
      • OLS vs. Ordered Logistic Regression
      • How to realize data deformation operation
      • Clarifying interpretation of marginal effects afte...
      • Performing Regressions on Panel and Time Series Data
      • Automatically run a do file when opened
      • Model fitness
      • Entity fixed effects model - repeated time values ...
      • Plot survival curve of the interaction in Stratifi...
      • estout test results
      • Loop to fill missing values
      • test "dose-response" with categorical variable
      • Using nlcom after postestimation margins
      • Generating tables using the eststo and esttab comm...
      • Callaway and Sant'Anna Diff in Diff
      • Difference-in-Differences (DiD) Methods with Jeff ...
      • Drawing the yearly production of 16 region in one ...
      • Long data formatting and Clogit model for discrete...
      • Exporting psmatch2 results on the matched sample: ...
      • Creating filename as columns in multiple files dta...
      • converting "None"(python) to "" (Stata).
      • Interpretation of a Regression Output
      • Count unique appearance of values across multiple ...
      • Generating IDs
      • Adjacency matrix
      • Bysort and egen code not carrying over correct data
      • Panel Var and Fan Charts
      • Fix a coefficient to the value it had in previous ...
      • How to change the format of numbers stored in a lo...
      • Unexpected error with -bayes:mixed-
      • R-squared and -didregress-
      • Mixed-Effect Zero Inflated Negative Binomial model ??
      • Why does the asreg command give me values for the ...
      • Appending excel files - Error r(601)
      • Counts in a long dataset taking into account other...
      • Perturb with Mlogit
      • Endogeneity concerns
      • Control variables for intraday data.
      • Different colors for graph bars
      • Compute a difference rate between two variables
      • Descriptive Statistics at Baseline
      • guidance on minimum sample size for 'medsem' package
      • Nesting foreach loops within a while loop
      • Reshape Problem
      • Need help creating tex table by two variables
      • Replace value in one row based on another variables
      • When "append" is more suitable than "merge" for da...
      • How to create a progressive variable (CEO tenure)
      • MI imputed chained interaction terms
      • Question: How do I test the difference between two...
      • Import csv file
      • Mi imputation chained
      • Converted datasets to weekly
      • Merge Dataset
      • Generate a variable by year
      • how to report the value of "Stock-Yogo weak ID tes...
      • Deleting mismatched observations for each panel id
      • Cohen's D - getting two different values in Excel ...
      • Renaming multiple variables in one unique format?
      • Estimation for a combination of countries
      • Total value per year by number of variables withou...
      • Replacing missing values with already existing match
      • Adding random intercepts in CMP slows down estimat...
      • Comparing observation value of VAR with values of ...
      • Measuring HHI for datasets with lots of observations
      • Maximum number of values for a categorical variable.
      • Jeff Wooldridge teaching Causal Inference and DiD ...
      • Grouping by days and time
      • instrument variable when using bins of endogenous ...
      • Problems with collapse command
      • Multiple omitted categories when interacting?
      • Creating partial maps
      • Trying to delete date duplicates for each panelID
      • Working With A Pesky Text File
      • Using Area Plots - Specify area to shade and calcu...
      • Problem estimating chisquare with tabout
      • Heteroscedasticity for panel data?
      • create variables for number of hh member by catego...
      • doubt regarding standard deviation using egen func...
      • Too many predictors when using Time fixed effects ...
      • Tagging neighborhood houses within timeframe
      • How to merge two datasets (string and integer valu...
      • Missing values when I run regression analysis
      • Vertical Labels
      • Regression
      • Hiding the empty categories in catplot
      • Shapley value decomposition (regression-based deco...
      • Vertical axis label not showing after converting t...
      • Change values without changing labels
      • Condense household observations
      • Group-year FEs do not absorb the group-level treat...
      • Creating multiple new variable columns from an exi...
      • using bsample, cluster in conjunction with bootstr...
      • Plotting a line graph of frequency of flipping a c...
      • Granger causality
      • K-S test for Pareto distributed data.
      • Loop to append files using two macros
    • ►  February (157)
    • ►  January (189)
  • ►  2022 (2201)
    • ►  December (181)
    • ►  November (180)
    • ►  October (198)
    • ►  September (182)
    • ►  August (182)
    • ►  July (194)
    • ►  June (174)
    • ►  May (167)
    • ►  April (181)
    • ►  March (186)
    • ►  February (170)
    • ►  January (206)
  • ►  2021 (7379)
    • ►  December (327)
    • ►  November (645)
    • ►  October (646)
    • ►  September (639)
    • ►  August (557)
    • ►  July (649)
    • ►  June (656)
    • ►  May (697)
    • ►  April (683)
    • ►  March (697)
    • ►  February (518)
    • ►  January (665)
  • ►  2020 (7956)
    • ►  December (653)
    • ►  November (659)
    • ►  October (598)
    • ►  September (654)
    • ►  August (660)
    • ►  July (682)
    • ►  June (683)
    • ►  May (708)
    • ►  April (692)
    • ►  March (698)
    • ►  February (638)
    • ►  January (631)
  • ►  2019 (9458)
    • ►  December (601)
    • ►  November (643)
    • ►  October (650)
    • ►  September (637)
    • ►  August (645)
    • ►  July (681)
    • ►  June (654)
    • ►  May (1034)
    • ►  April (1079)
    • ►  March (1122)
    • ►  February (876)
    • ►  January (836)
  • ►  2018 (931)
    • ►  December (692)
    • ►  November (239)

© BJ Data Tech Solution | Theme by Rifki.id | Premium Blogger Templates | PBT | Powered by Blogger |-| About | Privacy Policy | Sitemap | Contact | Disclaimer