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
Align rows based on common group

Align rows based on common group

Tuesday, March 31, 2020 Data Cleaning Data management Data Processing
Dear Statalist I have a starting dataset that looks like the following Code: * Example generated by -dataex-. To install: ssc install d...
inquire data problems: gen week

inquire data problems: gen week

11:12 PM Data Cleaning Data management Data Processing
I have a large data set which contains from Oct 2002 to Feb 2007. The procedure is: From Oct 19, 2005 to Oct 31, 2005 is week 0. And after ...
Exporter_Time_FE, Importer_Time_FE and Pair_FE

Exporter_Time_FE, Importer_Time_FE and Pair_FE

9:12 PM Data Cleaning Data management Data Processing
Dear, Prof.Joao, Prof. Tom, Dr. Sergio Correia & Others Stata Users, I am an economics graduate student, using gravity model in my dis...
Replacing column values with values of another variable by household id

Replacing column values with values of another variable by household id

7:12 PM Data Cleaning Data management Data Processing
Hi everyone, I have 5 variables in my dataset namely, household id, wealth rank, and household ids of three friends for the household bein...
Calculating growth in unbalanced panel data

Calculating growth in unbalanced panel data

6:42 PM Data Cleaning Data management Data Processing
Can someone help me with calculating the growth percentages of a variable in panel data where I don't have the same number of years per ...
Logit Marginal Effects at means with interaction terms

Logit Marginal Effects at means with interaction terms

6:42 PM Data Cleaning Data management Data Processing
Hi all, I am working on my MSc. and I have data for 201 participants who each made 457 choices (total choices ~ 91,000 choices). I am usin...
Amazon Porter’s Five Forces Analysis

Amazon Porter’s Five Forces Analysis

6:01 PM Research Methodology
Porter’s Five Forces analytical framework developed by Michael Porter (1979)[1] represents five individual forces that shape the overall ext...
Graph question for growth model "xtmixed"

Graph question for growth model "xtmixed"

5:42 PM Data Cleaning Data management Data Processing
Hi, I'm having a problem in making a line graph for my growth model. The outcome variable is depression level: dep_ (categorical) The ...
Seemingly Unrelated Regression with endogeneity and sample selection

Seemingly Unrelated Regression with endogeneity and sample selection

10:12 AM Data Cleaning Data management Data Processing
Hello everyone! I wish to see the impact of income from an activity on various types of household expenditure. Thus, i wish to use seemingl...
Reassigning records with missing values to existing categories considering the existing distribution within the population

Reassigning records with missing values to existing categories considering the existing distribution within the population

9:42 AM Data Cleaning Data management Data Processing
Dear Statalist, I am struggling to reassign records with a missing value on the categorical variable that assigns each record to a provinc...
Removing duplicates across several variables in panel data and keep the dup with non-missing values

Removing duplicates across several variables in panel data and keep the dup with non-missing values

