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 change capital letters in all variable names into small letters?

how to change capital letters in all variable names into small letters?

Tuesday, February 28, 2023 Data Cleaning Data management Data Processing
I have 1300 variables, and all the variables contain capital letters in their names. I want all of them to be small letters? How to do that?...
Gen match =_n1 replace match = _id if match ==. How can you have missing value ??

Gen match =_n1 replace match = _id if match ==. How can you have missing value ??

10:23 PM Data Cleaning Data management Data Processing
Richard Hofler can you help? As I believe you were the author of this code re post 5 on here https://www.statalist.org/forums/for...score-...
Panel Data Logged Differences Help!!

Panel Data Logged Differences Help!!

7:23 PM Data Cleaning Data management Data Processing
Hello thank you!! I'm doing a research project on whether or not individual CEO campaign contributions affects their 6 month average sto...
ivreg2-weak instrument robust inference

ivreg2-weak instrument robust inference

4:23 PM Data Cleaning Data management Data Processing
Dear All, I was a bit confused about the validity of estimates after ivreg2. If the Kleibergen-Paap rk LM statistic and Kleibergen-Paap rk...
Dropping observations after the first time the treatment turns off

Dropping observations after the first time the treatment turns off

2:23 PM Data Cleaning Data management Data Processing
Hello, I need some help finding a solution to the following problem: I want to drop all the observations that occur at and after the first...
EFA-Factor Analysis

EFA-Factor Analysis

1:23 PM Data Cleaning Data management Data Processing
Hello, I have survey data where five main factors and each factor has a set of questions. As we know a number of factors I applied EFA ove...
Intuition on why Fixed-effects models depend on there being variation within the unit of analysis.

Intuition on why Fixed-effects models depend on there being variation within the unit of analysis.

Monday, February 27, 2023 Data Cleaning Data management Data Processing
I am new to econometrics and tried to find the answer on google, but couldn't find any. I've learned that Fixed-effects models depen...
how to calculate the moving average for a variable

how to calculate the moving average for a variable

10:23 PM Data Cleaning Data management Data Processing
Dear all I am trying to calculate the average bond maturity over the preceding three months as an instrumental variable in my analysis. it...
Ask experts for help:how to set the prior of regression coefficients that follow dirichlet distribution in bayes model

Ask experts for help:how to set the prior of regression coefficients that follow dirichlet distribution in bayes model

6:23 PM Data Cleaning Data management Data Processing
Hello, statistics experts, I have a question that troubles me for long time. My purpose to estimate the joint effect of air pollution on t...
Doubt with daily dates and x-axis

Doubt with daily dates and x-axis

