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
foreach loop and local

foreach loop and local

Monday, August 31, 2020 Data Cleaning Data management Data Processing
Dear all‘ The code below is too long for me.I know it could be replaced by a foreach loop,but I don't know how to write the loop。Could ...
Subhazard estimates from stcrreg with multiple (>2) competing hazards.

Subhazard estimates from stcrreg with multiple (>2) competing hazards.

6:25 PM Data Cleaning Data management Data Processing
Hi All, I am trying to estimate a competing hazard model ala Fine & Grey (1999). I have three different transition states, all of wh...
Removing duplicate permutations

Removing duplicate permutations

5:25 PM Data Cleaning Data management Data Processing
Hi, I am trying to remove "duplicate permutations". For instance: ID source target 1 A B 2 A C 3 B C 4 B A 5 C B Here, ...
How to move State Application

How to move State Application

5:25 PM Data Cleaning Data management Data Processing
I have Stata 13 MP on my current laptop (Macbook Air)). I have just bought a new laptop (MacBook Air) and want to transfer Stata to my new l...
Avoiding merge m:m problem...

Avoiding merge m:m problem...

5:25 PM Data Cleaning Data management Data Processing
Dear Statalisters: I have the following file #1: clear input byte(firmid ownerid) float own byte level 1 4 10 1 1 3 53.8 1 2 5 100 2...
How to set width Stata MP 16.1 for Unix

How to set width Stata MP 16.1 for Unix

5:25 PM Data Cleaning Data management Data Processing
Hello, I am using Stata 16.1 (64-bit, total usable memory 1510.3 GB), and trying to change an extremely large data set to "long"...
Panel data with messy time, very large N

Panel data with messy time, very large N

5:25 PM Data Cleaning Data management Data Processing
Dear users, My data consists of N=1033 and T=1-15, with a total number of observation of 2300. Time is very messy in the sense that the to...
Reshaping from "strange" to long format

Reshaping from "strange" to long format

2:25 PM Data Cleaning Data management Data Processing
Dear StataListers, I use Stata 14.2. Here is a simplified example of my data (three cities, three years, three variables (co, gas,waste))...
Regressing Firm-specific variables against Macroeconomic variables

Regressing Firm-specific variables against Macroeconomic variables

1:25 PM Data Cleaning Data management Data Processing
Hello, I am using panel data with the following observations: The firm-specific dependent variables (3 variables) have 41944 observations...
Blinder-Oaxaca Decomposition with group specific variables

Blinder-Oaxaca Decomposition with group specific variables

1:25 PM Data Cleaning Data management Data Processing
I would like to run a Blinder-Oaxaca Decomposition on black-white differences. I have panel data where all variables are race-specific group...
how to split datae and time

how to split datae and time

1:25 PM Data Cleaning Data management Data Processing
dateofvisit 1/25/2020 1:02 1/12/2020 11:55 variable type double. how can i split date and time in to two variable.
Converting DMS coordinates to decimal in Stata

Converting DMS coordinates to decimal in Stata

12:25 PM Data Cleaning Data management Data Processing
Hi! Can someone please tell me if it's possible to convert DMS coordinates to decimal in Stata? I am using Stata 14.2. Thank you!
stcox: Continuous Time Varying Covariates

stcox: Continuous Time Varying Covariates