9:42 AM Data Cleaning Data management Data Processing
Hi As the title suggests, I am trying to remove duplicate values across several variables (c30) in a panel data set (sorted by firm id and...
xtreg

xtreg

9:42 AM Data Cleaning Data management Data Processing
hello, I have a dataset on which I want to perform an OLS. The dataset looks like this: dependent variable: percentage change of carbon e...
Problem with saving graphs with wildcard in names

Problem with saving graphs with wildcard in names

9:12 AM Data Cleaning Data management Data Processing
Hi there! I'm having some difficulties saving and combining graphs that I have created using a foreach loop and the mrgraph command. T...
Writing GMM moment conditions for IPW

Writing GMM moment conditions for IPW

8:42 AM Data Cleaning Data management Data Processing
Hi all, I am trying to estimate the ATE of an IPW model by writing a GMM code. I am having trouble writing the moment conditions. gmm (e...
Stata evalautes what comes after an if statement that it's not true

Stata evalautes what comes after an if statement that it's not true

8:42 AM Data Cleaning Data management Data Processing
Hi all, I have a do-file (Testing ceqef.do, attached) which I'm using to test an ado-file (ceqef.ado, attached). For the sake of simpl...
Never allow Stata to replace dataset

Never allow Stata to replace dataset

8:12 AM Data Cleaning Data management Data Processing
I have ingrained in my muscle memory to press "ctrl+s" every time before I run a .do file in case Stata crashes. Once in a while I...
Merging data

Merging data

7:12 AM Data Cleaning Data management Data Processing
Hello, I am trying to merge variables from the original Demographic and Health surveys (DHS) with the IPUMS-DHS data. The unique identifie...
Blinder-Oaxaca decomposition for probit model

Blinder-Oaxaca decomposition for probit model

6:42 AM Data Cleaning Data management Data Processing
Hello, I have assessed online materials available for the decomposition of both linear and non-linear models but am not quite understandin...
Replacing missing values in a panel data

Replacing missing values in a panel data

6:12 AM Data Cleaning Data management Data Processing
Dear All, hope you are all safe and in good health. Kindly I have balanced panel data with missing values for some years, I am intereste...
Spell-type data for Cox regression

Spell-type data for Cox regression

6:12 AM Data Cleaning Data management Data Processing
Hello, dear users of the Stata program. Now I'm conducting a reserach on duration of unemployment. I want to use Cox regression to deter...
drop all zero variables

drop all zero variables

6:12 AM Data Cleaning Data management Data Processing
Hello, I have created dummy variables for industries, resulting in 35 dummies. However, I deleteted some observations, resulting in a coup...
Predictions with and without BLUP after melogit

Predictions with and without BLUP after melogit

5:42 AM Data Cleaning Data management Data Processing
I am attempting to calculate predictions after a melogit model with and without best linear unbiased predictors. In SAS I would do this as f...
Three-level mix-effect model for ordered logistic regression in Stata- meologit regression

Three-level mix-effect model for ordered logistic regression in Stata- meologit regression

4:12 AM Data Cleaning Data management Data Processing
Dear all, I am currently working with a cluster data collected from 3229 respondents in 40 counties, half of which are policy pilot sites....
Correlation Pb

Correlation Pb

3:42 AM Data Cleaning Data management Data Processing
Hello, I am pretty new to Stata and econometrics in general so please excuse me if my question seems stupid or is redundant. I really can...
Composite Index

Composite Index

2:12 AM Data Cleaning Data management Data Processing
Hi! I am trying to generate a composite index for 2 numerical variables. what is the best way to do it? This question may sound stupid but I...
Sample size & power for quantile regression

Sample size & power for quantile regression

2:12 AM Data Cleaning Data management Data Processing
Hello, For a clinical trial using quantile regression to test the null hypothesis, could anyone advise on the correct method to use to det...
DID (Differences-in-difference) regression

DID (Differences-in-difference) regression

1:12 AM Data Cleaning Data management Data Processing
Dear All, I’m having a problem with DID regression equation. I am using Stata 12. when I ran the regression xtreg lnDSL DID ADD EDD SRD ...
Help with merging two datasets

Help with merging two datasets

Monday, March 30, 2020 Data Cleaning Data management Data Processing
Dear all, I am using Stata 16, on mac. I have attached the two excel datasets that I am working with for my project. Both have a variable ...
replace with the last row in each goup

replace with the last row in each goup

6:42 PM Data Cleaning Data management Data Processing
Hi STATALIST, Could you please help me to replace meacstdivol_1 with last row within each study_1? Code: study_1 meanctdivol_...
Problem with variables names inside loops

Problem with variables names inside loops

5:42 PM Data Cleaning Data management Data Processing
Hi all, I have a set of variables named "ratio_##########_co_###" (where # are numbers). My problem is when applying loops as:...
Amazon Ansoff Matrix

Amazon Ansoff Matrix

5:31 PM Research Methodology
Amazon Ansoff Matrix is a marketing planning model that helps the e-commerce and cloud computing company to determine its product and market...
Fine and Gray calculate individual risks

Fine and Gray calculate individual risks

5:12 AM Data Cleaning Data management Data Processing
Dear all, I would like to calculate the 10-year risk of stroke for each individual in my dataset, given a set of baseline covariates. I a...
Dummy variables in first difference regression

Dummy variables in first difference regression

5:12 AM Data Cleaning Data management Data Processing
Hi guys, I have a potentially very stupid question to ask, but for the life of me I can not figure this out. I am estimating cartel dama...
line graphic of series from 1st occurrence Covid-19

line graphic of series from 1st occurrence Covid-19

5:12 AM Data Cleaning Data management Data Processing
Hello! I am using the data set provided in this study, "Oxford COVID-19 govt response tracker' here to graph the different measur...
Quick question: winsor right only & interaction

Quick question: winsor right only & interaction

3:42 AM Data Cleaning Data management Data Processing
Dear members I have 2 very quick questions. First: I need to winsorize a variable further ONLY on the right side. I think this is done b...
similar observations within one variable

similar observations within one variable

3:42 AM Data Cleaning Data management Data Processing
Hi, I would like to spot the observations that are very much alike within one string variable. Let's say for instance that I have a ...
chi2 test with probability weights

chi2 test with probability weights

3:12 AM Data Cleaning Data management Data Processing
Dears I would lke to run a chi2 test but using pw rather than fw. If i use fw stata of course will not account for the proportion of my r...
If statement within foreach

If statement within foreach

3:12 AM Data Cleaning Data management Data Processing
Hey! So I would like to run a regression if income is within the range of (0-10727.88). Code: local vars "spending inp out...
Panel data format

Panel data format

3:12 AM Data Cleaning Data management Data Processing
Hi I would like to transform my panel data so that the years are grouped from 1989 to 2016, consecutively, with each of my country observat...
Principle Component Analysis: using weights and comparison of PCA between countries

Principle Component Analysis: using weights and comparison of PCA between countries

3:12 AM Data Cleaning Data management Data Processing
Hello Statalist Forum Users, We wish to summarize several dichotomous variables of individual level data into an index using Principle Com...
Generating variable that contains (partly) the value of another variable

Generating variable that contains (partly) the value of another variable

3:12 AM Data Cleaning Data management Data Processing
Hi everyone, I am currently working with M&A-data and I came across a challenge. I have constructed variables that show the years (2 bef...
Instrumental variables for multilevel data.

Instrumental variables for multilevel data.

3:12 AM Data Cleaning Data management Data Processing
Good morning, I am writing to ask you a question about the use of instrumental variables if my data has a hierarchical structure. Specific...
nlcom: Maximum number of iterations exceeded

nlcom: Maximum number of iterations exceeded

2:12 AM Data Cleaning Data management Data Processing
Hello everyone, I used nlcom to estimate marginal effects after craggit and I keep getting this error. * Maximum number of iterations ex...
combine columns and rows into one row

combine columns and rows into one row

1:12 AM Data Cleaning Data management Data Processing
Hello Users, Please help with data transformation. The current data format: sub-var1 sub-var2 sub-var3 var1 2 5 7 var2 9 10 6 var3 3 ...
Standard errors for each replication(iteration) in bootstrap

Standard errors for each replication(iteration) in bootstrap

1:12 AM Data Cleaning Data management Data Processing
Hello, I am trying to figure out if there is a way of saving all the individual standard errors one may obtain from each replication that o...
Independent t-test for differences other than 0

Independent t-test for differences other than 0

12:12 AM Data Cleaning Data management Data Processing
Dear Stata Experts, I would like to run the independent t-test for the following dataset and want to test the null hypothesis for a differ...
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)
    • ►  July (682)
    • ►  June (683)
    • ►  May (708)
    • ►  April (692)
    • ▼  March (698)
      • Align rows based on common group
      • inquire data problems: gen week
      • Exporter_Time_FE, Importer_Time_FE and Pair_FE
      • Replacing column values with values of another var...
      • Calculating growth in unbalanced panel data
      • Logit Marginal Effects at means with interaction t...
      • Amazon Porter’s Five Forces Analysis
      • Graph question for growth model "xtmixed"
      • Seemingly Unrelated Regression with endogeneity an...
      • Reassigning records with missing values to existin...
      • Removing duplicates across several variables in pa...
      • xtreg
      • Problem with saving graphs with wildcard in names
      • Writing GMM moment conditions for IPW
      • Stata evalautes what comes after an if statement t...
      • Never allow Stata to replace dataset
      • Merging data
      • Blinder-Oaxaca decomposition for probit model
      • Replacing missing values in a panel data
      • Spell-type data for Cox regression
      • drop all zero variables
      • Predictions with and without BLUP after melogit
      • Three-level mix-effect model for ordered logistic ...
      • Correlation Pb
      • Composite Index
      • Sample size & power for quantile regression
      • DID (Differences-in-difference) regression
      • Help with merging two datasets
      • replace with the last row in each goup
      • Problem with variables names inside loops
      • Amazon Ansoff Matrix
      • Fine and Gray calculate individual risks
      • Dummy variables in first difference regression
      • line graphic of series from 1st occurrence Covid-19
      • Quick question: winsor right only & interaction
      • similar observations within one variable
      • chi2 test with probability weights
      • If statement within foreach
      • Panel data format
      • Principle Component Analysis: using weights and co...
      • Generating variable that contains (partly) the val...
      • Instrumental variables for multilevel data.
      • nlcom: Maximum number of iterations exceeded
      • combine columns and rows into one row
      • Standard errors for each replication(iteration) in...
      • Independent t-test for differences other than 0
      • Local Projections,
      • Generating Single Change Variable In Panel Data
      • Amazon Segmentation, Targeting and Positioning: Wi...
      • repeated time values within panel stata
      • How to combine permutation and loop command
      • Problem generating a new variable because of missi...
      • Loop command
      • Correlations between consecutive observations
      • ICC and VPC using mepoisson command
      • VECM with GARCH errors
      • dta files gets extremely large after appending
      • Margin plots after xtreg not working
      • stata programming combining 2 variables
      • Count distinct values of variable 'Year' for each ...
      • r603 using eventstudy command
      • how to represent estimates for covariates using Mata
      • Chi square goodness of fit
      • Please can someone help
      • Panel table, initial value as regressor
      • Overlay two lowess-functions?
      • Fixed effects probit and logit models with margina...
      • Using weights with xtheckman | xtheckman's fixed e...
      • Export output of levelsof
      • Shaded bar between values of X axis of a line graph
      • Creating dummy variables with category names
      • Panel binary logistic regression, lagged independe...
      • Confidence intervals for wtp
      • Generate dummy from repeated values
      • Generating new variable
      • which option can decreae the numbers of symbols of...
      • Calculating integral for an independent variable
      • Difference in difference with time variant treatment
      • Breaking down a difference in difference result
      • Clarification regarding O/E from melogit model
      • Help with significance testing
      • Creating a loop with egen, conditional on a specif...
      • Creating new variables depending on existing ones
      • Making non-repeating assignments (Assigning studen...
      • Ipolate on panel data creating observations rather...
      • Known groups in LCA
      • Creating new variables depending on existing ones
      • Panel data:
      • Different output after using xtreg, fe using facto...
      • How to justify the Panel Data Model with lagged in...
      • Technical help on Variable categorization
      • Macthing Geordinates by Group
      • Interpretation of coefficients in GLM fractional l...
      • Plot staggered difference-in-difference model on t...
      • Tobit post-estimation commands
      • Sensitivity analysis
      • Amazon Marketing Strategy: a brief overview
      • Amazon PESTEL Analysis
      • Normalize one coefficient in choice model (mixlogit)
      • import (nonstandard) data with incorrect formats?
    • ►  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