3:24 PM Data Cleaning Data management Data Processing
Greetings, I am working with a database and I have two doubts: 1) is there any way that in the x-axis I can only show the year (leaving ...
multiply vectors; dot product

multiply vectors; dot product

3:24 PM Data Cleaning Data management Data Processing
This is probably very easy, but I don't know how to do it. 1) If part1, part2, part3 in the example below are a vector, I need the dot...
Removing Compound Quotes in Local Macro

Removing Compound Quotes in Local Macro

3:24 PM Data Cleaning Data management Data Processing
I am using levelsof to feed a list of ISO-3 country codes into wbopendata to query countries' GDP from the World Bank. wbopendata requir...
No observation error when creating new variables

No observation error when creating new variables

3:24 PM Data Cleaning Data management Data Processing
Dear Stata users! I am having a problem and looking forward to your help. You can see one part of my data set as below. I am using nested ...
Marginal Effects after Firthlogit

Marginal Effects after Firthlogit

12:23 AM Data Cleaning Data management Data Processing
Dear Statalists, I have used mfx command after estimating firthlogit model, and the predicted Y shows negative (-1.199). The results are g...
Panel Regression Help!!

Panel Regression Help!!

Sunday, February 26, 2023 Data Cleaning Data management Data Processing
Hi all!! Firstly, thank you for reading/helping! I'm attempting a project on looking at CEO personal campaign contributions before the...
How to estimate the trade creation and diversion effects with exporter-impoter-specific time trend?

How to estimate the trade creation and diversion effects with exporter-impoter-specific time trend?

6:23 PM Data Cleaning Data management Data Processing
Hello guys in Statalist! I have some problems with estimation on trade creation and diversion effects. I am using the command ppml_panel_s...
Panel Data Help! Creating a Change Variabel

Panel Data Help! Creating a Change Variabel

5:23 PM Data Cleaning Data management Data Processing
Hello! This is my first post and very much in need of help with a project I've been working on for some time. I have a panel dataset for...
Replace values of string variables based on a fraction of my dataset

Replace values of string variables based on a fraction of my dataset

4:23 PM Data Cleaning Data management Data Processing
Hello. I'm using a mapping table linking a question ( varname ) to its short label ( label ) in a survey. Whenever the question refers t...
meglm

meglm

2:23 PM Data Cleaning Data management Data Processing
Hello All, I have two datasets, one with a binary outcome and the second with a count outcome. I have difficulty importing the two datase...
Descriptive statistics with imputed data base

Descriptive statistics with imputed data base

4:23 AM Data Cleaning Data management Data Processing
Hi Statalisters, I am doing my Master's thesis with an imputed database. A doubt has arisen for me when trying to generate descriptive ...
Invalid Syntax r198

Invalid Syntax r198

3:23 AM Data Cleaning Data management Data Processing
Hi everyone, I'm having issues with a couple of my recoding commands and wonder if you could help. I need to recode categorical vari...
Comparing Slopes

Comparing Slopes

2:23 AM Data Cleaning Data management Data Processing
Hi there, In a trend analysis, I am looking at whether hours worked changed across 15 years. Then I am seeing whether hours worked differs...
Stratified cluster sampling

Stratified cluster sampling

12:23 AM Data Cleaning Data management Data Processing
Hello everyone I have census data for 115 400 companies in a city. There are 24 municipalities in the city grouped into 4 districts. I i...
How to add an extra year to an existing dataset

How to add an extra year to an existing dataset

Saturday, February 25, 2023 Data Cleaning Data management Data Processing
Dear members I have a dataset spanning from 2005-2019 and I would like to add 2004 to the year variable by company_id to append the 2004 co...
Estadd local not working

Estadd local not working

2:23 PM Data Cleaning Data management Data Processing
Hello, I'm using Stata17MP on Windows 11. I'm trying to use estadd local but it's not working. In particular, I do not get an...
How to calculate Point Estimates in a regression

How to calculate Point Estimates in a regression

12:23 AM Data Cleaning Data management Data Processing
Dear All; Need your kind help. I have a file tea_data.csv (attached for reference). I generated the variable teaDum, which takes value 1 i...
help with Synthetic control

help with Synthetic control

Friday, February 24, 2023 Data Cleaning Data management Data Processing
hello everyone. Ive compiled data on a large amount of countries to perform synthetic control. yesterday i was running synthetic control o...
Working with Stata dates

Working with Stata dates

7:23 PM Data Cleaning Data management Data Processing
Hello, I would like to create a variable, called "outcome", measured as a dummy indicator equal to one if Plan B was implemented...
Help creating a bar graph over multiple variables

Help creating a bar graph over multiple variables

5:23 PM Data Cleaning Data management Data Processing
Greetings, When creating a graph bar and dividing it over a variable, I cant figure out a way to add in the same graph a bar for the whole ...
Trouble working with %tc dates

Trouble working with %tc dates

3:23 PM Data Cleaning Data management Data Processing
Hello, I have a variable "EndDate" whose format is double yet displays as if it was %tc. I need to identify the maximum date by ...
Loop

Loop

1:23 PM Data Cleaning Data management Data Processing
Hello fellow Stata users, I have a question regarding the forvalues loop, this is the first time I want to use it. I have a variable calle...
Meta proportion

Meta proportion

12:23 AM Data Cleaning Data management Data Processing
Hi to everybody... after running the "metaprop" command if it is possible to write instead of "ES" "Proportion...
Regression of a few selected observations

Regression of a few selected observations

Thursday, February 23, 2023 Data Cleaning Data management Data Processing
I have a set of data but would only require to use of a few observations from the entire dataset. I was wondering if there is an easier way ...
Urgent: Multilevel moderated mediation

Urgent: Multilevel moderated mediation

6:23 PM Data Cleaning Data management Data Processing
I need to estimate a multilevel moderated mediation model, but I can't find the right code for it. I was hoping someone can help me with...
Concordance, sensitivity, specificity

Concordance, sensitivity, specificity

4:23 PM Data Cleaning Data management Data Processing
Hello, I have a very small data set with two diagnostic test data. One is an old test and gold standard and we want to test how good the n...
How can I Correctly Build the Fixed Effects Multinominal Logistic Regression Model with Panel Data?

How can I Correctly Build the Fixed Effects Multinominal Logistic Regression Model with Panel Data?

3:23 PM Data Cleaning Data management Data Processing
Hello, I ran into difficulties when building fixed effects Multinominal Logistic Regression Model with Panel Data using Stata. The dataset...
) required

) required