11:25 AM Data Cleaning Data management Data Processing
When evaluating the effect of a continuous covariate that changes from one wave to the next, (in this instance, the relationship between a c...
Two ID variables for each row

Two ID variables for each row

11:25 AM Data Cleaning Data management Data Processing
Hey all, In advance would like to say sorry for experienced users for asking this (just cannot find the answer). I have a dataset which is ...
.dta files do not open from project manager

.dta files do not open from project manager

10:25 AM Data Cleaning Data management Data Processing
Dear all, I cannot open .dta files by double-clicking on them in the project manager window. To be precise, I cannot do that in my Stata ...
Random match between two large surveys with weights

Random match between two large surveys with weights

8:25 AM Data Cleaning Data management Data Processing
I have two different large-ish surveys of the US adult population. The two in principle are measuring similar labor market and demographic c...
fractional probit regression with interaction term. Margins command dyes() does not work for the interaction term.

fractional probit regression with interaction term. Margins command dyes() does not work for the interaction term.

8:25 AM Data Cleaning Data management Data Processing
Hello, I used a fractional probit regression and added an interaction term. The latter has a significant positive effect. When I try estim...
How to properly read a longitudinal dataset in Stata

How to properly read a longitudinal dataset in Stata

6:25 AM Data Cleaning Data management Data Processing
Dear Statalist I am interested in analyzing a longitudinal dataset with several observations per individual. However, each individual may s...
Why weak association and wide confidence intervals?

Why weak association and wide confidence intervals?

5:25 AM Data Cleaning Data management Data Processing
Dear All, I am interested to examine the effect of IPV (Intimate Partner Violence) on my proxy outcome measurement for skilled maternal hea...
How to deal with I(1) and I(0) variables in econometric analysis

How to deal with I(1) and I(0) variables in econometric analysis

4:25 AM Data Cleaning Data management Data Processing
Dear Users, I am working on a balanced panel with 50 countries observed over 19 years. My main dependent variable is I(1) while my main in...
How to tell Stata not to ignore missing values in bysort: egen mean command

How to tell Stata not to ignore missing values in bysort: egen mean command

4:25 AM Data Cleaning Data management Data Processing
Dear Stata-Listers, I am posting a question for the first time, so I hope I'm doing it correctly. I have a panel data set and I want...
I'm converting a date but the new date variable is all missing values

I'm converting a date but the new date variable is all missing values

4:25 AM Data Cleaning Data management Data Processing
I'm using Stata 14.2. i have a dataset with dates in a string variable e.g. 01-Apr-2018. I have used the below code to convert them to f...
Difference between areg and xtset for firmxyear fixed effect

Difference between areg and xtset for firmxyear fixed effect

3:25 AM Data Cleaning Data management Data Processing
Dear all, I would like to find the effect of bank liquidity risk (my independent variable) on loan pricing (y). Professor suggested me to...
Estimating Modified Jones Model ,No final values generated for Jones model

Estimating Modified Jones Model ,No final values generated for Jones model

2:25 AM Data Cleaning Data management Data Processing
Hi, I am trying to estimate the discretionary accruals through the modified Jones model in Stata. This is the code I am running for, to es...
Dashed line graph for parts of the line

Dashed line graph for parts of the line

1:25 AM Data Cleaning Data management Data Processing
Hello, I would like to use two line styles for the same graph to denote value above and below a certain threshold: twoway (tsline var if v...
Fixed-effects on sibling data: which N to report?

Fixed-effects on sibling data: which N to report?

1:25 AM Data Cleaning Data management Data Processing
Dear colleagues, good day! I would be very grateful if you could help me with an issue. Setup: I have data on siblings, 2-3 children per f...
Issues with Creating a New Variable for Observations with the Same ID

Issues with Creating a New Variable for Observations with the Same ID

Sunday, August 30, 2020 Data Cleaning Data management Data Processing
Hi, I'm putting together an NBA Dataset for each season that includes data on the outcome of each game of the season. Each game has 2...
help

help

7:25 PM Data Cleaning Data management Data Processing
Hi, everyone, I would greatly appreciate the help that you can give me, it is the following, I have a panel data structure, in long forma...
farvalue command showing error messages

farvalue command showing error messages

6:25 PM Data Cleaning Data management Data Processing
Dear Professors, hope everyone is blessed with good health. I use the following loop command for a number of regressions, the command is s...
Rename using regex?

Rename using regex?

6:25 PM Data Cleaning Data management Data Processing
Is it possible to rename a variable using regex? Let's say I have a variable: g wth_t1_xxx = . Is it possible to rename this vari...
Group by xtabond2

Group by xtabond2

2:25 PM Data Cleaning Data management Data Processing
What's wrong with this command ? by COUNTR, sort xtabond2 ROA L.ROA GRTH MIX EFFIC SIZE SOLV RISK LIQUID LEVR INFL ECOGRTH, gmm(L.ROA G...
Scatter plot with bar graph

Scatter plot with bar graph

9:25 AM Data Cleaning Data management Data Processing
Hi, I have an issue with plotting a scatter plot combine with bar graph. x-axis is exchange rate (usd) y-axis is stock market return (m...
Survival analysis - creating "failure" variable

Survival analysis - creating "failure" variable

7:25 AM Data Cleaning Data management Data Processing
Dear all, I'm hoping for some advice re. creating a 'failure" variable for a survival (or time till event) analysis I'm w...
Calculating advertising returns after estimation

Calculating advertising returns after estimation

7:25 AM Data Cleaning Data management Data Processing
Hello everyone, the following question may sound a bit silly but I have been a bit puzzled about this and wanted to share it with you - also...
Export unit root test results to excel?

Export unit root test results to excel?

6:25 AM Data Cleaning Data management Data Processing
Hello, We have estout/esttab, outreg2 commands to exports regression output. Is it possible to export unit root test (Harris–Tzavalis test...
Can STATA shows the p-value for each variable used in the discriminant functions?

Can STATA shows the p-value for each variable used in the discriminant functions?

5:25 AM Data Cleaning Data management Data Processing
I get my results and I can interpret the coefficient of each independent variable in each function. However, can we also get a Prob>F c...
Recode Var

Recode Var

4:25 AM Data Cleaning Data management Data Processing
Hello How can we find duplicates in a database? Which command I can use to change the observations of a variable. for example Occupation var...
Triple conditions such as relimp==relat==1 do not do what I expect them to do. Why? Where is this behaviour explained?

Triple conditions such as relimp==relat==1 do not do what I expect them to do. Why? Where is this behaviour explained?

4:25 AM Data Cleaning Data management Data Processing
Working on a problem posed in this thread https://www.statalist.org/forums/for...other-variable I discovered to my shock that triple condi...
svydescribe for mi set data

svydescribe for mi set data

2:25 AM Data Cleaning Data management Data Processing
I have been hunting around and trying everything I can think of but cannot figure out how to get the information I need. I have some mi svy ...
Panel data preparation and xtreg function

Panel data preparation and xtreg function

12:25 AM Data Cleaning Data management Data Processing
Hi I am new to econometrics and stata, and appreciate some help for the following qns related to my dissertation. I am investigating prope...
the conclusion for the correlation of variables

the conclusion for the correlation of variables

12:25 AM Data Cleaning Data management Data Processing
Hi I am doing with panel data ( N=760. T=8) / When I check the correlation of variables the result as below Code: . cor lgdp lpgdp llpit...
How to fix heteroskedasticity and autocorrelation on OLS

How to fix heteroskedasticity and autocorrelation on OLS

Saturday, August 29, 2020 Data Cleaning Data management Data Processing
Hi I did OLS test for my panel data ( n= 760 and t=8) and checked heteroskedasticity and autocorrelation as below ( the result show that th...
AR(1) and AR(2) test in dynamic panel GMM estimation?

AR(1) and AR(2) test in dynamic panel GMM estimation?

11:25 PM Data Cleaning Data management Data Processing
Hi, I am using diff-GMM and sys-GMM for an unbalanced panel with time (T=5) and country (N=84). I am trying to get Maintained Statistical ...
Correcting the problem of Multicollinearity in categorical variables

Correcting the problem of Multicollinearity in categorical variables

8:25 PM Data Cleaning Data management Data Processing
Dear All, I have among my explanatory variables, a number of categorical variables and after testing for multicollinearity, I had some of ...
Finding duplicate variables

Finding duplicate variables

8:25 PM Data Cleaning Data management Data Processing
Dear Statalisters, I am writing you because I would like to find out if I have duplicate variables in my database. I have been looking in...
Coding a new variable: where a category selects 'high' responses for one variable only if there are low responses for another variable

Coding a new variable: where a category selects 'high' responses for one variable only if there are low responses for another variable

7:25 PM Data Cleaning Data management Data Processing
Hi Statalist. I want to code 'impat' with three categories (1 = both low, 2 = one high, 3 = both high). These three levels reflect...
Count and record

Count and record

7:25 PM Data Cleaning Data management Data Processing
Hi all, My data has four variables: acty, deady, nation, and id. "acty" is the year when company is listed in stock market. ...
Creating a variable equal to 1 if a name (i.e., string) at time t-4 appears at time t

Creating a variable equal to 1 if a name (i.e., string) at time t-4 appears at time t

6:25 PM Data Cleaning Data management Data Processing
I have Brazilian electoral data with the names of candidates who ran for mayor from 2000 to 2016. The dataset contains information about the...
Threshold for small/large T in quarterly panel data

Threshold for small/large T in quarterly panel data

5:25 PM Data Cleaning Data management Data Processing
Dear all, Sorry for basic question. I am estimating dynamic panel data model for 40 countries & 20-30 years at quarterly frequency. I ...
Creating variables for husband and wife using data for respondent and their partner

Creating variables for husband and wife using data for respondent and their partner

5:25 PM Data Cleaning Data management Data Processing
Dear Statalist. I would like help to generate a variable, say level of education "educ" for the male partner and female partner ...
Choose Which Fixed Effect Has Coefficient 0

Choose Which Fixed Effect Has Coefficient 0

3:25 PM Data Cleaning Data management Data Processing
Hi Statalisters, I'm running a fixed-effects regression with fixed-effects by region (e.g. Americas, Africa, Oceania) using standard O...
help exporting lstat results after logistic regression into word/excel documents

help exporting lstat results after logistic regression into word/excel documents

12:25 PM Data Cleaning Data management Data Processing
hi all, does anyone know of a way to export the results of lstat into a word document or a table/excel? I have tried using outreg2 and asd...
Heckman Procedure for Gender Wage Gap (Oaxaca Decomposition)

Heckman Procedure for Gender Wage Gap (Oaxaca Decomposition)

12:25 PM Data Cleaning Data management Data Processing
I am trying to decompose the gender wage gap into explained and unexplained factors using the Blinder Oaxaca decomposition technique using l...
ppmlhdfe in panels

ppmlhdfe in panels

8:25 AM Data Cleaning Data management Data Processing
Dear everyone, I post this because I am confused with bilateral fixed effect estimates: I estimate the effects of restrictions in servic...
vector of control variables for panel data

vector of control variables for panel data

6:25 AM Data Cleaning Data management Data Processing
i want to know the command to get vector of control variable. I want to get vector of country level control variables - democratic accountab...
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)
    • ►  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)
      • foreach loop and local
      • Subhazard estimates from stcrreg with multiple (>2...
      • Removing duplicate permutations
      • How to move State Application
      • Avoiding merge m:m problem...
      • How to set width Stata MP 16.1 for Unix
      • Panel data with messy time, very large N
      • Reshaping from "strange" to long format
      • Regressing Firm-specific variables against Macroec...
      • Blinder-Oaxaca Decomposition with group specific v...
      • how to split datae and time
      • Converting DMS coordinates to decimal in Stata
      • stcox: Continuous Time Varying Covariates
      • Two ID variables for each row
      • .dta files do not open from project manager
      • Random match between two large surveys with weights
      • fractional probit regression with interaction term...
      • How to properly read a longitudinal dataset in Stata
      • Why weak association and wide confidence intervals?
      • How to deal with I(1) and I(0) variables in econom...
      • How to tell Stata not to ignore missing values in ...
      • I'm converting a date but the new date variable is...
      • Difference between areg and xtset for firmxyear fi...
      • Estimating Modified Jones Model ,No final values g...
      • Dashed line graph for parts of the line
      • Fixed-effects on sibling data: which N to report?
      • Issues with Creating a New Variable for Observatio...
      • help
      • farvalue command showing error messages
      • Rename using regex?
      • Group by xtabond2
      • Scatter plot with bar graph
      • Survival analysis - creating "failure" variable
      • Calculating advertising returns after estimation
      • Export unit root test results to excel?
      • Can STATA shows the p-value for each variable used...
      • Recode Var
      • Triple conditions such as relimp==relat==1 do not ...
      • svydescribe for mi set data
      • Panel data preparation and xtreg function
      • the conclusion for the correlation of variables
      • How to fix heteroskedasticity and autocorrelation ...
      • AR(1) and AR(2) test in dynamic panel GMM estimation?
      • Correcting the problem of Multicollinearity in cat...
      • Finding duplicate variables
      • Coding a new variable: where a category selects 'h...
      • Count and record
      • Creating a variable equal to 1 if a name (i.e., st...
      • Threshold for small/large T in quarterly panel data
      • Creating variables for husband and wife using data...
      • Choose Which Fixed Effect Has Coefficient 0
      • help exporting lstat results after logistic regres...
      • Heckman Procedure for Gender Wage Gap (Oaxaca Deco...
      • ppmlhdfe in panels
      • vector of control variables for panel data
      • How to place significant stars infront of standard...
      • Users of SEM: Updated command: swain
      • Is this the proper use of theTwo-Stage Least Squar...
      • capture the trend in variable construction
      • line graph not showing all data
      • Empirical Joe Copula -
      • Creating a year variable by counting the amount of...
      • putexcel and multiple loops
      • table issue again
      • Reshape long then wide: use variable labels as new...
      • Adding too many variables to a regression model
      • Conditioning on wide variables
      • too many variables, tabulate
      • How to interpret PCA outcome variables?
      • forest plots for sensitivity specificity
      • Interaction effect in probit/logit significant?
      • Endogeneity check in Panel data (FE/RE)
      • Compare permute to ttest
      • Which test is better to use with categorical varia...
      • Out-of-sample R^2
      • How to turn off scientific notation for estat ic/e...
      • Conditional probability
      • Find ratio of "." in column
      • Double exponential smoothing issues with panel dat...
      • Query about ebalance command
      • Question about chi-square test
      • Lo-Mackinlay variance ratio test
      • using not allowed stata imputation hotdeckvar
      • Travel cost method combining RP and SP
      • How to adjust restricted cubic spline curve for cu...
      • Determine the appropriate lag of independent varia...
      • How to make of use loop in this case
      • R-squared in Panel Data (FE/RE models)
      • create dummy variables for children education
      • creating new variable matching a definition
      • How to cluster the standard error?
      • foreach copula command* - Syntax error
      • oaxaca, relax and interpretation
      • Why weak association and wide confidence intervals?
      • help exporting regression/margins results using ou...
      • Including only time effects in model - how to test...
      • Significance stars into the coefplot
      • How to simplify conditional statements
      • How to export file after regression?
      • How to choose between Pooled OLS/Random Effects?
    • ►  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