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
How to declare "string" condition in If condition

How to declare "string" condition in If condition

Tuesday, June 30, 2020 Data Cleaning Data management Data Processing
Hello, I am newbie in Stata and I have a problem with stata when I try to declare If condition. In my DB, I have "country" var...
Matching and generating hourly data

Matching and generating hourly data

11:25 PM Data Cleaning Data management Data Processing
Dear Stata Users, I am working on hourly data sets. The datasets have the "zipcodes" variable as the common var to merge/joinby....
Pathways / event history

Pathways / event history

10:25 PM Data Cleaning Data management Data Processing
Dear Statalist users I am hoping you can solve a query I have I want to look at pathways for young people aged between 15 and 30 in and ...
Generating a variable

Generating a variable

10:25 PM Data Cleaning Data management Data Processing
I want to generate variable that indicate if individuals continue to participate in a program at age of 72 or after. For example, if an indi...
Problem with SVY : poisson regression

Problem with SVY : poisson regression

8:25 PM Data Cleaning Data management Data Processing
Hi all, I'm trying to estimate the effect of containement measures on COVID 19 number of cases evolution (in one city). The thing is ...
Regressing growth rates of a variable on its initial level for separate decades

Regressing growth rates of a variable on its initial level for separate decades

5:25 PM Data Cleaning Data management Data Processing
Dear all, I am currently trying to regress the growth rate of a variable on its initial level and an intercept. Specifically, the compound...
Is it possible to obtain ultra-precision in calculating p-values in Stata?

Is it possible to obtain ultra-precision in calculating p-values in Stata?

5:25 PM Data Cleaning Data management Data Processing
Dear Statalisters, What would be your suggestion to compute p-values as low as 1e-25? For example: One-sided test gene double p = 1-...
difference between meologit with sampling weights and svy:meologit?

difference between meologit with sampling weights and svy:meologit?