Wednesday, February 22, 2023 Data Cleaning Data management Data Processing
Hello, I am writing a code to plot a difference in differences, I have the following: twoway (scatter price_index Year if Treatment == 1, ...
WeWork Porter’s Five Forces Analysis

WeWork Porter’s Five Forces Analysis

7:33 PM Research Methodology
Porter’s Five Forces analytical framework developed by Michael Porter (1979)[1] represents five individual forces that shape an overall exte...
how to Import many excel files with multiple sheets and appending each sheet into one dta file for each file with the same excel file name

how to Import many excel files with multiple sheets and appending each sheet into one dta file for each file with the same excel file name

7:23 PM Data Cleaning Data management Data Processing
Hello everyone, I just joined Statalist. So this is my first post. I would like to give you a brief idea about what I want to do and the...
WeWork marketing communication mix

WeWork marketing communication mix

5:33 PM Research Methodology
WeWork marketing communication mix comprises communication channels to communicate the marketing message to the target customer segment. The...
WeWork Marketing Mix (WeWork 7Ps of Marketing)

WeWork Marketing Mix (WeWork 7Ps of Marketing)

5:33 PM Research Methodology
WeWork marketing mix (WeWork 7Ps of marketing) comprises elements of the marketing mix that consists of product, place, price, promotion, pr...
Is there any way to stop pyStata while running?

Is there any way to stop pyStata while running?

3:51 PM Data Cleaning Data management Data Processing
We know that both python and Stata have the stop-process capability, but it seems impossible to do that through pystata. For example, suppos...
Find matched firms

Find matched firms

Tuesday, February 21, 2023 Data Cleaning Data management Data Processing
Hello everyone, Hope everything is going well. I have a question about how to identify the matched firm. The sample data is the followin...
Backward Compatibility .mlib-s Complied in v17

Backward Compatibility .mlib-s Complied in v17

7:23 PM Data Cleaning Data management Data Processing
Hi All, Yesterday a user made an issue on the -domin- (SSC) package's GitHub page noting that they are getting an error that a Mata f...
Recoding

Recoding

5:23 PM Data Cleaning Data management Data Processing
Hello, I have the variable gender which was originally coded as 1 = male and 2 = female. I went in and changed the code with the following...
Problem with storing regression estimates while using "scfcombo" package for Survey of Consumer Finance data

Problem with storing regression estimates while using "scfcombo" package for Survey of Consumer Finance data

3:23 PM Data Cleaning Data management Data Processing
All, I am trying to neatly store and organize regression results in Stata 16.0 version. However, I am using Survey of Consumer Finance dat...
What kind of interpolating should I use?

What kind of interpolating should I use?

3:23 PM Data Cleaning Data management Data Processing
I have a daily dataset with global aggregate numbers of an index and a monthly index of countries specifically. As the changes in the daily ...
Cleaning challenge blanks in variables

Cleaning challenge blanks in variables

2:23 PM Data Cleaning Data management Data Processing
Hello when reshaping data, from long to wide, we wanted to make each row per director, and all the companies their associated with as diff...
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)
      • how to change capital letters in all variable name...
      • Gen match =_n1 replace match = _id if match ==. Ho...
      • Panel Data Logged Differences Help!!
      • ivreg2-weak instrument robust inference
      • Dropping observations after the first time the tre...
      • EFA-Factor Analysis
      • Intuition on why Fixed-effects models depend on th...
      • how to calculate the moving average for a variable
      • Ask experts for help:how to set the prior of regre...
      • Doubt with daily dates and x-axis
      • multiply vectors; dot product
      • Removing Compound Quotes in Local Macro
      • No observation error when creating new variables
      • Marginal Effects after Firthlogit
      • Panel Regression Help!!
      • How to estimate the trade creation and diversion e...
      • Panel Data Help! Creating a Change Variabel
      • Replace values of string variables based on a frac...
      • meglm
      • Descriptive statistics with imputed data base
      • Invalid Syntax r198
      • Comparing Slopes
      • Stratified cluster sampling
      • How to add an extra year to an existing dataset
      • Estadd local not working
      • How to calculate Point Estimates in a regression
      • help with Synthetic control
      • Working with Stata dates
      • Help creating a bar graph over multiple variables
      • Trouble working with %tc dates
      • Loop
      • Meta proportion
      • Regression of a few selected observations
      • Urgent: Multilevel moderated mediation
      • Concordance, sensitivity, specificity
      • How can I Correctly Build the Fixed Effects Multin...
      • ) required
      • WeWork Porter’s Five Forces Analysis
      • how to Import many excel files with multiple sheet...
      • WeWork marketing communication mix
      • WeWork Marketing Mix (WeWork 7Ps of Marketing)
      • Is there any way to stop pyStata while running?
      • Find matched firms
      • Backward Compatibility .mlib-s Complied in v17
      • Recoding
      • Problem with storing regression estimates while us...
      • What kind of interpolating should I use?
      • Cleaning challenge blanks in variables
      • 2 identical values between any two columns
      • Stata extract year from date
      • Identify first time dummy variable = 1 across obse...
      • Serial, overlapping and nested hospital transfers
      • Generate new column with specified data based on a...
      • How to replace long list value by order
      • Predicted Probabilities using gologit2
      • Comparing coefficients across two models
      • Do you need to recode and manipulate variables bef...
      • Summarizing variable across/over groups
      • Mixed model Code for my model and multicollinearit...
      • Mixed Effects Models - include cases without key i...
      • How to format the same regressors differently for ...
      • WeWork Leadership: a new start
      • ESTTAB command for Biprobit
      • Delete an observation if the value of a string var...
      • how to keep variable x1,y1,z1 when rank =1 and kee...
      • Splitting episodes & merging
      • How to calculate a margins plot for a DiD model wh...
      • How to create a progress bar for loops
      • coefplot only shows several variable names in hori...
      • Display the entire variable's names in "tab"
      • Endogeneity treatment and Altonji (2005) methods?
      • Add polynomial control variable to model
      • Control for the second province without dropping a...
      • Extracting the first number from a variable name
      • The perpetual inventory method (PIM)
      • Calculating stable ratios in given time period for...
      • Constructing panel data set
      • Analyzing individual quiz scores with group quiz s...
      • How to Save a File After a String Value
      • how to loop with tab2xl?
      • Preparing Panel Data with repeated time values wit...
      • Fitting Large, Multidimensional Tables to a Word D...
      • Error Code (199)
      • Multiple stored results from tabstat and esttab
      • Delete panel data observation if price i below cer...
      • Multiple first difference generation
      • Problem in creating a string variable
      • xtcointreg - "command cointreg is unrecognized r(1...
      • replacing variables in order
      • Means with different base in a loop
      • population size on svy: proportion command
      • Robust Hausman Test for TWFE
      • Is it possible to specify a different color only f...
      • How to use global macros inside conditional statem...
      • Ttest with categorical varaibles
      • Dropping variable and saving it
      • Regression Tree
      • Drop duplicates depending on two variables
      • Extract data from 1000 regression tables
      • Sargan test P value = 0 meaning
    • ►  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