9:25 AM Data Cleaning Data management Data Processing
HI, I have a general question about the difference in 2 commands. I have multilevel survey data and an ordered 3 level dependent variable (o...
Constant weight variable in panel data

Constant weight variable in panel data

9:25 AM Data Cleaning Data management Data Processing
Dear users, I am working with a static panel dataset including variables at the household level for three years. In the first wave only ru...
Constant weight variable in panel data

Constant weight variable in panel data

9:25 AM Data Cleaning Data management Data Processing
Dear users, I am working with a static panel dataset including variables at the household level for three years. In the first wave only ru...
Weight in panel data

Weight in panel data

9:25 AM Data Cleaning Data management Data Processing
Dear users, I am working with a static panel dataset including variables at the household level for three years. In the first wave only ru...
Systems of simultaneous equations with non-linear constraints

Systems of simultaneous equations with non-linear constraints

7:25 AM Data Cleaning Data management Data Processing
Dear Stata users, I have the following issue: I have to estimate a system of simultaneous equations with non-linear constraints of form 0 ...
egen maxdate gives dates 01/01/2500

egen maxdate gives dates 01/01/2500

6:25 AM Data Cleaning Data management Data Processing
Hello everyone I am trying to get the difference between two dates to calculate follow up per patient I am using a long format dataset wi...
Excel Table split by socio-demographics using Putexcel

Excel Table split by socio-demographics using Putexcel

5:25 AM Data Cleaning Data management Data Processing
Hello fellow Stata community, I´m looking for a way to automate my Analysis Output to Excel using Putexcel. I already found this Code by e...
Exporting detailed summary statistics to Word

Exporting detailed summary statistics to Word

5:25 AM Data Cleaning Data management Data Processing
Hello helpful Stata users, I am trying to generate a word export of my dependent variable via the sum function with details. Should basic...
ppmlhdfe Pseudo R2 0.99+

ppmlhdfe Pseudo R2 0.99+

4:25 AM Data Cleaning Data management Data Processing
Here is the model to estimate the impact of free trade agreements (fta) and preferential trade agreements (pta) on exports (exports) for ann...
Bernanke Sims Decomposition Restriction for VAR IRFs

Bernanke Sims Decomposition Restriction for VAR IRFs

4:25 AM Data Cleaning Data management Data Processing
Hi all, I'm wondering if anyone knows if STATA has the functionality to do a bernanke sims decomposition when producing IRFs from VAR m...
Importance of misspecification test vs. R-sq. and consequences of xtsktest

Importance of misspecification test vs. R-sq. and consequences of xtsktest

3:25 AM Data Cleaning Data management Data Processing
Dear Statalist Members, I am analyzing a balanced panel of around 2400 firms over 12 years (Stata 13). The output I am able to present her...
Testing for weak instruments in 2SLS regression using robust SE (just-identified model)

Testing for weak instruments in 2SLS regression using robust SE (just-identified model)

3:25 AM Data Cleaning Data management Data Processing
Hi, I'am currently struggling to test for weak instruments when conducting a 2sls regression using robust standard errors (vce robust)...
Esport summary statistics by 5 groups

Esport summary statistics by 5 groups

2:25 AM Data Cleaning Data management Data Processing
Dear all, Recfently I presented my research project to a faculty. One of the comment for improvement is related with descriptive statistic...
Generating a new variable with standardized values compared to a healthy control group mean and SD (z scores)

Generating a new variable with standardized values compared to a healthy control group mean and SD (z scores)

2:25 AM Data Cleaning Data management Data Processing
I'm working with crossectional test data with a selection of test results (all continuous variables) in both a patient and healthy contr...
Linear mixed effects models with random effects for subject

Linear mixed effects models with random effects for subject

2:25 AM Data Cleaning Data management Data Processing
I have a dataset of 16 patients with 10 variables. The dependent variable is "bmizpre". It is a longitudinal study with a total of...
Unbalance panel data with gap in the timeseries

Unbalance panel data with gap in the timeseries

1:25 AM Data Cleaning Data management Data Processing
I have data of the following format where there is gap in between the time-series. Code: * Example generated by -dataex-. To install: ssc...
Stata keybindings (keyboard shortcuts) using a hammer spoon (almost perfect, except for one thing)

Stata keybindings (keyboard shortcuts) using a hammer spoon (almost perfect, except for one thing)

12:25 AM Data Cleaning Data management Data Processing
I've installed hammerspoon on my Mac OS. As a result, I can now use Emacs keybindings in Stata as well. It's very useful. Unfortu...
How to test coefficent difference across two group

How to test coefficent difference across two group

Monday, June 29, 2020 Data Cleaning Data management Data Processing
Hi there, I have a problem in my research project, where I want to test the coefficent difference across two group, as shown by bellow pict...
Residuals as Dependent Variable - Interpretation of Coefficients?

Residuals as Dependent Variable - Interpretation of Coefficients?

9:25 PM Data Cleaning Data management Data Processing
Hi there, I try to model daily stock market trading volume with a bunch of independent variables like stock returns, stock price volatilit...
Saving a file takes forever

Saving a file takes forever

9:25 PM Data Cleaning Data management Data Processing
Hi, I have a problem with saving an appended file. I have couple of files to be appended, but it takes hours till a file saved! Sorry if my ...
Measuring Knowledge Level based on survey answers

Measuring Knowledge Level based on survey answers

8:25 PM Data Cleaning Data management Data Processing
Hi! I asked my respondents a few questions with 04 options each For example, "Which one is the largest state in area? Texas, Alask...
How to draw a twoway picture like these

How to draw a twoway picture like these

7:25 PM Data Cleaning Data management Data Processing
How to draw a twoway picture like these, these two pictures,thanks Code: * Example generated by -dataex-. To install: ssc install dataex...
Convert SIF date to year

Convert SIF date to year

5:25 PM Data Cleaning Data management Data Processing
Hi all, Below is a few observations of my large panel data set I got after linking several data together. My question is about variable mt...
Desscriptive Statistics and Matrices

Desscriptive Statistics and Matrices

11:25 AM Data Cleaning Data management Data Processing
I have the code below. I want to export the result from the code below to excel and also want to add standard deviations for the two groups ...
xtreg Y X1 X2...Xn i.country, fe- Is it possible/ correct/ feasible?

xtreg Y X1 X2...Xn i.country, fe- Is it possible/ correct/ feasible?

10:25 AM Data Cleaning Data management Data Processing
Declared panel data as xtset year (instead of xtset panelid year) xtset YEAR panel variable: YEAR (balance d) . xtreg logXijt logGDPitG...
Limitation of arguments in mata

Limitation of arguments in mata

9:25 AM Data Cleaning Data management Data Processing
Cheers together, currently, I am trying to find the internal rate of return or cost of equity for companies over time. So I have many comp...
How to import several excels

How to import several excels

8:25 AM Data Cleaning Data management Data Processing
Dear Statalist, I need to create a database using several (hundreds) of excels like the one I show below. The problem is that I do not kno...
wildcard in string variable

wildcard in string variable

8:25 AM Data Cleaning Data management Data Processing
I'm trying to link different business locations to appropriate zip codes using a do-file. I have business names in a name variable and c...
How to organise my data, Im a beginner!

How to organise my data, Im a beginner!

8:25 AM Data Cleaning Data management Data Processing
Hi I would like to know what commands to use to organise my data, I currently have a dataset with over 1000 observations and would like to...
estimating sample size for cohort studies

estimating sample size for cohort studies

8:25 AM Data Cleaning Data management Data Processing
I am trying to compute the sample size of a cohort study, pregnant women beyond 20 weeks of gestation with normal blood pressure <130/80 ...
Counting up within ID

Counting up within ID

7:25 AM Data Cleaning Data management Data Processing
Hi everyone, Quick question that may be quite simple to answer but I am having trouble wrapping my head around it. Below I have pasted so...
Producting publication tables for loneway command

Producting publication tables for loneway command

5:25 AM Data Cleaning Data management Data Processing
Dear Stata users, I computed different intraclass correlations using the loneway command. Which command can I use to produce publication-qu...
standard deviation of a variable

standard deviation of a variable

3:25 AM Data Cleaning Data management Data Processing
Hi everyone, I have a set data for 10 years. I want to calculate the standard deviation of one variable during year y-2 to y (three years) ...
Nelson aalen cumulative hazard function

Nelson aalen cumulative hazard function

3:25 AM Data Cleaning Data management Data Processing
Hi all! Hope you are doing good. I have a question about the Nelson aalen cumulative hazard function. I made a graph about chance of disch...
Treatment Effect in Panel Data with Many Time Periods and Various Treatment Starts

Treatment Effect in Panel Data with Many Time Periods and Various Treatment Starts

3:25 AM Data Cleaning Data management Data Processing
Dear Statalist, I have a question regarding the identification of a treatment effect in a large panel dataset (800.000 observations), spa...
serial/cross sectional autocorrelation and heteroscedasticity in panel data

serial/cross sectional autocorrelation and heteroscedasticity in panel data

1:25 AM Data Cleaning Data management Data Processing
Hello everyone, I am working with a paneldataset with N=170 and T=5. I want to test for heteroscedasticity/autocorrelation but I kind of g...
hcost: error occurred while loading hcost.ado

hcost: error occurred while loading hcost.ado

1:25 AM Data Cleaning Data management Data Processing
Good day all, i need to run a hcost command to calculate cost estimate based on censored data [ https://www.stata-journal.com/articl...art...
Hurdle model with nehurdle command in Stata 12

Hurdle model with nehurdle command in Stata 12

12:25 AM Data Cleaning Data management Data Processing
I am using nehurdle command in Stata 12. My dependent variable is education expenditure (consisting of many zeros), hence I am using a two p...
year dummies in xtreg and pooled OLS

year dummies in xtreg and pooled OLS

12:25 AM Data Cleaning Data management Data Processing
Hello, I ran both a fixed effects model and pooled OLS model on the same dataset. I am now wondering if, including year dummies and thus t...
Elasticity estimates in Tobit regression

Elasticity estimates in Tobit regression

12:25 AM Data Cleaning Data management Data Processing
Dear Statalisters This is my first post so please excuse if the question is not posed correctly. While running a tobit regression (with ...
Help/advice on importing large number of text files into Stata

Help/advice on importing large number of text files into Stata

Sunday, June 28, 2020 Data Cleaning Data management Data Processing
Dear all, I have a collection of around 2,400 PDFs of parliamentary debate transcriptions that I would like to import into Stata. Having f...
Tabout Error - Conformability r(3200)

Tabout Error - Conformability r(3200)

8:25 PM Data Cleaning Data management Data Processing
Hello I am using running a series of crosstab tables using the following tabout command: Code: tabout sex v501_marital_stat_r religio...
Calculating effect sizes after MI and mixed

Calculating effect sizes after MI and mixed

8:25 PM Data Cleaning Data management Data Processing
Hello All, I hope this message finds you well! After running the following code is there a way to calculate effect sizes? Code: mi e...
Help needed to adjust the outcome of bysort command

Help needed to adjust the outcome of bysort command

8:25 PM Data Cleaning Data management Data Processing
Dear Stata community members, I have created a count variable k and p based on the following syntax : by ID Illness (Year), sort: gen k =...
Can I select Fixed-effects model?

Can I select Fixed-effects model?

7:25 PM Data Cleaning Data management Data Processing
Dear, First of all, I really thank you everyone here sparing their efforts to help the person like me. - Fixed-effects model is proven v...
Generating summary statistics and exporting to excel

Generating summary statistics and exporting to excel

7:25 PM Data Cleaning Data management Data Processing
I have a table that looks like this: Country Name Country Code Series Name Series Code 2016 [YR2016] 2017 [YR2017] 2018 [YR2018] ...
How do you maintain your library of code sinppets?

How do you maintain your library of code sinppets?

4:25 PM Data Cleaning Data management Data Processing
This question is for anyone whose programmed for long enough to find that keeping snippets of code to hand is useful for remembering interes...
New version of -ranktest- available on SSC

New version of -ranktest- available on SSC

2:25 PM Data Cleaning Data management Data Processing
With thanks to Kit Baum, a new version of ranktest by Kleibergen-Schaffer-Windmeijer, version 2.0.03, is now available on SSC Archives. T...
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)
      • How to declare "string" condition in If condition
      • Matching and generating hourly data
      • Pathways / event history
      • Generating a variable
      • Problem with SVY : poisson regression
      • Regressing growth rates of a variable on its initi...
      • Is it possible to obtain ultra-precision in calcul...
      • difference between meologit with sampling weights ...
      • Constant weight variable in panel data
      • Constant weight variable in panel data
      • Weight in panel data
      • Systems of simultaneous equations with non-linear ...
      • egen maxdate gives dates 01/01/2500
      • Excel Table split by socio-demographics using Pute...
      • Exporting detailed summary statistics to Word
      • ppmlhdfe Pseudo R2 0.99+
      • Bernanke Sims Decomposition Restriction for VAR IRFs
      • Importance of misspecification test vs. R-sq. and ...
      • Testing for weak instruments in 2SLS regression us...
      • Esport summary statistics by 5 groups
      • Generating a new variable with standardized values...
      • Linear mixed effects models with random effects fo...
      • Unbalance panel data with gap in the timeseries
      • Stata keybindings (keyboard shortcuts) using a ham...
      • How to test coefficent difference across two group
      • Residuals as Dependent Variable - Interpretation o...
      • Saving a file takes forever
      • Measuring Knowledge Level based on survey answers
      • How to draw a twoway picture like these
      • Convert SIF date to year
      • Desscriptive Statistics and Matrices
      • xtreg Y X1 X2...Xn i.country, fe- Is it possible/ ...
      • Limitation of arguments in mata
      • How to import several excels
      • wildcard in string variable
      • How to organise my data, Im a beginner!
      • estimating sample size for cohort studies
      • Counting up within ID
      • Producting publication tables for loneway command
      • standard deviation of a variable
      • Nelson aalen cumulative hazard function
      • Treatment Effect in Panel Data with Many Time Peri...
      • serial/cross sectional autocorrelation and heteros...
      • hcost: error occurred while loading hcost.ado
      • Hurdle model with nehurdle command in Stata 12
      • year dummies in xtreg and pooled OLS
      • Elasticity estimates in Tobit regression
      • Help/advice on importing large number of text file...
      • Tabout Error - Conformability r(3200)
      • Calculating effect sizes after MI and mixed
      • Help needed to adjust the outcome of bysort command
      • Can I select Fixed-effects model?
      • Generating summary statistics and exporting to excel
      • How do you maintain your library of code sinppets?
      • New version of -ranktest- available on SSC
      • Difference between vce(cluster) and vce(bootstrap)?
      • Problem encoding dates: unordered value
      • Probit marginal effects
      • Merge two datasets wih the same variable names
      • standardized coefficients for sem
      • Help with spmap
      • correlation in one wave data and panel data
      • log (pseudo)likelihood and wald chi²
      • different levels of significance logit vs margins
      • question about perfectly predicted variables in logit
      • Examples of programs with suboptions
      • Equivalent command to Ctsem in STATA ?
      • predicting effect
      • Generate a new date variable from a panel data
      • Panel Data: Comparison of Observations
      • Aggregate individual-level data into household-lev...
      • Problem with using margins code and creating a dum...
      • xtabond2 command help, PLEASE
      • By Patient ID subtract dates if observation (admis...
      • Variation within a group
      • How can I do matching in case control study?
      • Graphing in a nested loop
      • Decomposing String Variable While Retaining Adjace...
      • LRTEST poisson vs negative binomial loop
      • Choosing a model for unbalanced panel data with so...
      • Passing arguments from Stata to Python (or Stata e...
      • Generate dummies basded on market share and portfo...
      • Reghdfe F test on fixed effects function disabled
      • Identify the time dimension in unbalanced dataset
      • stata bar graph binary variable
      • How to drop the first twelve month of fund returns
      • Merging datasets for specific observations
      • Metaprop Forestplot Editing
      • PSM (ATET and ATE)
      • Import excel dataset to Stata with MM/DD/YYYY date...
      • Identify variables by their order in the dataset
      • Generating unique id across variables
      • Merging datasets for specific observations in a va...
      • if condition "name global variable == " then enter...
      • Temporary frame
      • Tobit model with two steps
      • Problem with import delimited - characters "¿" "1/...
      • Simulate correlated binary variables
      • renvars command
      • Re coding many variable simultaneously
    • ►  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